Processes
Document Designer

Using the template

4min
ο»Ώ

After creating the template you have the ability to generate documents in your processes.

1. Navigate to the Process Designer section and create your process.

2. Give it a name (feel free to use emojis).

3. Drag the Generate Document action to the canvas.

Document image
ο»Ώ

4. Create the variables.

  • ο»Ώ<%fileout%> the output variable of type File.
  • ο»Ώ<%htmltring%> the output variable of type String.
  • ο»Ώ<%Name%> the input variable of type String.
Document image
ο»Ώ

ο»Ώ

5. Click the Generate Document action to access its configurations.

  • Select document template* - select the template we created here.
  • Save document as - the document will be saved s a PDF.
  • File name - choose the name of the file we will create.
  • Document output - add the file variable created in the previous step.
  • HTML string - add the string <%htmlstring%> variable created in the previous step.
Document image
ο»Ώ

6. Click Map Document Data and map the input variable <%Name%> created in the process to the <%Name%> variable used in the template (they do not need to have the same name).

Document image
ο»Ώ

7. Save, Validate and Run the process.

8. The process will ask for the input variables value.

Document image
ο»Ώ

9. Click Run again and than click Check instance.

10. If you wish to download the the file or the html output you just need to click the download button.

Document image
ο»Ώ

The pdf file output:

Document image
ο»Ώ

ο»Ώ