Wait-Dependency to top-level dinamic case
Hi there!
Aim and problem
I am trying to use Wait shape with Dependency mode to wait when specific top-level case reaches status Resolved-Completed. The exact case is not known in design-time, it should be selected in run-time. Currently the default activity is called but exits its execution, because dependent is not in the case map.
Current configuration
I've configured Wait Shape as defined on screenshot below. In each case class, that I may need to wait there is Declare Trigger rule, configured, as shown on second screenshot (the copy of default DEclare Trigger, created automatically by Wait shape).
Run-time behaviour
On run-time, when case reached status Resolved-Completed:
- The trigger is called;
- The activity pxCheckFlowDependencies is called, found the dependecy, check that it is in current AG and call pzProcessIndividualDepAssignment for it.
- The activity pzProcessIndividualDepAssignment is called but exits on the 4th step because has not complete the condition:
- The wait dependency is not closed.
Questions
- Why does it check case map even if I use top-level case dependency?
- How should I configure Wait shape to achieve my aim?
- May the problem be in the pzProcessIndividualDepAssignment activity on step 2 (there is condition that looks like using "Skip whens" instead of "Skip step", but it is internal activity and marked as Final)?