Bug 826522 - Dynamically adding nodes to adhoc subprocess through DynamicUtils does not work for the CommandBasedStatefulKnowledgeSession
Dynamically adding nodes to adhoc subprocess through DynamicUtils does not wo...
Status: MODIFIED
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: jBPM 5 (Show other bugs)
BRMS 5.3.0.GA
Unspecified Unspecified
unspecified Severity medium
: ---
: future
Assigned To: Kris Verlaenen
Radovan Synek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-30 08:10 EDT by Radovan Synek
Modified: 2012-05-30 08:23 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Radovan Synek 2012-05-30 08:10:25 EDT
Description of problem:
DynamicUtils needs access to InternalKnowledgeRuntime (from provided session). This works fine with common StatefulKnowledgeSession, but if persistence is configured, the provided session is instance of CommandBasedStatefulKnowledgeSession and following exception occurs:
org.drools.command.impl.CommandBasedStatefulKnowledgeSession cannot be cast to org.drools.common.InternalKnowledgeRuntime
org.jbpm.workflow.instance.node.DynamicUtils.addDynamicWorkItem(DynamicUtils.java:48) 

This issue is already fixed in project - master branch, also the test case is provided:
https://github.com/droolsjbpm/jbpm/commit/5897d9f79cb40654e85543fc9b55f7f0572ea520

Note You need to log in before you can comment on or make changes to this bug.