Process instance modification - skipexecutionlisteners false

Hi,

I am trying to modify a process instance to move it to next activity.
So, following is my input
{“id”:“20f856b0-03b2-11eb-8a43-6a08481259af”,“skipCustomListeners”:false,“skipIoMappings”:false,“instructions”:[{“type”:“startBeforeActivity”,“activityId”:“ServiceActivation_End”,“variables”:{}},{“type”:“cancel”,“activityInstanceId”:“Receive_task:2292f421-03b2-11eb-8a43-6a08481259af”}]}

getting error
Response: 500
{“type”:“NullPointerException”,“message”:null}

If the same request is posted with skipIoMappings as true and skipCustomListeners as true, it is working fine.

I want end execution listener of the next activity to be executed. Next activity is MessageSend End event.

It sounds like this is the API you’re attempting to use. Take a closer look as id appears in the request URL POST /process-instance/{id}/modification, not in the request body (assuming that is a process instance you’re targeting).

You could also use the modification API where you can target specific process definitions and instances.