Package io.camunda.client.protocol.rest
Class ProcessInstanceCreationInstruction
java.lang.Object
io.camunda.client.protocol.rest.ProcessInstanceCreationInstruction
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-10-08T19:37:20.302687113Z[GMT]",
comments="Generator version: 7.12.0")
public class ProcessInstanceCreationInstruction
extends Object
ProcessInstanceCreationInstruction
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFetchVariablesItem(String fetchVariablesItem) addRuntimeInstructionsItem(ProcessInstanceCreationRuntimeInstruction runtimeInstructionsItem) addStartInstructionsItem(ProcessInstanceCreationStartInstruction startInstructionsItem) addTagsItem(String tagsItem) awaitCompletion(Boolean awaitCompletion) booleanfetchVariables(List<String> fetchVariables) Wait for the process instance to complete.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 tagsThe 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<ProcessInstanceCreationRuntimeInstruction> runtimeInstructions) voidsetAwaitCompletion(Boolean awaitCompletion) voidsetFetchVariables(List<String> fetchVariables) voidsetOperationReference(Long operationReference) voidsetProcessDefinitionId(String processDefinitionId) voidsetProcessDefinitionKey(String processDefinitionKey) voidsetProcessDefinitionVersion(Integer processDefinitionVersion) voidsetRequestTimeout(Long requestTimeout) voidsetRuntimeInstructions(List<ProcessInstanceCreationRuntimeInstruction> runtimeInstructions) voidsetStartInstructions(List<ProcessInstanceCreationStartInstruction> startInstructions) voidvoidsetTenantId(String tenantId) voidsetVariables(Map<String, Object> variables) startInstructions(List<ProcessInstanceCreationStartInstruction> startInstructions) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_PROCESS_DEFINITION_ID
- See Also:
-
JSON_PROPERTY_PROCESS_DEFINITION_VERSION
- See Also:
-
JSON_PROPERTY_VARIABLES
- See Also:
-
JSON_PROPERTY_TENANT_ID
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
JSON_PROPERTY_OPERATION_REFERENCE
- See Also:
-
JSON_PROPERTY_START_INSTRUCTIONS
- See Also:
-
JSON_PROPERTY_RUNTIME_INSTRUCTIONS
- See Also:
-
JSON_PROPERTY_AWAIT_COMPLETION
- See Also:
-
JSON_PROPERTY_FETCH_VARIABLES
- See Also:
-
JSON_PROPERTY_REQUEST_TIMEOUT
- See Also:
-
JSON_PROPERTY_PROCESS_DEFINITION_KEY
- See Also:
-
-
Constructor Details
-
ProcessInstanceCreationInstruction
public ProcessInstanceCreationInstruction()
-
-
Method Details
-
processDefinitionId
-
getProcessDefinitionId
The BPMN process ID of the process definition to start an instance of. Cannot be used together with processDefinitionKey.- Returns:
- processDefinitionId
-
setProcessDefinitionId
-
processDefinitionVersion
public ProcessInstanceCreationInstruction processDefinitionVersion(@Nullable Integer processDefinitionVersion) -
getProcessDefinitionVersion
The version of the process. Only considered when a processDefinitionId is provided. 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
-
tenantId
-
getTenantId
The tenant ID of the process definition.- Returns:
- tenantId
-
setTenantId
-
tags
-
addTagsItem
-
getTags
List of tags- Returns:
- tags
-
setTags
-
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
-
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<ProcessInstanceCreationRuntimeInstruction> runtimeInstructions) -
addRuntimeInstructionsItem
public ProcessInstanceCreationInstruction addRuntimeInstructionsItem(ProcessInstanceCreationRuntimeInstruction 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<ProcessInstanceCreationRuntimeInstruction> runtimeInstructions) -
awaitCompletion
-
getAwaitCompletion
Wait for the process instance to complete. If the process instance completion does not occur within the requestTimeout, the request will be closed. This can lead to a 504 response status. Disabled by default.- Returns:
- awaitCompletion
-
setAwaitCompletion
-
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
-
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
-
processDefinitionKey
public ProcessInstanceCreationInstruction processDefinitionKey(@Nullable String processDefinitionKey) -
getProcessDefinitionKey
The unique key identifying the process definition, for example, returned for a process in the deploy resources endpoint. Cannot be used together with processDefinitionId.- Returns:
- processDefinitionKey
-
setProcessDefinitionKey
-
equals
-
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-