This is a add on to this ticket "https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-assets/clone-launch-approv...".
And to this ticket: "https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-assets/proccess-execution-...
We are able to successfully 'Create Review Task' with the 'Launch Review' Workflow and complete the process to see properties on asset updated
However when attempting to 'Launch Review' as a workflow on a folder or image, we receive a 'Process Resource is null' error.
The failure stack contains the error 'Caused by: java.lang.IllegalStateException: Workflow is already finished.'
What do we need to be able to 'Launch Review' as a workflow on an asset?
Here is what the workflow process looks like at the moment:
1. Create Workflow on folder or Asset
2. Select Launch Review for folder or asset from 'Create Workflow' drop down
3. Confirm
4. Can See launch review workflow in notifications
5. Complete work item and Approve Launch
6.Then we see this error, review status property on asset has not been updated
7. When we view workflow we see these errors
com.adobe.granite.workflow.WorkflowException: Process execution resulted in an error
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:204)
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:271)
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.IllegalStateException: Workflow is already finished.
at com.adobe.granite.workflow.core.WorkflowSessionImpl.terminateWorkflow(WorkflowSessionImpl.java:546)
at com.adobe.cq.wcm.launches.impl.workflow.LaunchContentReviewProcess.execute(LaunchContentReviewProcess.java:79)
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:198)
... 8 more
Debugging steps so far:
Add approvee and approver to workflow-administrators
Thank you!