Question
Jens Cheung · Aug 12

Add Global to Business Rule cls (Process router)?

I'm defining a business rule to filter out a particular type of HL7 message property: 

</rule>

<rule name="" disabled="false">

<constraint name="docCategory" value="doc type"></constraint>

<constraint name="docName" value="message type"></constraint>

<when condition="(HL7.{message segment}="message property")">

<send transform="data transformation rules" target="target component"></send>

<return></return>

and would like to handle message property as a Global as it has different subtypes, something like:

</rule>

<rule name="" disabled="false">

<constraint name="docCategory" value="doc type"></constraint>

<constraint name="docName" value="message type"></constraint>

<when condition="(HL7.{message segment}="^globalOfMessageProperty("") or a class that define the global")">

<send transform="data transformation rules" target="target component"></send>

<return></return>

I'm almost sure it won't be that simple to insert a mere global in there but wonder if anyone knows using a class, like ##class (fileName).^globalNameOfMessageProperty("MessagePropertySubtype1")), and in somewhere:

Set ^globalNameOfMessageProperty("MessagePropertySubtype1") = "MessageProperty"
Set ^globalNameOfMessageProperty("MessagePropertySubtype2") = "MessageProperty"
Set ^globalNameOfMessageProperty("MessagePropertySubtype3") = "MessageProperty"

Or even editing the Ens.Rule.Definition. Above concept is probably not logical but would be great to know if setting a global in business rule is done before. Any feedback is appreciated! 

Product version: IRIS 2021.1
$ZV: Build 215
0
0 108
Discussion (1)1
Log in or sign up to continue