[jboss-user] [JBoss jBPM] - Cast problem
jcarlos_andia
do-not-reply at jboss.com
Wed Jul 23 13:22:30 EDT 2008
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
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166223#4166223
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166223
More information about the jboss-user
mailing list