Пример #1
0
            public override HistoryEvent createHistoryEvent(HistoryEventProducer producer)
            {
                HistoricProcessInstanceEventEntity processInstanceUpdateEvt = (HistoricProcessInstanceEventEntity)producer.createProcessInstanceUpdateEvt((DelegateExecution)processInstance);

                if (SuspensionState_Fields.SUSPENDED.StateCode == outerInstance.NewSuspensionState.StateCode)
                {
                    processInstanceUpdateEvt.State = org.camunda.bpm.engine.history.HistoricProcessInstance_Fields.STATE_SUSPENDED;
                }
                else
                {
                    processInstanceUpdateEvt.State = org.camunda.bpm.engine.history.HistoricProcessInstance_Fields.STATE_ACTIVE;
                }
                return(processInstanceUpdateEvt);
            }
Пример #2
0
        /// <summary>
        /// Process an <seealso cref="HistoryEvent"/> and handle them directly after creation.
        /// The <seealso cref="HistoryEvent"/> is created with the help of the given
        /// <seealso cref="HistoryEventCreator"/> implementation.
        /// </summary>
        /// <param name="creator"> the creator is used to create the <seealso cref="HistoryEvent"/> which should be thrown </param>
        public static void processHistoryEvents(HistoryEventCreator creator)
        {
            HistoryEventProducer historyEventProducer = Context.ProcessEngineConfiguration.HistoryEventProducer;
            HistoryEventHandler  historyEventHandler  = Context.ProcessEngineConfiguration.HistoryEventHandler;

            HistoryEvent singleEvent = creator.createHistoryEvent(historyEventProducer);

            if (singleEvent != null)
            {
                historyEventHandler.handleEvent(singleEvent);
            }

            IList <HistoryEvent> eventList = creator.createHistoryEvents(historyEventProducer);

            historyEventHandler.handleEvents(eventList);
        }
Пример #3
0
            public override HistoryEvent createHistoryEvent(HistoryEventProducer producer)
            {
                HistoryEvent @event = null;

                if (HistoryEvent.INCIDENT_CREATE.Equals(eventType.EventName))
                {
                    @event = producer.createHistoricIncidentCreateEvt(outerInstance);
                }
                else if (HistoryEvent.INCIDENT_RESOLVE.Equals(eventType.EventName))
                {
                    @event = producer.createHistoricIncidentResolveEvt(outerInstance);
                }
                else if (HistoryEvent.INCIDENT_DELETE.Equals(eventType.EventName))
                {
                    @event = producer.createHistoricIncidentDeleteEvt(outerInstance);
                }
                return(@event);
            }
Пример #4
0
 public override HistoryEvent createHistoryEvent(HistoryEventProducer producer)
 {
     return(producer.createHistoricJobLogFailedEvt(job, exception));
 }
Пример #5
0
 public virtual IList <HistoryEvent> createHistoryEvents(HistoryEventProducer producer)
 {
     return(Collections.emptyList());
 }
Пример #6
0
 /// <summary>
 /// Creates the <seealso cref="HistoryEvent"/> with the help off the given
 /// <seealso cref="HistoryEventProducer"/>.
 /// </summary>
 /// <param name="producer"> the producer which is used for the creation </param>
 /// <returns> the created <seealso cref="HistoryEvent"/> </returns>
 public virtual HistoryEvent createHistoryEvent(HistoryEventProducer producer)
 {
     return(null);
 }
Пример #7
0
 public override HistoryEvent createHistoryEvent(HistoryEventProducer producer)
 {
     return(producer.createFormPropertyUpdateEvt(executionEntity, variableName, stringValue, taskId));
 }
Пример #8
0
 public override IList <HistoryEvent> createHistoryEvents(HistoryEventProducer producer)
 {
     return(producer.createUserOperationLogEvents(context));
 }
Пример #9
0
 public override HistoryEvent createHistoryEvent(HistoryEventProducer producer)
 {
     return(producer.createTaskInstanceCompleteEvt(taskEntity, deleteReason));
 }
Пример #10
0
 public HistoryParseListener(HistoryLevel historyLevel, HistoryEventProducer historyEventProducer)
 {
     this.historyLevel = historyLevel;
     initExecutionListeners(historyEventProducer, historyLevel);
 }
Пример #11
0
 public override HistoryEvent createHistoryEvent(HistoryEventProducer producer)
 {
     return(producer.createBatchEndEvent(batch));
 }
Пример #12
0
 public override HistoryEvent createHistoryEvent(HistoryEventProducer producer)
 {
     return(producer.createActivityInstanceMigrateEvt(outerInstance));
 }
Пример #13
0
 public override HistoryEvent createHistoryEvent(HistoryEventProducer producer)
 {
     return(producer.createHistoricExternalTaskLogDeletedEvt(externalTask));
 }
Пример #14
0
 public override HistoryEvent createHistoryEvent(HistoryEventProducer producer)
 {
     return(producer.createTaskInstanceCreateEvt(task));
 }
Пример #15
0
 public override HistoryEvent createHistoryEvent(HistoryEventProducer producer)
 {
     return(producer.createHistoricJobLogSuccessfulEvt(job));
 }
Пример #16
0
 public override HistoryEvent createHistoryEvent(HistoryEventProducer producer)
 {
     return(producer.createHistoricJobLogDeleteEvt(job));
 }
Пример #17
0
 public override HistoryEvent createHistoryEvent(HistoryEventProducer producer)
 {
     return(producer.createProcessInstanceUpdateEvt((DelegateExecution)processInstance));
 }