AnsweredAssumed Answered

Dynamically Create CallActivity

Question asked by mwooten1111 on Jul 22, 2015
Latest reply on Jul 23, 2015 by martin.grofcik
All,

I'm trying to come up with a solution for dynamically calling another process as a subtask.

Example:
P1: T1 -> T2 -> T3
P2: T4 -> T5
P3: T6 -> T7

At task T2 the user will need either start process P2,  P3, or maybe one of each. Task T2 should not complete until all of those subprocesses are completed. The key here is which process to run will not be known until the user selects it from a dynamic list.  From the documentation I have seen, it sounds like CallActivity is the approach used to start a subprocess. I have not been able to figure out how to create and execute a CallActivity from the Java API.

Are there any examples of dynamically creating a CallActivity as a subprocess with a dynamic called element? Is this even possible?

Thanks in advance.

-Michael

Outcomes