We have a Process Model with a User Interface step. In the step there is a related action that launches off another Process model. Is there a way for this newly launched process model to notify the main process model when it is done?
Discussion posts and replies are publicly visible
What exactly do you mean "related action"? Can you describe the step-by-step user-facing use case, and your expectations, and what you're hoping to accomplish but can't figure out?
User is working on a task and need to launch another task for some extra work while continuing work on the existing task. When the newly launched task is completed, it needs to notify the task from which it was launched. Does that clarify?
What are they doing to "launch another task"? Is it a button that branches off to a side subprocess? Is it a record action? Is it a start process link? ....?
Start process link or record action. not sure yet.
you can achieve by start process link but in that case you cannot access data from child process as main interface automatically reloads. make sure you child process output is stored in db and retrieve the data on main interface on reload .
If you are storing the Process ID in the Record it is possible to do via a Related Action. Otherwise, you would need to do it via a Start Process Link and pass in the task or process id.
What is the purpose of this? What exactly do you mean with "it needs to notify the task"?
When you click on related action the data that is present in the process User Input task has to pass to the related action. AFAIK if we are starting a process inside a task we can't notify to the parent task screen.
Either Try To Do Conditional Data Parameter pass Using If Else Conditions using write Record Smart Functions. No Need to Go To Process Model Smart Services as they also have on success Parameter .
Or Try to Do All on interface and Make A start Process and Try to Capture the Resultant Using fv!processInfo.pv in Your Save into parameter and Once you Get it In Local Variable Process Based On THe Data as this Will Be the Latest Data .
Else if You Go using Any Other Approach data will not be latest as the Process(screen) need to Be refreshed for Latest Data in your variables.
Try Start Process using Conditional UI and Get data using fv!processInfo.pv and Play with it .
Not sure your exact use case, but you can try following:
Trigger main process and on the UIT give a button or submitlink to start next activity. This will complete the main process and call the next process as a subprocess. Once subprocess completes revert the flow to main UIT or call the main process again from sub process.
But if you can elaborate what exactly you try to achieve then there can be simpler option available.