"cdart_rrr" wrote:
looks to be a bug in org.jbpm.jpdl.xml.JpdlXmlReader in resolveTransitionDestination() (l 805 of my version of 3.2beta2). It tries to get the expression from the text of <condition> element - if null it then goes to try to get it from the expression attribute. Only trouble is the text is returned from getTextTrim() as "" rather than null so you never get to look at the attribute.
739 String condition = transitionElement.attributeValue("condition"); 740 if (condition==null) { 741 Element conditionElement = transitionElement.element("condition"); 742 if (conditionElement!=null) { 743 condition = conditionElement.getTextTrim(); 744 // for backwards compatibility 745 if (condition==null) { 746 condition = conditionElement.attributeValue("expression"); 747 } 748 } 749 }
"cdart_rrr" wrote:Right now, while writing this, I'm having no trouble connecting to :pserver:anonymous:@anoncvs.forge.jboss.com:/cvsroot/jbpm
Is cvs still there? (I noted your comment above about wrong cvs details).
The URL I posted is wrong; see JpdlXmlReader#resolveTransitionDestination at http://fisheye.jboss.com/browse/JBPM/jbpm.3/jpdl/jar/src/main/java/org/jbpm/jpdl/xml/JpdlXmlReader.java?r=1.7#l731
the desicion attribute on transitions is for 'guarding' them. Depending on e.g. role, values of variables, etc... the transitions are valid or not and can be shown or not in de ui....
Attribute 'expression' not taken from Condition element
http://jira.jboss.com/jira/browse/JBPM-853
Condition in transition not retrieved from database JBPM_TRANSITIONS#DECISION_
http://jira.jboss.org/jira/browse/JBPM-854