• Share
  • ?
  • Profiles ▼
  • Communities ▼
  • Apps ▼

Blogs

  • My Blogs
  • Public Blogs
  • My Updates

WebSphere ILOG BRMS Blog

  • Log in to participate

About this blog

WebSphere BRMS Blog covering the IBM Operational Decision Manager product (formely ILOG JRules) and related industries.
  • Facebook
  • Twitter
  • Google
  • LinkedIn
  • RSS

Tags

Recent tweets

    >> Follow @BRMSUpdates on Twitter
    with Tags: business_rules_patterns Remove the tag from the selected filter tags - business_rules_patterns X
    All posts
    • Sort by:
    • Date
    • Title ▼
    • Likes
    • Comments
    • Views

    Iterating over Input Input Parameters - Ruleflow

    Daniel Selman 2700022VQ3 | | Comment (1) | Visits (15011)
    Back to part 1. I often see programmers implement iteration using a ruleflow and conditional guards. The ruleflow contains a condition node, a guard and a ruleflow task with an initial action. 2 variables are required per loop, one to store the current index in the loop, one to store the current value (AddressType in this case). The initial action for the ruleflow task uses the current index to set the current value. The final action...   [Continue Reading]


    Tags:  business_rules_patterns

    Iterating over Input Parameters

    Daniel Selman 2700022VQ3 | | Visits (17962)
    I spoke to two customers during IBM Impact, as well as helping an IBMer this week. They all had the same question: "How do I iterate over a collection accessible from an input parameter?" This question is fairly common for people with a procedural programming background as iteration is a mainstay of programming languages like Java/C etc. Business rules, BAL and rule engines in general strive to be more declarative hence it is not always...   [Continue Reading]


    Tags:  business_rules_patterns

    Iterating over Input Parameters - Pattern matching against working memory

    Daniel Selman 2700022VQ3 | | Comments (10) | Visits (15124)
    Back to part 1. One of the cons of the "Iterating over Input Parameters - Pattern matching using parameter navigation" approach is that the definitions blocks can become quite lengthy and repetitive if you have many related rules. To overcome this you can "shred" your data and insert it into working memory. You now no longer write your rules against parameters but instead pattern match against working memory. The rules look something like this: ...   [Continue Reading]


    Tags:  business_rules_patterns

    Iterating over Input Parameters - Pattern matching using parameter navigation

    Daniel Selman 2700022VQ3 | | Comments (4) | Visits (12152)
    Back to part 1. In this implementation we use BAL language constructs to directly pattern match against the collection that we can navigate to from the input parameter. The business rule looks something like this: While the generated IRL looks like: package test { rule parameterRule { property ilog.rules.business_name = "parameterRule"; property ilog.rules.package_name = "test"; when { ...   [Continue Reading]


    Tags:  business_rules_patterns
    • Show:
    • 10
    • 20
    • 30
    • Previous
    • Next
    1