Constructor and Description |
---|
WorkflowSystemTask(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<WorkflowSystemTask> |
all() |
void |
cancel(com.netflix.conductor.common.run.Workflow workflow,
com.netflix.conductor.common.metadata.tasks.Task task,
WorkflowExecutor executor)
Cancel task execution
|
boolean |
execute(com.netflix.conductor.common.run.Workflow workflow,
com.netflix.conductor.common.metadata.tasks.Task task,
WorkflowExecutor executor) |
static WorkflowSystemTask |
get(java.lang.String type) |
java.lang.String |
getName() |
int |
getRetryTimeInSecond() |
static boolean |
is(java.lang.String type) |
boolean |
isAsync() |
void |
start(com.netflix.conductor.common.run.Workflow workflow,
com.netflix.conductor.common.metadata.tasks.Task task,
WorkflowExecutor executor)
Start the task execution
|
java.lang.String |
toString() |
public void start(com.netflix.conductor.common.run.Workflow workflow, com.netflix.conductor.common.metadata.tasks.Task task, WorkflowExecutor executor) throws java.lang.Exception
workflow
- Workflow for which the task is being startedtask
- Instance of the Taskexecutor
- Workflow Executorjava.lang.Exception
- If there is an error when starting the taskpublic boolean execute(com.netflix.conductor.common.run.Workflow workflow, com.netflix.conductor.common.metadata.tasks.Task task, WorkflowExecutor executor) throws java.lang.Exception
workflow
- Workflow for which the task is being startedtask
- Instance of the Taskexecutor
- Workflow Executorjava.lang.Exception
- If there is an error when starting the taskpublic void cancel(com.netflix.conductor.common.run.Workflow workflow, com.netflix.conductor.common.metadata.tasks.Task task, WorkflowExecutor executor) throws java.lang.Exception
workflow
- Workflow for which the task is being startedtask
- Instance of the Taskexecutor
- Workflow Executorjava.lang.Exception
- If there is an error when starting the taskpublic boolean isAsync()
public int getRetryTimeInSecond()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public static boolean is(java.lang.String type)
public static WorkflowSystemTask get(java.lang.String type)
public static java.util.Collection<WorkflowSystemTask> all()