Skip to content

Latest commit

 

History

History
187 lines (105 loc) · 7.83 KB

File metadata and controls

187 lines (105 loc) · 7.83 KB

KMD Logic Document Generation Configuration

To configure a Logic Document Generation environment you need to access Logic Console.

Accessing Logic Document Generation Configuration module

To access the Logic Document Generation Configuration module you will need to click on the menu labeled as Document Generation on the sidebar menu (highlighted in the image below).

Image of Logic Console sidebar menu

After doing that you will be presented with the Logic Document Generation Configuration module.

Image of Logic Console Document Generation Configuration module

Creating a Configuration environment

To create a Document Generation Configuration click on the ADD CONFIGURATION button at the top right corner of the screen.

You will be then presented with the following screen:

Image of Logic Console Create Document Generation Configuration screen

The screen is divided in two sections, the Configuration Settings and the Master Storage Settings, we will explain them below in detail.

Configuration Settings

Image of Logic Console Create Document Generation Configuration - Settings

  • Configuration name:
    (Required) The configuration name, any non-empty string is valid.

  • Companion template metadata file extension:
    (Default value) json.
    (Optional) The extension of the file in your template storage that will be used to pair your templates with their corresponding metadata.
    E.g. given a template template.docx, the companion template metadata file would be template.json.

  • ASPOSE license switch:
    (Required) In order to use Logic Document Generation your team needs to have a valid ASPOSE license. Toggle this switch on to acknowledge that.

  • Levels: (Optional) Logic Document Generation allows you to consume templates stored in multiple storages, it uses a hierarchical organization where each level down the hierarchy is able to override a template found on its parent level.
    By default this screen is pre-populated with two levels (Customer and Department), feel free to modify this to suit your needs.

Master Storage Settings

  • Template provider:
    (Required) The template storage provider where the master templates are stored.
    Logic Document Generation currently supports two storage providers: SharePoint 365 Online and Azure Blob Storage.

SharePoint settings

For SharePoint Online, Logic Document Generation requires an Azure App Registration with the following API permissions:

  • Microsoft Graph
    • Files.ReadAll
    • Group.Read.All

Go to your organization Azure Portal and create one at https://docs.microsoft.com/en-us/graph/auth-register-app-v2.

You can read about how to set up an Azure App Registration that uses the Microsoft Graph API at https://docs.microsoft.com/en-us/graph/auth-v2-service?view=graph-rest-1.0.

Once you have set the minimum permissions required by Logic Document Generation, you'll end up with something like this:

Image of App Registration API Permissions

Next, create a new client secret and copy its value which you will need later:

Image of App Registration API Client Secret

Finally, head over to the App Registration Overview module to copy its Client Id and Tenant Id:

Image of App Registration Client Id and Tenant Id

Once you have done all that, proceed to configure the SharePoint storage provider settings:

Image of Logic Console Create Document Generation Configuration - SharePoint Settings

  • Client Id:
    (Required) The Client Id from your App Registration.

  • Tenant Id:
    (Required) The Tenant Id from your App Registration.

  • Group Name:
    (Required) The SharePoint group name where the templates are stored.

  • Client Secret:
    (Required) The Client Secret from your App Registration.

Azure Blob Storage settings

You'll need an Azure Blob Storage resource to use this provider.

To create an Azure Blob Storage resource please follow the guide located in https://docs.microsoft.com/en-us/azure/storage/common/storage-account-create.

Once you have done that, you'll need to take note of its connection string, you can do that by following guide: https://docs.microsoft.com/en-us/azure/storage/common/storage-account-keys-manage#view-access-keys-and-connection-string.

Finally, fill out the Azure Blob Storage provider settings.

Image of Logic Console Create Document Generation Configuration - Azure Blob Storage Settings

  • Container:
    (Required) Your Azure Blob Storage container name.

  • Connection:
    (Required) Your Azure Blob Storage connection string.

  • Blob prefix:
    (Optional) Your Azure Blob Storage blob prefix.

Persisting your changes

After filling out the details for your configuration and its master storage the Save button underneath will get enabled, like so:

Image of Logic Console Create Document Generation Configuration - Completed

Just click the Save button and you'll be all set.

Image of Logic Console Create Document Generation Configuration - Edit mode

Configuration entries

In the screenshot above, we can see a section called Configuration Entries.

This grid list all the entries in our hierarchy, starting from the Configuration Master Entry, like the following grid filled with a couple of entries (most of them misconfigured for demo purposes):

Image of Logic Console Create Document Generation Configuration - Configuration Entries Grid

The grid has the following columns:

  • Name:
    The name of the entry.

  • Level:
    The level of the entry in the hierarchy.

  • Storage:
    The type of storage used by the entry.

  • Path: The hierarchy path of the entry in the hierarchy.

  • Status:
    Indicates whether the connection to the configured storage can be done successfully or not.
    Hovering the pointer over the status badge will provide further details about the connection status when possible.

  • Actions:

    • Edit entry (pencil icon):
      Allows you to edit the configuration entry.
      It will open a pop-up dialog like so:
      Image of Logic Console Create Document Generation Configuration - Edit pop up

    • Add child entry (plus icon):
      Adds a child entry to the configuration entry.
      It will open a pop-up dialog like so:
      Image of Logic Console Create Document Generation Configuration - Add pop up

    • Remove entry (trash icon):
      Removes (after prompting the user) the configuration entry. Image of Logic Console Create Document Generation Configuration - Remove pop up

Removing a Logic Document Generation Configuration

In order to remove a Logic Document Generation Configuration, click on the menu labeled as Document Generation on the sidebar menu (highlighted in the image below).

Image of Logic Console sidebar menu

You'll now see a grid with your configuration in it, like so:
Image of Logic Console Document Generation Configuration - Configurations Grid

Click the remove button (trash icon), a prompt will be displayed like so:

Image of Logic Console Document Generation Configuration - Remove configuration pop up

After clicking Remove, the configuration will be removed from your Logic subscription.