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