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?
Thanks Damien. My reason for asking was that a colleague implied to me that called rules had to be below (i.e. same applies-to class or in a less specialised class) the calling rule in order for the called rule to be selected at runtime. You have confirmed what I thought, namely that is only the case for compilation of the calling rule but at runtime a calling rule in a less specialised applies-to class will run a called rule in a more specialised class.