6 Replies Latest reply on Sep 5, 2014 6:36 AM by Kris Verlaenen

    Problem with RuleFlowNodeContainerFactory.splitNode(...) method

    Santhosh Bhat Newbie

      Within the source of class org.jbpm.ruleflow.core.factory.SplitFactory, inside the method


      constraint(long toNodeId, String name, String type, String dialect,

      String constraint, int priority)

      the author is creating an instance of class

      org.jbpm.workflow.core.impl.ConstraintImpl. But inside the


      method, another author us casting

      ConstraintEvaluator constraint = (ConstraintEvaluator)

      split.getConstraint( connection );

      This is resulting in a ClassCastException, here's the stack trace.


      Caused by: java.lang.ClassCastException:

      org.jbpm.workflow.core.impl.ConstraintImpl cannot be cast to


      at org.jbpm.workflow.instance.node.SplitInstance.executeStrategy(SplitInstance.java:83)

      at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:63)

      ... 50 more


      you might think Why I am using SplitFactory?

      I am writing a code which will dynamically generate the workflow

      process using the worflow process API (RuleFlowNodeContainerFactory)


      Can anyone please tell me how I can resolve this error? This error seems

      to be internal to JBPM..