BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
EntryEvent.h
Go to the documentation of this file.
1#ifndef BPMNOS_Execution_EntryEvent_H
2#define BPMNOS_Execution_EntryEvent_H
3
4#include <bpmn++.h>
7
8namespace BPMNOS::Execution {
9
10/**
11 * @brief Represents the event of a token entering a node.
12 *
13 * Transition from State::READY to State::ENTERED
14 */
15struct EntryEvent : virtual Event {
16 EntryEvent(const Token* token, std::optional<Values> entryStatus = std::nullopt);
17
18 void processBy(Engine* engine) const override;
19 std::optional<Values> entryStatus;
20
21 nlohmann::ordered_json jsonify() const override;
22};
23
24} // namespace BPMNOS::Execution
25
26#endif // BPMNOS_Execution_EntryEvent_H
27
Represents a token running through a (sub)process.
Definition Token.h:35
Represents the event of a token entering a node.
Definition EntryEvent.h:15
std::optional< Values > entryStatus
Definition EntryEvent.h:19
EntryEvent(const Token *token, std::optional< Values > entryStatus=std::nullopt)
Definition EntryEvent.cpp:6
nlohmann::ordered_json jsonify() const override
void processBy(Engine *engine) const override
const Token * token
Definition Event.h:18