Process modification

Hi,

Do you have an example code of how process modification works in git? I tried to access through apis and always getting: InvalidRequestException in response.

Url: https://127.0.0.1:8080/process-instance/5b31f389-c1df-11eb-8a21-b2881a78c6f1/modification

Request body:

{
“instructions”: {
“type”: “startBeforeActivity”,
“activityId”: “serviceRequestActivityId”
}
}

Response

{
“type”: “InvalidRequestException”,
“message”: “”
}


I also tried to start the process from a specific activity like below. And it didn’t work either

Request
http://localhost:8080/engine-rest/process-definition/key/BPMNId/start
{
“businessKey”: “MI21052904761111”,
“startInstructions”: {
“type”: “startBeforeActivity”,
“activityId”: “feeWaiverActivityId”,
“variables”: {}
},
“variables”: {}
}

Response:
{
“type”: “InvalidRequestException”,
“message”: “”
}

If you want to play around with the REST API or see examples of you can use it.
First download Camunda Platform Run - Download Open Source Workflow Software | Camunda
Then when it’s running you can go to http://localhost:8080/swaggerui/ that address will lead to a UI where you can test out rest calls really easily