示例#1
0
 protected internal virtual bool IsInitialEvent(HistoryEvent historyEvent)
 {
     return(historyEvent.EventType == null ||
            historyEvent.IsEventOfType(HistoryEventTypes.ActivityInstanceStart) ||
            historyEvent.IsEventOfType(HistoryEventTypes.ProcessInstanceStart) ||
            historyEvent.IsEventOfType(HistoryEventTypes.TaskInstanceCreate) ||
            historyEvent.IsEventOfType(HistoryEventTypes.FormPropertyUpdate) ||
            historyEvent.IsEventOfType(HistoryEventTypes.IncidentCreate) ||
            historyEvent.IsEventOfType(HistoryEventTypes.CaseInstanceCreate) ||
            historyEvent.IsEventOfType(HistoryEventTypes.DmnDecisionEvaluate) ||
            historyEvent.IsEventOfType(HistoryEventTypes.BatchStart) ||
            historyEvent.IsEventOfType(HistoryEventTypes.IdentityLinkAdd) ||
            historyEvent.IsEventOfType(HistoryEventTypes.IdentityLinkDelete));
 }