use of org.activiti.engine.impl.cmd.ActivateProcessDefinitionCmd in project Activiti by Activiti.
the class TimerActivateProcessDefinitionHandler method execute.
public void execute(JobEntity job, String configuration, ExecutionEntity execution, CommandContext commandContext) {
JSONObject cfgJson = new JSONObject(configuration);
String processDefinitionId = job.getProcessDefinitionId();
boolean activateProcessInstances = getIncludeProcessInstances(cfgJson);
ActivateProcessDefinitionCmd activateProcessDefinitionCmd = new ActivateProcessDefinitionCmd(processDefinitionId, null, activateProcessInstances, null, job.getTenantId());
activateProcessDefinitionCmd.execute(commandContext);
}
Aggregations