1
votes

I created a custom workitem similar to the one here and it works fine with eclipse when i run it. I deployed it and it deployed successfully, however when i try to start the process, I get this error

Could not find work item handler for HelloProcessExtension

HelloProcessExtension is the name of my custom workitem

2

2 Answers

1
votes

You need to register your work item handler. If you use jBPM engine embedded in your application, you can do that by calling registerWorkItemHandler(...) method of WorkItemManager (which can be retrieved from ProcessRuntime). Otherwise, if you use KIE Workbench or KIE Server, you can register it by adding it to kie-deployment-descriptor.xml in META-INF directory of your KJAR.

1
votes

Important note on this is that if you make the deployment with Workbench, you have to create the default Knowledge base, Knowledge session and add you Work Item Handler to it. This is the space where it execute. Probably in your case you do not have it and it can not find it.

In workbench Knowledge Base Settings are under Project Settings, in Knowledge bases and sessions.