Ejemplo n.º 1
0
 protected internal virtual void EnsureTenantAuthorized(CommandContext commandContext, ProcessDefinitionEntity processDefinition)
 {
     if (!commandContext.TenantManager.IsAuthenticatedTenant(processDefinition.TenantId))
     {
         throw LOG.ExceptionCommandWithUnauthorizedTenant("restart process instances of process definition '" + processDefinition.Id + "'");
     }
 }
Ejemplo n.º 2
0
 public virtual void CheckEvaluateDecision(IDecisionDefinition decisionDefinition)
 {
     if (!TenantManager.IsAuthenticatedTenant(decisionDefinition.TenantId))
     {
         throw Log.ExceptionCommandWithUnauthorizedTenant("evaluate the decision '" + decisionDefinition.Id + "'");
     }
 }