[jboss-user] [JBoss jBPM] - Extension point for Transactions

pirx do-not-reply at jboss.com
Tue Dec 5 10:49:18 EST 2006


jBpm provides fine extensions points for Nodes, Actions and the like
when defining the workflow with JDPL. Unfortunately, Transitions can't
be extended in a similar fashion and are always connected to the
default implementation provided by jBpm when using JDPL.

I now have a use case, where I want to add a type attribute to a
Transition needed by some node for a decision which leaving transition to take. Actually, I do this by keeping the transition-type
association in the surrounding node, but this is obviously redundant.

Example:


  |   <x-state>
  |     <transition name='to-s' to='s'/>
  |     <transition-types>
  |       <transition name='to-s' type="manual"/>
  |     </transition-types>
  |   </x-state>
  | 

With the possibility of an extension of this transition this could be
reduced to:


  |   <x-state>
  |     <x-transition type='manual' to='s'/>
  |   </x-state>
  | 

Introducing this into JpdlXmlReader.resolveTransitionDestination()
shouldn't be difficult and is perfectly backwards compatible. If you
like, I could do it and provide a patch.

Is there any chance to get an extension mechanism for transistions 
into jBpm ?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991344#3991344

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991344



More information about the jboss-user mailing list