Context Object visibility in Business Rule Custom Utility Function
Hi,
Business Rules can define a context object, whose properties are exposed and used in the expressions of the rules. For example, my context object is an object with 3 properties. PropA, PropB and PropC.
When constructing my rules, I can call a custom function, and I have one I built myself called 'myFunction' which takes arguments and I pass in properties of my context object. (I can pass in the value of the context object's PropA, B or C).
But lets assume my context object was big, with many properties, and serial objects and other references - And, my custom function has needs many of these in order to get to a result.. .
An expression within the rule editor, calling myFunction, and many arguments needed to execute the function, can be quiet cumbersome, so, I want a way to pass the entire context object into myFunction - or - for myFunction() to have access to the entire context object of the rule.
Is this possible ? Other than exposing the context object ID as its own property, and passing that yo my function, where it then re-opens the object - I couldn't think of any other approach.