How to display task data in the table format?

cancel
Showing results for 
Search instead for 
Did you mean: 
bassam_al-saror
Alfresco Employee

Re: How to display task data in the table format?

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 

bassam_al-saror
Alfresco Employee

Re: How to display task data in the table format?

Here is a simple example that collects data and adds them to data table.

amruta_w
Senior Member

Re: How to display task data in the table format?

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'

bassam_al-saror
Alfresco Employee

Re: How to display task data in the table format?

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.

amruta_w
Senior Member

Re: How to display task data in the table format?

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

amruta_w
Senior Member

Re: How to display task data in the table format?

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

amruta_w
Senior Member

Re: How to display task data in the table format?

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