Search in sources :

Example 1 with DeadlineType

use of org.kie.kogito.internal.process.event.HumanTaskDeadlineEvent.DeadlineType in project kogito-runtimes by kiegroup.

the class KogitoProcessEventSupportImpl method fireTaskNotification.

private void fireTaskNotification(KogitoProcessInstance instance, HumanTaskWorkItem workItem, Map<String, Object> notification, DeadlineType type, KieRuntime kruntime) {
    final HumanTaskDeadlineEvent event = new HumanTaskDeadlineEventImpl(instance, workItem, notification, type, kruntime);
    unitOfWorkManager.currentUnitOfWork().intercept(WorkUnit.create(event, e -> notifyAllListeners(event, KogitoProcessEventListener::onHumanTaskDeadline)));
}
Also used : ProcessStartedEventImpl(org.drools.core.event.ProcessStartedEventImpl) ProcessCompletedEvent(org.kie.api.event.process.ProcessCompletedEvent) KogitoWorkItem(org.kie.kogito.internal.process.runtime.KogitoWorkItem) WorkUnit(org.kie.kogito.uow.WorkUnit) KogitoProcessInstance(org.kie.kogito.internal.process.runtime.KogitoProcessInstance) AbstractEventSupport(org.drools.core.event.AbstractEventSupport) ProcessEventListener(org.kie.api.event.process.ProcessEventListener) DeadlineType(org.kie.kogito.internal.process.event.HumanTaskDeadlineEvent.DeadlineType) KogitoProcessEventListener(org.kie.kogito.internal.process.event.KogitoProcessEventListener) ProcessNodeLeftEvent(org.kie.api.event.process.ProcessNodeLeftEvent) Map(java.util.Map) UnitOfWorkManager(org.kie.kogito.uow.UnitOfWorkManager) SLAViolatedEventImpl(org.drools.core.event.SLAViolatedEventImpl) SignalEvent(org.kie.api.event.process.SignalEvent) ProcessVariableChangedEvent(org.kie.api.event.process.ProcessVariableChangedEvent) SignalEventImpl(org.drools.core.event.SignalEventImpl) ProcessCompletedEventImpl(org.drools.core.event.ProcessCompletedEventImpl) MessageEvent(org.kie.api.event.process.MessageEvent) KogitoNodeInstance(org.kie.kogito.internal.process.runtime.KogitoNodeInstance) MessageEventImpl(org.drools.core.event.MessageEventImpl) List(java.util.List) ProcessNodeTriggeredEvent(org.kie.api.event.process.ProcessNodeTriggeredEvent) Transition(org.kie.kogito.process.workitem.Transition) KieRuntime(org.kie.api.runtime.KieRuntime) KogitoProcessEventSupport(org.kie.kogito.internal.process.event.KogitoProcessEventSupport) HumanTaskDeadlineEvent(org.kie.kogito.internal.process.event.HumanTaskDeadlineEvent) SLAViolatedEvent(org.kie.api.event.process.SLAViolatedEvent) HumanTaskWorkItem(org.kie.kogito.process.workitem.HumanTaskWorkItem) ProcessStartedEvent(org.kie.api.event.process.ProcessStartedEvent) ProcessWorkItemTransitionEvent(org.kie.kogito.internal.process.event.ProcessWorkItemTransitionEvent) HumanTaskDeadlineEvent(org.kie.kogito.internal.process.event.HumanTaskDeadlineEvent) KogitoProcessEventListener(org.kie.kogito.internal.process.event.KogitoProcessEventListener)

Aggregations

List (java.util.List)1 Map (java.util.Map)1 AbstractEventSupport (org.drools.core.event.AbstractEventSupport)1 MessageEventImpl (org.drools.core.event.MessageEventImpl)1 ProcessCompletedEventImpl (org.drools.core.event.ProcessCompletedEventImpl)1 ProcessStartedEventImpl (org.drools.core.event.ProcessStartedEventImpl)1 SLAViolatedEventImpl (org.drools.core.event.SLAViolatedEventImpl)1 SignalEventImpl (org.drools.core.event.SignalEventImpl)1 MessageEvent (org.kie.api.event.process.MessageEvent)1 ProcessCompletedEvent (org.kie.api.event.process.ProcessCompletedEvent)1 ProcessEventListener (org.kie.api.event.process.ProcessEventListener)1 ProcessNodeLeftEvent (org.kie.api.event.process.ProcessNodeLeftEvent)1 ProcessNodeTriggeredEvent (org.kie.api.event.process.ProcessNodeTriggeredEvent)1 ProcessStartedEvent (org.kie.api.event.process.ProcessStartedEvent)1 ProcessVariableChangedEvent (org.kie.api.event.process.ProcessVariableChangedEvent)1 SLAViolatedEvent (org.kie.api.event.process.SLAViolatedEvent)1 SignalEvent (org.kie.api.event.process.SignalEvent)1 KieRuntime (org.kie.api.runtime.KieRuntime)1 HumanTaskDeadlineEvent (org.kie.kogito.internal.process.event.HumanTaskDeadlineEvent)1 DeadlineType (org.kie.kogito.internal.process.event.HumanTaskDeadlineEvent.DeadlineType)1