[jboss-jira] [JBoss JIRA] Created: (JBPM-810) Actions that validate transitions

Gavin King (JIRA) jira-events at jboss.com
Mon Dec 18 14:50:38 EST 2006


Actions that validate transitions
---------------------------------

                 Key: JBPM-810
                 URL: http://jira.jboss.com/jira/browse/JBPM-810
             Project: JBoss jBPM
          Issue Type: Feature Request
          Components: Core Engine
            Reporter: Gavin King
         Assigned To: Tom Baeyens


It is useful to be able to have an action in the stack of actions for a transition "cancel" the transition:

<transition name="delete">
    <action expression="#{user.checkDeletePermission}"/>
    <action expression="#{document.delete}"/>
</transition>

The first action can cancel execution of the transition (and shortcircuit the rest of the action stack) by something like:

* returning false?
* throwing a predefined exception class CancelTransitionException?

Or perhaps we could have a specific concept of a Validator:

<transition name="delete">
    <validator expression="#{user.admin}"/>
    <action expression="#{document.delete}"/>
</transition>

jBPM could have a Validator interface, and the Seam integration would just let you use an EL, and check the boolean return value.



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

        



More information about the jboss-jira mailing list