conductor icon indicating copy to clipboard operation
conductor copied to clipboard

Not able to add event handler- any1 facing same issue?

Open amoolya19 opened this issue 9 years ago • 2 comments

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
}

amoolya19 avatar Apr 21 '17 09:04 amoolya19

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?

amoolya19 avatar Apr 24 '17 10:04 amoolya19

#125 . solved using this link.

amoolya19 avatar Apr 24 '17 12:04 amoolya19