REST deployment of a zip does not create an App tile in flowable-task

Hi Everyone,

I’m just getting started with Flowable and I’m trying to use the REST API to upload a deployment zip file. When I use the rest API to upload my deployment package the process appears as an option in the task app, but an app tile doesn’t appear in the top flowable task landing page and the forms don’t appear when I start a process.

When I use modeler to import and publish the same zip file the tile appears and the forms function.

Is there an additional step to create and link the App after the REST POST of the repository/deployments URI?

This is the structure of my zip file:

$ unzip -l workflows/Add\ calculators.zip 
Archive:  workflows/Add calculators.zip
Length      Date    Time    Name
---------  ---------- -----   ----
567  12-11-2019 23:22   Add calculators.json
5790  12-11-2019 23:22   bpmn-models/add_calculators.bpmn
8518  12-11-2019 23:22   bpmn-models/add_calculators.json
1567  12-11-2019 23:22   bpmn-models/add_calculators.png
1357  12-11-2019 23:22   form-models/calculator.json
5683  12-11-2019 23:22   form-models/calculator.png
---------                     -------
23482                     6 files

My curl invocation (using the all-in-one docker image):

curl -F 'Addcalculators=@Add calculators.zip' -X POST http://admin:test@localhost:8080/flowable-task/process-api/repository/deployments

Many thanks,
Chris

The REST endpoint you are using is for regular deployments, i.e. running without UI.
Looking at the source code, it looks like the Modeler application uses the app-repository/deployments endpoint to publish the zip: https://github.com/flowable/flowable-engine/blob/master/modules/flowable-ui-modeler/flowable-ui-modeler-logic/src/main/java/org/flowable/ui/modeler/service/AppDefinitionPublishService.java#L108

1 Like

Thank you so much Joram. I will try that endpoint instead.