cancel
Showing results for 
Search instead for 
Did you mean: 

How to display task data in the table format?

amruta_w
Star Collaborator
Star Collaborator

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

16 REPLIES 16

bassam_al-saror
Star Collaborator
Star Collaborator

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.

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();

Thank you for the solution i will try with my scenario and let you know.

Bassam Al-Sarori Thank you the solution worked for meSmiley Happy