public class EventProcessor extends Object implements IEventProcessor
| Constructor and Description |
|---|
EventProcessor(BPSimulator simulationInstance)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IProcessLogger |
getProcessLogger() |
IProcessScheduler |
getProcessScheduler() |
ProcessActivityCollaboration |
getRegisteredMessage(String eventId)
Returns already created instance of a message event which was discarded if
there exist one and discards the new one.
|
void |
notifyCollaboration(ProcessActivityCollaboration collaboration)
Notify event processor of an inbound collaboration
|
void |
notifyStartedActivities(ProcessActivity[] enabledActivities)
Enables list of activities in a process instance.
|
void |
processEvents()
Starts processing event from the queue.
|
void |
setProcessLogger(IProcessLogger processLogger) |
void |
setProcessScheduler(IProcessScheduler processScheduler) |
public EventProcessor(BPSimulator simulationInstance)
public void notifyStartedActivities(ProcessActivity[] enabledActivities) throws BPSimulatorException
IEventProcessornotifyStartedActivities in interface IEventProcessorenabledActivities - array of activities to enableBPSimulatorExceptionpublic void notifyCollaboration(ProcessActivityCollaboration collaboration) throws BPSimulatorException
IEventProcessornotifyCollaboration in interface IEventProcessorBPSimulatorExceptionpublic IProcessScheduler getProcessScheduler()
public void setProcessScheduler(IProcessScheduler processScheduler)
public void processEvents()
throws BPSimulatorException,
InterruptedException
IEventProcessorprocessEvents in interface IEventProcessorBPSimulatorExceptionInterruptedExceptionpublic void setProcessLogger(IProcessLogger processLogger)
public IProcessLogger getProcessLogger()
public ProcessActivityCollaboration getRegisteredMessage(String eventId)
IEventProcessorgetRegisteredMessage in interface IEventProcessoreventId - Source event with the same associated Activity which one to
replace if message has been registeredCopyright © 2020 Pivotal Software, Inc.. All rights reserved.