//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void handleInvocation(final DelegateInvocation invocation) throws Exception //JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET: public virtual void handleInvocation(DelegateInvocation invocation) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.application.ProcessApplicationReference processApplication = getProcessApplicationForInvocation(invocation); ProcessApplicationReference processApplication = getProcessApplicationForInvocation(invocation); if (processApplication != null && ProcessApplicationContextUtil.requiresContextSwitch(processApplication)) { Context.executeWithinProcessApplication(new CallableAnonymousInnerClass(this, invocation) , processApplication, new InvocationContext(invocation.ContextExecution)); } else { handleInvocationInContext(invocation); } }
//JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET: //ORIGINAL LINE: protected org.camunda.bpm.application.ProcessApplicationReference getProcessApplicationForInvocation(final DelegateInvocation invocation) protected internal virtual ProcessApplicationReference getProcessApplicationForInvocation(DelegateInvocation invocation) { BaseDelegateExecution contextExecution = invocation.ContextExecution; ResourceDefinitionEntity contextResource = invocation.ContextResource; if (contextExecution != null) { return(ProcessApplicationContextUtil.getTargetProcessApplication((CoreExecution)contextExecution)); } else if (contextResource != null) { return(ProcessApplicationContextUtil.getTargetProcessApplication(contextResource)); } else { return(null); } }