Skip to content

Instantly share code, notes, and snippets.

@tshirtman
Created June 23, 2012 21:44
Show Gist options
  • Select an option

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

Select an option

Save tshirtman/2980143 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="PC134048561132" name="vacation request" isClosed="false">
<semantic:startEvent ns1:initiator="employeeName" id="PC134048561133" name="request" parallelMultiple="false" isInterrupting="true">
<semantic:extensionElements>
<ns1:formProperty name="First day of vacations" variable="startDate" datePattern="dd-MM-yyyy hh:mm" type="date" id="PC134048561149"/>
<ns1:formProperty name="Number of days" variable="numberOfDays" type="long" id="PC134048561150"/>
<ns1:formProperty name="motivation" variable="motivation" type="string" id="PC134048561151"/>
</semantic:extensionElements>
</semantic:startEvent>
<semantic:userTask id="PC134048561134" name="Handle request" isForCompensation="false" startQuantity="1" completionQuantity="1">
<semantic:extensionElements>
<ns1:formProperty name="Do you approve this request" variable="vacationApproved" type="enum" id="PC134048561155">
<ns1:value id="Approved" name="Approve"/>
<ns1:value id="Rejected" name="Reject"/>
</ns1:formProperty>
</semantic:extensionElements>
<semantic:potentialOwner id="PC134048561152">
<semantic:resourceAssignmentExpression id="PC134048561153">
<semantic:formalExpression id="PC134048561154">management</semantic:formalExpression>
</semantic:resourceAssignmentExpression>
</semantic:potentialOwner>
</semantic:userTask>
<semantic:sequenceFlow id="PC134048561135" targetRef="PC134048561134" sourceRef="PC134048561133"/>
<semantic:exclusiveGateway id="PC134048561136" name="Request accepted"/>
<semantic:sequenceFlow id="PC134048561137" targetRef="PC134048561136" sourceRef="PC134048561134"/>
<semantic:task id="PC134048561138" name="Send confirmation e-mail" isForCompensation="false" startQuantity="1" completionQuantity="1"/>
<semantic:sequenceFlow id="PC134048561139" targetRef="PC134048561138" sourceRef="PC134048561136">
<semantic:conditionExpression id="PC134048561159">${vacationApproved == 'Approved'}</semantic:conditionExpression>
</semantic:sequenceFlow>
<semantic:endEvent id="PC134048561140"/>
<semantic:sequenceFlow id="PC134048561141" targetRef="PC134048561140" sourceRef="PC134048561138"/>
<semantic:userTask id="PC134048561142" name="Adjust request" isForCompensation="false" startQuantity="1" completionQuantity="1">
<semantic:extensionElements>
<ns1:formProperty name="First day of vacation" expression="${startDate}" variable="startDate" datePattern="dd-MM-yyyy hh:mm" type="date" id="PC134048561163"/>
<ns1:formProperty name="Number of days" expression="${numberOfDays}" variable="numberOfDays" type="long" id="PC134048561164"/>
<ns1:formProperty name="Motivation" expression="${Motivation}" variable="motivation" type="string" id="PC134048561165"/>
<ns1:formProperty name="Resend request to manager" variable="resendRequest" type="enum" id="PC134048561166">
<ns1:value id="Yes" name="Yes"/>
<ns1:value id="No" name="No"/>
</ns1:formProperty>
</semantic:extensionElements>
<semantic:humanPerformer id="PC134048561160">
<semantic:resourceAssignmentExpression id="PC134048561161">
<semantic:formalExpression id="PC134048561162">${employeeName}</semantic:formalExpression>
</semantic:resourceAssignmentExpression>
</semantic:humanPerformer>
</semantic:userTask>
<semantic:sequenceFlow id="PC134048561143" targetRef="PC134048561142" sourceRef="PC134048561136">
<semantic:conditionExpression id="PC134048561158">${vacationApproved == 'Rejected'}</semantic:conditionExpression>
</semantic:sequenceFlow>
<semantic:exclusiveGateway id="PC134048561144" name="Resend request ?"/>
<semantic:sequenceFlow id="PC134048561145" targetRef="PC134048561144" sourceRef="PC134048561142"/>
<semantic:sequenceFlow id="PC134048561146" targetRef="PC134048561134" sourceRef="PC134048561144">
<semantic:conditionExpression id="PC134048561170">${resendRequest == 'Yes'}</semantic:conditionExpression>
</semantic:sequenceFlow>
<semantic:endEvent id="PC134048561147"/>
<semantic:sequenceFlow id="PC134048561148" targetRef="PC134048561147" sourceRef="PC134048561144">
<semantic:conditionExpression id="PC134048561169">${resendRequest == 'No'}</semantic:conditionExpression>
</semantic:sequenceFlow>
</semantic:process>
<bpmndi:BPMNDiagram resolution="9.600000e+01" name="vacation request">
<bpmndi:BPMNPlane bpmnElement="PC134048561132">
<bpmndi:BPMNShape id="PC134048561187" bpmnElement="PC134048561133">
<dc:Bounds y="-3.240000e+02" x="4.260000e+02" height="4.800000e+01" width="4.800000e+01"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="PC134048561188" bpmnElement="PC134048561134">
<dc:Bounds y="-3.480000e+02" x="5.360000e+02" height="9.600000e+01" width="1.280000e+02"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="PC134048561189" bpmnElement="PC134048561136">
<dc:Bounds y="-3.240000e+02" x="8.260000e+02" height="4.800000e+01" width="4.800000e+01"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="PC134048561190" bpmnElement="PC134048561138">
<dc:Bounds y="-3.480000e+02" x="1.086000e+03" height="9.600000e+01" width="1.280000e+02"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="PC134048561191" bpmnElement="PC134048561140">
<dc:Bounds y="-3.240000e+02" x="1.326000e+03" height="4.800000e+01" width="4.800000e+01"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="PC134048561192" bpmnElement="PC134048561142">
<dc:Bounds y="-1.480000e+02" x="7.860000e+02" height="9.600000e+01" width="1.280000e+02"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="PC134048561193" bpmnElement="PC134048561144">
<dc:Bounds y="-1.240000e+02" x="5.760000e+02" height="4.800000e+01" width="4.800000e+01"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="PC134048561194" bpmnElement="PC134048561147">
<dc:Bounds y="7.600000e+01" x="5.760000e+02" height="4.800000e+01" width="4.800000e+01"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="PC134048561135">
<di:waypoint y="-3.000000e+02" x="4.740000e+02"/>
<di:waypoint y="-3.000000e+02" x="5.360000e+02"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="PC134048561137">
<di:waypoint y="-3.000000e+02" x="6.640000e+02"/>
<di:waypoint y="-3.000000e+02" x="8.260000e+02"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="PC134048561139">
<di:waypoint y="-3.000000e+02" x="8.740000e+02"/>
<di:waypoint y="-3.000000e+02" x="1.086000e+03"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="PC134048561141">
<di:waypoint y="-3.000000e+02" x="1.214000e+03"/>
<di:waypoint y="-3.000000e+02" x="1.326000e+03"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="PC134048561143">
<di:waypoint y="-2.760000e+02" x="8.500000e+02"/>
<di:waypoint y="-1.480000e+02" x="8.500000e+02"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="PC134048561145">
<di:waypoint y="-1.000000e+02" x="7.860000e+02"/>
<di:waypoint y="-1.000000e+02" x="6.240000e+02"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="PC134048561146">
<di:waypoint y="-1.240000e+02" x="6.000000e+02"/>
<di:waypoint y="-2.520000e+02" x="6.000000e+02"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="PC134048561148">
<di:waypoint y="-7.600000e+01" x="6.000000e+02"/>
<di:waypoint y="7.600000e+01" x="6.000000e+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