2 Replies Latest reply on Jul 24, 2008 11:01 AM by Carlos Andia

    Cast problem

    Carlos Andia Newbie

      Hi.

      I have a strange problem. When iterating over the leaving transitions of a task a cast of the "to" property is done. Something like this:

      transitions=task.getTaskNode().getLeavingTransitions();
      if(transitions!=null)
       for(Transition transition:transitions){
       to=transition.getTo();
       log.info("to:'{0}'-'{1}'",to,to.getClass());
       }
      


      Which prints:

      'Decision(Evaluate)'-'class org.jbpm.graph.def.Node_$$_javassist_3726'
      


      And when I want to do

      (Decision)to
      


      I get a ClassCastException. Any ideas? Thanks in advance