Ejemplo n.º 1
0
        protected internal virtual DeploymentWithDefinitions tryToRedeploy(RedeploymentDto redeployment)
        {
            RepositoryService repositoryService = ProcessEngine.RepositoryService;

            DeploymentBuilder builder = repositoryService.createDeployment();

            builder.nameFromDeployment(deploymentId);

            string tenantId = Deployment.TenantId;

            if (!string.ReferenceEquals(tenantId, null))
            {
                builder.tenantId(tenantId);
            }

            if (redeployment != null)
            {
                builder = addRedeploymentResources(builder, redeployment);
            }
            else
            {
                builder.addDeploymentResources(deploymentId);
            }

            return(builder.deployWithResult());
        }