[jboss-user] [jBPM] - Re: the problem caused by the reassignment and notifications under the usertask node in JBPM5
sandy yang
do-not-reply at jboss.com
Wed Aug 22 03:11:17 EDT 2012
sandy yang [https://community.jboss.org/people/forrest43] created the discussion
"Re: the problem caused by the reassignment and notifications under the usertask node in JBPM5"
To view the discussion, visit: https://community.jboss.org/message/755015#755015
--------------------------------------------------------------
There are two parameters in GenericHTWorkItemHandler:
Here is my code for create task service
TaskService taskService = new TaskService(taskEmf, SystemEventListenerFactory.getSystemEventListener(), handler);
LocalTaskService localTaskService = new LocalTaskService(taskService);
Here is my code for create StatefulKnowledgeSession
Environment env = KnowledgeBaseFactory.newEnvironment();
env.set( EnvironmentName.ENTITY_MANAGER_FACTORY, emf );
env.set(EnvironmentName.TRANSACTION_MANAGER,jtaTransactionManager);
StatefulKnowledgeSession ksession = JPAKnowledgeService.newStatefulKnowledgeSession( kbase, null, env );
GenericHTWorkItemHandler ghtItemHandler = new GenericHTWorkItemHandler(ksession);
ghtItemHandler.setLocal(true);
ghtItemHandler.setClient(localTaskService);
ghtItemHandler.setIpAddress("127.0.0.1");
ghtItemHandler.setPort(9123);
ksession.getWorkItemManager().registerWorkItemHandler("Human Task", ghtItemHandler);
JPAWorkingMemoryDbLogger logger = new JPAWorkingMemoryDbLogger(ksession);
I can't understand why set client and port cause my taskService is local, is it two transaction if taskservice access via network?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/755015#755015]
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/20120822/8d3e5451/attachment.html
More information about the jboss-user
mailing list