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
IEventProcessor
notifyStartedActivities
in interface IEventProcessor
enabledActivities
- array of activities to enableBPSimulatorException
public void notifyCollaboration(ProcessActivityCollaboration collaboration) throws BPSimulatorException
IEventProcessor
notifyCollaboration
in interface IEventProcessor
BPSimulatorException
public IProcessScheduler getProcessScheduler()
public void setProcessScheduler(IProcessScheduler processScheduler)
public void processEvents() throws BPSimulatorException, InterruptedException
IEventProcessor
processEvents
in interface IEventProcessor
BPSimulatorException
InterruptedException
public void setProcessLogger(IProcessLogger processLogger)
public IProcessLogger getProcessLogger()
public ProcessActivityCollaboration getRegisteredMessage(String eventId)
IEventProcessor
getRegisteredMessage
in interface IEventProcessor
eventId
- Source event with the same associated Activity which one to
replace if message has been registeredCopyright © 2020 Pivotal Software, Inc.. All rights reserved.