As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hello,
I am referring the link https://community.alfresco.com/community/bpm/blog/2017/05/01/form-stencil-examples-alfresco-process-services-aps 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.
ThanksAmruta Wandakar
Whats the relation between Process 1 and Process 2?
Process 1 is sub process of process 2
If process 2 is a subprocess of process 1 then all process 1's variables/fields are available for process 2.
When you say
Amruta Wandakar wrote:The process 1 runs N times by the user and the process 2 should get updated each time. How can i achieve this?
Amruta Wandakar wrote:
The process 1 runs N times by the user and the process 2 should get updated each time. How can i achieve this?
I assume that for each process 1 there is an separate process 2 instance. Is that correct?
In "Process 2" i am calling the "Process 1" using call activity sub process.
Bassam Al-Sarori I have re -attached the process. Kindly help me out in this.
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
Here is a simple example that collects data and adds them to data table.
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'
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.
Bassam Al-Sarori Thank you the solution worked for me