Package io.camunda.migrator.impl.clients
Class C8Client
java.lang.Object
io.camunda.migrator.impl.clients.C8Client
Wrapper class for Camunda 8 Client API calls with exception handling.
Maintains the same exception wrapping behavior as ExceptionUtils.callApi.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected io.camunda.client.CamundaClientprotected MigratorProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<io.camunda.client.api.response.ActivatedJob> activateJobs(String jobType) Activates jobs for the specified job type.io.camunda.client.api.response.ProcessInstanceEventCreates a new process instance with the given BPMN process ID and variables.voiddeployResources(Set<Path> models) Deploys C8 models from the given set of model files.getJobVariable(io.camunda.client.api.response.ActivatedJob job, String variableName) Gets a variable value from an activated job.getProcessDefinitionXml(long processDefinitionKey) Gets the XML content of a process definition by its key.voidmodifyProcessInstance(long processInstanceKey, long startEventInstanceKey, List<FlowNodeActivation> flowNodeActivations) Creates and executes a process instance modification with activity activation.io.camunda.client.api.search.response.SearchResponse<io.camunda.client.api.search.response.ProcessDefinition> searchProcessDefinitions(String processDefinitionId, String tenantId) Searches for process definitions with the given process definition ID.
-
Field Details
-
properties
-
camundaClient
@Autowired protected io.camunda.client.CamundaClient camundaClient
-
-
Constructor Details
-
C8Client
public C8Client()
-
-
Method Details
-
createProcessInstance
public io.camunda.client.api.response.ProcessInstanceEvent createProcessInstance(String bpmnProcessId, String tenantId, Map<String, Object> variables) Creates a new process instance with the given BPMN process ID and variables. -
searchProcessDefinitions
public io.camunda.client.api.search.response.SearchResponse<io.camunda.client.api.search.response.ProcessDefinition> searchProcessDefinitions(String processDefinitionId, String tenantId) Searches for process definitions with the given process definition ID. -
getProcessDefinitionXml
Gets the XML content of a process definition by its key. -
activateJobs
Activates jobs for the specified job type. -
getJobVariable
Gets a variable value from an activated job. -
modifyProcessInstance
public void modifyProcessInstance(long processInstanceKey, long startEventInstanceKey, List<FlowNodeActivation> flowNodeActivations) Creates and executes a process instance modification with activity activation. -
deployResources
Deploys C8 models from the given set of model files.
-