关于业务规则引擎的问题 [英] question on Business Rules Engine
问题描述
大家好,
这是我的情况:
- 我有一个XML文件输入
- 我正在使用Transform形式将此XML转换为另一种XML格式
- 输入XML需要包含一些长值和值。
这里的问题是我可以在这种情况下使用业务规则引擎吗?
我创建了一个策略检查其中一个字段(发送消息xml中的"State")是否包含空值。
我的情况是,如果这包含空值,那么我想停止进一步处理这个消息,我需要将此消息发送到另一个发送端口。我怎么能用BRE做到这一点?
BRE方法也是正确的吗?我有很多像这样的领域,我需要这些领域。检查
我正在使用呼叫规则来执行此规则。目前我没有任何动作THEN子句。因此,如果此规则通过/失败,我想在我的业务流程中决定将此消息发送到何处
最好的问候,
Karthik
干杯,
Karthik
嗨Karthik,
您可以使用xpath实现此目的,或者使该字段区分,然后根据该值的结果检查值并停止/继续处理。但你可以
也使用BRE来验证你的xml和
this 链接可以帮助您如何做到这一点。可能你并不需要所有这些,只是为了从那篇文章中得到想法。
问候,
hello all,
Here is my situation:
- I have an XML file coming as input
- I am converting this XML to another XML format using the Transform shape
- There are some mandatory fields that the input XML needs to contain long with the values.
Question here is can i Use Business Rules Engine for this kind of scenarios?
I have created a policy to check if one of the field ("State" from Send Message xml) contains empty value.
My situation is is If this contains Empty value then i want to stop further processing of this message and i need to send this message to another send port. How can i do this using BRE's?
Also is BRE approach is the correct? I have many fields like this for which i need to check
I am using call Rules to execute this rule. Currently i don't have any action THEN clause. So if this rule is passed / failed i want to decide in my orchestration where to send this message
Best Regards,
Karthik
Cheers,
Karthik
Hi Karthik,
You can achieve this using the xpath or making that field distinguished and later checking the value and stop/continue processing based on the outcome of that value. But you can also use the BRE to validate your xml and this link would help you how to do that. Probably you don’t need all of that but just to get the idea from that post.
Regards,
这篇关于关于业务规则引擎的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!