Skip to content

Instantly share code, notes, and snippets.

@jwhb
Last active March 20, 2019 14:25
Show Gist options
  • Save jwhb/0d9bf9bf93f36338c7211a72a221e2f3 to your computer and use it in GitHub Desktop.
Save jwhb/0d9bf9bf93f36338c7211a72a221e2f3 to your computer and use it in GitHub Desktop.
GraphML shapes for EPC/EPK process modeling in yED
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:java="http://www.yworks.com/xml/yfiles-common/1.0/java" xmlns:sys="http://www.yworks.com/xml/yfiles-common/markup/primitives/2.0" xmlns:x="http://www.yworks.com/xml/yfiles-common/markup/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:y="http://www.yworks.com/xml/graphml" xmlns:yed="http://www.yworks.com/xml/yed/3" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://www.yworks.com/xml/schema/graphml/1.1/ygraphml.xsd">
<!--Created by yEd 3.17-->
<key for="port" id="d0" yfiles.type="portgraphics"/>
<key for="port" id="d1" yfiles.type="portgeometry"/>
<key for="port" id="d2" yfiles.type="portuserdata"/>
<key attr.name="yed.palette.node.name" attr.type="string" for="node" id="d3"/>
<key attr.name="Palette ToolTip" attr.type="string" for="node" id="d4"/>
<key attr.name="url" attr.type="string" for="node" id="d5"/>
<key attr.name="description" attr.type="string" for="node" id="d6"/>
<key for="node" id="d7" yfiles.type="nodegraphics"/>
<key for="graphml" id="d8" yfiles.type="resources"/>
<key attr.name="yed.palette.edge.name" attr.type="string" for="edge" id="d9"/>
<key attr.name="Palette ToolTip" attr.type="string" for="edge" id="d10"/>
<key attr.name="url" attr.type="string" for="edge" id="d11"/>
<key attr.name="description" attr.type="string" for="edge" id="d12"/>
<key for="edge" id="d13" yfiles.type="edgegraphics"/>
<graph edgedefault="directed" id="G">
<node id="n0">
<data key="d3"><![CDATA[32795fd6-d942-48a3-a239-b6db5d0486cd]]></data>
<data key="d4"><![CDATA[Event]]></data>
<data key="d5"/>
<data key="d6"><![CDATA[Event]]></data>
<data key="d7">
<y:GenericNode configuration="com.yworks.flowchart.preparation">
<y:Geometry height="40.0" width="80.0" x="0.0" y="33.957603454589844"/>
<y:Fill color="#FF8081" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="3.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="4.0" x="38.0" y="18.0">
<y:LabelModel>
<y:SmartNodeLabelModel distance="4.0"/>
</y:LabelModel>
<y:ModelParameter>
<y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/>
</y:ModelParameter>
</y:NodeLabel>
</y:GenericNode>
</data>
</node>
<node id="n1">
<data key="d3"><![CDATA[14ecebe2-977b-4885-99a3-db89bd5d9dee]]></data>
<data key="d4"><![CDATA[Funktion]]></data>
<data key="d7">
<y:ShapeNode>
<y:Geometry height="40.0" width="80.0" x="110.0" y="33.957603454589844"/>
<y:Fill color="#69FF87" transparent="false"/>
<y:BorderStyle color="#000000" raised="false" type="line" width="3.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="4.0" x="38.0" y="18.0">
<y:LabelModel>
<y:SmartNodeLabelModel distance="4.0"/>
</y:LabelModel>
<y:ModelParameter>
<y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/>
</y:ModelParameter>
</y:NodeLabel>
<y:Shape type="roundrectangle"/>
</y:ShapeNode>
</data>
</node>
<node id="n2">
<data key="d3"><![CDATA[9671853e-7b8a-4f76-908f-d8ef00b122b4]]></data>
<data key="d4"><![CDATA[Information]]></data>
<data key="d6"/>
<data key="d7">
<y:ShapeNode>
<y:Geometry height="40.0" width="80.0" x="220.0" y="33.957603454589844"/>
<y:Fill color="#0003F9" transparent="false"/>
<y:BorderStyle color="#000000" raised="false" type="line" width="3.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="4.0" x="38.0" y="18.0">
<y:LabelModel>
<y:SmartNodeLabelModel distance="4.0"/>
</y:LabelModel>
<y:ModelParameter>
<y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/>
</y:ModelParameter>
</y:NodeLabel>
<y:Shape type="rectangle"/>
</y:ShapeNode>
</data>
</node>
<node id="n3">
<data key="d3"><![CDATA[195ca8d5-56eb-4f3d-b92c-f49e7828aea3]]></data>
<data key="d4"><![CDATA[Prozesspfad]]></data>
<data key="d6"/>
<data key="d7">
<y:ShapeNode>
<y:Geometry height="40.0" width="80.0" x="220.0" y="33.957603454589844"/>
<y:Fill color="#0003F9" transparent="false"/>
<y:BorderStyle color="#000000" raised="false" type="line" width="3.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="4.0" x="38.0" y="18.0">
<y:LabelModel>
<y:SmartNodeLabelModel distance="4.0"/>
</y:LabelModel>
<y:ModelParameter>
<y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/>
</y:ModelParameter>
</y:NodeLabel>
<y:Shape type="rectangle"/>
</y:ShapeNode>
</data>
</node>
<node id="n3">
<data key="d3"><![CDATA[195ca8d5-56eb-4f3d-b92c-f49e7828aea3]]></data>
<data key="d4"><![CDATA[]]></data>
<data key="d6"/>
<data key="d7">
<y:ShapeNode>
<y:Geometry height="40.0" width="80.0" x="220.0" y="33.957603454589844"/>
<y:Fill color="#0003F9" transparent="false"/>
<y:BorderStyle color="#000000" raised="false" type="line" width="3.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="4.0" x="38.0" y="18.0">
<y:LabelModel>
<y:SmartNodeLabelModel distance="4.0"/>
</y:LabelModel>
<y:ModelParameter>
<y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/>
</y:ModelParameter>
</y:NodeLabel>
<y:Shape type="rectangle"/>
</y:ShapeNode>
</data>
</node>
<node id="n3">
<data key="d3"><![CDATA[195ca8d5-56eb-4f3d-b92c-f49e7828aea3]]></data>
<data key="d4"><![CDATA[Prozesspfad]]></data>
<data key="d6"/>
<data key="d7">
<y:SVGNode>
<y:Geometry height="47.91520690917969" width="93.90701293945312" x="330.0" y="30.0"/>
<y:Fill color="#CCCCFF" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" horizontalTextPosition="center" iconTextGap="4" modelName="sandwich" modelPosition="s" textColor="#000000" verticalTextPosition="bottom" visible="true" width="4.0" x="44.95350646972656" y="51.91520690917969"/>
<y:SVGNodeProperties usingVisualBounds="true"/>
<y:SVGModel svgBoundsPolicy="0">
<y:SVGContent refid="1"/>
</y:SVGModel>
</y:SVGNode>
</data>
</node>
<node id="n4">
<data key="d3"><![CDATA[2ee458cb-48b6-4c9e-9e55-a015101a3288]]></data>
<data key="d4"><![CDATA[Organisationseinheit]]></data>
<data key="d6"/>
<data key="d7">
<y:SVGNode>
<y:Geometry height="43.0" width="83.0" x="453.9070129394531" y="32.457603454589844"/>
<y:Fill color="#CCCCFF" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" horizontalTextPosition="center" iconTextGap="4" modelName="sandwich" modelPosition="s" textColor="#000000" verticalTextPosition="bottom" visible="true" width="4.0" x="39.5" y="47.0"/>
<y:SVGNodeProperties usingVisualBounds="true"/>
<y:SVGModel svgBoundsPolicy="0">
<y:SVGContent refid="2"/>
</y:SVGModel>
</y:SVGNode>
</data>
</node>
<node id="n5">
<data key="d3"><![CDATA[b2656406-0557-4aff-908b-d7ca2696eb93]]></data>
<data key="d4"><![CDATA[XOR]]></data>
<data key="d6"/>
<data key="d7">
<y:ShapeNode>
<y:Geometry height="30.0" width="30.0" x="566.9070129394531" y="38.957603454589844"/>
<y:Fill color="#FFFFFF" transparent="false"/>
<y:BorderStyle color="#000000" raised="false" type="line" width="3.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="10" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="15.640625" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="25.669921875" x="2.1650390625" y="7.1796875">XOR<y:LabelModel>
<y:SmartNodeLabelModel distance="4.0"/>
</y:LabelModel>
<y:ModelParameter>
<y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/>
</y:ModelParameter>
</y:NodeLabel>
<y:Shape type="ellipse"/>
</y:ShapeNode>
</data>
</node>
<node id="n6">
<data key="d3"><![CDATA[72ea2f41-5678-4322-8883-291df38883de]]></data>
<data key="d4"><![CDATA[AND]]></data>
<data key="d6"/>
<data key="d7">
<y:ShapeNode>
<y:Geometry height="30.0" width="30.0" x="626.9070129394531" y="38.957603454589844"/>
<y:Fill color="#FFFFFF" transparent="false"/>
<y:BorderStyle color="#000000" raised="false" type="line" width="3.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="18" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="24.953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="17.1748046875" x="6.41259765625" y="2.5234375">∧<y:LabelModel>
<y:SmartNodeLabelModel distance="4.0"/>
</y:LabelModel>
<y:ModelParameter>
<y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/>
</y:ModelParameter>
</y:NodeLabel>
<y:Shape type="ellipse"/>
</y:ShapeNode>
</data>
</node>
<node id="n7">
<data key="d3"><![CDATA[d88beca1-3919-4f66-97e5-fcab6a019ea3]]></data>
<data key="d4"><![CDATA[OR]]></data>
<data key="d6"/>
<data key="d7">
<y:ShapeNode>
<y:Geometry height="30.0" width="30.0" x="686.9070129394531" y="38.957603454589844"/>
<y:Fill color="#FFFFFF" transparent="false"/>
<y:BorderStyle color="#000000" raised="false" type="line" width="3.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="18" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="24.953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="17.1748046875" x="6.41259765625" y="2.5234375">∨<y:LabelModel>
<y:SmartNodeLabelModel distance="4.0"/>
</y:LabelModel>
<y:ModelParameter>
<y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/>
</y:ModelParameter>
</y:NodeLabel>
<y:Shape type="ellipse"/>
</y:ShapeNode>
</data>
</node>
</graph>
<data key="d8">
<y:Resources>
<y:Resource id="1">&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-opacity="1" color-rendering="auto" color-interpolation="auto" text-rendering="auto" stroke="black" stroke-linecap="square" width="92" stroke-miterlimit="10" shape-rendering="auto" stroke-opacity="1" fill="black" stroke-dasharray="none" font-weight="normal" stroke-width="1" height="46" font-family="'Dialog'" font-style="normal" stroke-linejoin="miter" font-size="12px" stroke-dashoffset="0" image-rendering="auto"&gt;
&lt;!--Generated by ySVG 2.5--&gt;
&lt;defs id="genericDefs"/&gt;
&lt;g&gt;
&lt;defs id="defs1"&gt;
&lt;clipPath clipPathUnits="userSpaceOnUse" id="clipPath1"&gt;
&lt;path d="M0 0 L92 0 L92 46 L0 46 L0 0 Z"/&gt;
&lt;/clipPath&gt;
&lt;clipPath clipPathUnits="userSpaceOnUse" id="clipPath2"&gt;
&lt;path d="M0 0 L0 17 L43 17 L43 0 Z"/&gt;
&lt;/clipPath&gt;
&lt;script type="text/ecmascript"&gt;&lt;![CDATA[ var SVGDocument = null;
var SVGRoot = null;
var TrueCoords = null;
var lastElement = null;
var initialized = null;
var tipGroup;
function Init(evt)
{
SVGDocument = evt.target.ownerDocument;
SVGRoot = SVGDocument.documentElement;
TrueCoords = SVGRoot.createSVGPoint();
initialized = evt;
};
function GetTrueCoords(evt)
{
var newScale = SVGRoot.currentScale;
var translation = SVGRoot.currentTranslate;
TrueCoords.x = (evt.clientX - translation.x)/newScale;
TrueCoords.y = (evt.clientY - translation.y)/newScale;
};
function HideTooltip( evt )
{
if(initialized == null) {
Init(evt);
}
if(tipGroup != null) {
tipGroup.setAttributeNS(null, 'visibility', 'hidden');
}
};
function ShowTooltip( evt )
{
if(initialized == null) {
Init(evt);
}
GetTrueCoords( evt );
var tipScale = 1/SVGRoot.currentScale;
var targetElement = evt.currentTarget;
if ( lastElement != targetElement )
{
var targetId = targetElement.getAttributeNS(null, 'id');
var tipId = 'tooltip.' + targetId;
tipGroup = SVGDocument.getElementById(tipId);
var xPos = TrueCoords.x + (10 * tipScale);
var yPos = TrueCoords.y + (10 * tipScale);
tipGroup.setAttributeNS(null, 'transform', 'translate(' + xPos + ',' + yPos + ') scale(' + tipScale + ')');
tipGroup.setAttributeNS(null, 'visibility', 'visible');
}
};
]]&gt;&lt;/script&gt;
&lt;/defs&gt;
&lt;g onmouseout="HideTooltip(evt)" id="y.node.0" onmousemove="ShowTooltip(evt)"&gt;
&lt;g fill="white" text-rendering="geometricPrecision" shape-rendering="geometricPrecision" transform="matrix(1,0,0,1,-191,-141)" stroke="white"&gt;
&lt;path d="M212.3235 146.0906 L272.3235 146.0906 L282.3235 166.0906 L272.3235 186.0906 L212.3235 186.0906 L202.3235 166.0906 Z" stroke="none"/&gt;
&lt;/g&gt;
&lt;g text-rendering="geometricPrecision" stroke-miterlimit="1.45" stroke-width="3" shape-rendering="geometricPrecision" transform="matrix(1,0,0,1,-191,-141)" stroke-linecap="butt"&gt;
&lt;path fill="none" d="M212.3235 146.0906 L272.3235 146.0906 L282.3235 166.0906 L272.3235 186.0906 L212.3235 186.0906 L202.3235 166.0906 Z"/&gt;
&lt;/g&gt;
&lt;g/&gt;
&lt;/g&gt;
&lt;g id="y.node.1"&gt;
&lt;g fill="white" text-rendering="geometricPrecision" shape-rendering="geometricPrecision" transform="matrix(1,0,0,1,-191,-141)" stroke="white"&gt;
&lt;rect x="191.5932" width="80" height="40" y="141.1754" stroke="none"/&gt;
&lt;/g&gt;
&lt;g text-rendering="geometricPrecision" stroke-miterlimit="1.45" stroke-width="3" shape-rendering="geometricPrecision" transform="matrix(1,0,0,1,-191,-141)" stroke-linecap="butt"&gt;
&lt;rect fill="none" x="191.5932" width="80" height="40" y="141.1754"/&gt;
&lt;/g&gt;
&lt;g/&gt;
&lt;/g&gt;
&lt;g visibility="hidden" id="tooltip.y.node.0" pointer-events="none"&gt;
&lt;g fill="rgb(195,212,232)" text-rendering="geometricPrecision" shape-rendering="geometricPrecision" font-family="sans-serif" stroke="rgb(195,212,232)"&gt;
&lt;rect x="0" width="43" height="17" y="0" clip-path="url(#clipPath2)" stroke="none"/&gt;
&lt;text fill="black" x="4" xml:space="preserve" y="13" clip-path="url(#clipPath2)" stroke="none"&gt;Event&lt;/text&gt;
&lt;/g&gt;
&lt;g fill="rgb(49,106,196)" text-rendering="geometricPrecision" shape-rendering="geometricPrecision" font-family="sans-serif" stroke="rgb(49,106,196)"&gt;
&lt;path d="M0 0 L43 0 L43 17 L0 17 L0 0 ZM1 1 L42 1 L42 16 L1 16 L1 1 Z" fill-rule="evenodd" clip-path="url(#clipPath2)" stroke="none"/&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
</y:Resource>
<y:Resource id="2">&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-opacity="1" color-rendering="auto" color-interpolation="auto" text-rendering="auto" stroke="black" stroke-linecap="square" width="101" stroke-miterlimit="10" shape-rendering="auto" stroke-opacity="1" fill="black" stroke-dasharray="none" font-weight="normal" stroke-width="1" height="60" font-family="'Dialog'" font-style="normal" stroke-linejoin="miter" font-size="12px" stroke-dashoffset="0" image-rendering="auto"&gt;
&lt;!--Generated by ySVG 2.5--&gt;
&lt;defs id="genericDefs"/&gt;
&lt;g&gt;
&lt;defs id="defs1"&gt;
&lt;clipPath clipPathUnits="userSpaceOnUse" id="clipPath1"&gt;
&lt;path d="M0 0 L101 0 L101 60 L0 60 L0 0 Z"/&gt;
&lt;/clipPath&gt;
&lt;clipPath clipPathUnits="userSpaceOnUse" id="clipPath2"&gt;
&lt;path d="M-10 -10 L91 -10 L91 50 L-10 50 L-10 -10 Z"/&gt;
&lt;/clipPath&gt;
&lt;/defs&gt;
&lt;g fill="rgb(255,255,138)" text-rendering="geometricPrecision" shape-rendering="geometricPrecision" transform="matrix(1,0,0,1,10,10)" stroke="rgb(255,255,138)"&gt;
&lt;ellipse rx="40" ry="20" clip-path="url(#clipPath2)" cx="40.4427" cy="20" stroke="none"/&gt;
&lt;/g&gt;
&lt;g text-rendering="geometricPrecision" stroke-miterlimit="1.45" stroke-width="3" shape-rendering="geometricPrecision" transform="matrix(1,0,0,1,10,10)" stroke-linecap="butt"&gt;
&lt;ellipse rx="40" fill="none" ry="20" clip-path="url(#clipPath2)" cx="40.4427" cy="20"/&gt;
&lt;rect stroke-linecap="square" x="11.0963" y="6.8039" clip-path="url(#clipPath2)" width="2.718" height="28.3224" stroke="none" stroke-width="1" stroke-miterlimit="10"/&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
</y:Resource>
</y:Resources>
</data>
</graphml>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment