MediaWiki:WorkflowTest2.bpmn: Difference between revisions

No categories assignedEdit
No edit summary
No edit summary
Line 1: Line 1:
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wf="http://hallowelt.com/schema/bpmn/wf" 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_1vrglfw" targetNamespace="http://bpmn.io/schema/bpmn" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="8.7.1">
<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wf="http://hallowelt.com/schema/bpmn/wf" 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_1vrglfw" targetNamespace="http://bpmn.io/schema/bpmn" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="8.7.1">
<!-- Process part -->
  <bpmn:process id="Process_User_Control" isExecutable="false">
<bpmn:process id="Process_User_Control" isExecutable="false">
    <bpmn:extensionElements>
<bpmn:extensionElements>
      <wf:context>
<wf:context>
        <wf:contextItem name="pageId" />
<wf:contextItem name="pageId"/>
      </wf:context>
</wf:context>
    </bpmn:extensionElements>
</bpmn:extensionElements>
    <bpmn:startEvent id="TheStart">
<!-- StartEvent -->
      <bpmn:outgoing>FromTheStartToCollectData</bpmn:outgoing>
<bpmn:startEvent id="TheStart">
    </bpmn:startEvent>
<bpmn:outgoing>FromTheStartToCollectData</bpmn:outgoing>
    <bpmn:sequenceFlow id="FromTheStartToCollectData" sourceRef="TheStart" targetRef="CollectData" />
</bpmn:startEvent>
    <bpmn:userTask id="CollectData" name="CollectData">
<bpmn:sequenceFlow id="FromTheStartToCollectData" sourceRef="TheStart" targetRef="CollectData"/>
      <bpmn:extensionElements>
<!-- CollectData -->
        <wf:type>custom_form</wf:type>
<bpmn:userTask id="CollectData" name="CollectData">
        <wf:formModule>
<bpmn:extensionElements>
          <wf:module>ext.workflows.activity.collectdata.forms</wf:module>
<wf:type>custom_form</wf:type>
          <wf:class>workflows.object.form.UserCollectData</wf:class>
<wf:formModule>
        </wf:formModule>
<wf:module>ext.workflows.activity.collectdata.forms</wf:module>
        <wf:initializer>true</wf:initializer>
<wf:class>workflows.object.form.UserCollectData</wf:class>
      </bpmn:extensionElements>
</wf:formModule>
      <bpmn:incoming>FromTheStartToCollectData</bpmn:incoming>
<wf:initializer>true</wf:initializer>
      <bpmn:outgoing>FromCollectDataToUserFeedback</bpmn:outgoing>
</bpmn:extensionElements>
      <bpmn:property name="username" validation="existing-user" />
<bpmn:property name="username" validation="existing-user"/>
      <bpmn:property name="instructions" />
<bpmn:property name="instructions"/>
      <bpmn:property name="reportrecipient" validation="email-recipient" />
<bpmn:property name="reportrecipient" validation="email-recipient"/>
      <bpmn:property name="due_date" />
<bpmn:property name="due_date"/>
    </bpmn:userTask>
<bpmn:incoming>FromTheStartToCollectData</bpmn:incoming>
    <bpmn:sequenceFlow id="FromCollectDataToUserFeedback" sourceRef="CollectData" targetRef="Gruppenabstimmung" />
<bpmn:outgoing>FromCollectDataToUserFeedback</bpmn:outgoing>
    <bpmn:task id="SendMail" name="SendMail">
</bpmn:userTask>
      <bpmn:extensionElements>
<bpmn:sequenceFlow id="FromCollectDataToUserFeedback" sourceRef="CollectData" targetRef="UserFeedback"/>
        <wf:type>send_mail</wf:type>
<!-- Collect user vote -->
      </bpmn:extensionElements>
<bpmn:userTask id="UserFeedback" name="UserFeedback">
      <bpmn:incoming>Flow_0ovofli</bpmn:incoming>
<bpmn:extensionElements>
      <bpmn:outgoing>FromSendMailToTheEnd</bpmn:outgoing>
<wf:type>user_feedback</wf:type>
      <bpmn:property name="recipient" default="{{{CollectData.reportrecipient}}}" />
</bpmn:extensionElements>
      <bpmn:property name="subject" />
<bpmn:property name="assigned_user">{{{CollectData.username}}}</bpmn:property>
      <bpmn:property name="body" />
<bpmn:property name="instructions">{{{CollectData.instructions}}}</bpmn:property>
    </bpmn:task>
<bpmn:property name="comment"/>
    <bpmn:sequenceFlow id="FromSendMailToTheEnd" sourceRef="SendMail" targetRef="TheEnd" />
<bpmn:property name="due_date">{{#time:YmdHis|{{{CollectData.due_date}}} + 7days}}</bpmn:property>
    <bpmn:endEvent id="TheEnd">
<bpmn:incoming>FromCollectDataToUserFeedback</bpmn:incoming>
      <bpmn:incoming>FromSendMailToTheEnd</bpmn:incoming>
<bpmn:outgoing>FromUserFeedbackToSendMail</bpmn:outgoing>
    </bpmn:endEvent>
</bpmn:userTask>
    <bpmn:userTask id="Gruppenabstimmung" name="Gruppenabstimmung">
<bpmn:sequenceFlow id="FromUserFeedbackToSendMail" sourceRef="UserFeedback" targetRef="SendMail"/>
      <bpmn:extensionElements>
<!-- Send mail -->
        <wf:type>group_vote</wf:type>
<bpmn:task id="SendMail" name="SendMail">
      </bpmn:extensionElements>
<bpmn:extensionElements>
      <bpmn:incoming>FromCollectDataToUserFeedback</bpmn:incoming>
<wf:type>send_mail</wf:type>
      <bpmn:outgoing>Flow_0ovofli</bpmn:outgoing>
</bpmn:extensionElements>
      <bpmn:property name="assigned_group" default="sysop" />
<bpmn:property name="recipient" default="{{{CollectData.reportrecipient}}}"/>
      <bpmn:property name="instructions" default="" />
<bpmn:property name="subject">{{int:workflows-default-user-feedback-report-subject|{{FULLPAGENAME}}}}</bpmn:property>
      <bpmn:property name="due_date" default="" />
<bpmn:property name="body">{{int:workflows-default-user-feedback-body|
      <bpmn:property name="threshold_yes_unit" default="user" />
{{#timel:D j, Y (H:i T)|{{{start_date}}} }}|
      <bpmn:property name="threshold_yes_value" default="1" />
{{#timel:D j, Y (H:i T)|{{LOCALTIMESTAMP}} }}|
      <bpmn:property name="threshold_no_unit" default="user" />
{{FULLPAGENAME}}|
      <bpmn:property name="threshold_no_value" default="1" />
{{REVISIONID}}|
      <bpmn:property name="users_voted" default="" />
{{{CollectData.username}}}|
      <bpmn:property name="vote" default="" />
{{{CollectData.instructions}}}|
      <bpmn:property name="comment" default="" />
{{{UserFeedback.comment}}}|
    </bpmn:userTask>
{{{initiator}}} }}
    <bpmn:sequenceFlow id="Flow_0ovofli" sourceRef="Gruppenabstimmung" targetRef="SendMail" />
</bpmn:property>
  </bpmn:process>
<bpmn:incoming>FromUserFeedbackToSendMail</bpmn:incoming>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmn:outgoing>FromSendMailToTheEnd</bpmn:outgoing>
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_User_Control">
</bpmn:task>
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="TheStart">
<bpmn:sequenceFlow id="FromSendMailToTheEnd" sourceRef="SendMail" targetRef="TheEnd"/>
        <dc:Bounds x="162" y="102" width="36" height="36" />
<!-- EndEvent -->
      </bpmndi:BPMNShape>
<bpmn:endEvent id="TheEnd">
      <bpmndi:BPMNShape id="CollectData_di" bpmnElement="CollectData">
<bpmn:incoming>FromSendMailToTheEnd</bpmn:incoming>
        <dc:Bounds x="250" y="80" width="100" height="80" />
</bpmn:endEvent>
      </bpmndi:BPMNShape>
</bpmn:process>
      <bpmndi:BPMNShape id="SendMail_di" bpmnElement="SendMail">
<!-- Visual part -->
        <dc:Bounds x="650" y="80" width="100" height="80" />
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
      </bpmndi:BPMNShape>
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_User_Control">
      <bpmndi:BPMNShape id="TheEnd_di" bpmnElement="TheEnd">
<bpmndi:BPMNEdge id="FromUserFeedbackToSendMail_di" bpmnElement="FromUserFeedbackToSendMail">
        <dc:Bounds x="812" y="102" width="36" height="36" />
<di:waypoint x="530" y="120"/>
      </bpmndi:BPMNShape>
<di:waypoint x="650" y="120"/>
      <bpmndi:BPMNShape id="Activity_0dsesh7_di" bpmnElement="Gruppenabstimmung">
</bpmndi:BPMNEdge>
        <dc:Bounds x="430" y="80" width="100" height="80" />
<bpmndi:BPMNEdge id="FromSendMailToTheEnd_di" bpmnElement="FromSendMailToTheEnd">
        <bpmndi:BPMNLabel />
<di:waypoint x="750" y="120"/>
      </bpmndi:BPMNShape>
<di:waypoint x="812" y="120"/>
      <bpmndi:BPMNEdge id="FromTheStartToCollectData_di" bpmnElement="FromTheStartToCollectData">
</bpmndi:BPMNEdge>
        <di:waypoint x="198" y="120" />
<bpmndi:BPMNEdge id="FromCollectDataToUserFeedback_di" bpmnElement="FromCollectDataToUserFeedback">
        <di:waypoint x="250" y="120" />
<di:waypoint x="350" y="120"/>
      </bpmndi:BPMNEdge>
<di:waypoint x="430" y="120"/>
      <bpmndi:BPMNEdge id="FromCollectDataToUserFeedback_di" bpmnElement="FromCollectDataToUserFeedback">
</bpmndi:BPMNEdge>
        <di:waypoint x="350" y="120" />
<bpmndi:BPMNEdge id="FromTheStartToCollectData_di" bpmnElement="FromTheStartToCollectData">
        <di:waypoint x="430" y="120" />
<di:waypoint x="198" y="120"/>
      </bpmndi:BPMNEdge>
<di:waypoint x="250" y="120"/>
      <bpmndi:BPMNEdge id="FromSendMailToTheEnd_di" bpmnElement="FromSendMailToTheEnd">
</bpmndi:BPMNEdge>
        <di:waypoint x="750" y="120" />
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="TheStart">
        <di:waypoint x="812" y="120" />
<dc:Bounds x="162" y="102" width="36" height="36"/>
      </bpmndi:BPMNEdge>
</bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="Flow_0ovofli_di" bpmnElement="Flow_0ovofli">
<bpmndi:BPMNShape id="CollectData_di" bpmnElement="CollectData">
        <di:waypoint x="530" y="120" />
<dc:Bounds x="250" y="80" width="100" height="80"/>
        <di:waypoint x="650" y="120" />
</bpmndi:BPMNShape>
      </bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="UserFeedback_di" bpmnElement="UserFeedback">
    </bpmndi:BPMNPlane>
<dc:Bounds x="430" y="80" width="100" height="80"/>
  </bpmndi:BPMNDiagram>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="SendMail_di" bpmnElement="SendMail">
<dc:Bounds x="650" y="80" width="100" height="80"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="TheEnd_di" bpmnElement="TheEnd">
<dc:Bounds x="812" y="102" width="36" height="36"/>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
</bpmn:definitions>

Revision as of 12:59, 24 November 2025