protected ProcessDefinitionResponse activateProcessDefinition(ProcessDefinition processDefinition, boolean suspendInstances,
Date date, boolean isGraphicalNotationDefined, String serverRootUrl) {
if (!processDefinition.isSuspended()) {
throw new ActivitiConflictException("Process definition with id '" + processDefinition.getId() + " ' is already active");
}
repositoryService.activateProcessDefinitionById(processDefinition.getId(), suspendInstances, date);
ProcessDefinitionResponse response = restResponseFactory.createProcessDefinitionResponse(processDefinition, isGraphicalNotationDefined, serverRootUrl);