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.
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).
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.
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)?
pzLoadCaseHierarchyWrapper activity loads pyTopCaseMap page which has all the work objects that are under your Top case work object. So your current work object(the case containing wait shape) should be listed under pyTopCaseMap. 4th step of pzProcessIndividualDepAssignment activity is checking for that.
How are you creating the case. Is the current case created as child(grand child) to top case?
Posted: 8 years ago
Posted: 14 Jul 2015 8:00 EDT
Ivan Anikanov (aniki)
Principal System Architect
The question is solved: When the scope is set to top case, the case map will be created for Top case and all its descendants. We can't create dependency for independent top cases using wait shape.
Another possible solution is using custom subflow that does perform a lookup to a dependency table.