public CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration, TransactionContextFactory transactionContextFactory) { this.processEngineConfiguration = processEngineConfiguration; this.failedJobCommandFactory = processEngineConfiguration.FailedJobCommandFactory; sessionFactories = processEngineConfiguration.SessionFactories; this.transactionContext = transactionContextFactory.openTransactionContext(this); this.restrictUserOperationLogToAuthenticatedUsers = processEngineConfiguration.RestrictUserOperationLogToAuthenticatedUsers; }
public virtual Void execute(CommandContext commandContext) { initTotalRetries(commandContext); logJobFailure(commandContext); FailedJobCommandFactory failedJobCommandFactory = commandContext.FailedJobCommandFactory; //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.engine.impl.interceptor.Command<Object> cmd = failedJobCommandFactory.getCommand(jobId, exception); Command <object> cmd = failedJobCommandFactory.getCommand(jobId, exception); commandExecutor.execute(new CommandAnonymousInnerClass(this, commandContext, cmd)); return(null); }