Expand my Community achievements bar.

'Launch Review' as a workflow on an asset resulting in error 'Process Resource is null'

Avatar

Level 3

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

mbrennan_0-1689015176093.png

 

 

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.'

 

mbrennan_2-1689015223018.png

 

mbrennan_3-1689015350441.png

 

 

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

mbrennan_4-1689015429139.png

4. Can See launch review workflow in notifications

mbrennan_5-1689015489529.png

5. Complete work item and Approve Launch

mbrennan_6-1689015516246.png

 

6.Then we see this error, review status property on asset has not been updated

mbrennan_7-1689015581363.png

mbrennan_9-1689015728855.png

 

 

7. When we view workflow we see these errors

mbrennan_8-1689015679510.png

 

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!

0 Replies