Search in sources :

Example 1 with ActivateProcessDefinitionCmd

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);
}
Also used : JSONObject(org.activiti.engine.impl.util.json.JSONObject) ActivateProcessDefinitionCmd(org.activiti.engine.impl.cmd.ActivateProcessDefinitionCmd)

Aggregations

ActivateProcessDefinitionCmd (org.activiti.engine.impl.cmd.ActivateProcessDefinitionCmd)1 JSONObject (org.activiti.engine.impl.util.json.JSONObject)1