Пример #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: protected void notifyTaskListener(org.camunda.bpm.engine.delegate.DelegateTask task) throws Exception
        protected internal virtual void notifyTaskListener(DelegateTask task)
        {
            ProcessApplicationReference processApp = Context.CurrentProcessApplication;

            try
            {
                ProcessApplicationInterface processApplication = processApp.ProcessApplication;
                TaskListener taskListener = processApplication.TaskListener;
                if (taskListener != null)
                {
                    taskListener.notify(task);
                }
                else
                {
                    LOG.paDoesNotProvideTaskListener(processApp.Name);
                }
            }
            catch (ProcessApplicationUnavailableException e)
            {
                // Process Application unavailable => ignore silently
                LOG.cannotInvokeListenerPaUnavailable(processApp.Name, e);
            }
        }