Netflix / conductor

Conductor is a microservices orchestration engine.
Apache License 2.0
12.82k stars 2.34k forks source link

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

Closed amoolya19 closed 7 years ago

amoolya19 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

125 . solved using this link.