Question
How does rule resolution know which class to start searching from?
How does rule resolution know where to start from when searching for the right rule to execute at run time - is it the applies-to class of the calling rule, or is it the pxObjClass of the work item being processed?
For example, suppose I have a work item with pxObjClass of ABC-MyApp-Work-Task and the process flow is in class ABC-MyApp-Work- and this calls an activity DoStuff which is in class ABC-MyApp-. So far so good, but what if DoStuff calls another activity DoMoreStuff and there are two versions of this, one in class ABC-MyApp-Work-Task and another in ABC-. Which version of DoMoreStuff would actually be called at run time?
Hi,
The activity that will be run is the one at the case type level.
When you execute a case then your current context is: ABC-MyApp-Work-Task
And the rule resolution process will always start from this context.
This allows you to "specialize" rules.
Let's say you have: ABC-MyFW-Work-Task where you have activity A calling activity B
you need A & B in this framework in order to save the rules
Now you can specialize A and/or B in any of your implementation
ABC-MyAppUK-Work-Task / ABC-MyAppFR-Work-Task (where both implementations are build on the MyFW framework)
Damien