public class CreateWorkflowInstanceCommandImpl extends CommandWithPayload<CreateWorkflowInstanceCommandStep1.CreateWorkflowInstanceCommandStep3> implements CreateWorkflowInstanceCommandStep1, CreateWorkflowInstanceCommandStep1.CreateWorkflowInstanceCommandStep2, CreateWorkflowInstanceCommandStep1.CreateWorkflowInstanceCommandStep3
CreateWorkflowInstanceCommandStep1.CreateWorkflowInstanceCommandStep2, CreateWorkflowInstanceCommandStep1.CreateWorkflowInstanceCommandStep3
objectMapper
LATEST_VERSION
Constructor and Description |
---|
CreateWorkflowInstanceCommandImpl(GatewayGrpc.GatewayStub asyncStub,
ZeebeObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
CreateWorkflowInstanceCommandStep1.CreateWorkflowInstanceCommandStep2 |
bpmnProcessId(String id)
Set the BPMN process id of the workflow to create an instance of.
|
CreateWorkflowInstanceCommandStep1.CreateWorkflowInstanceCommandStep3 |
latestVersion()
Use the latest version of the workflow to create an instance of.
|
ZeebeFuture<WorkflowInstanceEvent> |
send()
Sends the command to the Zeebe broker.
|
protected CreateWorkflowInstanceCommandStep1.CreateWorkflowInstanceCommandStep3 |
setPayloadInternal(String payload) |
CreateWorkflowInstanceCommandStep1.CreateWorkflowInstanceCommandStep3 |
version(int version)
Set the version of the workflow to create an instance of.
|
CreateWorkflowInstanceCommandStep1.CreateWorkflowInstanceCommandStep3 |
workflowKey(long workflowKey)
Set the key of the workflow to create an instance of.
|
payload, payload, payload, payload
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
payload, payload, payload, payload
public CreateWorkflowInstanceCommandImpl(GatewayGrpc.GatewayStub asyncStub, ZeebeObjectMapper objectMapper)
protected CreateWorkflowInstanceCommandStep1.CreateWorkflowInstanceCommandStep3 setPayloadInternal(String payload)
public CreateWorkflowInstanceCommandStep1.CreateWorkflowInstanceCommandStep2 bpmnProcessId(String id)
CreateWorkflowInstanceCommandStep1
bpmnProcessId
in interface CreateWorkflowInstanceCommandStep1
id
- the BPMN process id of the workflowpublic CreateWorkflowInstanceCommandStep1.CreateWorkflowInstanceCommandStep3 version(int version)
CreateWorkflowInstanceCommandStep1.CreateWorkflowInstanceCommandStep2
version
in interface CreateWorkflowInstanceCommandStep1.CreateWorkflowInstanceCommandStep2
version
- the version of the workflowpublic CreateWorkflowInstanceCommandStep1.CreateWorkflowInstanceCommandStep3 latestVersion()
CreateWorkflowInstanceCommandStep1.CreateWorkflowInstanceCommandStep2
If the latest version was deployed few moments before then it can happen that the new instance is created of the previous version.
latestVersion
in interface CreateWorkflowInstanceCommandStep1.CreateWorkflowInstanceCommandStep2
public CreateWorkflowInstanceCommandStep1.CreateWorkflowInstanceCommandStep3 workflowKey(long workflowKey)
CreateWorkflowInstanceCommandStep1
workflowKey
in interface CreateWorkflowInstanceCommandStep1
workflowKey
- the key of the workflowpublic ZeebeFuture<WorkflowInstanceEvent> send()
FinalCommandStep
Call ZeebeFuture.join()
to wait until the response is available.
Future<JobEvent> future = command.send(); JobEvent event = future.join();
send
in interface FinalCommandStep<WorkflowInstanceEvent>
Copyright © 2017–2018 camunda services GmbH. All rights reserved.