Package io.zeebe.client.impl.response
Class CreateProcessInstanceWithResultResponseImpl
- java.lang.Object
-
- io.zeebe.client.impl.response.CreateProcessInstanceWithResultResponseImpl
-
- All Implemented Interfaces:
ProcessInstanceResult
public final class CreateProcessInstanceWithResultResponseImpl extends Object implements ProcessInstanceResult
-
-
Constructor Summary
Constructors Constructor Description CreateProcessInstanceWithResultResponseImpl(JsonMapper jsonMapper, GatewayOuterClass.CreateProcessInstanceWithResultResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBpmnProcessId()
BPMN process id of the process which this instance was created forlong
getProcessDefinitionKey()
Key of the process which this instance was created forlong
getProcessInstanceKey()
Unique key of the created process instance on the partitionString
getVariables()
Variables returned after the process is completed.Map<String,Object>
getVariablesAsMap()
Variables returned after the process is completed.<T> T
getVariablesAsType(Class<T> variableType)
Variables returned after the process is completed.int
getVersion()
Version of the process which this instance was created forString
toString()
-
-
-
Constructor Detail
-
CreateProcessInstanceWithResultResponseImpl
public CreateProcessInstanceWithResultResponseImpl(JsonMapper jsonMapper, GatewayOuterClass.CreateProcessInstanceWithResultResponse response)
-
-
Method Detail
-
getProcessDefinitionKey
public long getProcessDefinitionKey()
Description copied from interface:ProcessInstanceResult
Key of the process which this instance was created for- Specified by:
getProcessDefinitionKey
in interfaceProcessInstanceResult
-
getBpmnProcessId
public String getBpmnProcessId()
Description copied from interface:ProcessInstanceResult
BPMN process id of the process which this instance was created for- Specified by:
getBpmnProcessId
in interfaceProcessInstanceResult
-
getVersion
public int getVersion()
Description copied from interface:ProcessInstanceResult
Version of the process which this instance was created for- Specified by:
getVersion
in interfaceProcessInstanceResult
-
getProcessInstanceKey
public long getProcessInstanceKey()
Description copied from interface:ProcessInstanceResult
Unique key of the created process instance on the partition- Specified by:
getProcessInstanceKey
in interfaceProcessInstanceResult
-
getVariables
public String getVariables()
Description copied from interface:ProcessInstanceResult
Variables returned after the process is completed.- Specified by:
getVariables
in interfaceProcessInstanceResult
- Returns:
- JSON-formatted variables
-
getVariablesAsMap
public Map<String,Object> getVariablesAsMap()
Description copied from interface:ProcessInstanceResult
Variables returned after the process is completed.- Specified by:
getVariablesAsMap
in interfaceProcessInstanceResult
- Returns:
- de-serialized variables as map
-
getVariablesAsType
public <T> T getVariablesAsType(Class<T> variableType)
Description copied from interface:ProcessInstanceResult
Variables returned after the process is completed.- Specified by:
getVariablesAsType
in interfaceProcessInstanceResult
- Returns:
- de-serialized variables as the given type
-
-