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