BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
BPMNOS::Execution::CompletionEvent Struct Reference

Class representing the event of a token having completed an activity. More...

Detailed Description

Transition from State::BUSY to State::COMPLETED

Definition at line 14 of file CompletionEvent.h.

#include <CompletionEvent.h>

Inheritance diagram for BPMNOS::Execution::CompletionEvent:

Public Member Functions

 CompletionEvent (const Token *token, std::optional< Values > updatedStatus=std::nullopt)
 
void processBy (Engine *engine) const
 
nlohmann::ordered_json jsonify () const override
 
- Public Member Functions inherited from BPMNOS::Execution::Event
constexpr Type getObservableType () const override
 
 Event (const Token *token)
 
virtual ~Event ()=default
 
template<typename T >
const T * is () const
 Returns a pointer of type T of the Event.
 
- Public Member Functions inherited from BPMNOS::Execution::Observable
 ~Observable ()
 

Public Attributes

std::optional< ValuesupdatedStatus
 
- Public Attributes inherited from BPMNOS::Execution::Event
const Tokentoken
 

Additional Inherited Members

- Public Types inherited from BPMNOS::Execution::Observable
enum class  Type {
  Token , Message , SequentialPerformerUpdate , Event ,
  DataUpdate , EntryRequest , ChoiceRequest , ExitRequest ,
  MessageDeliveryRequest , Count
}
 

Constructor & Destructor Documentation

◆ CompletionEvent()

CompletionEvent::CompletionEvent ( const Token * token,
std::optional< Values > updatedStatus = std::nullopt )

Definition at line 6 of file CompletionEvent.cpp.

Member Function Documentation

◆ jsonify()

nlohmann::ordered_json CompletionEvent::jsonify ( ) const
overridevirtual

Implements BPMNOS::Execution::Event.

Definition at line 16 of file CompletionEvent.cpp.

◆ processBy()

void CompletionEvent::processBy ( Engine * engine) const
virtual

Implements BPMNOS::Execution::Event.

Definition at line 12 of file CompletionEvent.cpp.

Member Data Documentation

◆ updatedStatus

std::optional<Values> BPMNOS::Execution::CompletionEvent::updatedStatus

Definition at line 17 of file CompletionEvent.h.


The documentation for this struct was generated from the following files: