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 me
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.