//JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET: //ORIGINAL LINE: public Void execute(final org.camunda.bpm.engine.impl.interceptor.CommandContext commandContext) public virtual Void execute(CommandContext commandContext) { checkParameters(commandContext); checkAuthorization(commandContext); if (executionDate == null) { updateSuspensionState(commandContext, NewSuspensionState); if (IncludeSubResources) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final AbstractSetStateCmd cmd = getNextCommand(); AbstractSetStateCmd cmd = NextCommand; if (cmd != null) { cmd.disableLogUserOperation(); // avoids unnecessary authorization checks // pre-requirement: the necessary authorization check // for included resources should be done before this // call. commandContext.runWithoutAuthorization(new CallableAnonymousInnerClass(this, commandContext, cmd)); } } triggerHistoryEvent(commandContext); } else { scheduleSuspensionStateUpdate(commandContext); } if (!LogUserOperationDisabled) { logUserOperation(commandContext); } return(null); }
public CallableAnonymousInnerClass(AbstractSetStateCmd outerInstance, CommandContext commandContext, org.camunda.bpm.engine.impl.cmd.AbstractSetStateCmd cmd) { this.outerInstance = outerInstance; this.commandContext = commandContext; this.cmd = cmd; }