bpmn++
A BPMN parser library, written in C++
Loading...
Searching...
No Matches
tSubProcess.h
Go to the documentation of this file.
1#ifndef XML_bpmn_tSubProcess_H
2#define XML_bpmn_tSubProcess_H
3#include <memory>
4#include <optional>
5#include <vector>
6
7#include "../XMLObject.h"
8#include "tActivity.h"
9#include "tLaneSet.h"
10#include "tFlowElement.h"
11#include "tArtifact.h"
12
13/**
14 * @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.
15 */
16namespace XML::bpmn {
17
18class tLaneSet;
19class tFlowElement;
20class tArtifact;
21
22/**
23 * Overview:
24 * - Element name: tSubProcess
25 * - XML-Schema: xsd/Semantic.xsd
26 * - XML-Namespace: http://www.omg.org/spec/BPMN/20100524/MODEL
27 *
28 * Members:
29 * - laneSet : tLaneSet [0..*]
30 * - flowElement : tFlowElement [0..*]
31 * - artifact : tArtifact [0..*]
32 * - triggeredByEvent : boolean [0..1]
33 * - ioSpecification : tInputOutputSpecification [0..1] (from: tActivity)
34 * - property : tProperty [0..*] (from: tActivity)
35 * - dataInputAssociation : tDataInputAssociation [0..*] (from: tActivity)
36 * - dataOutputAssociation : tDataOutputAssociation [0..*] (from: tActivity)
37 * - resourceRole : tResourceRole [0..*] (from: tActivity)
38 * - loopCharacteristics : tLoopCharacteristics [0..*] (from: tActivity)
39 * - isForCompensation : boolean [0..1] (from: tActivity)
40 * - startQuantity : integer [0..1] (from: tActivity)
41 * - completionQuantity : integer [0..1] (from: tActivity)
42 * - default : IDREF [0..1] (from: tActivity)
43 * - incoming : QName [0..*] (from: tFlowNode)
44 * - outgoing : QName [0..*] (from: tFlowNode)
45 * - auditing : tAuditing [0..1] (from: tFlowElement)
46 * - monitoring : tMonitoring [0..1] (from: tFlowElement)
47 * - categoryValueRef : QName [0..*] (from: tFlowElement)
48 * - name : string [0..1] (from: tFlowElement)
49 * - documentation : tDocumentation [0..*] (from: tBaseElement)
50 * - extensionElements : tExtensionElements [0..1] (from: tBaseElement)
51 * - id : ID [0..1] (from: tBaseElement)
52 *
53 * Automatically generated by schematic++ v0.6.0 (https://github.com/rajgoel/schematicpp)
54 */
55class tSubProcess : public tActivity {
56 template<typename T> friend XMLObject* ::XML::createInstance(const Namespace& xmlns, const ClassName& className, const xercesc::DOMElement* element);
57private:
58 static bool registerClass() {
59 XMLObject::factory["http://www.omg.org/spec/BPMN/20100524/MODEL:tSubProcess"] = &createInstance<tSubProcess>; // register function in factory
60 return true;
61 };
62 inline static bool registered = registerClass();
63protected:
64 tSubProcess(const Namespace& xmlns, const ClassName& className, const xercesc::DOMElement* element, const Attributes& defaultAttributes);
65
66public:
67 /// default attributes to be used if they are not explicitly provided
68 inline static const Attributes defaults = {
69 { .xmlns = "http://www.omg.org/spec/BPMN/20100524/MODEL", .prefix = "" , .name = "triggeredByEvent", .value = Value(std::string("false"))},
70 { .xmlns = "http://www.omg.org/spec/BPMN/20100524/MODEL", .prefix = "" , .name = "isForCompensation", .value = Value(std::string("false"))},
71 { .xmlns = "http://www.omg.org/spec/BPMN/20100524/MODEL", .prefix = "" , .name = "startQuantity", .value = Value(std::string("1"))},
72 { .xmlns = "http://www.omg.org/spec/BPMN/20100524/MODEL", .prefix = "" , .name = "completionQuantity", .value = Value(std::string("1"))}
73 };
74
75 std::vector< std::reference_wrapper<tLaneSet> > laneSet;
76 std::vector< std::reference_wrapper<tFlowElement> > flowElement;
77 std::vector< std::reference_wrapper<tArtifact> > artifact;
78 std::optional< std::reference_wrapper<Attribute> > triggeredByEvent; ///< Attribute value can be expected to be of type 'bool'
79};
80
81} // namespace XML::bpmn
82
83#endif // XML_bpmn_tSubProcess_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< tArtifact > > artifact
Definition tSubProcess.h:77
std::vector< std::reference_wrapper< tLaneSet > > laneSet
Definition tSubProcess.h:75
std::vector< std::reference_wrapper< tFlowElement > > flowElement
Definition tSubProcess.h:76
std::optional< std::reference_wrapper< Attribute > > triggeredByEvent
Attribute value can be expected to be of type 'bool'.
Definition tSubProcess.h:78
static const Attributes defaults
default attributes to be used if they are not explicitly provided
Definition tSubProcess.h:68
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