bpmnEngine.NewTaskHandler undefined
kstan79 opened this issue · 6 comments
Im trying this library follow guide https://nitram509.github.io/lib-bpmn-engine/getting-started, it gave:
./main.go:18:13: bpmnEngine.NewTaskHandler undefined (type bpmn_engine.BpmnEngineState has no field or method NewTaskHandler)
I'm solve using alternative method, which proposed by vscode autocomplete:
//define service task id = "hello-world"
bpmnEngine.AddTaskHandler("hello-world", printContextHandler)
You may update the documentation?
Hi @kstan79 ,
I just cross-checked this example code.
Using v.0.3.0-beta1 of the library does work fine.
Your snippet bpmnEngine.AddTaskHandler("hello-world", printContextHandler)
indicates a very old version.
What version you're using?
im checkout latest master version.
im checkout latest master version.
That's strange.
The NewTaskHandler().Assignee()...
function in main branch is looking as shown in the previous comment.
I wonder how your code AddTaskHandler("hello-world", printContextHandler)
can even compile without error?
There must be some difference. What do we oversee?
oh, i know the reason. most probably i'm create new go project with direct import remote package. no check out source code