I have a process that, upon completion, conditionally needs to spin up another process. The other process could be one of many, so the process identifier needs to be stored in a variable. Is there a way to do this using only activiti explorer and the rest api (which I believe excludes me from being able to catch events?)? Broad strokes, what approach would I need to take?
Few solutions which I can think of right away are 1) To add a service task at the end of the process and code it such that this one will start the process which ever you want. 2) Have a call activiti at the end of the process. I never really tried call activiti to trigger a process from a variable's value at runtime but you can give it a try.
So the service call seems interesting. I haven't seen a way to make service calls without setting up a WSDL, though. Based on reading the documentation, I believe there's no way to induce a service call to make a request with JSON (again, using only activiti explorer and rest API, and possibly modifying the xml of the process). Is that correct, or have I missed something?
I would recommend signal or message start events. Use signal or message start events at the beginning of the process. The process which should start new process instance could simply use signal/message throw event and start the process based on the event fired.