[jboss-user] [jBPM] - WorkItemManager NullPointerException
Gary Struthers
do-not-reply at jboss.com
Wed Jul 20 19:41:18 EDT 2011
Gary Struthers [http://community.jboss.org/people/GaryS] created the discussion
"WorkItemManager NullPointerException"
To view the discussion, visit: http://community.jboss.org/message/616552#616552
--------------------------------------------------------------
I'm trying to JUnit test a User Task.
TestWorkItemHandler workItemHandler = new TestWorkItemHandler();
ksession.getWorkItemManager().registerWorkItemHandler("Human Task", workItemHandler);
Throws a NullPointerException and the session's workItemManager is null. I'm using a copy of TestWorkItemHandler from the examples BPMN2UnitTests. And I'm using JUnit4.
BPMN2UnitTests testUserTask() registers the workItemHandler the same way and the test passes. It uses JUnit3.
I don't see how the WorkItemManager is created and I don't see why there would be a difference between JUnit3 and JUnit4
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/616552#616552]
Start a new discussion in jBPM at Community
[http://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/20110720/87405067/attachment.html
More information about the jboss-user
mailing list