How to use [From...] in Guided Decision Table to read a collection in fact object in Business Central

Solution Verified - Updated -

Issue

  • When creating a "Guided Decision Table", how can we define the column to iterate over a list (from in DRL) within a fact model ?
  • Following is an example rule that we have :
rule "example discount rule"
// There is Order, within Order there is a list of Item
// Iterate over the Item list within the Order, and apply 10% discount for those item's value greater than $100.0
when
    $order : Order()
    $item  :  Item( itemValue > 100 ) from $order.listItems
then
    # apply 10% discount to $item.itemValue
end
  • In Guided Decision Table how can I create a condition column which is equivalent to this line in DRL language:
$var1 : Type() from $var2.list 

// var2.list is a List / Collection variable containing multiple instances of `Type` 

Environment

  • Red Hat JBoss BPM Suite
    • 6.x
  • Red Hat JBoss BRMS
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content