Flowable CMMN Modeler

Hi,

I am using Flowable version 6.2.1.
I have deployed flowable-modeler in tomcat 8 and modeled a CMMN case.
I downloaded xml by going to detailed view and clicked on Export to CMMN 1.1.

If I try to import same case again using “Import Case”, it is throwing error.
I saw there was a post call made to http://localhost:8080/flowable-modeler/app/rest/import-case-model and it returned response ({“message”:“Import failed for Service_Desk.cmmn.xml, error message null”,“messageKey”:“GENERAL.ERROR.BAD-REQUEST”})

Thanks,
Devi

1 Like

Is it possible to paste your xml so we can reproduce the import?

Below is the sample xml with which issue can be reproduced. Please add xml tag on top as I wasn’t able to add as it says new user cannot add more than 2 links.

<case id="test-service" name="Test Service" flowable:initiatorVariableName="initiator">
<documentation>Service test</documentation>
<casePlanModel id="casePlanModel" name="Sample">
<planItem id="planItem1" name="Test 1" definitionRef="sid-548CF16E-B302-494A-A999-F7F318CEE5CD"></planItem>
<planItem id="planItem2" name="Test 2" definitionRef="sid-4F66EDA7-7A47-4439-9BD4-D61A7C2BA340">
<entryCriterion id="sid-AA3F0EE7-AFA1-48A6-A660-2CD90CD49B3A" sentryRef="sentry1"></entryCriterion>
</planItem>
<sentry id="sentry1">
<planItemOnPart id="sentryOnPart1" sourceRef="planItem1">
<standardEvent>complete</standardEvent>
</planItemOnPart>
</sentry>
<humanTask id="sid-548CF16E-B302-494A-A999-F7F318CEE5CD" name="Test 1"></humanTask>
<humanTask id="sid-4F66EDA7-7A47-4439-9BD4-D61A7C2BA340" name="Test 2"></humanTask>
</casePlanModel>
</case>
<cmmndi:CMMNDI>
<cmmndi:CMMNDiagram id="CMMNDiagram_test-service">
<cmmndi:CMMNShape id="CMMNShape_casePlanModel" cmmnElementRef="casePlanModel">
<dc:Bounds height="714.0" width="718.0" x="40.0" y="40.0"></dc:Bounds>
<cmmndi:CMMNLabel></cmmndi:CMMNLabel>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="CMMNShape_planItem1" cmmnElementRef="planItem1">
<dc:Bounds height="80.0" width="100.0" x="164.0" y="157.0"></dc:Bounds>
<cmmndi:CMMNLabel></cmmndi:CMMNLabel>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="CMMNShape_planItem2" cmmnElementRef="planItem2">
<dc:Bounds height="80.0" width="100.0" x="390.0" y="157.0"></dc:Bounds>
<cmmndi:CMMNLabel></cmmndi:CMMNLabel>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="CMMNShape_sid-AA3F0EE7-AFA1-48A6-A660-2CD90CD49B3A" cmmnElementRef="sid-AA3F0EE7-AFA1-48A6-A660-2CD90CD49B3A">
<dc:Bounds height="22.0" width="14.0" x="382.6380760819557" y="179.1324649202667"></dc:Bounds>
<cmmndi:CMMNLabel></cmmndi:CMMNLabel>
</cmmndi:CMMNShape>
<cmmndi:CMMNEdge id="CMMNEdge_sid-4A3636E4-E03B-4470-B4BE-37B352B9DEE7" cmmnElementRef="planItem1" targetCMMNElementRef="sid-AA3F0EE7-AFA1-48A6-A660-2CD90CD49B3A">
<di:waypoint x="264.0" y="194.77297872173298"></di:waypoint>
<di:waypoint x="383.05963714863975" y="189.47001181547753"></di:waypoint>
<cmmndi:CMMNLabel></cmmndi:CMMNLabel>
</cmmndi:CMMNEdge>
</cmmndi:CMMNDiagram>
</cmmndi:CMMNDI>
</definitions>

I have attached screenshot of logsImport_cmmn_issue

i’m using 6.4.1 version and i have same problem.

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/CMMN/20151109/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:flowable="http://flowable.org/cmmn" xmlns:cmmndi="http://www.omg.org/spec/CMMN/20151109/CMMNDI" xmlns:dc="http://www.omg.org/spec/CMMN/20151109/DC" xmlns:di="http://www.omg.org/spec/CMMN/20151109/DI" targetNamespace="http://www.flowable.org/casedef">
<case id="b" name="b" flowable:initiatorVariableName="initiator">
<documentation>b</documentation>
<casePlanModel id="casePlanModel" flowable:formFieldValidation="true" flowable:includeInStageOverview="false">
  <planItem id="planItem1" definitionRef="sid-4C54656F-F29A-4B80-81DA-32B94E47BBB5"></planItem>
  <planItem id="planItem2" definitionRef="sid-74EAFC43-84B4-41A3-8A54-F822C51C0A9E"></planItem>
  <planItem id="planItem3" definitionRef="sid-CB8CBCA1-0B5F-4EFC-969D-36B5C7CE4479"></planItem>
  <task id="sid-4C54656F-F29A-4B80-81DA-32B94E47BBB5"></task>
  <humanTask id="sid-74EAFC43-84B4-41A3-8A54-F822C51C0A9E" flowable:formFieldValidation="true"></humanTask>
  <humanTask id="sid-CB8CBCA1-0B5F-4EFC-969D-36B5C7CE4479" flowable:formFieldValidation="true"></humanTask>
</casePlanModel>
</case>
<cmmndi:CMMNDI>
<cmmndi:CMMNDiagram id="CMMNDiagram_b">
  <cmmndi:CMMNShape id="CMMNShape_casePlanModel" cmmnElementRef="casePlanModel">
    <dc:Bounds height="714.0" width="718.0" x="40.0" y="40.0"></dc:Bounds>
    <cmmndi:CMMNLabel></cmmndi:CMMNLabel>
  </cmmndi:CMMNShape>
  <cmmndi:CMMNShape id="CMMNShape_planItem1" cmmnElementRef="planItem1">
    <dc:Bounds height="80.0" width="100.0" x="152.0" y="86.0"></dc:Bounds>
    <cmmndi:CMMNLabel></cmmndi:CMMNLabel>
  </cmmndi:CMMNShape>
  <cmmndi:CMMNShape id="CMMNShape_planItem2" cmmnElementRef="planItem2">
    <dc:Bounds height="80.0" width="100.0" x="297.0" y="86.0"></dc:Bounds>
    <cmmndi:CMMNLabel></cmmndi:CMMNLabel>
  </cmmndi:CMMNShape>
  <cmmndi:CMMNShape id="CMMNShape_planItem3" cmmnElementRef="planItem3">
    <dc:Bounds height="80.0" width="100.0" x="442.0" y="86.0"></dc:Bounds>
    <cmmndi:CMMNLabel></cmmndi:CMMNLabel>
  </cmmndi:CMMNShape>
  <cmmndi:CMMNEdge id="CMMNEdge_sid-42A58BF3-7B0C-4B5A-AFA3-F0715A0E3631" cmmnElementRef="sid-74EAFC43-84B4-41A3-8A54-F822C51C0A9E" targetCMMNElementRef="sid-CB8CBCA1-0B5F-4EFC-969D-36B5C7CE4479">
    <di:waypoint x="396.95000000000005" y="126.0"></di:waypoint>
    <di:waypoint x="442.0" y="126.0"></di:waypoint>
    <cmmndi:CMMNLabel></cmmndi:CMMNLabel>
  </cmmndi:CMMNEdge>
  <cmmndi:CMMNEdge id="CMMNEdge_sid-B790F495-F915-4858-B36D-689082C522AA" cmmnElementRef="sid-4C54656F-F29A-4B80-81DA-32B94E47BBB5" targetCMMNElementRef="sid-74EAFC43-84B4-41A3-8A54-F822C51C0A9E">
    <di:waypoint x="251.95000000000002" y="126.0"></di:waypoint>
    <di:waypoint x="297.0" y="126.0"></di:waypoint>
    <cmmndi:CMMNLabel></cmmndi:CMMNLabel>
      </cmmndi:CMMNEdge>
    </cmmndi:CMMNDiagram>
  </cmmndi:CMMNDI>
</definitions>
1 Like