05-28-2018 05:56 AM
Hello,
I am referring the link https://community.alfresco.com/community/bpm/blog/2017/05/01/form-stencil-examples-alfresco-process-... to display process data (Grid/Table example)
I have a case as follows :
I have created the two process namely "process 1" and "process 2". Process 1 contains two task and Process 2 contains three task.
In the process 2 -> task 2, i want to display the process 1 of both task data. The process 1 runs N times by the user and the process 2 should get updated each time. How can i achieve this?
Kindly anyone help me out in this.
Here I have attached my process.
Thanks
Amruta Wandakar
06-01-2018 05:38 AM
You can use a script task to retrieve variables from the subprocess and add them to the parent table variable. See Script task | Alfresco Documentation
06-01-2018 06:34 AM
06-01-2018 07:14 AM
Bassam Al-Sarori Thank you for your example. Do i need to configure anything because i'm getting the following error
'ReferenceError: "objectMapper" is not defined'
06-01-2018 07:25 AM
Make sure to set beans.whitelisting.enabled=false (you can also whitelist only specific beans see Spring Beans | Alfresco Documentation )
You may also need to whitelist javascript in activiti/whitelisted-scripts.conf to allow javascript execution.
06-01-2018 08:34 AM
After doing all configuration i was facing error. But i have modified your service task script means just added the following lines then it worked.
var ObjectMapper = com.fasterxml.jackson.databind.ObjectMapper;
var objectMapper = new ObjectMapper();
06-01-2018 08:34 AM
Thank you for the solution i will try with my scenario and let you know.
06-04-2018 01:56 AM
Bassam Al-Sarori Thank you the solution worked for me
Explore our Alfresco products with the links below. Use labels to filter content by product module.