Issues with publishing Case apps in Flowable Task

Hi,

I’ve defined a Case model using the Flowable Modeler and created an app which makes use of this CMMN Model.
The app gets published fine, but when I try to access the app instance from the Flowable Task UI, the case is getting instantiated but the tasks defined in the case are not being displayed.

NOTE: The BPMN process apps are working fine.

I’ve looked up for resources but all of them ultimately boil down to deploying the app using Flowable Work. I was unable to get the WAR file for Flowable Work using Spring Initializr and the Maven Dependencies given weren’t working, either.

Spring Initializr - https://documentation.flowable.com/work-install/3.2.0/310A-spring-boot.html
Maven Dependency - https://documentation.flowable.com/work-install/3.2.0/311B-work-dependencies.html

I don’t know if this issue is due to a mistake which I’ve made while defining the case model or if it is that I’m deploying it wrong.
It’d be helpful if you can direct me to a Case model sample which works correctly. I can try it out in my local environment and if it works then the issue would be due to my case definition, else it’d be a different issue.

Thanks in advance.

Can you paste your case model so that we can try to reproduce?

That is the commercial product, which are not publicly available.

Here’s the documentation you’re looking for: Open Source.

You should be able to deploy directly from the Flowable Modeler. If you can share the case model, I’m sure we can help out.

I am trying to copy and paste my XML code for the model, but the getting truncated.
I’ve added the code below, anyway. Is there any other way to share the code?

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

-

-

-

-

-

-

complete

-

-

-

-

-

-

-

-

-

-

-<modeler:flowable-idm-initiator xmlns:modeler=“http://flowable.org/modeler”>

-
</modeler:flowable-idm-initiator>

-

-

-<modeler:flowable-idm-initiator xmlns:modeler=“http://flowable.org/modeler”>

-
</modeler:flowable-idm-initiator>

-cmmndi:CMMNDI

-<cmmndi:CMMNDiagram id=“CMMNDiagram_TestCase”>

-<cmmndi:CMMNShape id=“CMMNShape_casePlanModel” cmmnElementRef=“casePlanModel”>

<dc:Bounds y=“0.0” x=“45.0” width=“656.0” height=“254.0”/>

cmmndi:CMMNLabel/

</cmmndi:CMMNShape>

-<cmmndi:CMMNShape id=“CMMNShape_planItem2” cmmnElementRef=“planItem2”>

<dc:Bounds y=“15.0” x=“75.0” width=“208.0” height=“137.0”/>

cmmndi:CMMNLabel/

</cmmndi:CMMNShape>

-<cmmndi:CMMNShape id=“CMMNShape_planItem1” cmmnElementRef=“planItem1”>

<dc:Bounds y=“51.0” x=“90.0” width=“100.0” height=“80.0”/>

cmmndi:CMMNLabel/

</cmmndi:CMMNShape>

-<cmmndi:CMMNShape id=“CMMNShape_planItem5” cmmnElementRef=“planItem5”>

<dc:Bounds y=“15.0” x=“325.4” width=“269.0” height=“131.0”/>

cmmndi:CMMNLabel/

</cmmndi:CMMNShape>

-<cmmndi:CMMNShape id=“CMMNShape_sid-59586B6D-9881-4F6F-BE43-B25E85470147” cmmnElementRef=“sid-59586B6D-9881-4F6F-BE43-B25E85470147”>

<dc:Bounds y=“68.99202277572866” x=“318.3876310129483” width=“14.0” height=“22.0”/>

cmmndi:CMMNLabel/

</cmmndi:CMMNShape>

-<cmmndi:CMMNShape id=“CMMNShape_planItem3” cmmnElementRef=“planItem3”>

<dc:Bounds y=“51.0” x=“354.0” width=“100.0” height=“80.0”/>

cmmndi:CMMNLabel/

</cmmndi:CMMNShape>

-<cmmndi:CMMNShape id=“CMMNShape_planItem4” cmmnElementRef=“planItem4”>

<dc:Bounds y=“51.0” x=“475.4” width=“100.0” height=“80.0”/>

cmmndi:CMMNLabel/

</cmmndi:CMMNShape>

-<cmmndi:CMMNEdge id=“CMMNEdge_sid-011E7D09-A319-44F6-B579-ECBB5E0FD91F” cmmnElementRef=“planItem2” targetCMMNElementRef=“sid-59586B6D-9881-4F6F-BE43-B25E85470147”>

<di:waypoint y=“80.31907071779291” x=“282.95”/>

<di:waypoint y=“79.22019694038127” x=“318.84610549788636”/>

cmmndi:CMMNLabel/

</cmmndi:CMMNEdge>

-<cmmndi:CMMNEdge id=“CMMNEdge_sid-9245EF56-C11D-4CF0-BB07-B2AE2A778BB2” cmmnElementRef=“sid-2CC843B1-4155-4691-8759-3BC3C54DE59A” targetCMMNElementRef=“sid-90724327-D4BC-4F33-959E-0B96ED3C922F”>

<di:waypoint y=“91.0” x=“453.95000000000005”/>

<di:waypoint y=“91.0” x=“475.4”/>

cmmndi:CMMNLabel/

</cmmndi:CMMNEdge>

</cmmndi:CMMNDiagram>

</cmmndi:CMMNDI>

@16512 the site uses markdown, you can include code blocks using three backticks (`) on the lines before and after your code, like so:

Some pre-formatted code block

Thanks a lot for the tip.


-<definitions targetNamespace="http://www.flowable.org/casedef" xmlns:di="http://www.omg.org/spec/CMMN/20151109/DI" xmlns:dc="http://www.omg.org/spec/CMMN/20151109/DC" xmlns:cmmndi="http://www.omg.org/spec/CMMN/20151109/CMMNDI" xmlns:flowable="http://flowable.org/cmmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.omg.org/spec/CMMN/20151109/MODEL">


-<case flowable:initiatorVariableName="initiator" name="Test case" id="TestCase">


-<casePlanModel id="casePlanModel">

<planItem name="Loan application approval" id="planItem2" definitionRef="sid-0190FBEC-14B1-47AF-BB38-9F1E2D81BF6A"/>


-<planItem name="Open loan account" id="planItem5" definitionRef="sid-060EC173-3811-47A4-AF70-7921FE75B938">

<entryCriterion id="sid-59586B6D-9881-4F6F-BE43-B25E85470147" sentryRef="sentry1"/>

</planItem>


-<sentry id="sentry1">


-<planItemOnPart id="sentryOnPart1" sourceRef="planItem2">

<standardEvent>complete</standardEvent>

</planItemOnPart>


-<ifPart>


-<condition>

-<![CDATA[${form_reviewForm_outcome == "Accept"} OR ${form_adReview_outcome == "Yes"}]]>
</condition>

</ifPart>

</sentry>


-<stage name="Loan application approval" id="sid-0190FBEC-14B1-47AF-BB38-9F1E2D81BF6A">

<planItem name="Loan application" id="planItem1" definitionRef="sid-CD7C9DEA-AE30-41D2-A183-2DABB45A5A23"/>


-<processTask name="Loan application" id="sid-CD7C9DEA-AE30-41D2-A183-2DABB45A5A23" isBlocking="false">


-<processRefExpression>

-<![CDATA[LoanApp]]>
</processRefExpression>

</processTask>

</stage>


-<stage name="Open loan account" id="sid-060EC173-3811-47A4-AF70-7921FE75B938">

<planItem name="Open new account" id="planItem3" definitionRef="sid-2CC843B1-4155-4691-8759-3BC3C54DE59A"/>

<planItem name="Initiate loan " id="planItem4" definitionRef="sid-90724327-D4BC-4F33-959E-0B96ED3C922F"/>


-<humanTask name="Open new account" id="sid-2CC843B1-4155-4691-8759-3BC3C54DE59A" flowable:formKey="loanAccount" flowable:assignee="${initiator}">


-<extensionElements>


-<modeler:flowable-idm-initiator xmlns:modeler="http://flowable.org/modeler">

-<![CDATA[true]]>
</modeler:flowable-idm-initiator>

</extensionElements>

</humanTask>


-<humanTask name="Initiate loan " id="sid-90724327-D4BC-4F33-959E-0B96ED3C922F" flowable:assignee="${initiator}">


-<extensionElements>


-<modeler:flowable-idm-initiator xmlns:modeler="http://flowable.org/modeler">

-<![CDATA[true]]>
</modeler:flowable-idm-initiator>

</extensionElements>

</humanTask>

</stage>

</casePlanModel>

</case>


-<cmmndi:CMMNDI>


-<cmmndi:CMMNDiagram id="CMMNDiagram_TestCase">


-<cmmndi:CMMNShape id="CMMNShape_casePlanModel" cmmnElementRef="casePlanModel">

<dc:Bounds y="0.0" x="45.0" width="656.0" height="254.0"/>

<cmmndi:CMMNLabel/>

</cmmndi:CMMNShape>


-<cmmndi:CMMNShape id="CMMNShape_planItem2" cmmnElementRef="planItem2">

<dc:Bounds y="15.0" x="75.0" width="208.0" height="137.0"/>

<cmmndi:CMMNLabel/>

</cmmndi:CMMNShape>


-<cmmndi:CMMNShape id="CMMNShape_planItem1" cmmnElementRef="planItem1">

<dc:Bounds y="51.0" x="90.0" width="100.0" height="80.0"/>

<cmmndi:CMMNLabel/>

</cmmndi:CMMNShape>


-<cmmndi:CMMNShape id="CMMNShape_planItem5" cmmnElementRef="planItem5">

<dc:Bounds y="15.0" x="325.4" width="269.0" height="131.0"/>

<cmmndi:CMMNLabel/>

</cmmndi:CMMNShape>


-<cmmndi:CMMNShape id="CMMNShape_sid-59586B6D-9881-4F6F-BE43-B25E85470147" cmmnElementRef="sid-59586B6D-9881-4F6F-BE43-B25E85470147">

<dc:Bounds y="68.99202277572866" x="318.3876310129483" width="14.0" height="22.0"/>

<cmmndi:CMMNLabel/>

</cmmndi:CMMNShape>


-<cmmndi:CMMNShape id="CMMNShape_planItem3" cmmnElementRef="planItem3">

<dc:Bounds y="51.0" x="354.0" width="100.0" height="80.0"/>

<cmmndi:CMMNLabel/>

</cmmndi:CMMNShape>


-<cmmndi:CMMNShape id="CMMNShape_planItem4" cmmnElementRef="planItem4">

<dc:Bounds y="51.0" x="475.4" width="100.0" height="80.0"/>

<cmmndi:CMMNLabel/>

</cmmndi:CMMNShape>


-<cmmndi:CMMNEdge id="CMMNEdge_sid-011E7D09-A319-44F6-B579-ECBB5E0FD91F" cmmnElementRef="planItem2" targetCMMNElementRef="sid-59586B6D-9881-4F6F-BE43-B25E85470147">

<di:waypoint y="80.31907071779291" x="282.95"/>

<di:waypoint y="79.22019694038127" x="318.84610549788636"/>

<cmmndi:CMMNLabel/>

</cmmndi:CMMNEdge>


-<cmmndi:CMMNEdge id="CMMNEdge_sid-9245EF56-C11D-4CF0-BB07-B2AE2A778BB2" cmmnElementRef="sid-2CC843B1-4155-4691-8759-3BC3C54DE59A" targetCMMNElementRef="sid-90724327-D4BC-4F33-959E-0B96ED3C922F">

<di:waypoint y="91.0" x="453.95000000000005"/>

<di:waypoint y="91.0" x="475.4"/>

<cmmndi:CMMNLabel/>

</cmmndi:CMMNEdge>

</cmmndi:CMMNDiagram>

</cmmndi:CMMNDI>

</definitions>```