I am getting an error when trying to run the attached app (complaintV2). The app uses a data model for a folder.
It uses this data model to create a folder using Store Entity task in ACS. Once the folder is created, a user task is executed to update the values of the folder entity created in the process. Another Store Entity task is called to update the values of the data model.
However, the update of the data model is throwing the below error:
Steps to reproduce the issue:
- Import the attached app (complaintV2)
- Adjust the contained Alfresco data model to use an ACS repository configured in your environment.
- Publish the app
- Start the process and fill in the mandatory fields (Policy Number field will be the name for the new folder)
- Select a location where the new folder is created (make sure that the type for the folder you select as destination is cf:folder - I attached the Custom Model I used)
- Go to the next step by clicking on Submit
- Verify that the new folder was created in ACS
- Clicking next on Review by User1, the user task is executed to update the values of the folder entity created in the process
- Selecting Review or Reject is leading to the error mentioned in the subject and the folder metadata is not updated (if any field was modified at step 8)
When executing the second Store Entity (the one that modifies the folder created during the process), the updates are not applied and the error is thrown:
Running the attached app, ComplaintFolder (which is almost identical) with the faulty one, the issue is not reproduced.
After completing the process, the values defined when the folder metadata was updated are applied
The same result is expected from ComplaintV2 app as well.
The issue was reproduced with APS release 22.214.171.124.
There is another Jira raised for a similar behaviour: https://issues.alfresco.com/jira/browse/ACTIVITI-1148