Call BRE policy by following two way in orchestration:
1. Call Rules shape
2. Expression shape
Note:
- The configuration for the Call Rules shape looks at the latest saved version when determining the types used. At run time, the latest deployed version will be used.
- To call an older (specific) version from within an orchestration, the Business Rules Framework APIs is used, which can be called from within an expression.
- The client applications can access only the deployed policies. If a client application invokes a policy that is not deployed, the rule engine generates a RuleEngineDeploymentNotDeployedException exception
xmlDocument = IncomingXMLMessage.XMLCase;
typedXmlDocument = new Microsoft.RuleEngine.TypedXmlDocument("LoanApp",xmlDocument);
policy = new Microsoft.RuleEngine.Policy("LoanProcessing");
policy.Execute(typedXmlDocument);
OutgoingXMLMessage.XMLCase = xmlDocument;
policy.Dispose();
!! Keep visiting BizTalkLive !!
Comments
Post a Comment
Please write comment only that belongs to this blog