Esempio n. 1
0
        public virtual IProcessDefinition FindDeployedProcessDefinitionByKeyAndVersionAndTenantId(string processDefinitionKey, int?processDefinitionVersion, string tenantId)
        {
            IProcessDefinition processDefinition = (IProcessDefinitionEntity)processDefinitionEntityManager.FindProcessDefinitionByKeyAndVersionAndTenantId(processDefinitionKey, processDefinitionVersion, tenantId);

            if (processDefinition == null)
            {
                throw new ActivitiObjectNotFoundException("no processes deployed with key = '" + processDefinitionKey + "' and version = '" + processDefinitionVersion + "'", typeof(IProcessDefinition));
            }
            processDefinition = ResolveProcessDefinition(processDefinition).ProcessDefinition;
            return(processDefinition);
        }