BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
CompletionEvent.h
Go to the documentation of this file.
1#ifndef BPMNOS_Execution_CompletionEvent_H
2#define BPMNOS_Execution_CompletionEvent_H
3
4#include <bpmn++.h>
6
7namespace BPMNOS::Execution {
8
9/**
10 * @brief Class representing the event of a token having completed an activity.
11 *
12 * Transition from State::BUSY to State::COMPLETED
13 */
15 CompletionEvent(const Token* token, std::optional<Values> updatedStatus = std::nullopt);
16 void processBy(Engine* engine) const;
17 std::optional<Values> updatedStatus;
18
19 nlohmann::ordered_json jsonify() const override;
20};
21
22} // namespace BPMNOS::Execution
23
24#endif // BPMNOS_Execution_CompletionEvent_H
25
Represents a token running through a (sub)process.
Definition Token.h:35
Class representing the event of a token having completed an activity.
nlohmann::ordered_json jsonify() const override
void processBy(Engine *engine) const
CompletionEvent(const Token *token, std::optional< Values > updatedStatus=std::nullopt)
std::optional< Values > updatedStatus
const Token * token
Definition Event.h:18