Not able to add event handler- any1 facing same issue?
Hi, I tried to add event handler using swagger . i was trying to register event handler using POST /event api. but giving me below error.
"code": "INTERNAL_ERROR", "message": "INTERNAL_ERROR - String index out of range: -1",
json used
{
"name": "event1",
"event": "event_task1",
"condition": "number>2",
"actions": [
{
"action": "start_workflow",
"start_workflow": {
"name": "decision_workflow",
"input": {
"number": "${workflow.input.number}"
}
}
}
],
"active": true
}
now im able solve internal error by changing "event": "conductor:wokflow_test:event_1", where wokflow_test is main workflow name and event_1 is event task in main wf.
now my workflow completes but i dont think so any event is getting triggered. --> need help with this.
Found 1 more article on event and event handlers. http://techblog.netflix.com/2017/04/netflix-conductor-inversion-of-control.html?
#125 . solved using this link.