This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
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...
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:
  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:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
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

This issue is already fixed in project - master branch, also the test case is provided:

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