8 , message(message->weak_from_this())
17 nlohmann::ordered_json jsonObject;
19 jsonObject[
"event"] =
"messagedelivery";
24 if (
auto object =
message.lock() ) {
25 jsonObject[
"message"] =
object->jsonify();
void process(const ReadyEvent *event)
const BPMN::Process * process
Pointer to the top-level process.
Represents a token running through a (sub)process.
const BPMN::FlowNode * node
const StateMachine * owner
State machine owning the token.
SharedValues * data
Pointer to the data of the owner or owned state machine subprocesses)
std::string id
Id of element.
std::string to_string(number numericValue, const ValueType &type)
Converts a number to a string.
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
static constexpr size_t Instance