#ProcessModeling #Security I have a process model that calls a subprocess (

#ProcessModeling #Security
I have a process model that calls a subprocess (synchonously) to monitor the SLA for the task. The subprocess starts a timer that waits for the SLA to elapse.
In the mean time, the parent process is completed by the user and terminates.

When I run this using my account (System Administrator user type) the subprocess is cancelled when the parent terminates.
When I run this as an end user (granted Viewer permissions through group membership) the subprocess continues running and is not cancelled.

How can I configure the model so it cancels the subprocess when the parent terminates?
(I would prefer not to pass a boolean to the subprocess and check it when the timer expires.)

OriginalPostID-178681

OriginalPostID-178681

  Discussion posts and replies are publicly visible

Parents
  • For most of these situations, I pass a boolean variable to the sub process by reference (must be by reference). Just before the parent terminates, this value is set to true(), which is used in the sub process as an exception flag. If the sub process is complicated (many nodes), you can create one new path between the start event and a terminate end event with a rule node which only flows on true(), this will cause the sub to end when the value is set to true() in the parent.
Reply
  • For most of these situations, I pass a boolean variable to the sub process by reference (must be by reference). Just before the parent terminates, this value is set to true(), which is used in the sub process as an exception flag. If the sub process is complicated (many nodes), you can create one new path between the start event and a terminate end event with a rule node which only flows on true(), this will cause the sub to end when the value is set to true() in the parent.
Children
No Data