BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
MessageDeliveryEvent.h
Go to the documentation of this file.
1#ifndef BPMNOS_Execution_MessageDeliveryEvent_H
2#define BPMNOS_Execution_MessageDeliveryEvent_H
3
4#include <bpmn++.h>
8
9namespace BPMNOS::Execution {
10
11/**
12 * @brief Represents the event of a message from the message pool being delivered.
13 *
14 * Transition from State::BUSY to State::COMPLETED
15 */
16struct MessageDeliveryEvent : virtual Event {
18 void processBy(Engine* engine) const override;
19 std::weak_ptr<const Message> message;
20
21 nlohmann::ordered_json jsonify() const override;
22};
23
24} // namespace BPMNOS::Execution
25
26#endif // BPMNOS_Execution_MessageDeliveryEvent_H
27
Represents a token running through a (sub)process.
Definition Token.h:35
const Token * token
Definition Event.h:18
Represents the event of a message from the message pool being delivered.
nlohmann::ordered_json jsonify() const override
std::weak_ptr< const Message > message
MessageDeliveryEvent(const Token *token, const Message *message)
void processBy(Engine *engine) const override