I have a list of objects that I need to pass through several rules for grouping (joining into sublists).
These rules are, for example: grouping if their age is under 18 and they are in the same city, etc.
[{
data: 29-10-2023,
nome: people11,
idade: 16,
endereço: street 1
},
{
data: 28-10-2023,
nome: people1,
idade: 15,
endereço: street 1
},{
data: 27-10-2023,
nome: people11,
idade: 15,
endereço: street 1}]
Question:
- How do I get the DMN to go through this list? That is, do this loop?
- Is it possible to use the output of one list as input to the other?
- Is it possible for the output to be the list with the sublists already ready?
Obs.: I’m using: https://modeler.cloud.camunda.io/
Input:
[{
data: 29-10-2023,
nome: people11,
idade: 16,
endereço: street 1
},
{
data: 28-10-2023,
nome: people1,
idade: 15,
endereço: street 1
},{
data: 27-10-2023,
nome: people11,
idade: 15,
endereço: street 1}]
Output requerid:
[
1o group:
[{
data: 29-10-2023,
nome: people11,
idade: 16,
endereço: street 1
}]
2o group:
[{
data: 28-10-2023,
nome: people11,
idade: 15,
endereço: street 1
},{
data: 27-10-2023,
nome: people1,
idade: 15,
endereço: street 1}]
]