Hi,
within a process I already have the Order data as a JSON-Object. See attached reduced example.
Now the requirement is to set a process variable with a value depending on the postiitons of the order.
If in one of the lines an item with an id starting with ‘EP’ is used, set variable x to value 1.
Else if there is any position with isMakeToOrder == true, then set variable x to value 2.
Else set variable x to value 3.
Based on the attached eaxmple in this case the result should be variable x = 2.
This is probably something for a script task, something I did not use so far.
Any hints or example references welcome.
Regards, Frank
Auftrag_mit_Details_reduziert.json (899 Bytes)