-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
7.13.1.GA
-
None
-
False
-
None
-
False
-
-
-
-
-
-
---
-
---
-
-
-
2022 Week 44-46 (from Oct 31), 2022 Week 47-49 (from Nov 21), 2022 Week 50-02 (from Dec 12), 2023 Week 03-05 (from Jan 16), 2023 Week 06-08 (from Feb 6)
While trying to define AdHoc activation condition in Ad-Hoc subprocess which is inside another Ad-Hoc subprocess its failing. In Adhoc subprocess I have defined activation condition like as:
~~~
com.OrderDetails(status == "review")
~~~
To make the fact available in memory I am inserting OrderDetails fact into session through scriptTask prior to ad-Hoc subprocess, like as:
~~~~
com.OrderDetails orderDetails = new com.OrderDetails();
orderDetails.setStatus((java.lang.String)"review");
kcontext.getKieRuntime().insert(orderDetails);
~~~~
But process execution is failing during execution of insert method:
~~~~
09:27:33,902 ERROR [org.kie.server.remote.rest.jbpm.ProcessResource] (default task-27) Unexpected error during processing [TestCaseProject.TestCaseSubProcess:11 - Task:2] – org.jbpm.workflow.core.node.DynamicNode cannot be cast to org.jbpm.workflow.core.WorkflowProcess: org.jbpm.workflow.instance.WorkflowRuntimeException: [TestCaseProject.TestCaseSubProcess:11 - Task:2] – org.jbpm.workflow.core.node.DynamicNode cannot be cast to org.jbpm.workflow.core.WorkflowProcess
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.executeAction(NodeInstanceImpl.java:240)
at org.jbpm.workflow.instance.node.ActionNodeInstance.executedAction(ActionNodeInstance.java:61)
.. . .
Caused by: java.lang.ClassCastException: org.jbpm.workflow.core.node.DynamicNode cannot be cast to org.jbpm.workflow.core.WorkflowProcess
~~~~
- is cloned by
-
JBPM-10132 Not able to define AdHoc activation condition in Ad-Hoc subprocess
- Resolved