Skip to end of metadata
Go to start of metadata

Problem

I use Append All function to join lists. All the lists being used are outputs (Enumeration type) from different decision tables. The error in simulation is:

In the decision Informational Message, the parameters of a function call do not have the same enumeration type.


There are four decision tables with collect(multiple) policy, therefore they throw out a list as output (If I am not wrong)

Now let’s assume them as number 1,2,3 and 4.

 

The logic is:

AppendAll(1+2) = a

AppendAll(3+4) = b

AppendAll(a+b). This is my final output from the expression in the decision box XYZ.

 

It doesn’t show any error in the decision box, but in simulation it displays the error:

In the decision XYZ, the parameters of a function call do not have the same enumeration type.

Solution

Following your logic, you have a

  • decision A which appends the lists two sub decisions (A1 and A2)- provide a list as output
  • decision B which appends the lists of two sub decisions (B1 and B2) - provide a list as output
  • A top level decision which summarizes (via appendAll function) the list of A and B. 

I've attached a working example as sgx file, which you can find here:

AppendAll.sgx