-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
None
-
None
-
None
-
False
-
None
-
False
-
NEW
-
NEW
-
-
---
-
---
-
-
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
~~~~
- clones
-
RHPAM-4569 Not able to define AdHoc activation condition in Ad-Hoc subprocess
- Closed