You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.
Note: when executing the provided function, this is binded to the first argument provided. Eg. in new SimpleTask({id: 4}), this is binded to {id: 4} when executing the task.
To run this example easily, save it to a file issue-bind.js in the examples-node repository.
Then, you can run zenaton listen --boot issue-bind.js and to start the workflow, run LAUNCH=1 node issue-bind.js
Either the documentation is wrong, or the binding is not done correctly.
Note: using the init() method to define the task work as expected:
The documentation states the following:
Considering the following example:
We would expect it to print
Actually, it prints
To run this example easily, save it to a file
issue-bind.js
in theexamples-node
repository.Then, you can run
zenaton listen --boot issue-bind.js
and to start the workflow, runLAUNCH=1 node issue-bind.js
Either the documentation is wrong, or the binding is not done correctly.
Note: using the
init()
method to define the task work as expected:This prints the following:
The text was updated successfully, but these errors were encountered: