[jbpm-issues] [JBoss JIRA] Commented: (JBPM-1178) Script conditions in transitions are evaluated as expressions by the decision node
Tom Baeyens (JIRA)
jira-events at lists.jboss.org
Fri Aug 8 02:27:49 EDT 2008
[ https://jira.jboss.org/jira/browse/JBPM-1178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12424168#action_12424168 ]
Tom Baeyens commented on JBPM-1178:
-----------------------------------
by heart, i only know of one type of condition: the expression. am i missing something ? which other types of conditions do you see in a decision node ?
> 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