Example #1
0
        protected internal virtual AbstractSetJobDefinitionStateCmd createSetJobDefinitionStateCommand(string jobDefinitionId)
        {
            AbstractSetJobDefinitionStateCmd suspendJobDefinitionCmd = createSetJobDefinitionStateCommand(new UpdateJobDefinitionSuspensionStateBuilderImpl()
                                                                                                          .byJobDefinitionId(jobDefinitionId).includeJobs(true));

            suspendJobDefinitionCmd.disableLogUserOperation();
            return(suspendJobDefinitionCmd);
        }
Example #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public Void call() throws Exception
            public Void call()
            {
                UpdateJobDefinitionSuspensionStateBuilderImpl jobDefinitionSuspensionStateBuilder = outerInstance.createJobDefinitionCommandBuilder();
                AbstractSetJobDefinitionStateCmd jobDefinitionCmd = outerInstance.getSetJobDefinitionStateCmd(jobDefinitionSuspensionStateBuilder);

                jobDefinitionCmd.disableLogUserOperation();
                jobDefinitionCmd.execute(commandContext);
                return(null);
            }