本文介绍了如何在BizTalk Busienss Rule Engine中检测空/ null?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一条消息,有一个名为prize的部分,它可能有0到n。


  < Prize>

    < PrizeCode> POINTS< / PrizeCode>

    < Description>停车场积分< / Description>

    < Group> Y< / Group>

    < IsHeld> true< / IsHeld>

  < / Prize>


  < Prize>

    < PrizeCode> Credit< / PrizeCode>

    < Description> Carpark Credit< / Description>

    < Group> Y< / Group>

    < IsHeld> false< / IsHeld>

  < / Prize>


如何在商业规则引擎中设置条件以检查是否有任何奖品IsHeld = true,可能没有奖品部分,或者有奖品但是没有奖品的IsHeld = true。


有点像XSLT中的计数。


我可以在业务规则引擎中执行此操作吗?


谢谢


解决方案

I have a message, there is a section called prize, it could have 0 to n.

  <Prize>
    <PrizeCode>POINTS</PrizeCode>
    <Description>Carpark Points</Description>
    <Group>Y</Group>
    <IsHeld>true</IsHeld>
  </Prize>

  <Prize>
    <PrizeCode>Credit</PrizeCode>
    <Description>Carpark Credit</Description>
    <Group>Y</Group>
    <IsHeld>false</IsHeld>
  </Prize>

How can I set up a condition in Business Rule Engine to check if there is any Prize has IsHeld=true, there could be no Prize section, or there are prize sections but none of the prize has IsHeld=true.

Kind of like a count in XSLT.

Can I do this in Business Rule Engine?

Thank you

解决方案


这篇关于如何在BizTalk Busienss Rule Engine中检测空/ null?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 23:25