Filip,
Maybe I'm misunderstanding, but I thought you were looking for a way, from inside the rules object, to access the related business object?
If so, HostObject stores a reference to the object that instantiated the mmBusinessRule object (look at mmBusinessRule's constructor). This object implements the ImmBusinessRuleHost interface, and is of either mmBusinessObject or mmBusinessEvent type.
In your case, when your business object instantiates its rules object, it can then access the HostObject field to get a reference to the business object:
YourBizObj YBO = this.HostObject;
YBO.YourCustomMethod();
Hope that clears the issue up a little,
---J
>Hello J,
>
>Could you please elaborate on what to do with the mmBusinessRules' HostObject?
>The GetBusinessRuleObject method returns a reference to the _BusinessRuleObject_ not the BusinessRules' related BusinessObject, as the return type of GetBusinessRuleObject method is mmBusinessRule or have I understood this all wrong?
>
>Regards
>
>-Filip