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