busean
1
I am looking for best practice to track the customer created process.
for example
If 100 user start the process, 100 process have same process definition id and unique task id. how should I track which customer create which task?
I am using camunda rest api in php, now it will display all the task detail under process definition id.
http://172.17.0.3:8080/engine-rest/history/task?processDefinitionId=&taskId=
but I need to display creator of the process related task only.
I am looking answer related to REST API.
Hi,
if you check the initiator on the start event in the modeler, you can set a process variables to contain the user id of the logged in user who started the process: https://docs.camunda.org/manual/7.5/reference/bpmn20/custom-extensions/extension-attributes/#initiator.
If the user doesn’t have to log in before starting the process, you can pass a variable with needed information by yourself. https://docs.camunda.org/manual/7.5/reference/rest/process-definition/post-start-process-instance/#request-body
Hope this helps,
Ingo