Hi, I’m using the “camunda-external-task-client-js” node module, my node instance is subscribed to a process instance’s task running on my server and gets a call back to complete that task, aka the handler.
Within this process instance’s task, I use a “call activity” to call/invoke another process instance. When that happens, how do I know the child instance, or “call activity” process instances, parent ID?
Can I arrange to somehow get the same ID no matter what, even if I am getting a call from a call activity, I need to know what ROOT/parent business process I am getting called by?
I need to know which process instance is invoking the nodejs while I am in a child instance to control the flow of my operations within nodejs.
I LOVE the “call activity” notion because I want, at each level, for the process diagram to be simple and understandable, and having re-usable processes could be key to making it easy to assemble chatbots out of processes.
Also, from the rest API (and, in particular, the camunda-external-task-client-js) can I set variables on the process instance or even the root process instance that can be seen from the task in the call activity sub process? That might be an easy way to solve the above problem.
Where is task.variables.set setting? I seem to be able to branch on the settings I make using it so is it setting on the process instance? I’m a little confused about this.
Thanks again for all your help!