parameters.put("processDefinitionKey", processDefinitionKey);
return (ProcessDefinitionEntity) getDbEntityManager().selectOne("selectProcessDefinitionByDeploymentAndKey", parameters);
}
public ProcessDefinition findProcessDefinitionByKeyAndVersion(String processDefinitionKey, Integer processDefinitionVersion) {
ProcessDefinitionQueryImpl processDefinitionQuery = new ProcessDefinitionQueryImpl()
.processDefinitionKey(processDefinitionKey)
.processDefinitionVersion(processDefinitionVersion);
List<ProcessDefinition> results = findProcessDefinitionsByQueryCriteria(processDefinitionQuery, null);
if (results.size() == 1) {
return results.get(0);