Friday, May 17, 2013

BRMS 5.3.1 Exception "Could not find work item handler for"

At the veri beginning of my trying BRMS I met following exception:
org.drools.WorkItemHandlerNotFoundException: Could not find work item handler for 
 at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.throwWorkItemNotFoundException(JPAWorkItemManager.java:62)
 at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalExecuteWorkItem(JPAWorkItemManager.java:57)
 at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:107)

This exception is raised when you created Task but you didn't define TaskType. In another words there is created task but is not specified what should be done.

Following image shows JBoss BRMS Process Designer where was process created.

On next image is Task property that have to be set to "Script" value. You can also fill property "Script" in section "Extra" with value "System.out.println("\nHello World!\n");" than Task will write message to JBoss console.

No comments:

Post a Comment