bpmn++
A BPMN parser library, written in C++
Loading...
Searching...
No Matches
tProcess.h
Go to the documentation of this file.
1#ifndef XML_bpmn_tProcess_H
2#define XML_bpmn_tProcess_H
3#include <memory>
4#include <optional>
5#include <vector>
6
7#include "../XMLObject.h"
8#include "tCallableElement.h"
9#include "tAuditing.h"
10#include "tMonitoring.h"
11#include "tProperty.h"
12#include "tLaneSet.h"
13#include "tFlowElement.h"
14#include "tArtifact.h"
15#include "tResourceRole.h"
17#include "tProcessType.h"
18
19/**
20 * @brief The `XML::bpmn` namespace contains classes from the following XML-schema(s): @ref xsd/DC.xsd, @ref xsd/DI.xsd, @ref xsd/BPMNDI.xsd, @ref xsd/Semantic.xsd, @ref xsd/BPMN20.xsd.
21 */
22namespace XML::bpmn {
23
24class tAuditing;
25class tMonitoring;
26class tProperty;
27class tLaneSet;
28class tFlowElement;
29class tArtifact;
30class tResourceRole;
31class tCorrelationSubscription;
32class tProcessType;
33
34/**
35 * Overview:
36 * - Element name: tProcess
37 * - XML-Schema: xsd/Semantic.xsd
38 * - XML-Namespace: http://www.omg.org/spec/BPMN/20100524/MODEL
39 *
40 * Members:
41 * - auditing : tAuditing [0..1]
42 * - monitoring : tMonitoring [0..1]
43 * - property : tProperty [0..*]
44 * - laneSet : tLaneSet [0..*]
45 * - flowElement : tFlowElement [0..*]
46 * - artifact : tArtifact [0..*]
47 * - resourceRole : tResourceRole [0..*]
48 * - correlationSubscription : tCorrelationSubscription [0..*]
49 * - supports : QName [0..*]
50 * - processType : tProcessType [0..1]
51 * - isClosed : boolean [0..1]
52 * - isExecutable : boolean [0..1]
53 * - definitionalCollaborationRef : QName [0..1]
54 * - supportedInterfaceRef : QName [0..*] (from: tCallableElement)
55 * - ioSpecification : tInputOutputSpecification [0..1] (from: tCallableElement)
56 * - ioBinding : tInputOutputBinding [0..*] (from: tCallableElement)
57 * - name : string [0..1] (from: tCallableElement)
58 * - documentation : tDocumentation [0..*] (from: tBaseElement)
59 * - extensionElements : tExtensionElements [0..1] (from: tBaseElement)
60 * - id : ID [0..1] (from: tBaseElement)
61 *
62 * Automatically generated by schematic++ v0.6.0 (https://github.com/rajgoel/schematicpp)
63 */
64class tProcess : public tCallableElement {
65 template<typename T> friend XMLObject* ::XML::createInstance(const Namespace& xmlns, const ClassName& className, const xercesc::DOMElement* element);
66private:
67 static bool registerClass() {
68 XMLObject::factory["http://www.omg.org/spec/BPMN/20100524/MODEL:tProcess"] = &createInstance<tProcess>; // register function in factory
69 return true;
70 };
71 inline static bool registered = registerClass();
72protected:
73 tProcess(const Namespace& xmlns, const ClassName& className, const xercesc::DOMElement* element, const Attributes& defaultAttributes);
74
75 friend class tDefinitions;
76
77public:
78 /// default attributes to be used if they are not explicitly provided
79 inline static const Attributes defaults = {
80 { .xmlns = "http://www.omg.org/spec/BPMN/20100524/MODEL", .prefix = "" , .name = "processType", .value = Value(std::string("None"))},
81 { .xmlns = "http://www.omg.org/spec/BPMN/20100524/MODEL", .prefix = "" , .name = "isClosed", .value = Value(std::string("false"))}
82 };
83
84 std::optional< std::reference_wrapper<tAuditing> > auditing;
85 std::optional< std::reference_wrapper<tMonitoring> > monitoring;
86 std::vector< std::reference_wrapper<tProperty> > property;
87 std::vector< std::reference_wrapper<tLaneSet> > laneSet;
88 std::vector< std::reference_wrapper<tFlowElement> > flowElement;
89 std::vector< std::reference_wrapper<tArtifact> > artifact;
90 std::vector< std::reference_wrapper<tResourceRole> > resourceRole;
91 std::vector< std::reference_wrapper<tCorrelationSubscription> > correlationSubscription;
92 std::vector< std::reference_wrapper<XMLObject> > supports;
93 std::optional< std::reference_wrapper<Attribute> > processType; ///< Attribute value can be expected to be of type 'std::string'
94 std::optional< std::reference_wrapper<Attribute> > isClosed; ///< Attribute value can be expected to be of type 'bool'
95 std::optional< std::reference_wrapper<Attribute> > isExecutable; ///< Attribute value can be expected to be of type 'bool'
96 std::optional< std::reference_wrapper<Attribute> > definitionalCollaborationRef; ///< Attribute value can be expected to be of type 'std::string'
97};
98
99} // namespace XML::bpmn
100
101#endif // XML_bpmn_tProcess_H
A class representing a node in an XML-tree.
Definition XMLObject.h:115
const ClassName className
Definition XMLObject.h:243
static Factory factory
Definition XMLObject.h:155
Namespace xmlns
Definition XMLObject.h:242
std::vector< std::reference_wrapper< tProperty > > property
Definition tProcess.h:86
std::optional< std::reference_wrapper< Attribute > > processType
Attribute value can be expected to be of type 'std::string'.
Definition tProcess.h:93
std::optional< std::reference_wrapper< Attribute > > definitionalCollaborationRef
Attribute value can be expected to be of type 'std::string'.
Definition tProcess.h:96
std::vector< std::reference_wrapper< tArtifact > > artifact
Definition tProcess.h:89
std::vector< std::reference_wrapper< tFlowElement > > flowElement
Definition tProcess.h:88
std::vector< std::reference_wrapper< XMLObject > > supports
Definition tProcess.h:92
std::vector< std::reference_wrapper< tResourceRole > > resourceRole
Definition tProcess.h:90
std::vector< std::reference_wrapper< tCorrelationSubscription > > correlationSubscription
Definition tProcess.h:91
static const Attributes defaults
default attributes to be used if they are not explicitly provided
Definition tProcess.h:79
std::optional< std::reference_wrapper< Attribute > > isExecutable
Attribute value can be expected to be of type 'bool'.
Definition tProcess.h:95
std::optional< std::reference_wrapper< tMonitoring > > monitoring
Definition tProcess.h:85
std::optional< std::reference_wrapper< Attribute > > isClosed
Attribute value can be expected to be of type 'bool'.
Definition tProcess.h:94
std::vector< std::reference_wrapper< tLaneSet > > laneSet
Definition tProcess.h:87
std::optional< std::reference_wrapper< tAuditing > > auditing
Definition tProcess.h:84
The XML::bpmn namespace contains classes from the following XML-schema(s): xsd/DC....
std::string Namespace
Definition XMLObject.h:24
std::vector< Attribute > Attributes
Definition XMLObject.h:80
std::string ClassName
Definition XMLObject.h:21
XMLObject * createInstance(const Namespace &xmlns, const ClassName &className, const xercesc::DOMElement *element)
Template function used to store in factory.
Definition XMLObject.h:84
A struct representing the value of an XML-node attribute.
Definition XMLObject.h:48
std::string value
Definition XMLObject.h:49
std::string tProcessType
Definition tProcessType.h:9