Example #1
0
//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);
            }
        }