All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ee.telekom.workflow.api.DslBranchBlock Maven / Gradle / Ivy

Go to download

Telekom-workflow-engine API interface (DSL) for writing your workflow definitions and plugins.

There is a newer version: 1.6.3
Show newest version
package ee.telekom.workflow.api;

/**
 * DSL for workflow definitions.
 *
 * @author Erko Hansar
 * @author Christian Klock
 *
 * @see WorkflowDefinition
 */
public interface DslBranchBlock extends DslBlock>{

    /**
     * Used inside split branches to cancel all other ongoing branches in this block, but the calling branch continues with it's normal operations.
     * 
     * @param id node id
     */
    DslBranchBlock escalate( int id );

    /**
     * Add a branch (parallel execution flow) into the active split.
     */
    DslBranchBlock branch();

    /**
     * Add a conditional branch (parallel execution flow) into the active split. Executed only if the condition evaluates to true.
     * 
     * @param condition expression language condition ("EL_EXPRESSION")
     */
    DslBranchBlock branch( String condition );

    /**
     * Block end tag, listens for the FIRST arriving branch, immediately cancels all the other ongoing branches in this block and continues execution
     * from after the block. 
     */
    Level joinFirst();

    /**
     * Block end tag, listens until ALL started branches have arrived and then continues execution from after the block. 
     */
    Level joinAll();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy