I have used Workflow Modeler to create an application with a workflow and a form. I exported this app to a zip file, which I’m now trying to deploy programmatically (in my case in a Spring Boot app). The app deploys and the workflows seem to be imported, but not the forms. When I call this, I get an empty list back:
formRepositoryService.createFormDefinitionsQuery().list()
I’ve tried both explicitly deploying the app (repositoryService.createDeployment...
) and having it automatically done by putting the “.bar” file in the /resources/apps
folder. The result is the same in both cases.
I had a look at the exported zip and, as expected, it contains two folders: bpmn-models
and form-models
. In the latter folder there are two files for my form: test-form-1.json
and test-form-1.png
.
Stepping through the code, I found that in FormDeployer.deploy
it looks for resources whose name ends with .form
. However the zip file exported by the Modeler app doesn’t contain any .form
files - there’s only the .json
and .png
file for each form.
Am I doing something wrong, or is there a small bug here?
UPDATE: I’ve now managed to get this working in a slightly different way, by specifying a custom value for the flowable.modeler.app.deployment-api-url
setting in the Modeler app. I gave it this value: http://localhost:8079/app-api
, where 8079 is the port I’m running my custom Spring Boot app on. That app-api
endpoint is enabled in the Spring Boot app by adding a dependency on flowable-spring-boot-starter-rest
. So it looks like when the Modeler app publishes an app it does something different from when it exports an app (looks like the file extensions are .form
when doing a publish, but .json
when doing an export, I think). Is this a bug, or is this behaviour by design?
Thanks.