I am currently trying to add a condition to a routing rule that uses the %Source property of a routing rule. Unfortunately I am getting compile errors when I use the "%", and if I get PROPERTY DOES NOT EXIST if I try and use any of field. I have tried referencing the messages as "Message." , "Record.", "FullRecordMapClassName." , "Document." . Does anyone know how to reference the properties of a record map in a routing rule, or if it is even possible? Thanks!
Here's a potential solution. It's a method that will extract the %Source value from the message, and it should work for any Ensemble message type:
Class User.Util.MsgBody Extends Ens.Rule.FunctionSet
ClassMethod GetMsgSource(pMsg As Ens.Request) As %String
Since it extends Ens.Rule.FunctionSet, it's available as a function in the rule editor: