Search in sources :

Example 1 with ProcessEvent

use of org.apache.inlong.manager.workflow.event.process.ProcessEvent in project incubator-inlong by apache.

the class EventListenerServiceImpl method executeProcessEventListener.

@Override
public void executeProcessEventListener(Integer processId, String listener) {
    WorkflowContext context = workflowContextBuilder.buildContextForProcess(processId);
    ProcessEvent processEvent = getProcessEventListener(context.getProcess(), listener).event();
    context.setCurrentElement(getCurrentElement(context.getProcess(), processEvent));
    workflowEventNotifier.getProcessEventNotifier().notify(listener, true, context);
}
Also used : ProcessEvent(org.apache.inlong.manager.workflow.event.process.ProcessEvent) WorkflowContext(org.apache.inlong.manager.workflow.WorkflowContext)

Aggregations

WorkflowContext (org.apache.inlong.manager.workflow.WorkflowContext)1 ProcessEvent (org.apache.inlong.manager.workflow.event.process.ProcessEvent)1