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 + "'"); } }
public virtual void CheckEvaluateDecision(IDecisionDefinition decisionDefinition) { if (!TenantManager.IsAuthenticatedTenant(decisionDefinition.TenantId)) { throw Log.ExceptionCommandWithUnauthorizedTenant("evaluate the decision '" + decisionDefinition.Id + "'"); } }