Written by

Question William Liu · Feb 27, 2024

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

Comments

Luis Angel Pérez Ramos · Feb 28, 2024

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?

0
Enrico Parisi · Feb 28, 2024

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! 😊

0
William Liu  Feb 28, 2024 to Enrico Parisi

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. 

0
William Liu  Mar 6, 2024 to William Liu

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?

0