Tutorial idea+bpmn

        1. Primero, Idea descarga e instala el complemento bpmn. Hay muchos tutoriales en Internet. Es mejor agregar también la configuración utf-8.

        2. Busque en Internet muchos tutoriales sobre springboot + bpmn. No presentaré la construcción del proyecto aquí. Habrá muchas tablas de bases de datos. Solo debemos centrarnos en el diseño del proceso.

       Referencia:    https://blog.csdn.net/ssyujay/article/details/83896809?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param& Depth_1 -utm_source=distribute.pc_relevant_t0.none-task-blog- BlogCommendFromMachineLearnPai2-1.channel_param

        3. A continuación se utiliza como ejemplo una aplicación de sello iniciada por el usuario.

        3.1 Cree un archivo bpmn en el recurso. Es mejor incluir xxxx20.bpmn en el nombre del archivo.

        3.2 Primero arrastre StartEvent y luego haga clic con el mouse en una posición en blanco. El valor correspondiente del nombre es la aplicación de sello.

 

        3.3 Cree el nodo del proceso de inicio. La clave de formulario aquí está escrita como la dirección del controlador porque mi marco es la estructura de springmvc.

        3.4 Agregue el aprobador y arrastre UserTask a la derecha

        3.5 Aumentar el juicio

       3.6 Agregue el juicio de nueva solicitud. El campo Cesionario es muy crítico. Este campo se usa al iniciar el proceso en el primer paso. Debido a que los datos deben completarse aquí, debe traer este campo nuevamente y prestar atención a la escritura. estándares.

   4. Los anteriores son los pasos simples para diseñar la página de solicitud del sello. El código en formato xml del tutorial se adjunta a continuación.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:tns="http://www.activiti.org/test" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" expressionLanguage="http://www.w3.org/1999/XPath" id="m1595902519534" name="" targetNamespace="http://www.activiti.org/test" typeLanguage="http://www.w3.org/2001/XMLSchema">
  <process id="myProcess_1" isClosed="false" isExecutable="true" name="用章申请" processType="None">
    <startEvent activiti:formKey="/chapter/testActivitiChapter/form/add" activiti:initiator="applyUserId" id="_3" name="发起用章申请"/>
    <userTask activiti:assignee="admin" activiti:candidateUsers="admin" activiti:exclusive="true" activiti:formKey="/chapter/testActivitiChapter/form/audit" id="_4" name="领导审批"/>
    <sequenceFlow id="_5" sourceRef="_3" targetRef="_4"/>
    <exclusiveGateway gatewayDirection="Unspecified" id="_6" name="ExclusiveGateway"/>
    <sequenceFlow id="_7" sourceRef="_4" targetRef="_6"/>
    <userTask activiti:assignee="${applyUserId}" activiti:exclusive="true" id="_8" name="重新调整"/>
    <endEvent id="_9" name="结束流程"/>
    <sequenceFlow id="_10" name="不同意" sourceRef="_6" targetRef="_8">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!pass}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="_11" name="同意" sourceRef="_6" targetRef="_9">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass}]]></conditionExpression>
    </sequenceFlow>
    <exclusiveGateway gatewayDirection="Unspecified" id="_12" name="ExclusiveGateway"/>
    <sequenceFlow id="_13" sourceRef="_8" targetRef="_12"/>
    <sequenceFlow id="_14" name="重新申请" sourceRef="_12" targetRef="_4">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${reapply}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="_15" name="结束申请" sourceRef="_12" targetRef="_9">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!reapply]]></conditionExpression>
    </sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram documentation="background=#3C3F41;count=1;horizontalcount=1;orientation=0;width=842.4;height=1195.2;imageableWidth=832.4;imageableHeight=1185.2;imageableX=5.0;imageableY=5.0" id="Diagram-_1" name="New Diagram">
    <bpmndi:BPMNPlane bpmnElement="myProcess_1">
      <bpmndi:BPMNShape bpmnElement="_3" id="Shape-_3">
        <omgdc:Bounds height="32.0" width="32.0" x="295.0" y="90.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_4" id="Shape-_4">
        <omgdc:Bounds height="55.0" width="85.0" x="280.0" y="215.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="55.0" width="85.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_6" id="Shape-_6" isMarkerVisible="false">
        <omgdc:Bounds height="32.0" width="32.0" x="285.0" y="360.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_8" id="Shape-_8">
        <omgdc:Bounds height="55.0" width="85.0" x="425.0" y="360.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="55.0" width="85.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_9" id="Shape-_9">
        <omgdc:Bounds height="32.0" width="32.0" x="270.0" y="500.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_12" id="Shape-_12" isMarkerVisible="false">
        <omgdc:Bounds height="32.0" width="32.0" x="590.0" y="370.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="_13" id="BPMNEdge__13" sourceElement="_8" targetElement="_12">
        <omgdi:waypoint x="510.0" y="387.5"/>
        <omgdi:waypoint x="590.0" y="386.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_15" id="BPMNEdge__15" sourceElement="_12" targetElement="_9">
        <omgdi:waypoint x="610.0" y="398.0"/>
        <omgdi:waypoint x="610.0" y="455.0"/>
        <omgdi:waypoint x="302.0" y="516.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_14" id="BPMNEdge__14" sourceElement="_12" targetElement="_4">
        <omgdi:waypoint x="610.0" y="374.0"/>
        <omgdi:waypoint x="610.0" y="305.0"/>
        <omgdi:waypoint x="365.0" y="242.5"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_5" id="BPMNEdge__5" sourceElement="_3" targetElement="_4">
        <omgdi:waypoint x="311.0" y="122.0"/>
        <omgdi:waypoint x="311.0" y="215.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_7" id="BPMNEdge__7" sourceElement="_4" targetElement="_6">
        <omgdi:waypoint x="301.0" y="270.0"/>
        <omgdi:waypoint x="301.0" y="360.0"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_11" id="BPMNEdge__11" sourceElement="_6" targetElement="_9">
        <omgdi:waypoint x="293.5" y="384.5"/>
        <omgdi:waypoint x="293.5" y="501.8667059748974"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_10" id="BPMNEdge__10" sourceElement="_6" targetElement="_8">
        <omgdi:waypoint x="317.0" y="376.0"/>
        <omgdi:waypoint x="425.0" y="387.5"/>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>

        5. Utilice la gestión de plantillas de proceso que viene con el marco de ingeniería y cargue los archivos creados anteriormente.

        6. Inicie el proceso y salte a la página de clave del formulario donde completamos el proceso.

        7. Aprobación del administrador

 

         8.Rechazado

 

    Lo anterior son todos los tutoriales sobre la aplicación de sellos simples. De hecho, es principalmente para hacer un registro de bpmn para el diseño de páginas de ideas. Busqué mucho en Internet y todos dieron introducciones generales. Espero que todos puedan tener una referencia cuando lo vean.

Supongo que te gusta

Origin blog.csdn.net/qq_33278354/article/details/107629911
Recomendado
Clasificación