Skip to Content
0
Oct 10, 2019 at 05:58 PM

Finding the biggest number when passing multiple items as an input

66 Views Last edit Oct 10, 2019 at 09:18 PM 4 rev

Hi,


Is it possible to determine the biggest value on multiple items using BRMS decision table ?

Example:

I have 3 items (Vocabulary) describe bellow (alias, the input):

{ 
  "Item": { "id": 1, "value": 100 }, 
  "Item": { "id": 2, "value": 200 }, 
  "Item": { "id": 3, "value": 300 }
} 

I would like the output to be :

{
  "Item": { "id": 3, "value": 300 }
}

Because this one has the highest "value" (which is 300)

Thanks for your help,

Pierre