OFFICE Connector insert Data in a .docx template the output file name is different than the name I inserted

1
0
-1

Hello, Im using office connector insert Data in a .docx template, but the output file name is different than the name I inserted.

2nd question: I need to use another connector generate pdf from office document (using the generated the above docx) but I do know how to select this docx in the configurations since it generates at runtime at tomcat/server/temp folder.

Any help?

Thanks in advance

2 answers

1
0
-1
This one is the BEST answer!

Hi,

you need to use Bonita document in input and output of those connectors:

  • templating connector takes a document where your template is stored in input and write the result in an output document
  • converter connector takes the output document of the templating connector in input and stores the result in another document (you can resuse the document in input if you don't need to keep the word document and only needs the pdf)

For the output filename issue, please report a bug on the tracker with reproducible data if possible.

HTH
Romain

Comments

Submitted by alaa.f.kabbani_... on Tue, 03/23/2021 - 08:38

thanks for answering me.
about "templating connector takes a document where your template is stored in input and write the result in an output document" I created 2 documents (inputDoc: which is the template and has the velocity language and outputDoc: empty docx)
but it didnt work.
I need to ask about the stored path, if we can change it.
thanks

Submitted by romain.bioteau on Tue, 03/23/2021 - 08:56

You can have a look to the following example

Submitted by alaa.f.kabbani_... on Tue, 03/23/2021 - 09:57

how I can import this example in Bonita, since it is not .bos file?

Submitted by alaa.f.kabbani_... on Tue, 03/23/2021 - 09:59

how I can import this example in Bonita, since it is not .bos file?

Submitted by romain.bioteau on Tue, 03/23/2021 - 10:25

You can clone it from github (using 2021.1)

1
0
-1

Thanks @ romain.bioteau, it worked when I added output file which is stored directly in bonita.engine (with output filename I typed), not saving locally except temp file is storing locally.

Notifications