0 Replies Latest reply on Jun 18, 2007 9:33 AM by Vineeth Varghese

    Ending a process instance and all its sub-process instance.

    Vineeth Varghese Newbie

      Hi Folks,

      I tried searching for any existing queries on this issue but couldn't find any, so posting this.

      I have an application that runs with 2 process definition lets say main process 'A' and sub-process 'B'. When process 'A' starts, based on some runtime info one or more instances of sub-process 'B' will be spawned. So at any point in time I will have an instance of process 'A' and 0-n process 'B'. Each of the process definition includes task assignments.

      A timer exists in process 'A' to check if the token/task/process is inactive for some X days. If it is found to be inactive, then the required action is to end the token of process 'A' and tokens of sub-process 'B'. Is there any obvious ways to achieve this is jbpm rather than querying all this from the db and programmatically doing this?.

      I would also like to know how to end just a subset of the number of process 'B' tokens.

      Thanks in advance for your help.