How to use Object Scripts within Ensemble Rule class Ens.Rule.Definition
Hello,
I have a Rule Class which receives the HL7 message and sends it to the concerned target based on the condition.
Class XYZ Extends Ens.Rule.Definition [ CompileAfter = CUSTOM.Util.Rules.FunctionSet ]
{
Parameter RuleAssistClass = "EnsLib.HL7.MsgRouter.RuleAssist";
XData RuleDefinition [ XMLNamespace = "http://www.intersystems.com/rule" ]
{
<ruleDefinition alias="" context="EnsLib.HL7.MsgRouter.RoutingEngine" production="ABCProduction">
<ruleSet name="" effectiveBegin="" effectiveEnd="">
<rule name="">
<when condition="
<send transform="DTL.dtl" target="ToOperation"></send>
<return></return>
</when>
.......
.
.
.
Condition uses return status of a function SearchOBXFlag from another class.
How do i create a rule class to have an embedded function which loops through an HL7 message and returns a value upon which i can route my message?
I dont want the SearchOBXFlag to exist in another ruleset class. Is there a option?
Thanks,
Jimmy Christian