org.globus.cog.karajan.workflow.nodes.user
Class UserDefinedElement
java.lang.Object
org.globus.cog.karajan.workflow.nodes.FlowNode
org.globus.cog.karajan.workflow.nodes.FlowContainer
org.globus.cog.karajan.workflow.nodes.Sequential
org.globus.cog.karajan.workflow.nodes.AbstractSequentialWithArguments
org.globus.cog.karajan.workflow.nodes.user.UserDefinedElement
- All Implemented Interfaces:
- LoadListener, NonCacheable, EventListener, ExtendedFlowElement, FlowElement
- Direct Known Subclasses:
- ExplicitExecutionUDE, ParallelImplicitExecutionUDE, SequentialImplicitExecutionUDE
public abstract class UserDefinedElement
- extends AbstractSequentialWithArguments
- implements NonCacheable
Nested classes/interfaces inherited from class org.globus.cog.karajan.workflow.nodes.FlowNode |
FlowNode.FNTP |
Methods inherited from class org.globus.cog.karajan.workflow.nodes.AbstractSequentialWithArguments |
addChannel, argumentsEvaluated, checkArguments, getArgument, getArgumentCount, getArgumentIndex, getArgumentNames, getArguments, getMaxArgIndex, getNonpropargs, getOptionalArgs, getQuotedArgs, getSortedArgs, hasNestedArguments, hasVariableArguments, initializeArgs, newNameBindingVariableArguments, newVariableArguments, processArguments, setArguments, setHasVargs, setNestedArgs, setNonpropargs, setQuotedArgs, setVargs |
Methods inherited from class org.globus.cog.karajan.workflow.nodes.FlowNode |
_finally, abort, abortEvent, acceptsInlineText, addElement, checkClass, checkCompleted, checkFailed, complete, copy, echo, echo, elementCount, elements, event, executeErrorHandler, executeSimple, fail, fail, failIfNotDefined, failIfNull, failIfNull, failImmediately, failImmediately, failImmediately, failImmediately, fireControlEvent, fireMonitoringEvent, fireNotificationEvent, fireStatusMonitoringEvent, get_locator, getBooleanProperty, getBooleanProperty, getCanonicalType, getElement, getElementType, getIntProperty, getIntProperty, getParent, getProperty, getStaticArguments, getStringProperty, getTreeProperty, getUID, hasFrame, hasProperty, isCheckpointable, isSimple, isSystemProperty, loadComplete, loadStarted, monitoringEvent, propertyNames, removeElement, removeElement, removeProperty, replaceElement, restart, restartElement, ret, set_locator, setAcceptsInlineText, setCheckpointable, setElements, setElementType, setFrame, setParent, setProperty, setProperty, setStaticArguments, start, startElement, toString |
KMODE
public static final String KMODE
- See Also:
- Constant Field Values
SKIP
public static final String SKIP
- See Also:
- Constant Field Values
A_NAME
public static final Arg A_NAME
A_ARGUMENTS
public static final Arg A_ARGUMENTS
A_VARGS
public static final Arg A_VARGS
A_NAMED
public static final Arg A_NAMED
A_CHANNELS
public static final Arg A_CHANNELS
A_OPTARGS
public static final Arg A_OPTARGS
START_BODY
public static final ControlEventType START_BODY
FNARGS
public static final String FNARGS
- See Also:
- Constant Field Values
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
ARGUMENTS_THREAD
public static final String ARGUMENTS_THREAD
- See Also:
- Constant Field Values
BODY_THREAD
public static final String BODY_THREAD
- See Also:
- Constant Field Values
NO_CHANNELS
public static final List NO_CHANNELS
NO_ARGUMENTS
public static final String[] NO_ARGUMENTS
UserDefinedElement
public UserDefinedElement()
initializeStatic
protected void initializeStatic()
- Overrides:
initializeStatic
in class AbstractSequentialWithArguments
pre
public void pre(VariableStack stack)
throws ExecutionException
- Overrides:
pre
in class AbstractSequentialWithArguments
- Throws:
ExecutionException
startInstance
public abstract void startInstance(VariableStack stack,
UDEWrapper wrapper,
DefinitionEnvironment env)
throws ExecutionException
- Throws:
ExecutionException
startBody
public final void startBody(VariableStack stack,
Arguments fnargs)
throws ExecutionException
- Throws:
ExecutionException
prepareInstanceArguments
protected void prepareInstanceArguments(VariableStack stack,
Arguments fnargs)
throws ExecutionException
- Throws:
ExecutionException
controlEvent
protected void controlEvent(ControlEvent e)
throws ExecutionException
- Overrides:
controlEvent
in class FlowNode
- Throws:
ExecutionException
childCompleted
protected void childCompleted(VariableStack stack)
throws ExecutionException
- Overrides:
childCompleted
in class AbstractSequentialWithArguments
- Throws:
ExecutionException
checkFirstArg
protected boolean checkFirstArg(VariableStack stack)
throws ExecutionException
- Throws:
ExecutionException
checkBothArgs
protected void checkBothArgs(VariableStack stack)
throws ExecutionException
- Throws:
ExecutionException
startArguments
protected void startArguments(VariableStack stack,
UDEWrapper wrapper)
throws ExecutionException
- Throws:
ExecutionException
isArgumentsThread
protected boolean isArgumentsThread(VariableStack stack)
executeChildren
protected void executeChildren(VariableStack stack)
throws ExecutionException
- Overrides:
executeChildren
in class Sequential
- Throws:
ExecutionException
setUDEArguments
protected void setUDEArguments(List args)
getArguments
public String[] getArguments()
getOptargs
public String[] getOptargs()
hasNamed
public boolean hasNamed()
hasNestedArgs
public boolean hasNestedArgs()
hasVargs
public boolean hasVargs()
getChannels
public List getChannels()
- Overrides:
getChannels
in class AbstractSequentialWithArguments
hasChannels
public boolean hasChannels()
- Overrides:
hasChannels
in class AbstractSequentialWithArguments
getKmode
protected boolean getKmode()
getSkip
public int getSkip()
setProperty
public void setProperty(String name,
Object value)
- Description copied from interface:
FlowElement
- Sets a property on this element. The value can be
null
- Specified by:
setProperty
in interface FlowElement
- Overrides:
setProperty
in class FlowNode
setProperties
public void setProperties(Map properties)
- Specified by:
setProperties
in interface FlowElement
- Overrides:
setProperties
in class FlowNode
addStaticArgument
public void addStaticArgument(String name,
Object value)
- Specified by:
addStaticArgument
in interface FlowElement
- Overrides:
addStaticArgument
in class FlowNode
getEnv
protected DefinitionEnvironment getEnv(VariableStack stack)
getTextualName
public String getTextualName()
- Overrides:
getTextualName
in class FlowNode