Package io.camunda.client.protocol.rest
Class ProcessInstanceCreationInstruction
java.lang.Object
io.camunda.client.protocol.rest.ProcessInstanceCreationInstruction
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ProcessInstanceCreationInstruction
extends Object
Instructions for creating a process instance. The process definition can be specified either by id or by key.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFetchVariablesItem(String fetchVariablesItem) addRuntimeInstructionsItem(ProcessInstanceCreationTerminateInstruction runtimeInstructionsItem) addStartInstructionsItem(ProcessInstanceCreationStartInstruction startInstructionsItem) addTagsItem(String tagsItem) awaitCompletion(Boolean awaitCompletion) businessId(String businessId) booleanfetchVariables(List<String> fetchVariables) Wait for the process instance to complete.An optional, user-defined string identifier that identifies the process instance within the scope of a process definition (scoped by tenant).List of variables by name to be included in the response when awaitCompletion is set to true.A reference key chosen by the user that will be part of all records resulting from this operation.The BPMN process id of the process definition to start an instance of.The unique key identifying the process definition, for example, returned for a process in the deploy resources endpoint.The version of the process.Timeout (in ms) the request waits for the process to complete.Runtime instructions (alpha).List of start instructions.getTags()List of tags.The tenant id of the process definition.JSON object that will instantiate the variables for the root variable scope of the process instance.inthashCode()operationReference(Long operationReference) processDefinitionId(String processDefinitionId) processDefinitionKey(String processDefinitionKey) processDefinitionVersion(Integer processDefinitionVersion) putVariablesItem(String key, Object variablesItem) requestTimeout(Long requestTimeout) runtimeInstructions(List<ProcessInstanceCreationTerminateInstruction> runtimeInstructions) voidsetAwaitCompletion(Boolean awaitCompletion) voidsetBusinessId(String businessId) voidsetFetchVariables(List<String> fetchVariables) voidsetOperationReference(Long operationReference) voidsetProcessDefinitionId(String processDefinitionId) voidsetProcessDefinitionKey(String processDefinitionKey) voidsetProcessDefinitionVersion(Integer processDefinitionVersion) voidsetRequestTimeout(Long requestTimeout) voidsetRuntimeInstructions(List<ProcessInstanceCreationTerminateInstruction> runtimeInstructions) voidsetStartInstructions(List<ProcessInstanceCreationStartInstruction> startInstructions) voidvoidsetTenantId(String tenantId) voidsetVariables(Map<String, Object> variables) startInstructions(List<ProcessInstanceCreationStartInstruction> startInstructions) toString()
-
Field Details
-
JSON_PROPERTY_PROCESS_DEFINITION_KEY
- See Also:
-
JSON_PROPERTY_PROCESS_DEFINITION_VERSION
- See Also:
-
JSON_PROPERTY_VARIABLES
- See Also:
-
JSON_PROPERTY_START_INSTRUCTIONS
- See Also:
-
JSON_PROPERTY_RUNTIME_INSTRUCTIONS
- See Also:
-
JSON_PROPERTY_TENANT_ID
- See Also:
-
JSON_PROPERTY_OPERATION_REFERENCE
- See Also:
-
JSON_PROPERTY_AWAIT_COMPLETION
- See Also:
-
JSON_PROPERTY_REQUEST_TIMEOUT
- See Also:
-
JSON_PROPERTY_FETCH_VARIABLES
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
JSON_PROPERTY_BUSINESS_ID
- See Also:
-
JSON_PROPERTY_PROCESS_DEFINITION_ID
- See Also:
-
-
Constructor Details
-
ProcessInstanceCreationInstruction
public ProcessInstanceCreationInstruction()
-
-
Method Details
-
processDefinitionKey
public ProcessInstanceCreationInstruction processDefinitionKey(@Nonnull String processDefinitionKey) -
getProcessDefinitionKey
The unique key identifying the process definition, for example, returned for a process in the deploy resources endpoint.- Returns:
- processDefinitionKey
-
setProcessDefinitionKey
-
processDefinitionVersion
public ProcessInstanceCreationInstruction processDefinitionVersion(@Nullable Integer processDefinitionVersion) -
getProcessDefinitionVersion
The version of the process. By default, the latest version of the process is used.- Returns:
- processDefinitionVersion
-
setProcessDefinitionVersion
-
variables
-
putVariablesItem
-
getVariables
JSON object that will instantiate the variables for the root variable scope of the process instance.- Returns:
- variables
-
setVariables
-
startInstructions
public ProcessInstanceCreationInstruction startInstructions(@Nullable List<ProcessInstanceCreationStartInstruction> startInstructions) -
addStartInstructionsItem
public ProcessInstanceCreationInstruction addStartInstructionsItem(ProcessInstanceCreationStartInstruction startInstructionsItem) -
getStartInstructions
List of start instructions. By default, the process instance will start at the start event. If provided, the process instance will apply start instructions after it has been created.- Returns:
- startInstructions
-
setStartInstructions
public void setStartInstructions(@Nullable List<ProcessInstanceCreationStartInstruction> startInstructions) -
runtimeInstructions
public ProcessInstanceCreationInstruction runtimeInstructions(@Nullable List<ProcessInstanceCreationTerminateInstruction> runtimeInstructions) -
addRuntimeInstructionsItem
public ProcessInstanceCreationInstruction addRuntimeInstructionsItem(ProcessInstanceCreationTerminateInstruction runtimeInstructionsItem) -
getRuntimeInstructions
Runtime instructions (alpha). List of instructions that affect the runtime behavior of the process instance. Refer to specific instruction types for more details. This parameter is an alpha feature and may be subject to change in future releases.- Returns:
- runtimeInstructions
-
setRuntimeInstructions
public void setRuntimeInstructions(@Nullable List<ProcessInstanceCreationTerminateInstruction> runtimeInstructions) -
tenantId
-
getTenantId
The tenant id of the process definition. If multi-tenancy is enabled, provide the tenant id of the process definition to start a process instance of. If multi-tenancy is disabled, don't provide this parameter.- Returns:
- tenantId
-
setTenantId
-
operationReference
-
getOperationReference
A reference key chosen by the user that will be part of all records resulting from this operation. Must be > 0 if provided. minimum: 1- Returns:
- operationReference
-
setOperationReference
-
awaitCompletion
-
getAwaitCompletion
Wait for the process instance to complete. If the process instance does not complete within the request timeout limit, a 504 response status will be returned. The process instance will continue to run in the background regardless of the timeout. Disabled by default.- Returns:
- awaitCompletion
-
setAwaitCompletion
-
requestTimeout
-
getRequestTimeout
Timeout (in ms) the request waits for the process to complete. By default or when set to 0, the generic request timeout configured in the cluster is applied.- Returns:
- requestTimeout
-
setRequestTimeout
-
fetchVariables
-
addFetchVariablesItem
-
getFetchVariables
List of variables by name to be included in the response when awaitCompletion is set to true. If empty, all visible variables in the root scope will be returned.- Returns:
- fetchVariables
-
setFetchVariables
-
tags
-
addTagsItem
-
getTags
List of tags. Tags need to start with a letter; then alphanumerics, `_`, `-`, `:`, or `.`; length ≤ 100.- Returns:
- tags
-
setTags
-
businessId
-
getBusinessId
An optional, user-defined string identifier that identifies the process instance within the scope of a process definition (scoped by tenant). If provided and uniqueness enforcement is enabled, the engine will reject creation if another root process instance with the same business id is already active for the same process definition. Note that any active child process instances with the same business id are not taken into account.- Returns:
- businessId
-
setBusinessId
-
processDefinitionId
-
getProcessDefinitionId
The BPMN process id of the process definition to start an instance of.- Returns:
- processDefinitionId
-
setProcessDefinitionId
-
equals
-
hashCode
public int hashCode() -
toString
-