-
1. Re: Checking for Infinite looping for each node in a process diagram
swiderski.maciej Sep 30, 2013 1:20 AM (in response to josdel)you would need to use additional logic within your process like for example onEntry action that will count number of invocations of given node. There is nothing of that sort in the runtime engine as it cannot determine if it is invalid behavior or not when given node is entered many times.
Alternatively you could use custom implementation of ProcessEventListener for that too. The difference here is that you need to keep track of both process instance id and node.
HTH
-
2. Re: Checking for Infinite looping for each node in a process diagram
josdel Sep 30, 2013 2:06 AM (in response to swiderski.maciej)Thanks for the help Maciej.
Would you please give one example for any of the above scenarios.
-
3. Re: Checking for Infinite looping for each node in a process diagram
josdel Sep 30, 2013 9:00 AM (in response to josdel)on Entry Actions of Script Task is not working, but for Human Task its working.
-
4. Re: Checking for Infinite looping for each node in a process diagram
swiderski.maciej Oct 1, 2013 1:30 AM (in response to josdel)1 of 1 people found this helpfuldon't have the complete example but I would first try with implementing custom process event listener where:
- at the process started event it would create structure for given process instance
- on node triggered it would record number of instances created for given node instance
- in case the defined threshold is exceeded would throw exception
- on process completed event remove the structure for the process instance
that with simplest impl would not be persistent so in case of restart you would loose that info so making it as part of the process (using process variables) could be easier.
HTH
-
5. Re: Checking for Infinite looping for each node in a process diagram
josdel Oct 1, 2013 1:50 AM (in response to swiderski.maciej)Thanks for the help. Also I was trying with on Entry Actions of Script Task, unfortunately it's not working, but for Human Task on Entry Actions is working. Is there any other configuration with Script Task node??