88 FlowableExternalWorkerRestClient
99} from "./rest-client" ;
1010import { ExternalWorkerAcquireJobResponse } from "./external-worker-acquire-job-response" ;
11+ import { EngineRestVariableType } from "./engine-rest-variable" ;
1112
1213export class ExternalWorkerClient {
1314
@@ -112,7 +113,7 @@ export class WorkerResultSuccess implements WorkResult {
112113 this . completeJobParams = { jobId : job . id , variables : null } ;
113114 }
114115
115- public variable ( name : string , value : string , type : string ) : WorkerResultSuccess {
116+ public variable ( name : string , value : any , type : EngineRestVariableType | string ) : WorkerResultSuccess {
116117 this . completeJobParams . variables = this . completeJobParams . variables || [ ] ;
117118 this . completeJobParams . variables . push ( { name, value, type, valueUrl : null } ) ;
118119 return this ;
@@ -164,7 +165,7 @@ export class WorkerResultBpmnError implements WorkResult {
164165 this . bpmnErrorParams = { jobId : job . id } ;
165166 }
166167
167- public variable ( name : string , value : string , type : string ) : WorkerResultBpmnError {
168+ public variable ( name : string , value : any , type : EngineRestVariableType | string ) : WorkerResultBpmnError {
168169 this . bpmnErrorParams . variables = this . bpmnErrorParams . variables || [ ] ;
169170 this . bpmnErrorParams . variables . push ( { name, value, type, valueUrl : null } ) ;
170171 return this ;
@@ -187,7 +188,7 @@ export class WorkerResultCmmnTerminate implements WorkResult {
187188 this . cmmnTerminateParams = { jobId : job . id } ;
188189 }
189190
190- public variable ( name : string , value : string , type : string ) : WorkerResultCmmnTerminate {
191+ public variable ( name : string , value : any , type : EngineRestVariableType | string ) : WorkerResultCmmnTerminate {
191192 this . cmmnTerminateParams . variables = this . cmmnTerminateParams . variables || [ ] ;
192193 this . cmmnTerminateParams . variables . push ( { name, value, type, valueUrl : null } ) ;
193194 return this ;
0 commit comments