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]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to