You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.
A Note on persistence has been added to clarifiy how the persistence parameter will work in 11. The behavior changes compared to 10.
This service generates a file from a document (or page).
Introduction
To generate a file the document or page which is modeled in studio has to be specified. The service will return the file id and put it in the attribute specified in 'FileId'. Also the type and the file name must be specified. Currently only PDF documents can be generated. To be able to store the generated file somewhere, the connection has to be stated. With the parameter 'Persistence' a modeler can specify whether the file should be generated and stored permanently or temporary. For the latter case the file will be removed from the connection when the session/request is expired. By setting the 'CreateInstance' and 'Relation' it is possible to state whether an instance should be created automatically and whether it has to be added to a relation. The last parameter (UpdateFileId) could be useful in case of overwriting an existing file, for example if you only want to have only one kind of file.
Comparable components
This service has the following comparable components:
In contrast to the AQ_Document_Renderer this service uses a connection to store the file on, which is more flexible. The AQ_DocumentLink can only be used when this container is shown on a page.
Parameters
Name | Description | Direction | Type | Required | Example |
---|---|---|---|---|---|
Document | The name of the document as it is stored in studio. | Input | Document | False1 | Application |
Page | The name of the page as it is stored in studio. | Input | Page | False1 | - |
FileName | The schema to generate a file name. | Input | Expression | True | "Application " + TODAY + ".pdf" |
FileType | The file type that is to be generated. | Input | String | True | pdf (specify without quotes) |
Connection | The connection2 on which the generated file should be stored. | Input | String | True | onfilesystem |
Persistence | Store a generated document temporary or permanently. | Input | Domain | True | Permanent |
CreateInstance | Create a new instance. | Input | Boolean | True | Yes |
Relation | The newly created instance will be linked to the given relation. | Input | Relation | False | Applications.RelApplication |
UpdateFileID | The file id that should be overwritten. | Input | Attribute | False | - |
FileID | The attribute that contains the file id. | Output | Attribute | True | Document.Id |
AuthorizedRoles | Select roles that are authorized for this document | Input | Role(s) | False | Junior, Senior |
CaseId | The id of the case where the document is generated for3 | Input | Expression | False | Control.CaseId |
The Unauthorized
exit is triggered when updating a file for which the user does not have one of the required roles.
1) One of them is necessary otherwise there is nothing to generate.
2) See How to setup a connection.
3) The CaseId is used to add to the Trace Engine and to create an event on the case's timeline. It was added in Blueriq 12.12.