public static class WorkflowInstanceAction.Builder extends Object
| Constructor and Description |
|---|
Builder()
Create a builder for a workflow instance action.
|
Builder(WorkflowInstance instance)
Create a builder for a workflow instance action based on an existing workflow instance.
|
Builder(WorkflowInstanceAction action)
Create a builder for a workflow instance action based on an existing workflow instance action.
|
| Modifier and Type | Method and Description |
|---|---|
WorkflowInstanceAction |
build()
Build the workflow instance action.
|
WorkflowInstanceAction.Builder |
setExecutionEnd(org.joda.time.DateTime executionEnd)
Set the execution end time.
|
WorkflowInstanceAction.Builder |
setExecutionStart(org.joda.time.DateTime executionStart)
Set the execution start time.
|
WorkflowInstanceAction.Builder |
setExecutorId(Integer executorId)
Set the executor id.
|
WorkflowInstanceAction.Builder |
setId(long id)
Set the action id (generated by database)
|
WorkflowInstanceAction.Builder |
setRetryNo(int retryNo)
Set the retry number.
|
WorkflowInstanceAction.Builder |
setState(String state)
Set the state.
|
WorkflowInstanceAction.Builder |
setStateText(String stateText)
Set the state text.
|
WorkflowInstanceAction.Builder |
setType(WorkflowInstanceAction.WorkflowActionType actionType)
Set the trigger type of the action.
|
WorkflowInstanceAction.Builder |
setUpdatedStateVariables(Map<String,String> updatedStateVariables)
Set the updated state variables.
|
WorkflowInstanceAction.Builder |
setWorkflowInstanceId(long workflowInstanceId)
Set the workflow instance identifier.
|
public Builder()
public Builder(WorkflowInstanceAction action)
action - The workflow instance action to be copied.public Builder(WorkflowInstance instance)
instance - The workflow instance for which the action is created.public WorkflowInstanceAction.Builder setId(long id)
id - Action idpublic WorkflowInstanceAction.Builder setWorkflowInstanceId(long workflowInstanceId)
workflowInstanceId - The workflow instance identifier.public WorkflowInstanceAction.Builder setExecutorId(Integer executorId)
executorId - The executor id.public WorkflowInstanceAction.Builder setType(WorkflowInstanceAction.WorkflowActionType actionType)
actionType - The action type.public WorkflowInstanceAction.Builder setState(String state)
state - The name of the state.public WorkflowInstanceAction.Builder setStateText(String stateText)
stateText - The state text.public WorkflowInstanceAction.Builder setUpdatedStateVariables(Map<String,String> updatedStateVariables)
updatedStateVariables - The updated state variables.public WorkflowInstanceAction.Builder setRetryNo(int retryNo)
retryNo - The retry number.public WorkflowInstanceAction.Builder setExecutionStart(org.joda.time.DateTime executionStart)
executionStart - The execution start time.public WorkflowInstanceAction.Builder setExecutionEnd(org.joda.time.DateTime executionEnd)
executionEnd - The execution end time.public WorkflowInstanceAction build()
Copyright © 2014–2020 Nitor Creations. All rights reserved.