org.syrup.functions
Class Abort

java.lang.Object
  extended byorg.syrup.functions.Abort
All Implemented Interfaces:
Function

public class Abort
extends java.lang.Object
implements Function

Copies the first or second input to the first output but if the second input is full, all Link connections will be broken afterwards. Used mostly in conjunction with Finish to terminate Workflows.

Author:
Robbert van Dalen

Constructor Summary
Abort()
           
 
Method Summary
 Result execute(Context context)
          Generates a Result given a Task's Context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Abort

public Abort()
Method Detail

execute

public Result execute(Context context)
Description copied from interface: Function
Generates a Result given a Task's Context. Implementations should not throw Exceptions, retain Objects or any other resources after the calling Thread exits this method.

Specified by:
execute in interface Function
Parameters:
context - The Context from which the Function get its parameters.
Returns:
The Result after execution.