Пример #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public void notify(org.camunda.bpm.engine.delegate.DelegateExecution execution) throws Exception
        public virtual void notify(DelegateExecution execution)
        {
            if (!execution.hasVariableLocal(variableName))
            {
                return;
            }

            object value = execution.getVariableLocal(variableName);

            VariableEvent @event = new VariableEvent();

            @event.variableName       = variableName;
            @event.variableValue      = value;
            @event.eventName          = execution.EventName;
            @event.activityInstanceId = execution.ActivityInstanceId;

            variableEvents.Add(@event);
        }