Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-4569

Not able to define AdHoc activation condition in Ad-Hoc subprocess

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 7.13.1.GA
    • jBPM Core, Kie-Server
    • None
    • False
    • None
    • False
    • Hide
      • Import attached project into business-central
      • Build and deploy the project on kie-server 
      • Try to execute 'TestCaseSubProcess' process.
         
         
      Show
      Import attached project into business-central Build and deploy the project on kie-server  Try to execute 'TestCaseSubProcess' process.    
    • ---
    • ---
    • 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
       
      ~~~~
       
       
       
       
       

       

              ftirados Francisco Javier Tirado Sarti
              rhn-support-abhumbe Abhijit Humbe
              Gonzalo Muñoz Fernández Gonzalo Muñoz Fernández
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: