public static class QueryWorkflowInstances.Builder extends Object
| Constructor and Description |
|---|
Builder()
Create a workflow instance query builder.
|
Builder(QueryWorkflowInstances copy) |
| Modifier and Type | Method and Description |
|---|---|
QueryWorkflowInstances.Builder |
addIds(Long... newIds)
Add identifiers to query parameters.
|
QueryWorkflowInstances.Builder |
addStates(String... newStates)
Add workflow states to query parameters.
|
QueryWorkflowInstances.Builder |
addStatuses(WorkflowInstance.WorkflowInstanceStatus... newStatuses)
Add workflow statuses to query parameters.
|
QueryWorkflowInstances.Builder |
addTypes(String... newTypes)
Add workflow definitions types to query parameters.
|
QueryWorkflowInstances |
build()
Create the workflow instance query object.
|
QueryWorkflowInstances.Builder |
setBusinessKey(String businessKey)
Set business key to query parameters.
|
QueryWorkflowInstances.Builder |
setExternalId(String externalId)
Set external identifier to query parameters.
|
QueryWorkflowInstances.Builder |
setIncludeActions(boolean includeActions)
Set whether workflow actions should be included in the results.
|
QueryWorkflowInstances.Builder |
setIncludeActionStateVariables(boolean includeActionStateVariables)
Set whether state variables for workflow actions should be included in the results.
|
QueryWorkflowInstances.Builder |
setIncludeChildWorkflows(boolean includeChildWorkflows)
Set whether child workflow IDs created by this instance should be included in the results.
|
QueryWorkflowInstances.Builder |
setIncludeCurrentStateVariables(boolean includeCurrentStateVariables)
Set whether current workflow state variables should be included in the results.
|
QueryWorkflowInstances.Builder |
setMaxActions(Long maxActions)
Set the maximum number of actions returned for each instance.
|
QueryWorkflowInstances.Builder |
setMaxResults(Long maxResults)
Set the maximum number of instances to be returned.
|
QueryWorkflowInstances.Builder |
setParentActionId(Long parentActionId)
Set parent action id to query parameters.
|
QueryWorkflowInstances.Builder |
setParentWorkflowId(Long parentWorkflowId)
Set parent workflow instance id to query parameters.
|
public Builder()
public Builder(QueryWorkflowInstances copy)
public QueryWorkflowInstances.Builder addIds(Long... newIds)
newIds - The identifiers.public QueryWorkflowInstances.Builder addTypes(String... newTypes)
newTypes - The types.public QueryWorkflowInstances.Builder setParentWorkflowId(Long parentWorkflowId)
parentWorkflowId - The parent workflow instance id.public QueryWorkflowInstances.Builder setParentActionId(Long parentActionId)
parentActionId - The parent action id.public QueryWorkflowInstances.Builder addStates(String... newStates)
newStates - The state names.public QueryWorkflowInstances.Builder addStatuses(WorkflowInstance.WorkflowInstanceStatus... newStatuses)
newStatuses - The statuses.public QueryWorkflowInstances.Builder setBusinessKey(String businessKey)
businessKey - The business key.public QueryWorkflowInstances.Builder setExternalId(String externalId)
externalId - The external identifier.public QueryWorkflowInstances.Builder setIncludeActions(boolean includeActions)
includeActions - True to include actions, false otherwise.public QueryWorkflowInstances.Builder setIncludeCurrentStateVariables(boolean includeCurrentStateVariables)
includeCurrentStateVariables - True to include state variables, false otherwise.public QueryWorkflowInstances.Builder setIncludeActionStateVariables(boolean includeActionStateVariables)
includeActionStateVariables - True to include state variables, false otherwise.public QueryWorkflowInstances.Builder setIncludeChildWorkflows(boolean includeChildWorkflows)
includeChildWorkflows - True to include child workflows, false otherwise.public QueryWorkflowInstances.Builder setMaxResults(Long maxResults)
maxResults - The maximum number of instances to be returned.public QueryWorkflowInstances.Builder setMaxActions(Long maxActions)
maxActions - The maximum number of actions to be returned.public QueryWorkflowInstances build()
Copyright © 2014–2020 Nitor Creations. All rights reserved.