Skip to content

Instantly share code, notes, and snippets.

@tshirtman
Created June 23, 2012 20:38
Show Gist options
  • Select an option

  • Save tshirtman/2979854 to your computer and use it in GitHub Desktop.

Select an option

Save tshirtman/2979854 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<semantic:definitions xmlns:semantic="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://activiti.org/bpmn" exporter="ProcessCraft" exporterVersion="1.1.0" targetNamespace="http://www.omg.org/spec/BPMN/20100524/MODEL">
<semantic:process id="PC13404743931" name="my vacation request process" isClosed="false">
<semantic:startEvent ns1:initiator="employeeName" id="PC13404743932" name="Request" parallelMultiple="false" isInterrupting="true">
<semantic:extensionElements>
<ns1:formProperty name="First day of vacations (dd-MM-yyyy)" variable="startDate" datePattern="dd-MM-yyyy hh:mm" type="date" id="PC134047439321"/>
<ns1:formProperty name="Number of days" variable="numberOfDays" type="long" id="PC134047439322"/>
<ns1:formProperty name="Motivation" variable="motivation" type="string" id="PC134047439323"/>
</semantic:extensionElements>
</semantic:startEvent>
<semantic:userTask id="PC13404743933" name="Handle vacation request" isForCompensation="false" startQuantity="1" completionQuantity="1">
<semantic:extensionElements>
<ns1:formProperty name="Do you approve this vacation request ?" variable="vacationApproved" type="enum" id="PC134047439324">
<ns1:value id="Approved" name="Approve"/>
<ns1:value id="Rejected" name="Reject"/>
</ns1:formProperty>
</semantic:extensionElements>
<semantic:potentialOwner id="PC134047439329">
<semantic:resourceAssignmentExpression id="PC134047439330">
<semantic:formalExpression id="PC134047439331">manager</semantic:formalExpression>
</semantic:resourceAssignmentExpression>
</semantic:potentialOwner>
</semantic:userTask>
<semantic:sequenceFlow id="PC13404743934" targetRef="PC13404743933" sourceRef="PC13404743932"/>
<semantic:exclusiveGateway id="PC13404743935" name="request accepted ?"/>
<semantic:sequenceFlow id="PC13404743936" targetRef="PC13404743935" sourceRef="PC13404743933"/>
<semantic:endEvent id="PC13404743939"/>
<semantic:userTask id="PC134047439311" name="Adjust vacation request" isForCompensation="false" startQuantity="1" completionQuantity="1">
<semantic:extensionElements>
<ns1:formProperty name="First date of vacation (dd-MM-yyyy)" expression="${startDate}" variable="startDate" datePattern="dd-MM-yyyy hh:mm" type="date" id="PC134047439336"/>
<ns1:formProperty name="Number of days" expression="${numberOfDays}" variable="numberOfDays" type="long" id="PC134047439337"/>
<ns1:formProperty name="Motivation" expression="${Motivation}" variable="motivation" type="string" id="PC134047439338"/>
<ns1:formProperty name="Resend to manager" variable="resendRequest" type="enum" id="PC134047439339">
<ns1:value id="Yes" name="Yes"/>
<ns1:value id="No" name="No"/>
</ns1:formProperty>
</semantic:extensionElements>
<semantic:humanPerformer id="PC134047439332">
<semantic:extensionElements>
<ns1:formProperty name="First day of vacation (dd-MM-yyyy)" expression="${startDate}" variable="startDate" datePattern="dd-MM-yyyy hh:mm" id="PC134047439335"/>
</semantic:extensionElements>
<semantic:resourceAssignmentExpression id="PC134047439333">
<semantic:formalExpression id="PC134047439334">${employeeName}</semantic:formalExpression>
</semantic:resourceAssignmentExpression>
</semantic:humanPerformer>
</semantic:userTask>
<semantic:sequenceFlow id="PC134047439312" targetRef="PC134047439311" sourceRef="PC13404743935">
<semantic:conditionExpression id="PC134047439327">${vacationApproved == 'Rejected'}</semantic:conditionExpression>
</semantic:sequenceFlow>
<semantic:exclusiveGateway id="PC134047439313" name="Resend request ?"/>
<semantic:sequenceFlow id="PC134047439314" targetRef="PC134047439313" sourceRef="PC134047439311"/>
<semantic:sequenceFlow id="PC134047439315" targetRef="PC13404743933" sourceRef="PC134047439313">
<semantic:conditionExpression id="PC134047439342">${resendRequest == 'Yes'}</semantic:conditionExpression>
</semantic:sequenceFlow>
<semantic:endEvent id="PC134047439316"/>
<semantic:sequenceFlow id="PC134047439317" targetRef="PC134047439316" sourceRef="PC134047439313">
<semantic:conditionExpression id="PC134047439343">${resendRequest == 'No'}</semantic:conditionExpression>
</semantic:sequenceFlow>
<semantic:task id="PC134047439318" name="Send confirmation e-mail" isForCompensation="false" startQuantity="1" completionQuantity="1"/>
<semantic:sequenceFlow id="PC134047439319" targetRef="PC134047439318" sourceRef="PC13404743935">
<semantic:conditionExpression id="PC134047439328">${vacationApproved == 'Approved'}</semantic:conditionExpression>
</semantic:sequenceFlow>
<semantic:sequenceFlow id="PC134047439320" targetRef="PC13404743939" sourceRef="PC134047439318"/>
</semantic:process>
<bpmndi:BPMNDiagram resolution="9.600000e+01" name="my vacation request process">
<bpmndi:BPMNPlane bpmnElement="PC13404743931">
<bpmndi:BPMNShape id="PC134047439344" bpmnElement="PC13404743932">
<dc:Bounds y="-3.240000e+02" x="3.260000e+02" height="4.800000e+01" width="4.800000e+01"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="PC134047439345" bpmnElement="PC13404743933">
<dc:Bounds y="-3.480000e+02" x="4.360000e+02" height="9.600000e+01" width="1.280000e+02"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="PC134047439346" bpmnElement="PC13404743935">
<dc:Bounds y="-5.240000e+02" x="4.760000e+02" height="4.800000e+01" width="4.800000e+01"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="PC134047439347" bpmnElement="PC13404743939">
<dc:Bounds y="-7.240000e+02" x="8.260000e+02" height="4.800000e+01" width="4.800000e+01"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="PC134047439348" bpmnElement="PC134047439311">
<dc:Bounds y="-5.480000e+02" x="7.360000e+02" height="9.600000e+01" width="1.280000e+02"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="PC134047439349" bpmnElement="PC134047439313">
<dc:Bounds y="-3.240000e+02" x="7.760000e+02" height="4.800000e+01" width="4.800000e+01"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="PC134047439350" bpmnElement="PC134047439316">
<dc:Bounds y="-3.240000e+02" x="1.076000e+03" height="4.800000e+01" width="4.800000e+01"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="PC134047439351" bpmnElement="PC134047439318">
<dc:Bounds y="-7.480000e+02" x="4.360000e+02" height="9.600000e+01" width="1.280000e+02"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="PC13404743934">
<di:waypoint y="-3.000000e+02" x="3.740000e+02"/>
<di:waypoint y="-3.000000e+02" x="4.360000e+02"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="PC13404743936">
<di:waypoint y="-3.480000e+02" x="5.000000e+02"/>
<di:waypoint y="-4.760000e+02" x="5.000000e+02"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="PC134047439312">
<di:waypoint y="-5.000000e+02" x="5.240000e+02"/>
<di:waypoint y="-5.000000e+02" x="7.360000e+02"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="PC134047439314">
<di:waypoint y="-4.520000e+02" x="8.000000e+02"/>
<di:waypoint y="-3.240000e+02" x="8.000000e+02"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="PC134047439315">
<di:waypoint y="-3.000000e+02" x="7.760000e+02"/>
<di:waypoint y="-3.000000e+02" x="5.640000e+02"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="PC134047439317">
<di:waypoint y="-3.000000e+02" x="8.240000e+02"/>
<di:waypoint y="-3.000000e+02" x="1.076000e+03"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="PC134047439319">
<di:waypoint y="-5.240000e+02" x="5.000000e+02"/>
<di:waypoint y="-6.520000e+02" x="5.000000e+02"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="PC134047439320">
<di:waypoint y="-7.000000e+02" x="5.640000e+02"/>
<di:waypoint y="-7.000000e+02" x="8.260000e+02"/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</semantic:definitions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment