Bug 796654
Summary: | No way to set a WorkItemHandler to StatelessKnowledgeSession | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise BRMS Platform 5 | Reporter: | Tomas Schlosser <tschloss> |
Component: | jBPM 5 | Assignee: | Mark Proctor <mproctor> |
Status: | CLOSED UPSTREAM | QA Contact: | |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | BRMS 5.3.0.GA | CC: | mproctor |
Target Milestone: | ER7 | Keywords: | TestBlocker |
Target Release: | BRMS 5.3.0.GA | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2025-02-10 03:19:07 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Tomas Schlosser
2012-02-23 11:58:39 UTC
When using a stateless session, the session is always created upon request and disposed at the end of the invocation. There are however two ways to set a handler: - using a configuration file in the classpath that defines handlers - by adding a RegisterWorkItemHandlerCommand as part of the commands you are sending to the stateless service to first register the handler and then execute the rest of the commands Would this be sufficient? Kris That should dod the trick. Thank you Kris. However I have one more request: could it be added to CommandFactory? I use it (since it is the official API) and don't search for Command implementations anywhere else. If it would not be possible, please add it to documentation. Thank you. I'll take this one. fixed with unit test. applied to master, 5.4.x and 5.3.x 5.3.x commit below: https://github.com/droolsjbpm/drools/commit/fd655f726d491fd18ab42dc2aa5eb80e5da2d198 and https://github.com/droolsjbpm/droolsjbpm-knowledge/commit/31c583279a54027ba15c4206a860cfd67e14f7ba Mark Proctor <mproctor> updated the status of jira JBRULES-3476 to Resolved Mark Proctor <mproctor> updated the status of jira JBRULES-3476 to Closed Update status to ON_QA. Please verify them against ER6. The method newRegisterWorkItemHandler() is still unavailable in ER6. Ryan, did this code make it into ER6? The fixed for this issue should be included in ER7. Please do verification on it. This feature is included in ER7 build. Thank you This product has been discontinued or is no longer tracked in Red Hat Bugzilla. |