Working with complex lists and decision tables

15 views
Skip to first unread message

Nathan Motter

unread,
Jun 14, 2024, 3:28:21 PMJun 14
to Kogito development mailing list
I am new to DMN and trying to figure out how to process a complex list through a decision table.  Below is a simple example.  I have an array of sessions that I would like the decision table to produce a result for each session (list).  I have tried to wire up the input node to the decision node, but that only returns null.  The end result I am looking for is a list of results ["Overtime", "Regular Hours" ].  Thanks in advance for any direction you can provide.

Input:
{
  "Session": [
    {
      "Start datetime": "2024-06-14T08:30:28.638Z",
      "End datetime": "2024-06-14T18:30:28.638Z"
    }
  ]
}

Decision Table:
(End datetime - Start datetime) > "PT8H" "Overtime"
(End datetime - Start datetime) < "PT8H" "Regular Hours"

Nathan Motter
Reply all
Reply to author
Forward
0 new messages