Bug 958402

Summary: WorkItemHandler gets null from StatefulKnowledgeSessionUtil.getStatefulKnowledgeSession() in its constructor
Product: [Retired] JBoss BPMS Platform 6 Reporter: Toshiya Kobayashi <tkobayas>
Component: Business CentralAssignee: Kris Verlaenen <kverlaen>
Status: CLOSED CURRENTRELEASE QA Contact: Ivo Bek <ibek>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.x.xCC: alazarot, kverlaen, mbaluch, rzhang
Target Milestone: DR5   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 858607 Environment:
Last Closed: 2014-08-06 20:06:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Toshiya Kobayashi 2013-05-01 10:35:31 UTC
+++ This bug was initially created as a clone of Bug #858607 +++

Description of problem:

Platform BZ for https://issues.jboss.org/browse/JBPM-3792

Steps to Reproduce:
See details in JBPM-3792
  
Actual results:

WorkItemHandler gets null from StatefulKnowledgeSessionUtil.getStatefulKnowledgeSession()

Expected results:

WorkItemHandler gets ksession from StatefulKnowledgeSessionUtil.getStatefulKnowledgeSession()

Comment 1 Kris Verlaenen 2013-05-31 22:04:24 UTC
This issue has been resolved in the current version of jBPM6 by allowing users to inject the ksession as a constructor argument in the work item handler configuration file.

Comment 2 Ivo Bek 2013-10-31 13:14:47 UTC
Verified in BPMS 6.0.0.ER4 ... Business central use WebServiceWorkItem: "WebService": new org.jbpm.process.workitem.webservice.WebServiceWorkItemHandler(ksession)  so I verified that the ksession is not null there

Comment 3 Lukáš Petrovický 2014-02-07 16:14:51 UTC
This BZ has been part of the 6.0.0 stream.