BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
TaskCompletionHandler.h
Go to the documentation of this file.
1
#ifndef BPMNOS_Execution_TaskCompletionHandler_H
2
#define BPMNOS_Execution_TaskCompletionHandler_H
3
4
#include <
bpmn++.h
>
5
#include "
execution/engine/src/EventDispatcher.h
"
6
7
namespace
BPMNOS::Execution
{
8
9
/**
10
* @brief EventDispatcher for task completion events.
11
*
12
* Iterates tokensAwaitingCompletionEvent and dispatches CompletionEvent
13
* with status from scenario->getTaskCompletionStatus().
14
*/
15
class
TaskCompletionHandler
:
public
EventDispatcher
{
16
public
:
17
std::shared_ptr<Event>
dispatchEvent
(
const
SystemState
* systemState)
override
;
18
};
19
20
}
// namespace BPMNOS::Execution
21
22
#endif
// BPMNOS_Execution_TaskCompletionHandler_H
EventDispatcher.h
bpmn++.h
BPMNOS::Execution::EventDispatcher
Definition
EventDispatcher.h:11
BPMNOS::Execution::SystemState
A class representing the state that the execution or simulation of a given scenario is in.
Definition
SystemState.h:21
BPMNOS::Execution::TaskCompletionHandler
EventDispatcher for task completion events.
Definition
TaskCompletionHandler.h:15
BPMNOS::Execution::TaskCompletionHandler::dispatchEvent
std::shared_ptr< Event > dispatchEvent(const SystemState *systemState) override
Definition
TaskCompletionHandler.cpp:8
BPMNOS::Execution
Definition
Controller.h:9