// helper methods ///////////////////////////////////////////////////////////

        protected internal virtual void addActivityHandlers(ActivityImpl activity)
        {
            if (HistoryLevel.IsHistoryEventProduced(HistoryEventTypes.ActivityInstanceStart, null))
            {
                activity.AddBuiltInListener(PvmEvent.EventNameStart, ActivityInstanceStartListener, 0);
            }
            if (HistoryLevel.IsHistoryEventProduced(HistoryEventTypes.ActivityInstanceEnd, null))
            {
                activity.AddBuiltInListener(PvmEvent.EventNameEnd, ActivityInstanceEndListener);
            }
        }
Beispiel #2
0
 protected internal virtual void AddListeners(ActivityImpl activity)
 {
     activity.AddBuiltInListener(ExecutionListenerFields.EventNameStart, ActivityInstanceStartCounter);
     activity.AddBuiltInListener(ExecutionListenerFields.EventNameEnd, ActivityInstanceEndCounter);
 }