[jboss-jira] [JBoss JIRA] Commented: (JBPM-810) Actions that validate transitions
Tom Baeyens (JIRA)
jira-events at jboss.com
Fri Dec 22 09:56:40 EST 2006
[ http://jira.jboss.com/jira/browse/JBPM-810?page=comments#action_12349303 ]
Tom Baeyens commented on JBPM-810:
----------------------------------
isn't this a very clumsy way of starting to build a scripting language in jbpm ?
maybe we should revert to a real scripting language then ?
> 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