Class ConnectorJobHandler
java.lang.Object
io.camunda.connector.runtime.util.outbound.ConnectorJobHandler
- All Implemented Interfaces:
io.camunda.zeebe.client.api.worker.JobHandler
public class ConnectorJobHandler
extends Object
implements io.camunda.zeebe.client.api.worker.JobHandler
JobHandler that wraps an OutboundConnectorFunction-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate a handler wrapper for the specified connector function. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcompleteJob(io.camunda.zeebe.client.api.worker.JobClient client, io.camunda.zeebe.client.api.response.ActivatedJob job, ConnectorResult result) protected voidfailJob(io.camunda.zeebe.client.api.worker.JobClient client, io.camunda.zeebe.client.api.response.ActivatedJob job, Exception exception) protected SecretProviderprotected SecretProvidervoidhandle(io.camunda.zeebe.client.api.worker.JobClient client, io.camunda.zeebe.client.api.response.ActivatedJob job) protected voidprotected voidthrowBpmnError(io.camunda.zeebe.client.api.worker.JobClient client, io.camunda.zeebe.client.api.response.ActivatedJob job, BpmnError value)
-
Field Details
-
call
-
-
Constructor Details
-
ConnectorJobHandler
Create a handler wrapper for the specified connector function.- Parameters:
call- - the connector function to call
-
-
Method Details
-
handle
public void handle(io.camunda.zeebe.client.api.worker.JobClient client, io.camunda.zeebe.client.api.response.ActivatedJob job) - Specified by:
handlein interfaceio.camunda.zeebe.client.api.worker.JobHandler
-
getSecretProvider
-
getEnvSecretProvider
-
logError
-
completeJob
protected void completeJob(io.camunda.zeebe.client.api.worker.JobClient client, io.camunda.zeebe.client.api.response.ActivatedJob job, ConnectorResult result) -
failJob
protected void failJob(io.camunda.zeebe.client.api.worker.JobClient client, io.camunda.zeebe.client.api.response.ActivatedJob job, Exception exception) -
throwBpmnError
protected void throwBpmnError(io.camunda.zeebe.client.api.worker.JobClient client, io.camunda.zeebe.client.api.response.ActivatedJob job, BpmnError value) -
toMap
-