Esempio n. 1
0
        public IEnumerable <HistoryEvent> ActivityScheduledGraph(Identity activityIdentity)
        {
            var historyEvents = new List <HistoryEvent>();
            var eventIds      = EventIds.ScheduledIds(ref _currentEventId);

            historyEvents.Add(new HistoryEvent()
            {
                EventType = EventType.ActivityTaskScheduled,
                EventId   = eventIds.EventId(EventIds.Scheduled),
                ActivityTaskScheduledEventAttributes = new ActivityTaskScheduledEventAttributes()
                {
                    ActivityType = new ActivityType()
                    {
                        Name = activityIdentity.Name, Version = activityIdentity.Version
                    },
                    Control    = (new ActivityScheduleData()
                    {
                        PN = activityIdentity.PositionalName
                    }).ToJson(),
                    ActivityId = activityIdentity.Id
                }
            });

            return(historyEvents);
        }