Question Thembelani Mlalazi · Jan 15, 2018

Routing rule condition based on a schema property

Is it possible to reference a property on a schema in the routing rule for instance Document.SomeSchema.Property

Comments

Robert Cemper · Jan 15, 2018

Could you pls. be a little bit more precise in what context you expect the reference?
A screenshot would be nice to explain your issue.

0
Thembelani Mlalazi  Jan 15, 2018 to Robert Cemper

On the condition I would like to do something like this but I do not get the opportunity to actual get to the schema that I would like to reference to get to that. Message will be the root of my xml document Header an element with attribute Action @Robert Cemper

0
Thembelani Mlalazi · Jan 15, 2018

I am supposed to use the EnsLib.MsgRouter.VDocRoutingEngine on the process and use the following syntax to get to the property level/

Document.{Property.Property} this works

0
Barry Veach · Jan 17, 2018

You can access an element or attribute without loading a schema by using the "path" to the element or attribute. 

For an element called "name":

Document.{/ClinicalDocument/recordTarget/patientRole/providerOrganization/name}

For an attribute  of "id" called  "extension":

Document.{/ClinicalDocument/recordTarget/patientRole/providerOrganization/id/@extension}

0