cancel
Showing results for 
Search instead for 
Did you mean: 

Model value should be a String

steper
Champ in-the-making
Champ in-the-making
Hello All,
Sorry for my basic English.
I wanna to do a little project using Activiti.
Part of the code(i use it in me 2nd task):
      FormService formService = processEngine.getFormService();
      List<FormProperty> data = formService.getTaskFormData(taskId).getFormProperties(); // here if have org.activiti.engine.ActivitiIllegalArgumentException: Model value should be a String
at org.activiti.engine.impl.form.EnumFormType.convertModelValueToFormValue(EnumFormType.java:55)
   at org.activiti.engine.impl.form.FormPropertyHandler.createFormProperty(FormPropertyHandler.java:67)
   at org.activiti.engine.impl.form.DefaultFormHandler.initializeFormProperties(DefaultFormHandler.java:86)
   at org.activiti.engine.impl.form.DefaultTaskFormHandler.createTaskForm(DefaultTaskFormHandler.java:36)
   at org.activiti.engine.impl.cmd.GetTaskFormCmd.execute(GetTaskFormCmd.java:56)
   at org.activiti.engine.impl.cmd.GetTaskFormCmd.execute(GetTaskFormCmd.java:32)
   at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)
   at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)
   at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
   at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)
   at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)
   at org.activiti.engine.impl.FormServiceImpl.getTaskFormData(FormServiceImpl.java:58)


but it works(i use it in me 1st task):
         properties = formService.getStartFormData(processDefinition.getId()).getFormProperties();
In bpmn file i made a similar forms, but i cant get task form data, only start fotm data.
its my bpmn:
<?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" xmlnsSmiley Surprisedmgdc="http://www.omg.org/spec/DD/20100524/DC" xmlnsSmiley Surprisedmgdi="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.joxnet.ru/process">
  <message id="payment" name="payment"></message>
  <process id="connection" name="Подключение юр. лиц" isExecutable="true">
    <extensionElements>
      <activiti:executionListener event="start" class="ru.joxnet.bss.modules.clients.connections.listeners.GlobalExecutionListener">
        <activiti:field name="state">
          <activiti:string><![CDATA[START]]></activiti:string>
        </activiti:field>
      </activiti:executionListener>
      <activiti:executionListener event="end" class="ru.joxnet.bss.modules.clients.connections.listeners.GlobalExecutionListener">
        <activiti:field name="state">
          <activiti:string><![CDATA[END]]></activiti:string>
        </activiti:field>
      </activiti:executionListener>
    </extensionElements>
    <startEvent id="start" name="Start" activiti:initiator="initiator">
      <documentation>Запуск процесса подключения юр. лица.</documentation>
      <extensionElements>
        <activiti:formProperty id="connection.id" name="Идентификатор акта" type="long" readable="false" required="true"></activiti:formProperty>
        <activiti:formProperty id="connection.shortTitle" name="Короткое название" type="string" required="true"></activiti:formProperty>
        <activiti:formProperty id="connection.fullTitle" name="Полное название" type="string"></activiti:formProperty>
        <activiti:formProperty id="connection.source.id" name="Источник подключения" type="enum">
          <activiti:value id="1" name="– Не выбран –"></activiti:value>
          <activiti:value id="2" name="Сайт"></activiti:value>
          <activiti:value id="3" name="Входящий звонок"></activiti:value>
          <activiti:value id="4" name="Обзвон"></activiti:value>
          <activiti:value id="5" name="Обход"></activiti:value>
          <activiti:value id="6" name="Агент"></activiti:value>
        </activiti:formProperty>
        <activiti:formProperty id="connection.comment" name="Комментарий" type="string"></activiti:formProperty>
      </extensionElements>
    </startEvent>
    <userTask id="makeConnection" name="Подготовка акта" activiti:assignee="${initiator}">
      <documentation>Подготовка акта</documentation>
      <extensionElements>
        <activiti:formProperty id="connection.id" name="Идентификатор акта" type="long" readable="false" required="true"></activiti:formProperty>
        <activiti:formProperty id="connection.shortTitle" name="Короткое название" type="string" required="true"></activiti:formProperty>
        <activiti:formProperty id="connection.fullTitle" name="Полное название" type="string"></activiti:formProperty>
        <activiti:formProperty id="connectionSourceId" name="Источник подключения" type="enum">
          <activiti:value id="1" name="– Не выбран –"></activiti:value>
          <activiti:value id="2" name="Сайт"></activiti:value>
          <activiti:value id="3" name="Входящий звонок"></activiti:value>
          <activiti:value id="4" name="Обзвон"></activiti:value>
          <activiti:value id="5" name="Обход"></activiti:value>
          <activiti:value id="6" name="Агент"></activiti:value>
        </activiti:formProperty>
        <activiti:formProperty id="connectionComment" name="Комментарий" type="string"></activiti:formProperty>
        <activiti:formProperty id="actionId" name="Идентификатор действия пользователя" type="enum" required="true">
          <activiti:value id="simpleCalculation" name="Базовый расчёт"></activiti:value>
          <activiti:value id="fullCalculation" name="Точный расчёт"></activiti:value>
        </activiti:formProperty>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow1" sourceRef="start" targetRef="makeConnection"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
    <userTask id="simpleCalculation" name="Базовый расчёт для ${connection.shortTitle}" activiti:candidateGroups="JOX-GTeh_SUPP">
      <documentation>Выполнение базового расчёта для ${connection.shortTitle}</documentation>
      <extensionElements>
        <activiti:formProperty id="connection.id" name="Идентификатор акта" type="long" readable="false" required="true"></activiti:formProperty>
        <activiti:formProperty id="connection.shortTitle" name="Короткое название" type="string" writable="false" required="true"></activiti:formProperty>
        <activiti:formProperty id="connection.fullTitle" name="Полное название" type="string" writable="false"></activiti:formProperty>
        <activiti:formProperty id="connection.source.id" name="Источник подключения" type="enum" writable="false">
          <activiti:value id="1" name="– Не выбран –"></activiti:value>
          <activiti:value id="2" name="Сайт"></activiti:value>
          <activiti:value id="3" name="Входящий звонок"></activiti:value>
          <activiti:value id="4" name="Обзвон"></activiti:value>
          <activiti:value id="5" name="Обход"></activiti:value>
          <activiti:value id="6" name="Агент"></activiti:value>
        </activiti:formProperty>
        <activiti:formProperty id="connection.comment" name="Комментарий" type="string" writable="false"></activiti:formProperty>
      </extensionElements>
    </userTask>
    <userTask id="fullCalculation" name="Точный расчёт для ${connection.shortTitle}" activiti:candidateGroups="JOX-GTeh_SUPP">
      <documentation>Выполнение точного расчёта для ${connection.shortTitle}</documentation>
      <extensionElements>
        <activiti:formProperty id="connection.id" name="Идентификатор акта" type="long" readable="false" required="true"></activiti:formProperty>
        <activiti:formProperty id="connection.shortTitle" name="Короткое название" type="string" writable="false" required="true"></activiti:formProperty>
        <activiti:formProperty id="connection.fullTitle" name="Полное название" type="string" writable="false"></activiti:formProperty>
        <activiti:formProperty id="connection.source.id" name="Источник подключения" type="enum" writable="false">
          <activiti:value id="1" name="– Не выбран –"></activiti:value>
          <activiti:value id="2" name="Сайт"></activiti:value>
          <activiti:value id="3" name="Входящий звонок"></activiti:value>
          <activiti:value id="4" name="Обзвон"></activiti:value>
          <activiti:value id="5" name="Обход"></activiti:value>
          <activiti:value id="6" name="Агент"></activiti:value>
        </activiti:formProperty>
        <activiti:formProperty id="connection.comment" name="Комментарий" type="string" writable="false"></activiti:formProperty>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow3" name="Базовый расчёт" sourceRef="exclusivegateway1" targetRef="simpleCalculation">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${action.id == 'simpleCalculation'}]]></conditionExpression>
    </sequenceFlow>
    <userTask id="checkSimpleCalculation" name="Проверка базового расчёта для ${shortTitle}" activiti:candidateUsers="${initiator}">
      <extensionElements>
        <activiti:formProperty id="actionId" name="Идентификатор действия пользователя" type="enum" required="true">
          <activiti:value id="approve" name="Подтвердить"></activiti:value>
          <activiti:value id="cancel" name="Отменить"></activiti:value>
        </activiti:formProperty>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow7" sourceRef="simpleCalculation" targetRef="checkSimpleCalculation"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway3" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow9" name="Согласовано" sourceRef="exclusivegateway4" targetRef="exclusivegateway3">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${actionId == 'approve'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow10" name="Точный расчёт" sourceRef="exclusivegateway1" targetRef="exclusivegateway3">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${actionId == 'fullCalculation'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow11" sourceRef="exclusivegateway3" targetRef="fullCalculation"></sequenceFlow>
    <userTask id="checkFullCalculation" name="Проверка точного расчёта для ${shortTitle}" activiti:candidateUsers="${initiator}">
      <extensionElements>
        <activiti:formProperty id="actionId" name="Идентификатор действия пользователя" type="enum" required="true">
          <activiti:value id="approve" name="Подтвердить"></activiti:value>
          <activiti:value id="cancel" name="Отменить"></activiti:value>
        </activiti:formProperty>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow12" sourceRef="fullCalculation" targetRef="checkFullCalculation"></sequenceFlow>
    <endEvent id="end" name="End"></endEvent>
    <exclusiveGateway id="exclusivegateway4" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow14" sourceRef="checkSimpleCalculation" targetRef="exclusivegateway4"></sequenceFlow>
    <sequenceFlow id="flow15" name="Отменено" sourceRef="exclusivegateway4" targetRef="makeConnection">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${actionId == 'cancel'}]]></conditionExpression>
    </sequenceFlow>
    <exclusiveGateway id="exclusivegateway7" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow18" sourceRef="checkFullCalculation" targetRef="exclusivegateway7"></sequenceFlow>
    <userTask id="usertask1" name="Создание договора для ${shortTitle}" activiti:candidateUsers="${initiator}"></userTask>
    <sequenceFlow id="flow19" name="Согласовано" sourceRef="exclusivegateway7" targetRef="usertask6">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${actionId == 'approve'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow20" name="Отменено" sourceRef="exclusivegateway7" targetRef="makeConnection">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${actionId == 'cancel'}]]></conditionExpression>
    </sequenceFlow>
    <userTask id="usertask2" name="Подписание договора для ${shortTitle}" activiti:candidateUsers="${initiator}">
      <extensionElements>
        <activiti:formProperty id="waitPayment" name="Ожидание оплаты" type="boolean" required="true"></activiti:formProperty>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow21" sourceRef="usertask1" targetRef="usertask2"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway8" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow22" sourceRef="usertask2" targetRef="exclusivegateway8"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway9" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow23" name="Оплата не требуется" sourceRef="exclusivegateway8" targetRef="exclusivegateway9">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!waitPayment}]]></conditionExpression>
    </sequenceFlow>
    <intermediateCatchEvent id="messageintermediatecatchevent1" name="MessageCatchEvent">
      <messageEventDefinition messageRef="payment"></messageEventDefinition>
    </intermediateCatchEvent>
    <sequenceFlow id="flow24" sourceRef="exclusivegateway8" targetRef="messageintermediatecatchevent1">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${waitPayment}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow25" sourceRef="messageintermediatecatchevent1" targetRef="exclusivegateway9"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway10" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow26" sourceRef="exclusivegateway9" targetRef="exclusivegateway10"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway11" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow27" name="Согласование не требуется" sourceRef="exclusivegateway10" targetRef="exclusivegateway11">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!needNegotiation}]]></conditionExpression>
    </sequenceFlow>
    <userTask id="usertask3" name="Согласование тех. блоком" activiti:candidateGroups="JOX-GTeh_SUPP"></userTask>
    <sequenceFlow id="flow28" sourceRef="exclusivegateway10" targetRef="usertask3">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${needNegotiation}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow29" sourceRef="usertask3" targetRef="exclusivegateway11"></sequenceFlow>
    <userTask id="usertask4" name="Подключение" activiti:candidateGroups="JOX-GTeh_SUPP"></userTask>
    <sequenceFlow id="flow30" sourceRef="exclusivegateway11" targetRef="usertask4"></sequenceFlow>
    <userTask id="usertask5" name="Проверка" activiti:candidateUsers="${initiator}"></userTask>
    <sequenceFlow id="flow31" sourceRef="usertask4" targetRef="usertask5"></sequenceFlow>
    <sequenceFlow id="flow32" sourceRef="usertask5" targetRef="end"></sequenceFlow>
    <userTask id="usertask6" name="Составление списка согласования для ${shortTitle}" activiti:candidateUsers="${initiator}">
      <extensionElements>
        <activiti:formProperty id="needNegotiation" name="Требуется согласование" type="boolean" required="true"></activiti:formProperty>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow33" sourceRef="usertask6" targetRef="usertask1"></sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_connection">
    <bpmndi:BPMNPlane bpmnElement="connection" id="BPMNPlane_connection">
      <bpmndi:BPMNShape bpmnElement="start" id="BPMNShape_start">
        <omgdc:Bounds height="35.0" width="35.0" x="51.0" y="90.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="makeConnection" id="BPMNShape_makeConnection">
        <omgdc:Bounds height="55.0" width="126.0" x="120.0" y="80.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1">
        <omgdc:Bounds height="40.0" width="40.0" x="280.0" y="87.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="simpleCalculation" id="BPMNShape_simpleCalculation">
        <omgdc:Bounds height="55.0" width="161.0" x="220.0" y="180.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="fullCalculation" id="BPMNShape_fullCalculation">
        <omgdc:Bounds height="55.0" width="161.0" x="520.0" y="80.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="checkSimpleCalculation" id="BPMNShape_checkSimpleCalculation">
        <omgdc:Bounds height="55.0" width="151.0" x="225.0" y="280.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway3" id="BPMNShape_exclusivegateway3">
        <omgdc:Bounds height="40.0" width="40.0" x="430.0" y="87.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="checkFullCalculation" id="BPMNShape_checkFullCalculation">
        <omgdc:Bounds height="55.0" width="151.0" x="730.0" y="80.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="end" id="BPMNShape_end">
        <omgdc:Bounds height="35.0" width="35.0" x="2480.0" y="91.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway4" id="BPMNShape_exclusivegateway4">
        <omgdc:Bounds height="40.0" width="40.0" x="280.0" y="370.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway7" id="BPMNShape_exclusivegateway7">
        <omgdc:Bounds height="40.0" width="40.0" x="940.0" y="87.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask1" id="BPMNShape_usertask1">
        <omgdc:Bounds height="55.0" width="161.0" x="1310.0" y="80.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask2" id="BPMNShape_usertask2">
        <omgdc:Bounds height="55.0" width="161.0" x="1530.0" y="80.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway8" id="BPMNShape_exclusivegateway8">
        <omgdc:Bounds height="40.0" width="40.0" x="1750.0" y="87.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway9" id="BPMNShape_exclusivegateway9">
        <omgdc:Bounds height="40.0" width="40.0" x="1835.0" y="88.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="messageintermediatecatchevent1" id="BPMNShape_messageintermediatecatchevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="1800.0" y="153.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway10" id="BPMNShape_exclusivegateway10">
        <omgdc:Bounds height="40.0" width="40.0" x="1975.0" y="88.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway11" id="BPMNShape_exclusivegateway11">
        <omgdc:Bounds height="40.0" width="40.0" x="2100.0" y="88.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask3" id="BPMNShape_usertask3">
        <omgdc:Bounds height="55.0" width="161.0" x="1915.0" y="179.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask4" id="BPMNShape_usertask4">
        <omgdc:Bounds height="55.0" width="105.0" x="2185.0" y="81.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask5" id="BPMNShape_usertask5">
        <omgdc:Bounds height="55.0" width="105.0" x="2335.0" y="81.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask6" id="BPMNShape_usertask6">
        <omgdc:Bounds height="55.0" width="161.0" x="1080.0" y="80.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
        <omgdi:waypoint x="86.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="120.0" y="107.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
        <omgdi:waypoint x="300.0" y="127.0"></omgdi:waypoint>
        <omgdi:waypoint x="300.0" y="180.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="84.0" x="310.0" y="139.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7">
        <omgdi:waypoint x="300.0" y="235.0"></omgdi:waypoint>
        <omgdi:waypoint x="300.0" y="280.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9">
        <omgdi:waypoint x="320.0" y="390.0"></omgdi:waypoint>
        <omgdi:waypoint x="450.0" y="390.0"></omgdi:waypoint>
        <omgdi:waypoint x="450.0" y="127.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="66.0" x="330.0" y="390.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10">
        <omgdi:waypoint x="320.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="430.0" y="107.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="77.0" x="329.0" y="90.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11">
        <omgdi:waypoint x="470.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="520.0" y="107.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow12" id="BPMNEdge_flow12">
        <omgdi:waypoint x="681.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="730.0" y="107.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow14" id="BPMNEdge_flow14">
        <omgdi:waypoint x="300.0" y="335.0"></omgdi:waypoint>
        <omgdi:waypoint x="300.0" y="370.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow15" id="BPMNEdge_flow15">
        <omgdi:waypoint x="280.0" y="390.0"></omgdi:waypoint>
        <omgdi:waypoint x="183.0" y="389.0"></omgdi:waypoint>
        <omgdi:waypoint x="183.0" y="135.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="52.0" x="209.0" y="391.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow18" id="BPMNEdge_flow18">
        <omgdi:waypoint x="881.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="940.0" y="107.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow19" id="BPMNEdge_flow19">
        <omgdi:waypoint x="980.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="1080.0" y="107.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="66.0" x="990.0" y="107.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow20" id="BPMNEdge_flow20">
        <omgdi:waypoint x="960.0" y="87.0"></omgdi:waypoint>
        <omgdi:waypoint x="960.0" y="28.0"></omgdi:waypoint>
        <omgdi:waypoint x="183.0" y="28.0"></omgdi:waypoint>
        <omgdi:waypoint x="183.0" y="80.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="52.0" x="970.0" y="61.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow21" id="BPMNEdge_flow21">
        <omgdi:waypoint x="1471.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="1530.0" y="107.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow22" id="BPMNEdge_flow22">
        <omgdi:waypoint x="1691.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="1750.0" y="107.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow23" id="BPMNEdge_flow23">
        <omgdi:waypoint x="1790.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="1835.0" y="108.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="42.0" width="100.0" x="1789.0" y="66.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow24" id="BPMNEdge_flow24">
        <omgdi:waypoint x="1770.0" y="127.0"></omgdi:waypoint>
        <omgdi:waypoint x="1770.0" y="170.0"></omgdi:waypoint>
        <omgdi:waypoint x="1800.0" y="170.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow25" id="BPMNEdge_flow25">
        <omgdi:waypoint x="1835.0" y="170.0"></omgdi:waypoint>
        <omgdi:waypoint x="1855.0" y="170.0"></omgdi:waypoint>
        <omgdi:waypoint x="1855.0" y="128.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow26" id="BPMNEdge_flow26">
        <omgdi:waypoint x="1875.0" y="108.0"></omgdi:waypoint>
        <omgdi:waypoint x="1975.0" y="108.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow27" id="BPMNEdge_flow27">
        <omgdi:waypoint x="2015.0" y="108.0"></omgdi:waypoint>
        <omgdi:waypoint x="2100.0" y="108.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="42.0" width="100.0" x="2014.0" y="66.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow28" id="BPMNEdge_flow28">
        <omgdi:waypoint x="1995.0" y="128.0"></omgdi:waypoint>
        <omgdi:waypoint x="1995.0" y="179.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow29" id="BPMNEdge_flow29">
        <omgdi:waypoint x="2076.0" y="206.0"></omgdi:waypoint>
        <omgdi:waypoint x="2120.0" y="206.0"></omgdi:waypoint>
        <omgdi:waypoint x="2120.0" y="128.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow30" id="BPMNEdge_flow30">
        <omgdi:waypoint x="2140.0" y="108.0"></omgdi:waypoint>
        <omgdi:waypoint x="2185.0" y="108.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow31" id="BPMNEdge_flow31">
        <omgdi:waypoint x="2290.0" y="108.0"></omgdi:waypoint>
        <omgdi:waypoint x="2335.0" y="108.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow32" id="BPMNEdge_flow32">
        <omgdi:waypoint x="2440.0" y="108.0"></omgdi:waypoint>
        <omgdi:waypoint x="2480.0" y="108.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow33" id="BPMNEdge_flow33">
        <omgdi:waypoint x="1241.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="1310.0" y="107.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>

Help me please! Where can I find a mistake?


2 REPLIES 2

steper
Champ in-the-making
Champ in-the-making
Sorry for the bad design. will try again:
<code>
<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" xmlnsSmiley Surprisedmgdc="http://www.omg.org/spec/DD/20100524/DC" xmlnsSmiley Surprisedmgdi="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.joxnet.ru/process">
  <message id="payment" name="payment"></message>
  <process id="connection" name="Подключение юр. лиц" isExecutable="true">
    <extensionElements>
      <activiti:executionListener event="start" class="ru.joxnet.bss.modules.clients.connections.listeners.GlobalExecutionListener">
        <activiti:field name="state">
          <activiti:string><![CDATA[START]]></activiti:string>
        </activiti:field>
      </activiti:executionListener>
      <activiti:executionListener event="end" class="ru.joxnet.bss.modules.clients.connections.listeners.GlobalExecutionListener">
        <activiti:field name="state">
          <activiti:string><![CDATA[END]]></activiti:string>
        </activiti:field>
      </activiti:executionListener>
    </extensionElements>
    <startEvent id="start" name="Start" activiti:initiator="initiator">
      <documentation>Запуск процесса подключения юр. лица.</documentation>
      <extensionElements>
        <activiti:formProperty id="connection.id" name="Идентификатор акта" type="long" readable="false" required="true"></activiti:formProperty>
        <activiti:formProperty id="connection.shortTitle" name="Короткое название" type="string" required="true"></activiti:formProperty>
        <activiti:formProperty id="connection.fullTitle" name="Полное название" type="string"></activiti:formProperty>
        <activiti:formProperty id="connection.source.id" name="Источник подключения" type="enum">
          <activiti:value id="1" name="– Не выбран –"></activiti:value>
          <activiti:value id="2" name="Сайт"></activiti:value>
          <activiti:value id="3" name="Входящий звонок"></activiti:value>
          <activiti:value id="4" name="Обзвон"></activiti:value>
          <activiti:value id="5" name="Обход"></activiti:value>
          <activiti:value id="6" name="Агент"></activiti:value>
        </activiti:formProperty>
        <activiti:formProperty id="connection.comment" name="Комментарий" type="string"></activiti:formProperty>
      </extensionElements>
    </startEvent>
    <userTask id="makeConnection" name="Подготовка акта" activiti:assignee="${initiator}">
      <documentation>Подготовка акта</documentation>
      <extensionElements>
        <activiti:formProperty id="connection.id" name="Идентификатор акта" type="long" readable="false" required="true"></activiti:formProperty>
        <activiti:formProperty id="connection.shortTitle" name="Короткое название" type="string" required="true"></activiti:formProperty>
        <activiti:formProperty id="connection.fullTitle" name="Полное название" type="string"></activiti:formProperty>
        <activiti:formProperty id="connectionSourceId" name="Источник подключения" type="enum">
          <activiti:value id="1" name="– Не выбран –"></activiti:value>
          <activiti:value id="2" name="Сайт"></activiti:value>
          <activiti:value id="3" name="Входящий звонок"></activiti:value>
          <activiti:value id="4" name="Обзвон"></activiti:value>
          <activiti:value id="5" name="Обход"></activiti:value>
          <activiti:value id="6" name="Агент"></activiti:value>
        </activiti:formProperty>
        <activiti:formProperty id="connectionComment" name="Комментарий" type="string"></activiti:formProperty>
        <activiti:formProperty id="actionId" name="Идентификатор действия пользователя" type="enum" required="true">
          <activiti:value id="simpleCalculation" name="Базовый расчёт"></activiti:value>
          <activiti:value id="fullCalculation" name="Точный расчёт"></activiti:value>
        </activiti:formProperty>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow1" sourceRef="start" targetRef="makeConnection"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
    <userTask id="simpleCalculation" name="Базовый расчёт для ${connection.shortTitle}" activiti:candidateGroups="JOX-GTeh_SUPP">
      <documentation>Выполнение базового расчёта для ${connection.shortTitle}</documentation>
      <extensionElements>
        <activiti:formProperty id="connection.id" name="Идентификатор акта" type="long" readable="false" required="true"></activiti:formProperty>
        <activiti:formProperty id="connection.shortTitle" name="Короткое название" type="string" writable="false" required="true"></activiti:formProperty>
        <activiti:formProperty id="connection.fullTitle" name="Полное название" type="string" writable="false"></activiti:formProperty>
        <activiti:formProperty id="connection.source.id" name="Источник подключения" type="enum" writable="false">
          <activiti:value id="1" name="– Не выбран –"></activiti:value>
          <activiti:value id="2" name="Сайт"></activiti:value>
          <activiti:value id="3" name="Входящий звонок"></activiti:value>
          <activiti:value id="4" name="Обзвон"></activiti:value>
          <activiti:value id="5" name="Обход"></activiti:value>
          <activiti:value id="6" name="Агент"></activiti:value>
        </activiti:formProperty>
        <activiti:formProperty id="connection.comment" name="Комментарий" type="string" writable="false"></activiti:formProperty>
      </extensionElements>
    </userTask>
    <userTask id="fullCalculation" name="Точный расчёт для ${connection.shortTitle}" activiti:candidateGroups="JOX-GTeh_SUPP">
      <documentation>Выполнение точного расчёта для ${connection.shortTitle}</documentation>
      <extensionElements>
        <activiti:formProperty id="connection.id" name="Идентификатор акта" type="long" readable="false" required="true"></activiti:formProperty>
        <activiti:formProperty id="connection.shortTitle" name="Короткое название" type="string" writable="false" required="true"></activiti:formProperty>
        <activiti:formProperty id="connection.fullTitle" name="Полное название" type="string" writable="false"></activiti:formProperty>
        <activiti:formProperty id="connection.source.id" name="Источник подключения" type="enum" writable="false">
          <activiti:value id="1" name="– Не выбран –"></activiti:value>
          <activiti:value id="2" name="Сайт"></activiti:value>
          <activiti:value id="3" name="Входящий звонок"></activiti:value>
          <activiti:value id="4" name="Обзвон"></activiti:value>
          <activiti:value id="5" name="Обход"></activiti:value>
          <activiti:value id="6" name="Агент"></activiti:value>
        </activiti:formProperty>
        <activiti:formProperty id="connection.comment" name="Комментарий" type="string" writable="false"></activiti:formProperty>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow3" name="Базовый расчёт" sourceRef="exclusivegateway1" targetRef="simpleCalculation">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${action.id == 'simpleCalculation'}]]></conditionExpression>
    </sequenceFlow>
    <userTask id="checkSimpleCalculation" name="Проверка базового расчёта для ${shortTitle}" activiti:candidateUsers="${initiator}">
      <extensionElements>
        <activiti:formProperty id="actionId" name="Идентификатор действия пользователя" type="enum" required="true">
          <activiti:value id="approve" name="Подтвердить"></activiti:value>
          <activiti:value id="cancel" name="Отменить"></activiti:value>
        </activiti:formProperty>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow7" sourceRef="simpleCalculation" targetRef="checkSimpleCalculation"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway3" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow9" name="Согласовано" sourceRef="exclusivegateway4" targetRef="exclusivegateway3">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${actionId == 'approve'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow10" name="Точный расчёт" sourceRef="exclusivegateway1" targetRef="exclusivegateway3">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${actionId == 'fullCalculation'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow11" sourceRef="exclusivegateway3" targetRef="fullCalculation"></sequenceFlow>
    <userTask id="checkFullCalculation" name="Проверка точного расчёта для ${shortTitle}" activiti:candidateUsers="${initiator}">
      <extensionElements>
        <activiti:formProperty id="actionId" name="Идентификатор действия пользователя" type="enum" required="true">
          <activiti:value id="approve" name="Подтвердить"></activiti:value>
          <activiti:value id="cancel" name="Отменить"></activiti:value>
        </activiti:formProperty>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow12" sourceRef="fullCalculation" targetRef="checkFullCalculation"></sequenceFlow>
    <endEvent id="end" name="End"></endEvent>
    <exclusiveGateway id="exclusivegateway4" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow14" sourceRef="checkSimpleCalculation" targetRef="exclusivegateway4"></sequenceFlow>
    <sequenceFlow id="flow15" name="Отменено" sourceRef="exclusivegateway4" targetRef="makeConnection">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${actionId == 'cancel'}]]></conditionExpression>
    </sequenceFlow>
    <exclusiveGateway id="exclusivegateway7" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow18" sourceRef="checkFullCalculation" targetRef="exclusivegateway7"></sequenceFlow>
    <userTask id="usertask1" name="Создание договора для ${shortTitle}" activiti:candidateUsers="${initiator}"></userTask>
    <sequenceFlow id="flow19" name="Согласовано" sourceRef="exclusivegateway7" targetRef="usertask6">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${actionId == 'approve'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow20" name="Отменено" sourceRef="exclusivegateway7" targetRef="makeConnection">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${actionId == 'cancel'}]]></conditionExpression>
    </sequenceFlow>
    <userTask id="usertask2" name="Подписание договора для ${shortTitle}" activiti:candidateUsers="${initiator}">
      <extensionElements>
        <activiti:formProperty id="waitPayment" name="Ожидание оплаты" type="boolean" required="true"></activiti:formProperty>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow21" sourceRef="usertask1" targetRef="usertask2"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway8" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow22" sourceRef="usertask2" targetRef="exclusivegateway8"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway9" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow23" name="Оплата не требуется" sourceRef="exclusivegateway8" targetRef="exclusivegateway9">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!waitPayment}]]></conditionExpression>
    </sequenceFlow>
    <intermediateCatchEvent id="messageintermediatecatchevent1" name="MessageCatchEvent">
      <messageEventDefinition messageRef="payment"></messageEventDefinition>
    </intermediateCatchEvent>
    <sequenceFlow id="flow24" sourceRef="exclusivegateway8" targetRef="messageintermediatecatchevent1">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${waitPayment}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow25" sourceRef="messageintermediatecatchevent1" targetRef="exclusivegateway9"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway10" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow26" sourceRef="exclusivegateway9" targetRef="exclusivegateway10"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway11" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow27" name="Согласование не требуется" sourceRef="exclusivegateway10" targetRef="exclusivegateway11">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!needNegotiation}]]></conditionExpression>
    </sequenceFlow>
    <userTask id="usertask3" name="Согласование тех. блоком" activiti:candidateGroups="JOX-GTeh_SUPP"></userTask>
    <sequenceFlow id="flow28" sourceRef="exclusivegateway10" targetRef="usertask3">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${needNegotiation}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow29" sourceRef="usertask3" targetRef="exclusivegateway11"></sequenceFlow>
    <userTask id="usertask4" name="Подключение" activiti:candidateGroups="JOX-GTeh_SUPP"></userTask>
    <sequenceFlow id="flow30" sourceRef="exclusivegateway11" targetRef="usertask4"></sequenceFlow>
    <userTask id="usertask5" name="Проверка" activiti:candidateUsers="${initiator}"></userTask>
    <sequenceFlow id="flow31" sourceRef="usertask4" targetRef="usertask5"></sequenceFlow>
    <sequenceFlow id="flow32" sourceRef="usertask5" targetRef="end"></sequenceFlow>
    <userTask id="usertask6" name="Составление списка согласования для ${shortTitle}" activiti:candidateUsers="${initiator}">
      <extensionElements>
        <activiti:formProperty id="needNegotiation" name="Требуется согласование" type="boolean" required="true"></activiti:formProperty>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow33" sourceRef="usertask6" targetRef="usertask1"></sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_connection">
    <bpmndi:BPMNPlane bpmnElement="connection" id="BPMNPlane_connection">
      <bpmndi:BPMNShape bpmnElement="start" id="BPMNShape_start">
        <omgdc:Bounds height="35.0" width="35.0" x="51.0" y="90.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="makeConnection" id="BPMNShape_makeConnection">
        <omgdc:Bounds height="55.0" width="126.0" x="120.0" y="80.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1">
        <omgdc:Bounds height="40.0" width="40.0" x="280.0" y="87.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="simpleCalculation" id="BPMNShape_simpleCalculation">
        <omgdc:Bounds height="55.0" width="161.0" x="220.0" y="180.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="fullCalculation" id="BPMNShape_fullCalculation">
        <omgdc:Bounds height="55.0" width="161.0" x="520.0" y="80.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="checkSimpleCalculation" id="BPMNShape_checkSimpleCalculation">
        <omgdc:Bounds height="55.0" width="151.0" x="225.0" y="280.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway3" id="BPMNShape_exclusivegateway3">
        <omgdc:Bounds height="40.0" width="40.0" x="430.0" y="87.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="checkFullCalculation" id="BPMNShape_checkFullCalculation">
        <omgdc:Bounds height="55.0" width="151.0" x="730.0" y="80.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="end" id="BPMNShape_end">
        <omgdc:Bounds height="35.0" width="35.0" x="2480.0" y="91.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway4" id="BPMNShape_exclusivegateway4">
        <omgdc:Bounds height="40.0" width="40.0" x="280.0" y="370.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway7" id="BPMNShape_exclusivegateway7">
        <omgdc:Bounds height="40.0" width="40.0" x="940.0" y="87.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask1" id="BPMNShape_usertask1">
        <omgdc:Bounds height="55.0" width="161.0" x="1310.0" y="80.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask2" id="BPMNShape_usertask2">
        <omgdc:Bounds height="55.0" width="161.0" x="1530.0" y="80.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway8" id="BPMNShape_exclusivegateway8">
        <omgdc:Bounds height="40.0" width="40.0" x="1750.0" y="87.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway9" id="BPMNShape_exclusivegateway9">
        <omgdc:Bounds height="40.0" width="40.0" x="1835.0" y="88.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="messageintermediatecatchevent1" id="BPMNShape_messageintermediatecatchevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="1800.0" y="153.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway10" id="BPMNShape_exclusivegateway10">
        <omgdc:Bounds height="40.0" width="40.0" x="1975.0" y="88.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway11" id="BPMNShape_exclusivegateway11">
        <omgdc:Bounds height="40.0" width="40.0" x="2100.0" y="88.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask3" id="BPMNShape_usertask3">
        <omgdc:Bounds height="55.0" width="161.0" x="1915.0" y="179.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask4" id="BPMNShape_usertask4">
        <omgdc:Bounds height="55.0" width="105.0" x="2185.0" y="81.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask5" id="BPMNShape_usertask5">
        <omgdc:Bounds height="55.0" width="105.0" x="2335.0" y="81.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask6" id="BPMNShape_usertask6">
        <omgdc:Bounds height="55.0" width="161.0" x="1080.0" y="80.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
        <omgdi:waypoint x="86.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="120.0" y="107.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
        <omgdi:waypoint x="300.0" y="127.0"></omgdi:waypoint>
        <omgdi:waypoint x="300.0" y="180.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="84.0" x="310.0" y="139.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7">
        <omgdi:waypoint x="300.0" y="235.0"></omgdi:waypoint>
        <omgdi:waypoint x="300.0" y="280.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9">
        <omgdi:waypoint x="320.0" y="390.0"></omgdi:waypoint>
        <omgdi:waypoint x="450.0" y="390.0"></omgdi:waypoint>
        <omgdi:waypoint x="450.0" y="127.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="66.0" x="330.0" y="390.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10">
        <omgdi:waypoint x="320.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="430.0" y="107.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="77.0" x="329.0" y="90.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11">
        <omgdi:waypoint x="470.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="520.0" y="107.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow12" id="BPMNEdge_flow12">
        <omgdi:waypoint x="681.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="730.0" y="107.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow14" id="BPMNEdge_flow14">
        <omgdi:waypoint x="300.0" y="335.0"></omgdi:waypoint>
        <omgdi:waypoint x="300.0" y="370.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow15" id="BPMNEdge_flow15">
        <omgdi:waypoint x="280.0" y="390.0"></omgdi:waypoint>
        <omgdi:waypoint x="183.0" y="389.0"></omgdi:waypoint>
        <omgdi:waypoint x="183.0" y="135.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="52.0" x="209.0" y="391.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow18" id="BPMNEdge_flow18">
        <omgdi:waypoint x="881.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="940.0" y="107.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow19" id="BPMNEdge_flow19">
        <omgdi:waypoint x="980.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="1080.0" y="107.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="66.0" x="990.0" y="107.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow20" id="BPMNEdge_flow20">
        <omgdi:waypoint x="960.0" y="87.0"></omgdi:waypoint>
        <omgdi:waypoint x="960.0" y="28.0"></omgdi:waypoint>
        <omgdi:waypoint x="183.0" y="28.0"></omgdi:waypoint>
        <omgdi:waypoint x="183.0" y="80.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="52.0" x="970.0" y="61.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow21" id="BPMNEdge_flow21">
        <omgdi:waypoint x="1471.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="1530.0" y="107.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow22" id="BPMNEdge_flow22">
        <omgdi:waypoint x="1691.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="1750.0" y="107.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow23" id="BPMNEdge_flow23">
        <omgdi:waypoint x="1790.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="1835.0" y="108.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="42.0" width="100.0" x="1789.0" y="66.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow24" id="BPMNEdge_flow24">
        <omgdi:waypoint x="1770.0" y="127.0"></omgdi:waypoint>
        <omgdi:waypoint x="1770.0" y="170.0"></omgdi:waypoint>
        <omgdi:waypoint x="1800.0" y="170.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow25" id="BPMNEdge_flow25">
        <omgdi:waypoint x="1835.0" y="170.0"></omgdi:waypoint>
        <omgdi:waypoint x="1855.0" y="170.0"></omgdi:waypoint>
        <omgdi:waypoint x="1855.0" y="128.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow26" id="BPMNEdge_flow26">
        <omgdi:waypoint x="1875.0" y="108.0"></omgdi:waypoint>
        <omgdi:waypoint x="1975.0" y="108.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow27" id="BPMNEdge_flow27">
        <omgdi:waypoint x="2015.0" y="108.0"></omgdi:waypoint>
        <omgdi:waypoint x="2100.0" y="108.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="42.0" width="100.0" x="2014.0" y="66.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow28" id="BPMNEdge_flow28">
        <omgdi:waypoint x="1995.0" y="128.0"></omgdi:waypoint>
        <omgdi:waypoint x="1995.0" y="179.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow29" id="BPMNEdge_flow29">
        <omgdi:waypoint x="2076.0" y="206.0"></omgdi:waypoint>
        <omgdi:waypoint x="2120.0" y="206.0"></omgdi:waypoint>
        <omgdi:waypoint x="2120.0" y="128.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow30" id="BPMNEdge_flow30">
        <omgdi:waypoint x="2140.0" y="108.0"></omgdi:waypoint>
        <omgdi:waypoint x="2185.0" y="108.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow31" id="BPMNEdge_flow31">
        <omgdi:waypoint x="2290.0" y="108.0"></omgdi:waypoint>
        <omgdi:waypoint x="2335.0" y="108.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow32" id="BPMNEdge_flow32">
        <omgdi:waypoint x="2440.0" y="108.0"></omgdi:waypoint>
        <omgdi:waypoint x="2480.0" y="108.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow33" id="BPMNEdge_flow33">
        <omgdi:waypoint x="1241.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="1310.0" y="107.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>
</code>

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

I can not read attached files. Could you create jUnit test on github please?
http://forums.activiti.org/content/sticky-how-write-unit-test

Regards
Martin