Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Complete Workflow step through code - using WorkflowSession not working in AEM6.5

Avatar

Avatar
Validate 1
Level 1
deepalakshmip35
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
deepalakshmip35
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Affirm 1
View profile
deepalakshmip35
Level 1

17-02-2020

I am trying to complete a workflow step through code in same step workflow processor as below.
workflowSession.complete(workItem, workflowSession.getRoutes(workItem, false).get(0));

here, it throws the exception:
Caused by: com.adobe.granite.workflow.WorkflowException: Unable to retrieve workflow instance: "/var/workflow/instances/...."

AEM version : AEM6.5, this working in AEM6.2
Is there anything need to be configured to WorkflowException?

I tried with system user provided all privileges and added it as a workflow super user but same the issue occurs on completing the workItem.
Please share solution if anyone faced this issue, advance thanks.

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 1
deepalakshmip35
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
deepalakshmip35
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Affirm 1
View profile
deepalakshmip35
Level 1

24-02-2020

I found it..

We cannot take ownership on workflow instance of transient workflow. Because these are executed in memory. 

 

To have workItem workflow should write nodes under /var/workflow/instances/server0/

With a transient workflow it is executed in memory.

Answers (0)