I am not clear how the executeAsync works in Camunda.
Using Java code in spring-boot application, I am trying to migrate few process instances from one process version to another using migration plan.
In java code when I use execute()
method then the code is obviously executed immediately.
import org.camunda.bpm.engine.RuntimeService;
final MigrationPlan migrationPlan = runtimeService.createMigrationPlan(fromProcessDefinitionId, toProcessDefinitionId).mapEqualActivities().build();
final ProcessInstanceQuery processQuery = runtimeService.createProcessInstanceQuery().processDefinitionId(fromProcessDefinitionId);
runtimeService.newMigration(migrationPlan).processInstanceQuery(processQuery).executeAsync();
But When I use executeAsync()
method then I see the batch job waiting in the batches section but does not complete. How to know when will it execute?
Can I configure in bpm-platform.xml file to make sure my migration plan runs within next 15 minutes when I use
executeAsync()
method?Is there any option to force-trigger the batch from the admin cockpit when needed?