Monday, October 19, 2015

Workflow version error

Workflow version error




I faced an exception like this while I was working on workflows for the first time

com.adobe.granite.workflow.core.jcr.WorkItemAdapterFactory error adapting a class of type [{org.apache.jackrabbit.core.NodeImpl}] to type [{java.lang.Class}] com.adobe.granite.workflow.model.VersionException: Version 1.84 does not exist for /etc/workflow/models/XYZ/XYZ-components-workflow/jcr:content/model
at com.adobe.granite.workflow.core.jcr.WorkflowModelManager.getWorkflowModel(WorkflowModelManager.java:96)
at com.adobe.granite.workflow.core.WorkflowSessionImpl.getModel(WorkflowSessionImpl.java:279)
at com.adobe.granite.workflow.core.util.NodeReader.createWorkflow(NodeReader.java:211)

The reason behind this exception is the version difference of workflow instance which I bump into because I was copying workflow from different locations and somehow the sync between the current workflow version and instance workflow version were messed up. Different workflow instances (as per their modification dates) can be seen at following location.

/etc/workflow/instances

No comments:

Post a Comment

Some more AEM 6 Interview Questions for Architects

 Some more AEM 6 Interview Questions for Architects 1. Consider you have a workflow with two steps. One step is to transfer the asset from s...