BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
ChoiceEvent.h
Go to the documentation of this file.
1#ifndef BPMNOS_Execution_ChoiceEvent_H
2#define BPMNOS_Execution_ChoiceEvent_H
3
4#include <bpmn++.h>
7
8namespace BPMNOS::Execution {
9
10/**
11 * @brief Represents the event that choices are made for a DecisionTask.
12 *
13 * Transition from State::BUSY to State::COMPLETED
14 */
15struct ChoiceEvent : virtual Event {
17 void processBy(Engine* engine) const;
18 Values choices; // attribute values in order of the choices to be made
19
20 nlohmann::ordered_json jsonify() const override;
21};
22
23} // namespace BPMNOS::Execution
24
25#endif // BPMNOS_Execution_ChoiceEvent_H
Represents a token running through a (sub)process.
Definition Token.h:35
Represents the event that choices are made for a DecisionTask.
Definition ChoiceEvent.h:15
void processBy(Engine *engine) const
ChoiceEvent(const Token *token, Values choices)
nlohmann::ordered_json jsonify() const override
const Token * token
Definition Event.h:18