BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
ErrorEvent.h
Go to the documentation of this file.
1#ifndef BPMNOS_Execution_ErrorEvent_H
2#define BPMNOS_Execution_ErrorEvent_H
3
4#include <bpmn++.h>
6
7namespace BPMNOS::Execution {
8
9/**
10 * @brief Represents the event of an error being raised.
11 *
12 * Transition from any state to State::FAILED
13 */
14struct ErrorEvent : Event {
15 ErrorEvent(const Token* token);
16 void processBy(Engine* engine) const override;
17
18 nlohmann::ordered_json jsonify() const override;
19};
20
21} // namespace BPMNOS::Execution
22
23#endif // BPMNOS_Execution_ErrorEvent_H
24
Represents a token running through a (sub)process.
Definition Token.h:35
Represents the event of an error being raised.
Definition ErrorEvent.h:14
ErrorEvent(const Token *token)
Definition ErrorEvent.cpp:6
nlohmann::ordered_json jsonify() const override
void processBy(Engine *engine) const override
const Token * token
Definition Event.h:18