自建流程失败

Blade 未结 1 624
amoslam
amoslam 2022-04-11 00:52

一、该问题的重现步骤是什么?

1. image.png

2. 

3.


二、你期待的结果是什么?实际看到的又是什么?

    期待:创建bpm流程成功

    实际:报错,提示前言中不允许有内容。

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

    版本:2.9.1    

四、请提供详细的错误堆栈信息,这很重要。

    image.png

五、若有更多详细信息,请在下面提供。

1条回答
  •  amoslam
    amoslam (楼主)
    2022-04-11 00:53

    xml内容如下:

    xml version="1.0" encoding="UTF-8"?>

    <definitions xmlns="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:flowable="http://flowable.org/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" targetNamespace="http://bpmn.io/schema/bpmn">

      <process id="Leave" name="请假流程" isExecutable="true">

        <documentation>请假流程documentation>

        <startEvent id="startEvent_1" name="开始">

          <outgoing>flow1outgoing>

        startEvent>

        <userTask id="hrTask" name="人事审批" flowable:assignee="${taskUser}">

          <incoming>flow1incoming>

          <incoming>userPassFlowincoming>

          <outgoing>hrNotPassFlowoutgoing>

          <outgoing>hrPassFlowoutgoing>

        userTask>

        <sequenceFlow id="flow1" sourceRef="startEvent_1" targetRef="hrTask" />

        <userTask id="userTask" name="调整申请" flowable:assignee="${applyUser}">

          <incoming>hrNotPassFlowincoming>

          <incoming>bossNotPassFlowincoming>

          <incoming>managerNotPassFlowincoming>

          <outgoing>userPassFlowoutgoing>

          <outgoing>userNotPassFlowoutgoing>

        userTask>

        <sequenceFlow id="hrNotPassFlow" name="驳回" sourceRef="hrTask" targetRef="userTask">

          <conditionExpression xsi:type="tFormalExpression">${!pass}conditionExpression>

        sequenceFlow>

        <sequenceFlow id="userPassFlow" name="重新申请" sourceRef="userTask" targetRef="hrTask">

          <conditionExpression xsi:type="tFormalExpression">${pass}conditionExpression>

        sequenceFlow>

        <endEvent id="Event_0dmz9f4">

          <incoming>userNotPassFlowincoming>

          <incoming>managerPassFlowincoming>

          <incoming>bossPassFlowincoming>

        endEvent>

        <sequenceFlow id="userNotPassFlow" name="关闭申请" sourceRef="userTask" targetRef="Event_0dmz9f4">

          <conditionExpression xsi:type="tFormalExpression">${!pass}conditionExpression>

        sequenceFlow>

        <exclusiveGateway id="Gateway_08suvqd">

          <incoming>hrPassFlowincoming>

          <outgoing>judgeLessoutgoing>

          <outgoing>judgeMoreoutgoing>

        exclusiveGateway>

        <sequenceFlow id="hrPassFlow" name="同意" sourceRef="hrTask" targetRef="Gateway_08suvqd">

          <conditionExpression xsi:type="tFormalExpression">${pass}conditionExpression>

        sequenceFlow>

        <userTask id="managerTak" name="经理审批" flowable:assignee="manager">

          <incoming>judgeLessincoming>

          <outgoing>managerPassFlowoutgoing>

          <outgoing>managerNotPassFlowoutgoing>

        userTask>

        <sequenceFlow id="judgeLess" name="小于3天" sourceRef="Gateway_08suvqd" targetRef="managerTak">

          <conditionExpression xsi:type="tFormalExpression">${days <= 3}conditionExpression>

        sequenceFlow>

        <sequenceFlow id="managerPassFlow" name="通过" sourceRef="managerTak" targetRef="Event_0dmz9f4">

          <conditionExpression xsi:type="tFormalExpression">${pass}conditionExpression>

        sequenceFlow>

        <userTask id="bossTask" name="老板审批" flowable:assignee="boss">

          <incoming>judgeMoreincoming>

          <outgoing>bossPassFlowoutgoing>

          <outgoing>bossNotPassFlowoutgoing>

        userTask>

        <sequenceFlow id="judgeMore" name="大于3天" sourceRef="Gateway_08suvqd" targetRef="bossTask">

          <conditionExpression xsi:type="tFormalExpression">${days > 3}conditionExpression>

        sequenceFlow>

        <sequenceFlow id="bossPassFlow" name="通过" sourceRef="bossTask" targetRef="Event_0dmz9f4">

          <conditionExpression xsi:type="tFormalExpression">${pass}conditionExpression>

        sequenceFlow>

        <sequenceFlow id="bossNotPassFlow" name="驳回" sourceRef="bossTask" targetRef="userTask">

          <conditionExpression xsi:type="tFormalExpression">${!pass}conditionExpression>

        sequenceFlow>

        <sequenceFlow id="managerNotPassFlow" name="驳回" sourceRef="managerTak" targetRef="userTask">

          <conditionExpression xsi:type="tFormalExpression">${!pass}conditionExpression>

        sequenceFlow>

      process>

      <bpmndi:BPMNDiagram id="BPMNDiagram_flow">

        <bpmndi:BPMNPlane id="BPMNPlane_flow" bpmnElement="Leave">

          <bpmndi:BPMNEdge id="Flow_1qx8wkw_di" bpmnElement="managerNotPassFlow">

            <di:waypoint x="460" y="67" />

            <di:waypoint x="550" y="178" />

            <bpmndi:BPMNLabel>

              <dc:Bounds x="494" y="105" width="22" height="14" />

            bpmndi:BPMNLabel>

          bpmndi:BPMNEdge>

          <bpmndi:BPMNEdge id="Flow_1tfeaw9_di" bpmnElement="bossNotPassFlow">

            <di:waypoint x="535" y="341" />

            <di:waypoint x="560" y="320" />

            <di:waypoint x="560" y="258" />

            <bpmndi:BPMNLabel>

              <dc:Bounds x="537" y="313" width="22" height="14" />

            bpmndi:BPMNLabel>

          bpmndi:BPMNEdge>

          <bpmndi:BPMNEdge id="Flow_14xj5vz_di" bpmnElement="bossPassFlow">

            <di:waypoint x="540" y="380" />

            <di:waypoint x="710" y="380" />

            <di:waypoint x="710" y="236" />

            <bpmndi:BPMNLabel>

              <dc:Bounds x="614" y="362" width="22" height="14" />

            bpmndi:BPMNLabel>

          bpmndi:BPMNEdge>

          <bpmndi:BPMNEdge id="Flow_1h6rmil_di" bpmnElement="judgeMore">

            <di:waypoint x="255" y="380" />

            <di:waypoint x="440" y="380" />

            <bpmndi:BPMNLabel>

              <dc:Bounds x="328" y="362" width="40" height="14" />

            bpmndi:BPMNLabel>

          bpmndi:BPMNEdge>

          <bpmndi:BPMNEdge id="Flow_0r14yng_di" bpmnElement="managerPassFlow">

            <di:waypoint x="460" y="40" />

            <di:waypoint x="710" y="40" />

            <di:waypoint x="710" y="200" />

            <bpmndi:BPMNLabel>

              <dc:Bounds x="574" y="22" width="22" height="14" />

            bpmndi:BPMNLabel>

          bpmndi:BPMNEdge>

          <bpmndi:BPMNEdge id="Flow_1z0jna5_di" bpmnElement="judgeLess">

            <di:waypoint x="205" y="380" />

            <di:waypoint x="160" y="380" />

            <di:waypoint x="160" y="40" />

            <di:waypoint x="360" y="40" />

            <bpmndi:BPMNLabel>

              <dc:Bounds x="155" y="207" width="40" height="14" />

            bpmndi:BPMNLabel>

          bpmndi:BPMNEdge>

          <bpmndi:BPMNEdge id="Flow_1szknoi_di" bpmnElement="hrPassFlow">

            <di:waypoint x="341" y="258" />

            <di:waypoint x="242" y="367" />

            <bpmndi:BPMNLabel>

              <dc:Bounds x="281" y="293" width="22" height="14" />

            bpmndi:BPMNLabel>

          bpmndi:BPMNEdge>

          <bpmndi:BPMNEdge id="Flow_0ivs10d_di" bpmnElement="userNotPassFlow">

            <di:waypoint x="610" y="218" />

            <di:waypoint x="692" y="218" />

            <bpmndi:BPMNLabel>

              <dc:Bounds x="629" y="200" width="44" height="14" />

            bpmndi:BPMNLabel>

          bpmndi:BPMNEdge>

          <bpmndi:BPMNEdge id="Flow_0zq1d7v_di" bpmnElement="userPassFlow">

            <di:waypoint x="530" y="258" />

            <di:waypoint x="530" y="310" />

            <di:waypoint x="380" y="310" />

            <di:waypoint x="380" y="260" />

            <bpmndi:BPMNLabel>

              <dc:Bounds x="433" y="292" width="44" height="14" />

            bpmndi:BPMNLabel>

          bpmndi:BPMNEdge>

          <bpmndi:BPMNEdge id="Flow_0i80vhb_di" bpmnElement="hrNotPassFlow">

            <di:waypoint x="430" y="218" />

            <di:waypoint x="510" y="218" />

            <bpmndi:BPMNLabel>

              <dc:Bounds x="459" y="200" width="22" height="14" />

            bpmndi:BPMNLabel>

          bpmndi:BPMNEdge>

          <bpmndi:BPMNEdge id="Flow_19dr7rn_di" bpmnElement="flow1">

            <di:waypoint x="276" y="218" />

            <di:waypoint x="330" y="218" />

          bpmndi:BPMNEdge>

          <bpmndi:BPMNShape id="BPMNShape_startEvent_1" bpmnElement="startEvent_1">

            <dc:Bounds x="240" y="200" width="36" height="36" />

            <bpmndi:BPMNLabel>

              <dc:Bounds x="247" y="243" width="22" height="14" />

            bpmndi:BPMNLabel>

          bpmndi:BPMNShape>

          <bpmndi:BPMNShape id="Activity_0cqugjl_di" bpmnElement="hrTask">

            <dc:Bounds x="330" y="178" width="100" height="80" />

          bpmndi:BPMNShape>

          <bpmndi:BPMNShape id="Activity_14i2uxe_di" bpmnElement="userTask">

            <dc:Bounds x="510" y="178" width="100" height="80" />

          bpmndi:BPMNShape>

          <bpmndi:BPMNShape id="Event_0dmz9f4_di" bpmnElement="Event_0dmz9f4">

            <dc:Bounds x="692" y="200" width="36" height="36" />

          bpmndi:BPMNShape>

          <bpmndi:BPMNShape id="Gateway_08suvqd_di" bpmnElement="Gateway_08suvqd" isMarkerVisible="true">

            <dc:Bounds x="205" y="355" width="50" height="50" />

          bpmndi:BPMNShape>

          <bpmndi:BPMNShape id="Activity_1sordyx_di" bpmnElement="managerTak">

            <dc:Bounds x="360" y="0" width="100" height="80" />

          bpmndi:BPMNShape>

          <bpmndi:BPMNShape id="Activity_1h0z565_di" bpmnElement="bossTask">

            <dc:Bounds x="440" y="340" width="100" height="80" />

          bpmndi:BPMNShape>

        bpmndi:BPMNPlane>

      bpmndi:BPMNDiagram>

    definitions>


    0 讨论(0)
提交回复