I'm reading the URL for Rest Service Tasks from custom WorkItem in JBPM - Business Central and in one case I have HumanTask before the reader, the WorkItem task, so it throws the exception bellow and i'm stuck. How can i fix this?
Unexpected error during processing org.jbpm.workflow.core.node.WorkItemNode cannot be cast to org.jbpm.workflow.core.node.HumanTaskNode: java.lang.ClassCastException: org.jbpm.workflow.core.node.WorkItemNode cannot be cast to org.jbpm.workflow.core.node.HumanTaskNode
Is it having work item after a human task right move? If not how can I take the URL I'm getting in work item? How can I fix this? Should I change the flow in order to fix it?