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); }
/// <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); }
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); }
public override HistoryEvent createHistoryEvent(HistoryEventProducer producer) { return(producer.createHistoricJobLogFailedEvt(job, exception)); }
public virtual IList <HistoryEvent> createHistoryEvents(HistoryEventProducer producer) { return(Collections.emptyList()); }
/// <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); }
public override HistoryEvent createHistoryEvent(HistoryEventProducer producer) { return(producer.createFormPropertyUpdateEvt(executionEntity, variableName, stringValue, taskId)); }
public override IList <HistoryEvent> createHistoryEvents(HistoryEventProducer producer) { return(producer.createUserOperationLogEvents(context)); }
public override HistoryEvent createHistoryEvent(HistoryEventProducer producer) { return(producer.createTaskInstanceCompleteEvt(taskEntity, deleteReason)); }
public HistoryParseListener(HistoryLevel historyLevel, HistoryEventProducer historyEventProducer) { this.historyLevel = historyLevel; initExecutionListeners(historyEventProducer, historyLevel); }
public override HistoryEvent createHistoryEvent(HistoryEventProducer producer) { return(producer.createBatchEndEvent(batch)); }
public override HistoryEvent createHistoryEvent(HistoryEventProducer producer) { return(producer.createActivityInstanceMigrateEvt(outerInstance)); }
public override HistoryEvent createHistoryEvent(HistoryEventProducer producer) { return(producer.createHistoricExternalTaskLogDeletedEvt(externalTask)); }
public override HistoryEvent createHistoryEvent(HistoryEventProducer producer) { return(producer.createTaskInstanceCreateEvt(task)); }
public override HistoryEvent createHistoryEvent(HistoryEventProducer producer) { return(producer.createHistoricJobLogSuccessfulEvt(job)); }
public override HistoryEvent createHistoryEvent(HistoryEventProducer producer) { return(producer.createHistoricJobLogDeleteEvt(job)); }
public override HistoryEvent createHistoryEvent(HistoryEventProducer producer) { return(producer.createProcessInstanceUpdateEvt((DelegateExecution)processInstance)); }