mirror of
https://github.com/sartography/sample-process-models.git
synced 2025-02-24 21:58:18 +00:00
User: admin@spiffworkflow.org deleted process model misc/documentation/user-permissions-example
This commit is contained in:
parent
b345381818
commit
01d0790bb1
@ -1,54 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" xmlns:biodi="http://bpmn.io/schema/dmn/biodi/2.0" id="Definitions_76910d7" name="DRD" namespace="http://camunda.org/schema/1.0/dmn">
|
||||
<decision id="groups_to_permissions" name="Groups to Processes">
|
||||
<decisionTable id="decisionTable_1" hitPolicy="COLLECT">
|
||||
<input id="input_1">
|
||||
<inputExpression id="inputExpression_1" typeRef="string">
|
||||
<text>groups</text>
|
||||
</inputExpression>
|
||||
</input>
|
||||
<output id="output_1" name="permissions" typeRef="string" biodi:width="390" />
|
||||
<output id="OutputClause_0kchhlj" name="uri" typeRef="string" />
|
||||
<rule id="DecisionRule_13uhk78">
|
||||
<inputEntry id="UnaryTests_1yb5tu4">
|
||||
<text>"admin" in ?</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_1drtsn8">
|
||||
<text>["create", "read", "update", "delete"]</text>
|
||||
</outputEntry>
|
||||
<outputEntry id="LiteralExpression_0eliyyz">
|
||||
<text>"/*"</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_1rpt9bl">
|
||||
<inputEntry id="UnaryTests_1aa5gdv">
|
||||
<text>"Education" in ?</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_1jei2e7">
|
||||
<text>["create", "read", "update", "delete"]</text>
|
||||
</outputEntry>
|
||||
<outputEntry id="LiteralExpression_1cgcvfu">
|
||||
<text>"*"</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_1c22zub">
|
||||
<inputEntry id="UnaryTests_0jqmerq">
|
||||
<text></text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_14kqhj8">
|
||||
<text></text>
|
||||
</outputEntry>
|
||||
<outputEntry id="LiteralExpression_0qb4na8">
|
||||
<text></text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
</decisionTable>
|
||||
</decision>
|
||||
<dmndi:DMNDI>
|
||||
<dmndi:DMNDiagram id="DMNDiagram_1cykosu">
|
||||
<dmndi:DMNShape id="DMNShape_1dhfq2s" dmnElementRef="groups_to_permissions">
|
||||
<dc:Bounds height="80" width="180" x="157" y="151" />
|
||||
</dmndi:DMNShape>
|
||||
</dmndi:DMNDiagram>
|
||||
</dmndi:DMNDI>
|
||||
</definitions>
|
@ -1,100 +0,0 @@
|
||||
<?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" 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_81k3gh6" isExecutable="true">
|
||||
<bpmn:startEvent id="StartEvent_1">
|
||||
<bpmn:outgoing>Flow_04t49zv</bpmn:outgoing>
|
||||
</bpmn:startEvent>
|
||||
<bpmn:sequenceFlow id="Flow_04t49zv" sourceRef="StartEvent_1" targetRef="Activity_0wflw9z" />
|
||||
<bpmn:userTask id="Activity_0wflw9z" name="Select User To Test">
|
||||
<bpmn:extensionElements>
|
||||
<spiffworkflow:properties>
|
||||
<spiffworkflow:property name="formJsonSchemaFilename" value="select_user.json" />
|
||||
</spiffworkflow:properties>
|
||||
</bpmn:extensionElements>
|
||||
<bpmn:incoming>Flow_04t49zv</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_1by81ac</bpmn:outgoing>
|
||||
</bpmn:userTask>
|
||||
<bpmn:endEvent id="Event_0yjnug4">
|
||||
<bpmn:incoming>Flow_0q5cs4y</bpmn:incoming>
|
||||
</bpmn:endEvent>
|
||||
<bpmn:sequenceFlow id="Flow_0q5cs4y" sourceRef="Activity_0pdrn26" targetRef="Event_0yjnug4" />
|
||||
<bpmn:businessRuleTask id="Activity_0fqwhd1" name="Determine Users Group">
|
||||
<bpmn:extensionElements>
|
||||
<spiffworkflow:calledDecisionId>users_to_groups</spiffworkflow:calledDecisionId>
|
||||
</bpmn:extensionElements>
|
||||
<bpmn:incoming>Flow_1by81ac</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_194nkr6</bpmn:outgoing>
|
||||
</bpmn:businessRuleTask>
|
||||
<bpmn:businessRuleTask id="Activity_0iom85m" name="Determine Permissions">
|
||||
<bpmn:extensionElements>
|
||||
<spiffworkflow:calledDecisionId>groups_to_permissions</spiffworkflow:calledDecisionId>
|
||||
</bpmn:extensionElements>
|
||||
<bpmn:incoming>Flow_194nkr6</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_0hg2xwi</bpmn:outgoing>
|
||||
</bpmn:businessRuleTask>
|
||||
<bpmn:manualTask id="Activity_0pdrn26" name="Display Permissions">
|
||||
<bpmn:extensionElements>
|
||||
<spiffworkflow:instructionsForEndUser># Permissions for {{user}}
|
||||
If this were a real system, and you logged in as {{user}}, you would have the following groups and permissions based on the current business rules defined in this workflow.
|
||||
|
||||
## Groups
|
||||
|
||||
{% for group in groups %}
|
||||
* {{ group }}
|
||||
{% endfor %}
|
||||
|
||||
## Permissions
|
||||
{% for permission in permissions %}
|
||||
* {{ permission }}
|
||||
{% endfor %}</spiffworkflow:instructionsForEndUser>
|
||||
</bpmn:extensionElements>
|
||||
<bpmn:incoming>Flow_0hg2xwi</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_0q5cs4y</bpmn:outgoing>
|
||||
</bpmn:manualTask>
|
||||
<bpmn:sequenceFlow id="Flow_1by81ac" sourceRef="Activity_0wflw9z" targetRef="Activity_0fqwhd1" />
|
||||
<bpmn:sequenceFlow id="Flow_194nkr6" sourceRef="Activity_0fqwhd1" targetRef="Activity_0iom85m" />
|
||||
<bpmn:sequenceFlow id="Flow_0hg2xwi" sourceRef="Activity_0iom85m" targetRef="Activity_0pdrn26" />
|
||||
</bpmn:process>
|
||||
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
||||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_81k3gh6">
|
||||
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
||||
<dc:Bounds x="179" y="159" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Activity_03wbst8_di" bpmnElement="Activity_0wflw9z">
|
||||
<dc:Bounds x="270" y="137" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Event_0yjnug4_di" bpmnElement="Event_0yjnug4">
|
||||
<dc:Bounds x="912" y="159" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Activity_1afo4x3_di" bpmnElement="Activity_0fqwhd1">
|
||||
<dc:Bounds x="420" y="137" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Activity_0e33fg2_di" bpmnElement="Activity_0iom85m">
|
||||
<dc:Bounds x="590" y="137" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Activity_16w91n5_di" bpmnElement="Activity_0pdrn26">
|
||||
<dc:Bounds x="750" y="137" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNEdge id="Flow_04t49zv_di" bpmnElement="Flow_04t49zv">
|
||||
<di:waypoint x="215" y="177" />
|
||||
<di:waypoint x="270" y="177" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_0q5cs4y_di" bpmnElement="Flow_0q5cs4y">
|
||||
<di:waypoint x="850" y="177" />
|
||||
<di:waypoint x="912" y="177" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_1by81ac_di" bpmnElement="Flow_1by81ac">
|
||||
<di:waypoint x="370" y="177" />
|
||||
<di:waypoint x="420" y="177" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_194nkr6_di" bpmnElement="Flow_194nkr6">
|
||||
<di:waypoint x="520" y="177" />
|
||||
<di:waypoint x="590" y="177" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_0hg2xwi_di" bpmnElement="Flow_0hg2xwi">
|
||||
<di:waypoint x="690" y="177" />
|
||||
<di:waypoint x="750" y="177" />
|
||||
</bpmndi:BPMNEdge>
|
||||
</bpmndi:BPMNPlane>
|
||||
</bpmndi:BPMNDiagram>
|
||||
</bpmn:definitions>
|
@ -1,10 +0,0 @@
|
||||
{
|
||||
"description": "A quick stab at building a process that will control group assignment and permissions.",
|
||||
"display_name": "User Permissions Example",
|
||||
"display_order": 0,
|
||||
"exception_notification_addresses": [],
|
||||
"fault_or_suspend_on_exception": "fault",
|
||||
"files": [],
|
||||
"primary_file_name": "permissions.bpmn",
|
||||
"primary_process_id": "Process_81k3gh6"
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
{
|
||||
"title": "Select User",
|
||||
"description": "If the following user logged in ...",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"user"
|
||||
],
|
||||
"properties": {
|
||||
"user": {
|
||||
"title": "Select a user from the dropdown list",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"Nelson",
|
||||
"Malala",
|
||||
"Harriet",
|
||||
"Martin"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -1,54 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" xmlns:biodi="http://bpmn.io/schema/dmn/biodi/2.0" id="Definitions_76910d7" name="DRD" namespace="http://camunda.org/schema/1.0/dmn">
|
||||
<decision id="user_group_to_process_group" name="User Group to Process Group">
|
||||
<decisionTable id="decisionTable_1" hitPolicy="COLLECT">
|
||||
<input id="input_1">
|
||||
<inputExpression id="inputExpression_1" typeRef="string">
|
||||
<text>group</text>
|
||||
</inputExpression>
|
||||
</input>
|
||||
<output id="output_1" name="process_groups" typeRef="string" biodi:width="218" />
|
||||
<output id="OutputClause_0vufzsn" name="permission" typeRef="string" />
|
||||
<rule id="DecisionRule_0kvqjey">
|
||||
<inputEntry id="UnaryTests_188vvib">
|
||||
<text>"education"</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_0241ui5">
|
||||
<text>"education"</text>
|
||||
</outputEntry>
|
||||
<outputEntry id="LiteralExpression_0plhynk">
|
||||
<text>"ALL"</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_0261oi6">
|
||||
<inputEntry id="UnaryTests_0eq3hww">
|
||||
<text>"student"</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_0vvnylq">
|
||||
<text>"education/student_resources"</text>
|
||||
</outputEntry>
|
||||
<outputEntry id="LiteralExpression_01cane2">
|
||||
<text>"EXECUTE"</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_0dg0n2m">
|
||||
<inputEntry id="UnaryTests_17yniwo">
|
||||
<text></text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_0xna484">
|
||||
<text></text>
|
||||
</outputEntry>
|
||||
<outputEntry id="LiteralExpression_0yk5ezq">
|
||||
<text></text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
</decisionTable>
|
||||
</decision>
|
||||
<dmndi:DMNDI>
|
||||
<dmndi:DMNDiagram id="DMNDiagram_1cykosu">
|
||||
<dmndi:DMNShape id="DMNShape_1dhfq2s" dmnElementRef="user_group_to_process_group">
|
||||
<dc:Bounds height="80" width="180" x="157" y="151" />
|
||||
</dmndi:DMNShape>
|
||||
</dmndi:DMNDiagram>
|
||||
</dmndi:DMNDI>
|
||||
</definitions>
|
@ -1,68 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" xmlns:biodi="http://bpmn.io/schema/dmn/biodi/2.0" id="Definitions_76910d7" name="DRD" namespace="http://camunda.org/schema/1.0/dmn">
|
||||
<decision id="users_to_groups" name="Users to Groups">
|
||||
<decisionTable id="decisionTable_1" hitPolicy="COLLECT" biodi:annotationsWidth="400">
|
||||
<input id="input_1" biodi:width="192">
|
||||
<inputExpression id="inputExpression_1" typeRef="string">
|
||||
<text>user</text>
|
||||
</inputExpression>
|
||||
</input>
|
||||
<output id="output_1" name="groups" typeRef="Any" biodi:width="262" />
|
||||
<rule id="DecisionRule_1rbbrcv">
|
||||
<inputEntry id="UnaryTests_0u0oanl">
|
||||
<text>"Nelson"</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_0z6b50n">
|
||||
<text>"admin"</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_05sdhrp">
|
||||
<inputEntry id="UnaryTests_0pp8xqw">
|
||||
<text>"Malala"</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_07m82fl">
|
||||
<text>"education"</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_1j4cbyi">
|
||||
<inputEntry id="UnaryTests_0yr0a4a">
|
||||
<text>"Harriet"</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_08owxen">
|
||||
<text>"transportation"</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_03rp5yx">
|
||||
<inputEntry id="UnaryTests_0o18x2o">
|
||||
<text>"Martin"</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_16l6t6z">
|
||||
<text>"leadership"</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_1p24sca">
|
||||
<inputEntry id="UnaryTests_1chcp6w">
|
||||
<text>"Martin"</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_0ve18jt">
|
||||
<text>"admin"</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_0n0qeu0">
|
||||
<inputEntry id="UnaryTests_16sftr3">
|
||||
<text></text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_1visst9">
|
||||
<text>"core"</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
</decisionTable>
|
||||
</decision>
|
||||
<dmndi:DMNDI>
|
||||
<dmndi:DMNDiagram id="DMNDiagram_1cykosu">
|
||||
<dmndi:DMNShape id="DMNShape_1dhfq2s" dmnElementRef="users_to_groups">
|
||||
<dc:Bounds height="80" width="180" x="157" y="151" />
|
||||
</dmndi:DMNShape>
|
||||
</dmndi:DMNDiagram>
|
||||
</dmndi:DMNDI>
|
||||
</definitions>
|
Loading…
x
Reference in New Issue
Block a user