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

ee.telekom.workflow.api.DslExpression 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 DslExpression {

    /**
     * Synchronous bean method call. Can be defined as a stand-alone node, or next to a variable/variables node to save the returned object.
     * 
     * @param id node id
     * @param beanName bean name (from Spring application context)
     * @param methodName method name to call
     * @param arguments method arguments (any java object or "${EL_EXPRESSION}")
     */
    Level call( int id, String beanName, String methodName, Object... arguments );

    /**
     * Asynchronous bean method call. Can be defined as a stand-alone node, or next to a variable/variables node to save the returned object.
     * 

* ### WAIT STATE ### * * @param id node id * @param beanName bean name (from Spring application context) * @param methodName method name to call * @param arguments method arguments (any java object or "${EL_EXPRESSION}") */ Level callAsync( int id, String beanName, String methodName, Object... arguments ); /** * Create a human task for given role/assignee. Can be defined as a stand-alone node, or next to a variable/variables node to save the returned object. * Arguments may be provided by a a withArgument call. *

* NB! It's mandatory to fill either the roleName or assignee or both fields! *

* ### WAIT STATE ### * * @param id node id * @param roleName assign to a role * @param assignee assign to a person */ DslAttribute humanTask( int id, String roleName, String assignee ); /** * Wait until a signal matching the given type is received. Can be defined as a stand-alone node, or next to a variable/variables node to save the signal argument. *

* ### WAIT STATE ### * * @param id node id * @param type matching signal type */ Level waitSignal( int id, String type ); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy