|
Maki
Formally verfied low-code orchestration
|
Represents a flow in the system. More...
#include <flow.h>
Public Member Functions | |
| Flow (const QString &flowName, std::shared_ptr< FlowSaveInfo > storage) | |
| Constructs a new Flow object. | |
| QString | id () const |
| Returns the unique identifier of the flow. | |
| int | type () const |
| Returns the type of the flow. | |
| QString | name () const |
| Returns the name of the flow. | |
| bool | modifiable () const |
| Checks if the flow is modifiable. | |
| void | removeNode (NodeItem *node) |
| Removes a node from the flow. | |
| void | updateFlow (NodeItem *node, std::shared_ptr< NodeSaveInfo > storage) |
| Updates a node in the flow with new save information. | |
| QVector< std::shared_ptr< NodeSaveInfo > > | getNodes () const |
| Retrieves a list of all nodes in the flow. | |
| QVector< TransitionItem * > | transitions () const |
| Returns a list of transitions connected to this node. | |
| void | addTransition (TransitionItem *transition) |
| Adds a transition to the node. | |
| void | removeTransition (TransitionItem *transition) |
| Removes a transition from the node. | |
Private Attributes | |
| const QString | mId |
| Unique identifier for the flow. | |
| QString | mName |
| Name of the flow. | |
| std::shared_ptr< FlowSaveInfo > | mStorage |
| Storage for flow save information. | |
| QVector< TransitionItem * > | mTransitions |
| List of transitions in this flow. | |
Represents a flow in the system.
| Flow::Flow | ( | const QString & | flowName, |
| std::shared_ptr< FlowSaveInfo > | storage ) |
Constructs a new Flow object.
| flowName | The name of the flow. |
| storage | A shared pointer to the flow save information. |
| void Flow::addTransition | ( | TransitionItem * | transition | ) |
Adds a transition to the node.
| transition | The TransitionItem to add. |
| QVector< std::shared_ptr< NodeSaveInfo > > Flow::getNodes | ( | ) | const |
Retrieves a list of all nodes in the flow.
| QString Flow::id | ( | ) | const |
Returns the unique identifier of the flow.
| bool Flow::modifiable | ( | ) | const |
Checks if the flow is modifiable.
| QString Flow::name | ( | ) | const |
Returns the name of the flow.
| void Flow::removeNode | ( | NodeItem * | node | ) |
Removes a node from the flow.
| node | The node to remove. |
| void Flow::removeTransition | ( | TransitionItem * | transition | ) |
Removes a transition from the node.
| transition | The TransitionItem to remove. |
| QVector< TransitionItem * > Flow::transitions | ( | ) | const |
Returns a list of transitions connected to this node.
| int Flow::type | ( | ) | const |
Returns the type of the flow.
| void Flow::updateFlow | ( | NodeItem * | node, |
| std::shared_ptr< NodeSaveInfo > | storage ) |
Updates a node in the flow with new save information.
| node | The node to update. |
| storage | A shared pointer to the new node save information. |