Make pdf file visible in tasklist

Hello,
I uploaded a pdf file via rest api & json into camunda.

I’m also able to download the file.
How can I make the pdf file / variable visible for humans in the tasklist?

Because I don’t see the Type “file”.
image

Thanks in advance!

Hi @svenr,

you have to use an embedded form. Here you can add a control to download and view the file: File Upload and Download | docs.camunda.org

Hope this helps, Ingo

1 Like

Hi,
that looks good.

At the moment I’m using Camunda Platform Run. Is it there also possible?

I was able to deploy a form:

In camunda modeler I put this into the user task:
image

But I’m still getting the following error:

Hi @svenr,

with the SpringAutoDeployment, Camunda Run adds a / in front of the resource name.

You have to reference the form like described in the lates version of the docs: Camunda Platform Run | docs.camunda.org

embedded:deployment:/my-form.html

Hope this helps, Ingo

2 Likes

Hi,
I just tried this out but now I get this error:

In my case (Spring Boot) the entry looks like this:

embedded:/forms/myform.html

maybe that helps :wink:

Hi @svenr,

in my Camunda Run environment, the form key works as expected. I copied all files to the configuration/resources folder.

And I didn’t find this headline form-deployment-forum

in my Cockpit.

You can double check the resource name in the database in the table ACT_GE_BYTEARRAY.

Hope this helps, Ingo

Hi,
this is confusing…

In the DB I see also this:
image

And all files are in the following path:
“C:\Camunda Platform\configuration\resources”

Hi @svenr,

have you overwrittten the built-in deployment mechanism somewhere else?

In your case, you can try to reach the form with embedded:deployment:n/resources/mc-form.html.

Hope this helps, Ingo

No,
I don’t think so, I didn’t change that much…

Sadly still the same error…

Hi @svenr,

could you please double-check in the database if process definition and form are deployed in the same depoyment? And if the process instance is started from the deployed process definition?

Hope this helps, Ingo

1 Like

Hi,
I just tried everything again and now it seems to work.

But I noticed that if you don’t make any changes, the files don’t get redeployed. So I just added a title or comment to both. Then both were deployed again at the same time.

In the user task I have embedded:deployment:n/resources/mc-form.html

Thanks so much @Ingo_Richtsmeier !