Class CreateProcessInstanceWithResultResponseImpl
java.lang.Object
io.camunda.zeebe.client.impl.response.CreateProcessInstanceWithResultResponseImpl
- All Implemented Interfaces:
ProcessInstanceResult
public final class CreateProcessInstanceWithResultResponseImpl
extends Object
implements ProcessInstanceResult
-
Constructor Summary
ConstructorsConstructorDescriptionCreateProcessInstanceWithResultResponseImpl(JsonMapper jsonMapper, CreateProcessInstanceResponse response) CreateProcessInstanceWithResultResponseImpl(JsonMapper jsonMapper, GatewayOuterClass.CreateProcessInstanceWithResultResponse response) -
Method Summary
Modifier and TypeMethodDescriptionBPMN process id of the process which this instance was created forlongKey of the process which this instance was created forlongUnique key of the created process instance on the partitionTenant identifier that owns this process instancegetVariable(String name) Variable returned by name after the process is completed.Variables returned after the process is completed.Variables returned after the process is completed.<T> TgetVariablesAsType(Class<T> variableType) Variables returned after the process is completed.intVersion of the process which this instance was created fortoString()
-
Constructor Details
-
CreateProcessInstanceWithResultResponseImpl
public CreateProcessInstanceWithResultResponseImpl(JsonMapper jsonMapper, CreateProcessInstanceResponse response) -
CreateProcessInstanceWithResultResponseImpl
public CreateProcessInstanceWithResultResponseImpl(JsonMapper jsonMapper, GatewayOuterClass.CreateProcessInstanceWithResultResponse response)
-
-
Method Details
-
getProcessDefinitionKey
public long getProcessDefinitionKey()Description copied from interface:ProcessInstanceResultKey of the process which this instance was created for- Specified by:
getProcessDefinitionKeyin interfaceProcessInstanceResult
-
getBpmnProcessId
Description copied from interface:ProcessInstanceResultBPMN process id of the process which this instance was created for- Specified by:
getBpmnProcessIdin interfaceProcessInstanceResult
-
getVersion
public int getVersion()Description copied from interface:ProcessInstanceResultVersion of the process which this instance was created for- Specified by:
getVersionin interfaceProcessInstanceResult
-
getProcessInstanceKey
public long getProcessInstanceKey()Description copied from interface:ProcessInstanceResultUnique key of the created process instance on the partition- Specified by:
getProcessInstanceKeyin interfaceProcessInstanceResult
-
getVariables
Description copied from interface:ProcessInstanceResultVariables returned after the process is completed.- Specified by:
getVariablesin interfaceProcessInstanceResult- Returns:
- JSON-formatted variables
-
getVariablesAsMap
Description copied from interface:ProcessInstanceResultVariables returned after the process is completed.- Specified by:
getVariablesAsMapin interfaceProcessInstanceResult- Returns:
- de-serialized variables as map
-
getVariablesAsType
Description copied from interface:ProcessInstanceResultVariables returned after the process is completed.- Specified by:
getVariablesAsTypein interfaceProcessInstanceResult- Returns:
- de-serialized variables as the given type
-
getVariable
Description copied from interface:ProcessInstanceResultVariable returned by name after the process is completed.- Specified by:
getVariablein interfaceProcessInstanceResult- Parameters:
name- the name of the variable- Returns:
- de-serialized variable value or null if the provided variable name is present among the
available variables, otherwise throw a
ClientException
-
getTenantId
Description copied from interface:ProcessInstanceResultTenant identifier that owns this process instance- Specified by:
getTenantIdin interfaceProcessInstanceResult
-
toString
-