WF Rules worth noting: Reference judgment and endless Loops

Source: Internet
Author: User
  • In the WF environment, it is easy to cause an endless loop, because according to the forward-channing reasoning principle, a rule can trigger itself, in which case it will cause an endless loop: IF this. disCount = 10 THEN this. disCount = 10 this statement can easily cause an endless loop. In addition, when there are two or more Rules, it is easy to cause an endless loop:
    R1: IF this. Name! = "Headchen" THEN this. disCount = 10
    R2: IF this. disCount = 10 THEN this. Name = "minnie"
  • WF's judgment on Object attribute reference is limited to the attribute itself. When a set attribute, such as an array or dictionary, changes will be deemed as a holistic change, triggering relevant rules, ignore other call parameters. For example, a property of the Dictionary type, regardless of whether an Action triggers any of the items, WF considers that the entire Dictionary property has been changed and does not identify which item, the same applies to arrays.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.