代码之家  ›  专栏  ›  技术社区  ›  Raw

为什么Activiti sequenceFlow sourceRef和aretargetRef不正确?

  •  1
  • Raw  · 技术社区  · 7 年前

    <process id="simpleProcess" name="simpleProcess" isExecutable="true">
        <extensionElements>
          <activiti:executionListener event="end" class="com.example.activiti.listener.SimpleProcessEndListener"></activiti:executionListener>
        </extensionElements>
        <startEvent id="startevent" name="Start"></startEvent>
        <userTask id="userTask2" name="主管审批">
          <extensionElements>
            <activiti:taskListener event="create" class="com.example.activiti.listener.LeaderCheckListener"></activiti:taskListener>
          </extensionElements>
        </userTask>
        <userTask id="userTask3" name="总监审批" activiti:assignee="1004"></userTask>
        <sequenceFlow id="flow3" sourceRef="userTask4" targetRef="userTask4"></sequenceFlow>
        <userTask id="userTask4" name="总经理审批" activiti:assignee="1005"></userTask>
        <sequenceFlow id="flow4" sourceRef="userTask4" targetRef="userTask4"></sequenceFlow>
        <endEvent id="endevent" name="End">
          <extensionElements>
            <activiti:executionListener event="end" class="com.example.activiti.listener.SimpleProcessEndListener"></activiti:executionListener>
          </extensionElements>
        </endEvent>
        <userTask id="userTask1" name="请假申请"></userTask>
        <sequenceFlow id="flow1" sourceRef="startevent" targetRef="userTask4"></sequenceFlow>
        <sequenceFlow id="flow2" sourceRef="userTask4" targetRef="userTask4"></sequenceFlow>
        <sequenceFlow id="flow5" sourceRef="userTask4" targetRef="endevent"></sequenceFlow>
      </process>
    
    1 回复  |  直到 7 年前
        1
  •  0
  •   Greg Harley    7 年前

    以下流动元件:

    <sequenceFlow id="flow3" sourceRef="userTask4" targetRef="userTask4"></sequenceFlow>
    <sequenceFlow id="flow4" sourceRef="userTask4" targetRef="userTask4"></sequenceFlow>
    <sequenceFlow id="flow2" sourceRef="userTask4" targetRef="userTask4"></sequenceFlow>
    

    很容易开始拖动一条流线,然后在启动时的同一活动中发布,不幸的是,eclipse建模人员没有意识到这是一个无效的序列流,并将其添加到模型中。

    据我所知,eclipse modeler已不再维护(我可能错了)。

    格雷格