Assert.isTrue(idInsideActivitiXml.equalsIgnoreCase(jobDefinitionHelper.buildActivitiIdString(namespace, jobName)), "Namespace \"" + namespace + "\" and Job Name \"" + jobName + "\" does not match the ID specified within Activiti XML \"" + idInsideActivitiXml +
Assert.isTrue(idInsideActivitiXml.equalsIgnoreCase(jobDefinitionHelper.buildActivitiIdString(namespace, jobName)), "Namespace \"" + namespace + "\" and Job Name \"" + jobName + "\" does not match the ID specified within Activiti XML \"" + idInsideActivitiXml +
/** * Deploys the Activiti XML into Activiti given the specified namespace and job name. If an existing process definition with the specified namespace and job * name already exists, a new process definition with an incremented version will be created by Activiti. * * @param namespace the namespace. * @param jobName the job name. * @param activitiJobXml the Activiti job XML. * * @return the newly created process definition. */ private ProcessDefinition createProcessDefinition(String namespace, String jobName, String activitiJobXml) { // Deploy Activiti XML using Activiti API. String activitiIdString = jobDefinitionHelper.buildActivitiIdString(namespace, jobName); Deployment deployment = activitiRepositoryService.createDeployment().name(activitiIdString).addString(activitiIdString + ACTIVITI_DEPLOY_XML_SUFFIX, activitiJobXml) .deploy(); // Read the created process definition. return activitiRepositoryService.createProcessDefinitionQuery().deploymentId(deployment.getId()).list().get(0); }
/** * Deploys the Activiti XML into Activiti given the specified namespace and job name. If an existing process definition with the specified namespace and job * name already exists, a new process definition with an incremented version will be created by Activiti. * * @param namespace the namespace. * @param jobName the job name. * @param activitiJobXml the Activiti job XML. * * @return the newly created process definition. */ private ProcessDefinition createProcessDefinition(String namespace, String jobName, String activitiJobXml) { // Deploy Activiti XML using Activiti API. String activitiIdString = jobDefinitionHelper.buildActivitiIdString(namespace, jobName); Deployment deployment = activitiRepositoryService.createDeployment().name(activitiIdString).addString(activitiIdString + ACTIVITI_DEPLOY_XML_SUFFIX, activitiJobXml) .deploy(); // Read the created process definition. return activitiRepositoryService.createProcessDefinitionQuery().deploymentId(deployment.getId()).list().get(0); }