public class ConditionTaskInstance extends Object implements WorkflowTaskInstance
WorkflowTaskInstance
that is able to run a
WorkflowConditionInstance
, identified by the provided task config
property name "ConditionClassName". If the run of the
WorkflowConditionInstance
does not return true, then a
WorkflowTaskInstanceException
is thrown. Note, this exception is also
thrown if there is an error with the provided ConditionClassName, or if it's
not provided.
If the underlying WorkflowConditionInstance
returns true, then this
task completes successfully, and does not throw any Exceptions.Constructor and Description |
---|
ConditionTaskInstance() |
Modifier and Type | Method and Description |
---|---|
void |
run(Metadata metadata,
WorkflowTaskConfiguration config)
Runs the Task with the specified metadata context.
|
public void run(Metadata metadata, WorkflowTaskConfiguration config) throws WorkflowTaskInstanceException
WorkflowTaskInstance
Runs the Task with the specified metadata context.
run
in interface WorkflowTaskInstance
metadata
- The TaskContext of metadata that is shared between the tasks.config
- The static configuration metadata for this task.WorkflowTaskInstanceException
Copyright © 1999–2017 Apache OODT. All rights reserved.