Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 826522

Summary: Dynamically adding nodes to adhoc subprocess through DynamicUtils does not work for the CommandBasedStatefulKnowledgeSession
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Radovan Synek <rsynek>
Component: jBPM 5Assignee: Kris Verlaenen <kverlaen>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.0.GA   
Target Milestone: ---   
Target Release: future   
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:20:00 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 Radovan Synek 2012-05-30 12:10:25 UTC
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

Comment 2 Red Hat Bugzilla 2025-02-10 03:20:00 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.