protected internal virtual void ValidateParameters()
        {
            //ensureOnlyOneNotNull("Need to specify either a process instance id or a process definition key.",
            //    processDefinitionId, processDefinitionKey);

            if (!ReferenceEquals(processDefinitionId, null) && IsTenantIdSet)
            {
                throw Log.ExceptionUpdateSuspensionStateForTenantOnlyByProcessDefinitionKey();
            }

            EnsureUtil.EnsureNotNull("commandExecutor", CommandExecutor);
        }
        protected internal virtual void ValidateParameters()
        {
            EnsureUtil.EnsureOnlyOneNotNull(
                "Need to specify either a job definition id, a process definition id or a process definition key.",
                JobDefinitionId, ProcessDefinitionId, ProcessDefinitionKey);

            if (ProcessDefinitionTenantIdSet &
                (!ReferenceEquals(JobDefinitionId, null) || !ReferenceEquals(ProcessDefinitionId, null)))
            {
                throw Log.ExceptionUpdateSuspensionStateForTenantOnlyByProcessDefinitionKey();
            }

            EnsureUtil.EnsureNotNull("commandExecutor", CommandExecutor);
        }