Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
Fixes #134
Browse files Browse the repository at this point in the history
  • Loading branch information
jwulf committed Mar 1, 2020
1 parent 4fbb7c9 commit c1ca167
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/zb/ZBClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,20 @@ export class ZBClient extends EventEmitter {
})
}

public activateJobs(request: Array<ZB.ActivatedJob & { variables: any }>) {
return new Promise(async (resolve, reject) => {
try {
const stream = await this.grpc.activateJobsStream(request)
stream.on('data', (res: ZB.ActivateJobsResponse) => {
const parsedVariables = res.jobs.map(parseVariables)
resolve(parsedVariables)
})
} catch (e) {
reject(e)
}
})
}

public async cancelWorkflowInstance(
workflowInstanceKey: string | number
): Promise<void> {
Expand Down

0 comments on commit c1ca167

Please sign in to comment.