...
Code Block |
---|
com.dooris.bpm.actionhandler.RepeatingWordTemplateHandler |
Parameter
Parameter | Default value | Description | Valid examples | ||
---|---|---|---|---|---|
|
| This parameter is used to set the path to the template, so the actionhandler can search for it in the resources folder.
|
| ||
|
| This parameter should be set to |
| ||
|
| This parameter is used to set the name for the merged documents. |
| ||
|
| This parameter is used to decide if the documents should be merged. All documents will be merged into one if this parameter is set to true. |
| ||
|
| Name of a variable containing a number, which denotes how many indices are present. |
| ||
|
| It can be either |
|
Example:
In the following, the use of the ActionHandler is briefly explained.
...
The following parameters were used in this example:
Parameter | Description | Valid examples |
---|---|---|
| Name of the word template that will be uploaded to the resources folder is set here. |
|
| Here, |
|
| This parameter is used to set the index number and you need to enter this in advance. Also, we will create counter variable on the |
form, so the user can enter the number. |
| |
|
| |
|
| |
|
|
Secondly, a Word template is required (detailed explanation on how to create the template is provided in the WordTemplateHandler) . In the template document the variable department
is used and for each department entered in the Smartform Form a Word document should be generated. This template should be uploaded to the resources folder in the administration.
...
As a third step, a smartform form is needed. It contains three input fields with the indexed variables department[0]
, department[1]
, and the variable counter
.
...
When starting the process, the fields must be filled in the SmartformForm.
...
After a successful execution you can see that three documents are visible in the "Documents" tab of the operation. The first document contains the department with the first index number ([0]). The second document contains the department with the second index number ([1]). The merged version of these two documents is also available.
...
You can see the content of the first two documents here. The third document is simply the merged version of the first two documents.
For marketing department | For finance department: |
---|---|