REST API - How to trigger an event?

Hello all,

How do I use the REST API to trigger an event (like a signal) within a specific process instance? I want to have some sort of event in a bpmn process, and then activate that event using the API, after which the token will move past that event.

The docs show that I can POST a signal event to the runtime, but it’s “not explicitly related to a specific execution” and I want it to relate to a specific process instance.

What is the best way to do this using the REST API?

Thanks!

Hi Rob,

first get the execution id from GET method of -->
http://localhost:8080/app-rest/service/runtime/executions/

and trigger signal with POST method by adding required execution Id example: 16639
http://localhost:8080/app-rest/service/runtime/executions/16639
in Body add required info. as below

{
“action”:“signal”,
“signalName” : “MyFirstSignal”
}

Thanks,
Vzy