Class DeployProcessCommandImpl
java.lang.Object
io.camunda.zeebe.client.impl.command.DeployProcessCommandImpl
- All Implemented Interfaces:
DeployProcessCommandStep1,DeployProcessCommandStep1.DeployProcessCommandBuilderStep2,FinalCommandStep<DeploymentEvent>
public final class DeployProcessCommandImpl
extends Object
implements DeployProcessCommandStep1, DeployProcessCommandStep1.DeployProcessCommandBuilderStep2
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.client.api.command.DeployProcessCommandStep1
DeployProcessCommandStep1.DeployProcessCommandBuilderStep2 -
Constructor Summary
ConstructorsConstructorDescriptionDeployProcessCommandImpl(GatewayGrpc.GatewayStub asyncStub, Duration requestTimeout, Predicate<Throwable> retryPredicate) -
Method Summary
Modifier and TypeMethodDescriptionaddProcessModel(BpmnModelInstance processDefinition, String resourceName) Add the given process to the deployment.addResourceBytes(byte[] resource, String resourceName) Add the given resource to the deployment.addResourceFile(String filename) Add the given resource to the deployment.addResourceFromClasspath(String classpathResource) Add the given resource to the deployment.addResourceStream(InputStream resourceStream, String resourceName) Add the given resource to the deployment.addResourceString(String resource, Charset charset, String resourceName) Add the given resource to the deployment.addResourceStringUtf8(String resourceString, String resourceName) Add the given resource to the deployment.requestTimeout(Duration requestTimeout) Sets the request timeout for the command.send()Sends the command to the Zeebe broker.
-
Constructor Details
-
DeployProcessCommandImpl
public DeployProcessCommandImpl(GatewayGrpc.GatewayStub asyncStub, Duration requestTimeout, Predicate<Throwable> retryPredicate)
-
-
Method Details
-
addResourceBytes
public DeployProcessCommandStep1.DeployProcessCommandBuilderStep2 addResourceBytes(byte[] resource, String resourceName) Description copied from interface:DeployProcessCommandStep1Add the given resource to the deployment.- Specified by:
addResourceBytesin interfaceDeployProcessCommandStep1- Parameters:
resource- the process resource as byte arrayresourceName- the name of the resource (e.g. "process.bpmn")- Returns:
- the builder for this command. Call
to complete the command and send it to the broker.
invalid reference
#send()
-
addResourceString
public DeployProcessCommandStep1.DeployProcessCommandBuilderStep2 addResourceString(String resource, Charset charset, String resourceName) Description copied from interface:DeployProcessCommandStep1Add the given resource to the deployment.- Specified by:
addResourceStringin interfaceDeployProcessCommandStep1- Parameters:
resource- the process resource as Stringcharset- the charset of the StringresourceName- the name of the resource (e.g. "process.bpmn")- Returns:
- the builder for this command. Call
to complete the command and send it to the broker.
invalid reference
#send()
-
addResourceStringUtf8
public DeployProcessCommandStep1.DeployProcessCommandBuilderStep2 addResourceStringUtf8(String resourceString, String resourceName) Description copied from interface:DeployProcessCommandStep1Add the given resource to the deployment.- Specified by:
addResourceStringUtf8in interfaceDeployProcessCommandStep1- Parameters:
resourceString- the process resource as UTF-8-encoded StringresourceName- the name of the resource (e.g. "process.bpmn")- Returns:
- the builder for this command. Call
to complete the command and send it to the broker.
invalid reference
#send()
-
addResourceStream
public DeployProcessCommandStep1.DeployProcessCommandBuilderStep2 addResourceStream(InputStream resourceStream, String resourceName) Description copied from interface:DeployProcessCommandStep1Add the given resource to the deployment.- Specified by:
addResourceStreamin interfaceDeployProcessCommandStep1- Parameters:
resourceStream- the process resource as streamresourceName- the name of the resource (e.g. "process.bpmn")- Returns:
- the builder for this command. Call
to complete the command and send it to the broker.
invalid reference
#send()
-
addResourceFromClasspath
public DeployProcessCommandStep1.DeployProcessCommandBuilderStep2 addResourceFromClasspath(String classpathResource) Description copied from interface:DeployProcessCommandStep1Add the given resource to the deployment.- Specified by:
addResourceFromClasspathin interfaceDeployProcessCommandStep1- Parameters:
classpathResource- the path of the process resource in the classpath (e.g. "wf/process.bpmn")- Returns:
- the builder for this command. Call
to complete the command and send it to the broker.
invalid reference
#send()
-
addResourceFile
Description copied from interface:DeployProcessCommandStep1Add the given resource to the deployment.- Specified by:
addResourceFilein interfaceDeployProcessCommandStep1- Parameters:
filename- the absolute path of the process resource (e.g. "~/wf/process.bpmn")- Returns:
- the builder for this command. Call
to complete the command and send it to the broker.
invalid reference
#send()
-
addProcessModel
public DeployProcessCommandStep1.DeployProcessCommandBuilderStep2 addProcessModel(BpmnModelInstance processDefinition, String resourceName) Description copied from interface:DeployProcessCommandStep1Add the given process to the deployment.- Specified by:
addProcessModelin interfaceDeployProcessCommandStep1- Parameters:
processDefinition- the process as modelresourceName- the name of the resource (e.g. "process.bpmn")- Returns:
- the builder for this command. Call
to complete the command and send it to the broker.
invalid reference
#send()
-
requestTimeout
Description copied from interface:FinalCommandStepSets the request timeout for the command. The default request timeout can be configured usingZeebeClientBuilder.defaultRequestTimeout(Duration).- Specified by:
requestTimeoutin interfaceFinalCommandStep<DeploymentEvent>- Parameters:
requestTimeout- the request timeout- Returns:
- the configured command
-
send
Description copied from interface:FinalCommandStepSends the command to the Zeebe broker. This operation is asynchronous. In case of success, the future returns the event that was generated by the Zeebe broker in response to the command.Call
ZeebeFuture.join()to wait until the response is available.Future<JobEventinvalid input: '>' future = command.send(); JobEvent event = future.join();- Specified by:
sendin interfaceFinalCommandStep<DeploymentEvent>- Returns:
- a future tracking state of success/failure of the command.
-