2

我是 Activiti 6.0.0 的新手,我创建了一个带有用户任务的进程,第二个用户任务有两个表单属性,但是当我完成第一个用户任务并尝试完成第二个用户任务时,表单属性不显示,我无法完成用户任务..

下面是我的 bpm 流程:

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 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" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/processdef">
  <process id="test-issue-workflow" name="Test Issue Workflow" isExecutable="true">
    <startEvent id="sid-5A259606-C7C4-4A8E-95F0-F2E8B9D0301E"></startEvent>
    <userTask id="task-1" name="User Task 1" activiti:candidateGroups="development">
    </userTask>
    <sequenceFlow id="sid-809C5257-C1D3-4B64-8258-8C5B4F5DCD4A" sourceRef="sid-5A259606-C7C4-4A8E-95F0-F2E8B9D0301E" targetRef="start-progress"></sequenceFlow>
    <userTask id="task-2" name="User Task 2" activiti:candidateGroups="qa">
      <extensionElements>
        <activiti:formProperty id="workRequired" name="Work Required" type="boolean"></activiti:formProperty>
      </extensionElements>
    </userTask>
    <sequenceFlow id="sid-53297083-66C8-4FB3-A5BF-0672E68D0FA7" sourceRef="start-progress" targetRef="initiate-review"></sequenceFlow>
    <sequenceFlow id="sid-34C91FDF-757A-4676-A42C-E4FDC4F3549A" sourceRef="initiate-review" targetRef="sid-2E9F7CFB-5DAE-425D-9B86-7DE000E66627"></sequenceFlow>
    <endEvent id="sid-040D6C5C-BA05-44B4-98BF-AB2672C4ABE3"></endEvent>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_test-issue-workflow">
    <bpmndi:BPMNPlane bpmnElement="test-flow" id="BPMNPlane_test-flow">
      <bpmndi:BPMNShape bpmnElement="sid-5A259606-C7C4-4A8E-95F0-F2E8B9D0301E" id="BPMNShape_sid-5A259606-C7C4-4A8E-95F0-F2E8B9D0301E">
        <omgdc:Bounds height="30.0" width="30.0" x="105.0" y="130.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="start-progress" id="BPMNShape_start-progress">
        <omgdc:Bounds height="80.0" width="100.0" x="270.0" y="105.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="initiate-review" id="BPMNShape_initiate-review">
</definitions>

谁能帮帮我吗。

4

2 回答 2

0

除了巴萨姆的回答。Activiti 6 UI 中不再使用表单属性,它们用于自定义 UI 和向后兼容性。谢谢,格雷格

于 2017-06-09T12:36:15.723 回答
0

新的 Activiti 6 UI 使用不同的方式来显示表单。它包括一个表单设计器,可以通过拖放字段来设计表单。然后在启动事件和用户任务中使用 activiti:formKey 属性来引用表单。

于 2017-06-08T15:38:15.247 回答