I can’t share the exact request. I will try to set up a sample flow that reproduces the issue that I can share.
In the meantime this is a representative example with JSON formatted to make it more readable:
POST /engine-rest/process-definition/key/test-flow/start HTTP/1.1
Host: ...
User-Agent: CamundaClientGo/{{version}}
Content-Length: ...
Authorization: Basic ...
Content-Type: application/json
Accept-Encoding: gzip
{
"variables": {
"foo": {
"value": "{...}",
"type": "json",
"valueInfo": {
"objectTypeName": null,
"serializationDataFormat": null
}
},
"bar": {
"value": "{...}",
"type": "json",
"valueInfo": {
"objectTypeName": null,
"serializationDataFormat": null
}
}
},
"businessKey": "5c3f97ae-db16-11e9-b1ef-8c859061fe68",
"startInstructions": {
"type": "startBeforeActivity",
"activityId": "human-approval-task",
"variables": {
"baz": {
"value": "...",
"type": "string",
"valueInfo": {
"objectTypeName": null,
"serializationDataFormat": null
},
"local": false
},
"qux": {
"value": "...",
"type": "string",
"valueInfo": {
"objectTypeName": null,
"serializationDataFormat": null
},
"local": false
}
}
},
"skipIoMappings": true
}
I’m including skipIoMappings as there is a DMN task before the task where I’m attempting to start the process instance which does set two process variables (baz and quz in this example) via I/O mapping.
A POST to start a process instance without startInstuctions or skipIoMappings works.
POST /engine-rest/process-definition/key/test-flow/start HTTP/1.1
Host: ...
User-Agent: CamundaClientGo/{{version}}
Content-Length: ...
Authorization: Basic ...
Content-Type: application/json
Accept-Encoding: gzip
{
"variables": {
"foo": {
"value": "{...}",
"type": "json",
"valueInfo": {
"objectTypeName": null,
"serializationDataFormat": null
}
},
"bar": {
"value": "{...}",
"type": "json",
"valueInfo": {
"objectTypeName": null,
"serializationDataFormat": null
}
}
},
"businessKey": "5c3f97ae-db16-11e9-b1ef-8c859061fe68"
}
A few more details, I’m using Camunda 7.13 standalone via docker and the https://github.com/citilinkru/camunda-client-go client.
Thanks!