Hello Everybody !
There is a User Task on which you can enter a comment and a list of Assignees for additional agree. If the list of users for additional agree is not empty, the task is assigned to each of them. Each of these new users can also enter their comment and (optionally) a list of users for additional agree.
The process ends after several iterations when all users have completed their tasks.
How can this process be better displayed and processed on a diagram?
My vision is shown in the following diagram:
Original prototype for Modeler 5.23.0 (Camunda 8.5) is here:
Recursion_Agreement_v03.bpmn (11.2 KB)
When I entered the list of users like: {"name":"user03"},{"name":"user04"} and {"name":"user07"},{"name":"user08"}
I received the result:
["{\"name\":\"user03\"},{\"name\":\"user04\"}","{\"name\":\"user07\"},{\"name\":\"user08\"}"]
How to transform it to the correct JSON Array like:
[{"name":"user03"},{"name":"user04"},{"name":"user07"},{"name":"user08"}]
I tried to use FEEL Expression like: replace(SourceString1, pattern1, replacement1) to replace “\"\{
” to “\{
”, but it works fine for string only, not for array.
I can convert array to string and make a replacement: replace(string(SourceString1), pattern1, replacement1), but I don’t know how to convert result string to array back.
Maybe somebody can give me advice ?
Or maybe my Task with Multi-Iteration agree can be done with another (better) diagram solution ?