Can you execute an IRIS business rule from ObjectScript?
A customer wants to create an IRIS for Health business rule via the graphical editor, and then to execute that rule in ObjectScript without the context of an interoperability production. Is this possible, and if so, how?
Comments
I don't think that is possible out of the context of a production, at the end the destination of the routed message is always a business component deployed in a production, the context info and the messages are linked to components of the productions too.
I think that is easier to learn objectscript than try to adapt the behavior of the business rules.
You can see in this post some allowed adaptations by code of the business rules, but always in the context of a production.
https://community.intersystems.com/post/how-edit-fields-intersystems-en…
try this
set objectContext = ##class(Some.Class).%OpenId(123)
write ##class(Ens.Rule.Definition).EvaluateRules("Rule.ClassName",,objectContext)