240 lines
8.0 KiB
Plaintext
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
<bpmn:process id="Process_populate_data_store_9nyy6hu" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_17db3yp</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_17db3yp" sourceRef="StartEvent_1" targetRef="Activity_0qpzdpu" />
<bpmn:endEvent id="EndEvent_1">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>The process instance completed successfully.</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_12pkbxb</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_12pkbxb" sourceRef="Activity_0qpzdpu" targetRef="EndEvent_1" />
<bpmn:scriptTask id="Activity_0qpzdpu" name="Populate Data Store">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>This is an example **Manual Task**. A **Manual Task** is designed to allow someone to complete a task outside of the system and then report back that it is complete. You can click the *Continue* button to proceed. When you are done running this process, you can edit the **Process Model** to include a:
* **Script Task** - write a short snippet of python code to update some data
* **User Task** - generate a form that collects information from a user
* **Service Task** - communicate with an external API to fetch or update some data.
You can also change the text you are reading here by updating the *Instructions* on this example manual task.</spiffworkflow:instructionsForEndUser>
<spiffworkflow:unitTests>
<spiffworkflow:unitTest id="ScriptUnitTest_00lbk5r">
<spiffworkflow:inputJson>{}</spiffworkflow:inputJson>
<spiffworkflow:expectedOutputJson>{
"german_philosophers":[
{
"philosopher": "Immanuel Kant",
"works": [
"Critique of Pure Reason",
"Critique of Practical Reason",
"Critique of Judgment",
"Groundwork of the Metaphysics of Morals"
]
},
{
"philosopher": "Georg Wilhelm Friedrich Hegel",
"works": [
"Phenomenology of Spirit",
"Science of Logic",
"Philosophy of Right"
]
},
{
"philosopher": "Friedrich Nietzsche",
"works": [
"Thus Spoke Zarathustra",
"Beyond Good and Evil",
"The Genealogy of Morality"
]
},
{
"philosopher": "Martin Heidegger",
"works": [
"Being and Time",
"Introduction to Metaphysics",
"What is Called Thinking?"
]
},
{
"philosopher": "Jürgen Habermas",
"works": [
"The Theory of Communicative Action",
"The Structure-Transformation of the Public Sphere",
"Justification and Application"
]
},
{
"philosopher": "Gottfried Wilhelm Leibniz",
"works": [
"Discourse on Metaphysics",
"Monadology",
"Theodicy"
]
},
{
"philosopher": "Arthur Schopenhauer",
"works": [
"The World as Will and Representation",
"Consolations of Philosophy",
"Essays and Aphorisms"
]
},
{
"philosopher": "Hannah Arendt",
"works": [
"The Origins of Totalitarianism",
"The Human Condition",
"Eichmann in Jerusalem"
]
},
{
"philosopher": "Johann Gottlieb Fichte",
"works": [
"The Science of Knowledge",
"Foundations of the Entire Science of Knowledge",
"Addresses to the German Nation"
]
},
{
"philosopher": "Friedrich Schelling",
"works": [
"Ideas for a Philosophy of Nature",
"System of Idealism of Fichte and Schelling",
"The Ages of the World"
]
}
]}
</spiffworkflow:expectedOutputJson>
</spiffworkflow:unitTest>
</spiffworkflow:unitTests>
</bpmn:extensionElements>
<bpmn:incoming>Flow_17db3yp</bpmn:incoming>
<bpmn:outgoing>Flow_12pkbxb</bpmn:outgoing>
<bpmn:dataOutputAssociation id="DataOutputAssociation_19zlb7d">
<bpmn:targetRef>DataStoreReference_1yx3y4c</bpmn:targetRef>
</bpmn:dataOutputAssociation>
<bpmn:script>german_philosophers = [
{
"philosopher": "Immanuel Kant",
"works": [
"Critique of Pure Reason",
"Critique of Practical Reason",
"Critique of Judgment",
"Groundwork of the Metaphysics of Morals"
]
},
{
"philosopher": "Georg Wilhelm Friedrich Hegel",
"works": [
"Phenomenology of Spirit",
"Science of Logic",
"Philosophy of Right"
]
},
{
"philosopher": "Friedrich Nietzsche",
"works": [
"Thus Spoke Zarathustra",
"Beyond Good and Evil",
"The Genealogy of Morality"
]
},
{
"philosopher": "Martin Heidegger",
"works": [
"Being and Time",
"Introduction to Metaphysics",
"What is Called Thinking?"
]
},
{
"philosopher": "Jürgen Habermas",
"works": [
"The Theory of Communicative Action",
"The Structure-Transformation of the Public Sphere",
"Justification and Application"
]
},
{
"philosopher": "Gottfried Wilhelm Leibniz",
"works": [
"Discourse on Metaphysics",
"Monadology",
"Theodicy"
]
},
{
"philosopher": "Arthur Schopenhauer",
"works": [
"The World as Will and Representation",
"Consolations of Philosophy",
"Essays and Aphorisms"
]
},
{
"philosopher": "Hannah Arendt",
"works": [
"The Origins of Totalitarianism",
"The Human Condition",
"Eichmann in Jerusalem"
]
},
{
"philosopher": "Johann Gottlieb Fichte",
"works": [
"The Science of Knowledge",
"Foundations of the Entire Science of Knowledge",
"Addresses to the German Nation"
]
},
{
"philosopher": "Friedrich Schelling",
"works": [
"Ideas for a Philosophy of Nature",
"System of Idealism of Fichte and Schelling",
"The Ages of the World"
]
}
]
</bpmn:script>
</bpmn:scriptTask>
<bpmn:dataStoreReference id="DataStoreReference_1yx3y4c" name="Data Store (german_philosophers)" dataStoreRef="german_philosophers" />
</bpmn:process>
<bpmn:dataStore id="german_philosophers" name="JSONDataStore" />
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_populate_data_store_9nyy6hu">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="179" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_14za570_di" bpmnElement="EndEvent_1">
<dc:Bounds x="432" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1e6hw1x_di" bpmnElement="Activity_0qpzdpu">
<dc:Bounds x="270" y="137" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DataStoreReference_1yx3y4c_di" bpmnElement="DataStoreReference_1yx3y4c">
<dc:Bounds x="300" y="5" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="281" y="-45" width="88" height="40" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_17db3yp_di" bpmnElement="Flow_17db3yp">
<di:waypoint x="215" y="177" />
<di:waypoint x="270" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_12pkbxb_di" bpmnElement="Flow_12pkbxb">
<di:waypoint x="370" y="177" />
<di:waypoint x="432" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DataOutputAssociation_19zlb7d_di" bpmnElement="DataOutputAssociation_19zlb7d">
<di:waypoint x="320" y="137" />
<di:waypoint x="320" y="55" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>