File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,6 @@ const ZB = require('../dist')
6
6
const topology = await zbc . topology ( )
7
7
console . log ( JSON . stringify ( topology , null , 2 ) )
8
8
9
- let workflows = await zbc . listWorkflows ( )
10
- console . log ( workflows )
11
-
12
9
await zbc . deployWorkflow ( './test.bpmn' )
13
10
workflows = await zbc . listWorkflows ( )
14
11
console . log ( workflows )
@@ -20,7 +17,7 @@ const ZB = require('../dist')
20
17
} , 1000000 )
21
18
} ) ( )
22
19
23
- function handler ( payload , complete ) {
24
- console . log ( 'ZB payload' , payload )
25
- complete ( payload . variables )
20
+ function handler ( job , complete ) {
21
+ console . log ( 'Job payload' , job )
22
+ complete ( job . variables )
26
23
}
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ const ZB = require('../dist')
3
3
4
4
; ( async ( ) => {
5
5
const zbc = new ZB . ZBClient ( {
6
- onConnectionError : err => console . log ( 'err' , err ) ,
7
- onReady : ( ) => console . log ( 'YOO ' ) ,
6
+ onConnectionError : ( ) => console . log ( 'Connection Error' ) ,
7
+ onReady : ( ) => console . log ( 'Ready to work ' ) ,
8
8
} )
9
9
const topology = await zbc . topology ( )
10
10
console . log ( JSON . stringify ( topology , null , 2 ) )
You can’t perform that action at this time.
0 commit comments