mirror of
https://github.com/sartography/demo-process-models.git
synced 2025-02-24 19:48:11 +00:00
User: dan@sartography.com clicked save for examples/1-basic-concepts/understanding-data-part-1/python.bpmn
This commit is contained in:
parent
9bf89c6416
commit
5cb0d8b777
@ -1,5 +1,5 @@
|
||||
<?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: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: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:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
|
||||
<bpmn:process id="Process_1smb9b5" isExecutable="true">
|
||||
<bpmn:startEvent id="StartEvent_1">
|
||||
<bpmn:outgoing>Flow_0bngcu2</bpmn:outgoing>
|
||||
@ -7,6 +7,7 @@
|
||||
<bpmn:sequenceFlow id="Flow_0bngcu2" sourceRef="StartEvent_1" targetRef="Activity_10fbwgl" />
|
||||
<bpmn:scriptTask id="Activity_10fbwgl" name="Simple Script Task">
|
||||
<bpmn:incoming>Flow_0bngcu2</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_0ggy7w4</bpmn:outgoing>
|
||||
<bpmn:script>
|
||||
# Creating Variables
|
||||
age = 51 # This is an integer
|
||||
@ -44,6 +45,32 @@ cabinet = {
|
||||
|
||||
</bpmn:script>
|
||||
</bpmn:scriptTask>
|
||||
<bpmn:sequenceFlow id="Flow_0ggy7w4" sourceRef="Activity_10fbwgl" targetRef="Activity_0n8y9m7" />
|
||||
<bpmn:manualTask id="Activity_0n8y9m7" name="About PEP8">
|
||||
<bpmn:extensionElements>
|
||||
<spiffworkflow:instructionsForEndUser># Readability
|
||||
The creator of Python Guido van Rossum, said
|
||||
“Code is read much more often than it’s written.” IT's important to create code that is easy to understand later on.
|
||||
|
||||
For this reason we recommend following a popular standard called [PEP8](https://realpython.com/python-pep8/)
|
||||
|
||||
Here are some highlights from the standard, along with a few additions specific to working with SpiffWorkflow:
|
||||
|
||||
## Variables
|
||||
|
||||
### Formatting:
|
||||
being consistent in the naming of your variables makes them far easier to remember. If you always use lower case and separate words with underscores, you don't have to try and remember the formatting, you just have to remember what it is called. If everyone follows this standard, then you can remember their variables easier as well ...
|
||||
|
||||
* my_name (GOOD)
|
||||
* MyName (NO)
|
||||
* myname (NO)
|
||||
|
||||
### Use Thoughtful names.
|
||||
*
|
||||
</spiffworkflow:instructionsForEndUser>
|
||||
</bpmn:extensionElements>
|
||||
<bpmn:incoming>Flow_0ggy7w4</bpmn:incoming>
|
||||
</bpmn:manualTask>
|
||||
</bpmn:process>
|
||||
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
||||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1smb9b5">
|
||||
@ -53,10 +80,18 @@ cabinet = {
|
||||
<bpmndi:BPMNShape id="Activity_079whp1_di" bpmnElement="Activity_10fbwgl">
|
||||
<dc:Bounds x="230" y="-10" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Activity_0ip5gqo_di" bpmnElement="Activity_0n8y9m7">
|
||||
<dc:Bounds x="390" y="-10" width="100" height="80" />
|
||||
<bpmndi:BPMNLabel />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNEdge id="Flow_0bngcu2_di" bpmnElement="Flow_0bngcu2">
|
||||
<di:waypoint x="178" y="30" />
|
||||
<di:waypoint x="230" y="30" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_0ggy7w4_di" bpmnElement="Flow_0ggy7w4">
|
||||
<di:waypoint x="330" y="30" />
|
||||
<di:waypoint x="390" y="30" />
|
||||
</bpmndi:BPMNEdge>
|
||||
</bpmndi:BPMNPlane>
|
||||
</bpmndi:BPMNDiagram>
|
||||
</bpmn:definitions>
|
||||
|
Loading…
x
Reference in New Issue
Block a user