JBoss Community

Re: Custom work handler not found in classpath

created by npoczynek in jBPM - View the full discussion

Sure, here's the content of CustomWorkHandlers.conf:

 

[

  "Log": new org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(),

  "Email" : new com.sample.NewEmailHandler(),

]

 

Also in drools.session.conf:

 

drools.workItemHandlers = CustomWorkItemHandlers.conf

 

I'm currently using the default constructor - I hard-coded user information temporarily to make sure there are no errors in passing arguments.

I made a project yesterday using the eclipse editor where I was able to use this handler successfully after a call to ksession.getWorkItemManager().registerWorkItemHandler("Email", NewEmailHandler);


Reply to this message by going to Community

Start a new discussion in jBPM at Community