Esempio n. 1
0
        protected internal virtual void InitExecutionListeners(IHistoryEventProducer historyEventProducer,
                                                               IHistoryLevel historyLevel)
        {
            ProcessInstanceStartListener = new ProcessInstanceStartListener(historyEventProducer, historyLevel);
            ProcessInstanceEndListener   = new ProcessInstanceEndListener(historyEventProducer, historyLevel);

            ActivityInstanceStartListener = new ActivityInstanceStartListener(historyEventProducer, historyLevel);
            ActivityInstanceEndListener   = new ActivityInstanceEndListener(historyEventProducer, historyLevel);

            UserTaskAssignmentHandler = new ActivityInstanceUpdateListener(historyEventProducer, historyLevel);
            UserTaskIdHandler         = UserTaskAssignmentHandler;
        }
Esempio n. 2
0
            public override HistoryEvent CreateHistoryEvent(IHistoryEventProducer producer)
            {
                HistoricProcessInstanceEventEntity processInstanceUpdateEvt = (HistoricProcessInstanceEventEntity)producer.CreateProcessInstanceUpdateEvt((IDelegateExecution)_processInstance);

                if (SuspensionStateFields.Suspended.StateCode == _outerInstance.NewSuspensionState.StateCode)
                {
                    processInstanceUpdateEvt.State = HistoricProcessInstanceFields.StateSuspended;
                }
                else
                {
                    processInstanceUpdateEvt.State = HistoricProcessInstanceFields.StateActive;
                }
                return(processInstanceUpdateEvt);
            }
Esempio n. 3
0
            public override HistoryEvent CreateHistoryEvent(IHistoryEventProducer producer)
            {
                HistoryEvent @event = null;

                if (HistoryEventTypes.IdentityLinkAdd.Equals(_eventType))
                {
                    @event = producer.CreateHistoricIdentityLinkAddEvent(_outerInstance);
                }
                else if (HistoryEventTypes.IdentityLinkDelete.Equals(_eventType))
                {
                    @event = producer.CreateHistoricIdentityLinkDeleteEvent(_outerInstance);
                }
                return(@event);
            }
Esempio n. 4
0
            public override HistoryEvent CreateHistoryEvent(IHistoryEventProducer producer)
            {
                HistoryEvent @event = null;

                if (HistoryEventTypes.IncidentCreate.EventName.Equals(_eventType.EventName))
                {
                    @event = producer.CreateHistoricIncidentCreateEvt(_outerInstance);
                }
                else if (HistoryEventTypes.IncidentResolve.EventName.Equals(_eventType.EventName))
                {
                    @event = producer.CreateHistoricIncidentResolveEvt(_outerInstance);
                }
                else if (HistoryEventTypes.IncidentDelete.EventName.Equals(_eventType.EventName))
                {
                    @event = producer.CreateHistoricIncidentDeleteEvt(_outerInstance);
                }
                return(@event);
            }
 public ActivityInstanceEndListener(IHistoryEventProducer historyEventProducer, IHistoryLevel historyLevel)
     : base(historyEventProducer, historyLevel)
 {
 }
Esempio n. 6
0
 public override HistoryEvent CreateHistoryEvent(IHistoryEventProducer producer)
 {
     return(producer.CreateHistoricJobLogFailedEvt(_job, _exception));
 }
Esempio n. 7
0
 /// <summary>
 ///     Creates the <seealso cref="HistoryEvent" /> with the help off the given
 ///     <seealso cref="IHistoryEventProducer" />.
 /// </summary>
 /// <param name="producer"> the producer which is used for the creation </param>
 /// <returns> the created <seealso cref="HistoryEvent" /> </returns>
 public virtual HistoryEvent CreateHistoryEvent(IHistoryEventProducer producer)
 {
     return(null);
 }
Esempio n. 8
0
 public virtual IList <HistoryEvent> CreateHistoryEvents(IHistoryEventProducer producer)
 {
     return(new List <HistoryEvent>());
 }
Esempio n. 9
0
 public override HistoryEvent CreateHistoryEvent(IHistoryEventProducer producer)
 {
     throw new NotImplementedException();
     //return producer.createTaskInstanceMigrateEvt((DelegateTask)outerInstance.userTask);
     return(null);
 }
 public override HistoryEvent CreateHistoryEvent(IHistoryEventProducer producer)
 {
     return(producer.CreateActivityInstanceMigrateEvt(_outerInstance));
 }
 public ProcessInstanceUpdateListener(IHistoryEventProducer historyEventProducer, IHistoryLevel historyLevel)
     : base(historyEventProducer, historyLevel)
 {
 }
Esempio n. 12
0
 public override HistoryEvent CreateHistoryEvent(IHistoryEventProducer producer)
 {
     return(producer.CreateTaskInstanceCompleteEvt(_taskEntity, _deleteReason));
 }
 public override HistoryEvent CreateHistoryEvent(IHistoryEventProducer producer)
 {
     return(producer.CreateHistoricVariableMigrateEvt(_outerInstance.Variable));
 }
Esempio n. 14
0
 public HistoryParseListener(IHistoryLevel historyLevel, IHistoryEventProducer historyEventProducer)
 {
     this.HistoryLevel = historyLevel;
     InitExecutionListeners(historyEventProducer, historyLevel);
 }
Esempio n. 15
0
 public override HistoryEvent CreateHistoryEvent(IHistoryEventProducer producer)
 {
     return(producer.CreateBatchStartEvent(_batch));
 }
Esempio n. 16
0
 public override HistoryEvent CreateHistoryEvent(IHistoryEventProducer producer)
 {
     //return producer.CreateFormPropertyUpdateEvt(executionEntity, variableName, stringValue, taskId);
     return(null);
 }
Esempio n. 17
0
 public override HistoryEvent CreateHistoryEvent(IHistoryEventProducer producer)
 {
     return(producer.CreateHistoricIncidentMigrateEvt((IIncident)_outerInstance.Incident));
 }
Esempio n. 18
0
 public override HistoryEvent CreateHistoryEvent(IHistoryEventProducer producer)
 {
     return(producer.CreateHistoricJobLogSuccessfulEvt(_job));
 }
Esempio n. 19
0
 public override IList <HistoryEvent> CreateHistoryEvents(IHistoryEventProducer producer)
 {
     return(producer.CreateUserOperationLogEvents(_context));
 }
Esempio n. 20
0
 public override HistoryEvent CreateHistoryEvent(IHistoryEventProducer producer)
 {
     return(producer.CreateHistoricJobLogDeleteEvt(_job));
 }
 public override HistoryEvent CreateHistoryEvent(IHistoryEventProducer producer)
 {
     return(producer.CreateProcessInstanceUpdateEvt(_execution));
 }
Esempio n. 22
0
 public override HistoryEvent CreateHistoryEvent(IHistoryEventProducer producer)
 {
     return(producer.CreateTaskInstanceCreateEvt(_task));
 }
 public override HistoryEvent CreateHistoryEvent(IHistoryEventProducer producer)
 {
     return(producer.CreateHistoricVariableUpdateEvt(_variableInstance, _sourceScope));
 }
Esempio n. 24
0
 public HistoryTaskListener(IHistoryEventProducer historyEventProducer, IHistoryLevel historyLevel)
 {
     EventProducer     = historyEventProducer;
     this.HistoryLevel = historyLevel;
 }
 public override HistoryEvent CreateHistoryEvent(IHistoryEventProducer producer)
 {
     return(producer.CreateHistoricExternalTaskLogDeletedEvt(_externalTask));
 }