Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameter 

Description

Valid examples

template

Name of the word template that will be uploaded to the resources folder is set here.

repeat_template.docx

repeat

Here, true must be entered otherwise actionhandler won’t be executed.

true

repeatCounter

For example we will set the counter to 3, and it will generate 3 documents out of it + if merge is true will create an aditional document which is a merge of all three documents in one place.

${counter}

pdf

By setting to true will create pdf documents out of template.

true

merge

By setting to true it will create a merged document

true

mergeDocument

The name of the merged document will be set MergeDocument

MergeDocument

target

With the target parameter, the user can determine the document name in the destination folder.

_Target

  1. Word template is required (detailed explanation on how to create the template is provided in the WordTemplateHandler) . In the template document the variables ${invoiceto}, ${deliverto} ${amount} etc. are used.

...


individualprice[0]

...


total[0]

...


For the second document that will be generated out of template, the process variables must have the same name as the previous one but indexes start with 1. eg. invoiceto[1], deliveryto[1], amount[1], description[1], individualprice[1], total[1].

invoiceto[1]

...

After a successful execution you can see that three documents are visible in the "Documents" tab of the operation. The first document contains the value from process variables having Index number [0] like invoiceto[0], description[0] etc. The second document contains the value from process variables having Index number [1] like invoiceto[1], description[1] etc. The merged version of these two documents is also available.

Screenshot 2024-08-25 215908.pngImage RemovedScreenshot 2024-11-15 120059.pngImage Added

You can view the content of the first two documents here. The third document is simply a merged version of the first two.

...