How to run business rules on a single cloned-object(EnsLib.HL7.Message), and send it in Rule Editor?
How can we have the multiple business rules run on a single cloned-object(EnsLib.HL7.Message), and send the cloned-object in Rule Editor?
Any sample code? The purpose is to edit the HL7 ORU R01 message
Thx!
Product version: IRIS 2023.3
What do you mean with multiple Business Rules? you want to send your object throught more than one business rule? And send it where? To another business component?
A list of business rules (defined in a process) to run before sending to target(an operation)
The following case does not work due to mensagem immutable (As EnsLib.HL7.Message):
https://community.intersystems.com/post/how-assign-value-variable-business-rules-using-function
"The purpose is to edit the HL7 ORU R01 message"
I'm not sure I understand your question, probably not.
If you need to transform a message and then apply/evaluate rules, then create two HL7 Routing Business Processes, each with a Routing Rule associated.
The first BP and associated rule transform the message and send it to the second BP where you can apply rules to the transformed message.
But....probably I did not understand the question! 😊
I see the following, run it and get "Error: mensagem immutable"
How to use the cloned-object(from EnsLib.HL7.Message), have multiple rules (in the same RuleSet) share it one after another, and finally send it instead of original EnsLib.HL7.Message.
If the cloned-object(from EnsLib.HL7.Message) instead of original is used in the ClassMethod that Christina defined above the "assign" action would work. But the question is how to make the "send" action to send the cloned-object?