bpmn++
A BPMN parser library, written in C++
Loading...
Searching...
No Matches
LinkSourceEvent.cpp
Go to the documentation of this file.
1
#include "
LinkSourceEvent.h
"
2
#include "
xml/bpmn/tLinkEventDefinition.h
"
3
4
using namespace
BPMN
;
5
6
LinkSourceEvent::LinkSourceEvent
(
XML::bpmn::tThrowEvent
* throwEvent,
Scope
* parent)
7
:
Node
(throwEvent)
8
,
FlowNode
(throwEvent,parent)
9
,
ThrowEvent
(throwEvent,parent)
10
, linkName (element->getRequiredChild<
XML
::bpmn::tLinkEventDefinition>().name.value)
11
, target(nullptr)
12
{
13
if
(
linkName
.empty() &&
name
.has_value() ) {
14
linkName
=
name
.value();
15
}
16
}
LinkSourceEvent.h
BPMN::FlowNode
Base class for BPMN elements that may contain incoming and outgoing sequence flows.
Definition
FlowNode.h:20
BPMN::FlowNode::name
std::optional< std::string > name
Definition
FlowNode.h:26
BPMN::LinkSourceEvent::linkName
std::string linkName
Definition
LinkSourceEvent.h:20
BPMN::LinkSourceEvent::LinkSourceEvent
LinkSourceEvent(XML::bpmn::tThrowEvent *throwEvent, Scope *parent)
Definition
LinkSourceEvent.cpp:6
BPMN::Node
Base class for all nodes in a BPMN model.
Definition
Node.h:24
BPMN::Scope
Base class for BPMN elements that may contain a ChildNode elements.
Definition
Scope.h:24
BPMN::ThrowEvent
Definition
ThrowEvent.h:12
XML::bpmn::tThrowEvent
Definition
tThrowEvent.h:49
BPMN
The BPMN namespace contains linked classes representing a BPMN model.
Definition
AbstractTask.h:10
XML
The XML namespace contains classes representing XML-nodes defined in given XML-schema(s).
Definition
XMLObject.cpp:9
tLinkEventDefinition.h