[jboss-user] [jBPM] - Re: Custom work handler not found in classpath

npoczynek do-not-reply at jboss.com
Wed Feb 20 09:23:05 EST 2013


npoczynek [https://community.jboss.org/people/npoczynek] created the discussion

"Re: Custom work handler not found in classpath"

To view the discussion, visit: https://community.jboss.org/message/798593#798593

--------------------------------------------------------------
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
[https://community.jboss.org/message/798593#798593]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130220/4b8613da/attachment.html 


More information about the jboss-user mailing list