BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
EntryDecision.h
Go to the documentation of this file.
1#ifndef BPMNOS_Execution_EntryDecision_H
2#define BPMNOS_Execution_EntryDecision_H
3
4#include <bpmn++.h>
8
9namespace BPMNOS::Execution {
10
11/**
12 * @brief Represents the event of a token entering a node.
13 *
14 * Transition from State::READY to State::ENTERED
15 */
18 std::optional<double> evaluate() override;
19
20 nlohmann::ordered_json jsonify() const override;
21};
22
23} // namespace BPMNOS::Execution
24
25#endif // BPMNOS_Execution_EntryDecision_H
26
Represents an abstract base class for a pending decision.
Definition Decision.h:15
Represents an abstract base class for a pending Evaluator.
Definition Evaluator.h:15
Represents a token running through a (sub)process.
Definition Token.h:35
Represents the event of a token entering a node.
std::optional< double > evaluate() override
Evaluates the reward for the decision. Returns null if decision is infeasible.
EntryDecision(const Token *token, Evaluator *evaluator)
nlohmann::ordered_json jsonify() const override
Represents the event of a token entering a node.
Definition EntryEvent.h:15
const Token * token
Definition Event.h:18