Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/jbpm/workflow/delegation/DecisionHandler.java


1   package org.jbpm.workflow.delegation;
2   
3   /**
4    * if more then one {@link org.jbpm.workflow.definition.Transition} leaves an 
5    * {@link org.jbpm.workflow.definition.Activity}, a Decision chooses the 
6    * {@link org.jbpm.workflow.definition.Transition} 
7    * that has to be activated when the {@link org.jbpm.workflow.definition.Activity}
8    * is performed.
9    * See also <a href="http://jbpm.org/concepts.html#delegationprinciple">The delegation principle</a>.
10   */
11  public interface DecisionHandler {
12  
13    /**
14     * decides which of the {@link org.jbpm.workflow.definition.Transition}'s, after 
15     * performing an {@link org.jbpm.workflow.definition.Activity}, has to be activated. 
16     * @param decisionContext is the object that allows the Decision-implementator to communicate with the jBpm process engine.
17     * @return the name of the choosen {@link org.jbpm.workflow.definition.Transition}.
18     */
19    public String decide( DecisionContext decisionContext );
20  }