[jboss-user] [jBPM] - Re: Exception retrieving task

jnorris do-not-reply at jboss.com
Mon Jun 25 13:47:54 EDT 2012


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

"Re: Exception retrieving task"

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

--------------------------------------------------------------
Also here's the basic code used to start the process instance:

new JPAWorkingMemoryDbLogger( ksession );
KnowledgeRuntimeLoggerFactory.newConsoleLogger( ksession );
CommandBasedWSHumanTaskHandler wsHumanTaskHandler = new CommandBasedWSHumanTaskHandler( ksession );
String name = "ksclient-" + UUID.randomUUID();
TaskClient client = new TaskClient( new MinaTaskClientConnector( name, new MinaTaskClientHandler( SystemEventListenerFactory.getSystemEventListener())));
client.connect( "127.0.0.1", 9123 );
ksession.getWorkItemManager().registerWorkItemHandler( "Human Task", wsHumanTaskHandler ); 
Map<String, Object> valueMap = getArrayListMap( properties );          // local method to format the valueMap from an input parameter list.
ProcessInstance processInstance = ksession.startProcess( processDefinitionId, valueMap );

I don't see a way to include the user kicking off the process so maybe that's why the TASKINITIATOR_ID column is null.
Also, the CommandBasedWSHumanTaskHandler is deprecated.  Does anyone know what other class should be used?

Thanks,
Jim
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/744060#744060]

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/20120625/c50b767e/attachment.html 


More information about the jboss-user mailing list