[jbpm-issues] [JBoss JIRA] Commented: (JBPM-1178) Script conditions in transitions are evaluated as expressions by the decision node

Jim Bethancourt (JIRA) jira-events at lists.jboss.org
Thu Aug 7 17:29:50 EDT 2008


    [ https://jira.jboss.org/jira/browse/JBPM-1178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12424147#action_12424147 ] 

Jim Bethancourt commented on JBPM-1178:
---------------------------------------

Similar issue seems to be occurring for decision nodes.

> Script conditions in transitions are evaluated as expressions by the decision node
> ----------------------------------------------------------------------------------
>
>                 Key: JBPM-1178
>                 URL: https://jira.jboss.org/jira/browse/JBPM-1178
>             Project: JBoss jBPM
>          Issue Type: Bug
>          Components: Core Engine
>    Affects Versions: jPDL 3.2.2
>         Environment: Windows XP, JBoss AS 4.2.2GA, MS SQL EXPRESS 2005, Jdk5
>            Reporter: Romain Lamarche
>
> The decision node does not evaluate scripts in conditional transitions.
> Indeed, the execute method of node type decision does not check what type of condition it is.
> Listing of the wrong code :
> (file Decision.java lines 120-135 in Jbpm Jpdl 3.2.2)
>       } else {
>         // new mode based on conditions in the transition itself 
>         Iterator iter = leavingTransitions.iterator();
>         while (iter.hasNext() && (transition==null)) {
>           Transition candidate = (Transition) iter.next();
>           
>           String conditionExpression = candidate.getCondition();
>           if (conditionExpression!=null) {
>             Object result = JbpmExpressionEvaluator.evaluate(conditionExpression, executionContext);
>             if (Boolean.TRUE.equals(result)) {
>               transition = candidate;
>             }
>           }
>         }
>       }
> The problem is the "JbpmExpressionEvaluator".

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbpm-issues mailing list