You are viewing documentation for a feature in early preview. The feature is not available for all Laserfiche Cloud accounts and functionality is subject to change.

Deployment Manager

The Deployment Manager lets you quickly implement and share collections of business processes, workflows, rules, and other related resources. These resources, which often work together as a single solution, are bundled into a deployment package which is easily exported and then imported into other Laserfiche Cloud accounts. Deployment packages lets you:

  • Share resources with other accounts
  • Move resources between test and production accounts
  • Move resources between self-hosted Laserfiche accounts and Laserfiche Cloud accounts

Terminology

  • Resource: Any Laserfiche item added to a deployment package. Examples of resources are: workflows, business processes, fields and templates, rules, etc.
  • Package: A collection of resources bundled together. The package maintains links between resources and provides an easy way to import an entire solution into a Laserfiche Cloud account.
  • Deploy: Add all the resources inside the package to a Laserfiche Cloud account.
  • Source environment: The Laserfiche account you are copying resources from. Sign into this account and use Deployment Manager to identify all the resources you want to include in a package.
  • Target environment: The Laserfiche Cloud account you are deploying resources to. Sign into this account, then deploy a package to add all the resources in that package to the account.

Access Rights for Using Deployment Manager

Accessing Deployment Manager

Users must have the following access rights to access the Deployment Manager homepage or to find the icon for Deployment Manager in the app picker.

  • Access to Process Automation
  • Process Administrator or Process Developer rights
  • Access rights selected in Account Administration

Creating and Deploying Packages

Users creating deployment packages will need all relevant rights to export and download resources in order to add them to a package.

Users deploying packages will need all relevant rights to create resources in the environment they are deploying to. For example, users will need Team Developer rights to a team / project if they are deploying resources that are in that project.

Creating a Deployment Package

A deployment package bundles a set of resources (business processes, workflows, rules, etc.) in an easy-to-share package.

  1. From the Deployment Manager, click New Package.
  2. Provide a name and description for your package, and click Create.
  3. The package's JSON editor will open where a basic package structure is provided for you.
  4. Use the Insert Resources button to select the resources you want to include in your package. E.g., if your package includes a business process, select Business Process, choose the process, and click Insert.
  5. When you select a resource, the associated JSON for that resource will be automatically added your package. Linked resources and resource sections will be automatically populated.
    • Some resources create placeholders that you will need to configure further after deploying the package. For example, if you insert a file from Data Management, when the package is deployed, a placeholder will be created in Data Management in Process Automation from which you can easily upload a file. See the Additional Steps after Deployment section below.
  6. After adding the resources you want to include in your package, locate the "linkedResources" section of the JSON file. This section lists any resources that are referenced by the other resources you inserted to remind you to include them in the package as well.
  7. Note: If you don't add the linked resources listed here, the person deploying the package will be prompted to select existing resources in their environment to link the resources in the package to.

    Ex: You insert a business process that invokes a workflow as part of the process. The name of the workflow will be automatically added to the "linkedResources" section of the JSON file. Select the Insert Resources button and browse to the workflow to include it in the package. When the package is deployed, both the business process and the workflow will be imported, and the business process can seamlessly start the workflow.

    • When you add the resources listed in the linkedResources section, they will be automatically deleted from the linkedResources section. In turn, if the resources you add from this section require additional linked resources to run, those resources will be listed in this section. Continue adding the resources listed in this section until this section is either empty or only contains resources you don't want to include in the package.
  8. After you've finished adding resources, use the Validate button to check the package for errors or resources that were referenced by other resources but not added to the package. Either insert any missing resources or leave them out if you want the package recipient to add their own version of these resources when importing the package. To quickly insert resources, copy the resource name (enclosed in square brackets) from the list, and then search for it in the appropriate category under the Insert Resource button.
  9. Use the Format button to clean up your JSON file, removing extra spaces and line breaks.
  10. Click Save to save your changes. Click the Export button to save your JSON file to your computer. You can then import this solution into another Laserfiche Cloud account.
  11. Optional: Click Deploy to test your deployment in the current Laserfiche Cloud environment.

Exporting a Package

Export the package from the source environment, and deploy it in the target environment.

  1. From the list of packages, select the package you want to share.
  2. Click Export.
  3. Optional: You can select multiple packages to export together. When you select the Export link you can choose to export each package separately or to export them together as a single ZIP file.

Importing a Package

Tip: Test the deployment of complex packages by importing them into a test account before sharing them with the final target account. See the Deploying a Package section for more information.

  1. From the list of packages, select Import Package and then browse to or drag the package into the dialog box.
  2. Select Import.

Note: If a package with the same name already exists, or if the package you are importing has a name that exceeds 128 characters, you will be prompted to resolve the conflict.

Importing Self-Hosted Packages

Since not all self-hosted resources are supported in Laserfiche Cloud, we recommend running the Laserfiche Assessment Tool before importing a package. The assessment tool analyzes your workflows and business processes to determine which items can be automatically migrated to Laserfiche Cloud and which need manual configuration either before or after migration. Items are categorized as green, yellow, orange, or red depending on how much additional configuration is needed to migrate them to Laserfiche Cloud. The Deployment Manager will flag yellow issues on validation or deployment, and workflow activities will be categorized as supported or unsupported, so the assessment tool can be helpful for more granular analysis.

Also, note the following:

  • If a self-hosted workflow has two or more connection profiles, you will be prompted to map the connection profiles to a singular connection profile in Laserfiche Cloud (since workflows in Laserfiche Cloud only interact with a singular repository).
  • Workflow Business Process Rules will be removed when the package is imported into Deployment Manager and Workflow Business Processes will be converted to a regular workflow.

Deploying a Package

Deploying a package imports all components specified in the package into your Laserfiche Cloud account and links components together as a cohesive solution.

  1. From the list of packages, open a package, and select Deploy. Then click Next.
  2. On the Configure step, you can map items such as repositories, work schedules, condition starting events, projects, and more to existing resources in the Laserfiche Cloud environment you are deploying to. These are resources that were referenced, but not included, in the deployment package so you will need to specify a specific resource for the package to use. If the referenced resource is not essential to the package, you will have the option to skip it.
  3. Click Next.
  4. On the Conflict Resolution step, decide how to handle any resources that the deployment is importing but that have the same name as resources already in the Laserfiche Cloud environment you are deploying to. See Name Conflicts below for information on how conflicts are resolved.
  5. Review the resources included in the package.
  6. Click Deploy and then Done.

Name Conflicts

If the package contains a resource that has the same name as an existing resource in the target environment, you will have the following options:

  • Rename the resource coming from your deployment package
  • Skip the resource from your package so it is not deployed
  • Deploy the resource and have it override the resource in the target environment

Name conflicts when re-deploying a package

  • Rename the resource and update both its contents and its name in the target environment. The resource in the target environment will be replaced with the deployed resource and the new name will be used.
  • Update the resource in the target environment and keep the same name.

Reviewing Deployments

After deploying a package, the Versions page will open, and information about how the deployment is running will be shown, including its status, deployment time, and who it was deployed by.

  • Under Deployed Resource, you can see a list of the resources that have been deployed from this package to the target environment. Select a resource to open it directly. You can also see the project the resource was deployed to and any warnings associated with the deployment.
  • The Configurations tab shows a list of the resources that were referenced in the package's JSON file and whether they were mapped to a new resource in the target environment. The items here correspond to the Configuration step in the deployment process.
  • Under Steps is a history of all the steps in the deployment process, their status, and when the step was last updated.
  • Under Versions History, you can see a history of all deployments for that package, their statuses, who they were deployed by, and when they were deployed.
    • Select the Export button to export a copy of that deployment's JSON file.
    • Select Deploy to redeploy that version of the package.

Additional Steps after Deployment

  1. In the Versions tab, if you have any of the following types of resources listed there, select the resource to open it and make these final edits.
    • Publish and enable any business processes, workflows, and capture profiles created by the packages.
    • In Data Management, files created by the package are placeholders only without actual file data. Upload the file you want to use.
    • Verify authentication information for application connections, data sources, and web service connections.
    • For custom reports, modify Value, Group, Filters, Sort, and Drilldowns.
    • For Developer Console applications, provide authentication information for the applications, like Access Keys and Client Credentials in Developer Console designer page.
    • Stamps and images used in Forms will not be deployed and need to be re-created after deployment.
  2. Check all resource references (e.g. templates, fields, records management policies, tokens) when names have been changed. For example, workflow tokens may not have the correct name if you renamed fields in the deployment package. Validate the workflow to find broken tokens and other places you need to update manually.
  3. If you redeployed a package that updated existing workflows or business processes, check running instances of these workflows and processes to ensure the updates won't cause them to fail.

Best Practices for Deploying a Demo

Deployment manager is a helpful tool for quickly setting up demos that make use of multiple components in the Laserfiche suite.

  1. First import any demo briefcases into your repository. Ensure that the folder you are importing the briefcase into matches the path expected by any business processes or workflow you will be deploying. You may need to update the folder paths referenced in the business processes and/or workflows to match where you've imported the briefcase.
  2. Open to the Deployment Manager and import the demo JSON file. Follow the prompts to deploy the solution.
    • You may need to map to existing items in your Laserfiche Cloud account when importing, such as the repository and work schedule to be used.
    • If you have any existing resources that match the names of items in the package, you will need to choose whether to rename or use the existing item. For metadata that was imported with the briefcase, we recommend choosing to use the existing resource. If you select to rename resources, you may need to update dependent resources in the package to reference the new name.
  3. Once the solution has been deployed, review the imported components to confirm they imported properly.
    • All imported business processes and workflows will need to be republished.
      • If you renamed any resources or imported the demo briefcase into a different folder, update the processes and workflows to use the new values.
      • When publishing your business processes and/or workflows you will receive validation warnings indicating activities requiring reconfiguration.
    • Upload any external files used in the demo to process automation.
    • If you are importing into a Laserfiche Cloud account that is in a different region than the demo package expects, update URL token values to reflect the correct region.
  4. To run the demo, sign into your Laserfiche Cloud account as a user with the appropriate access rights to interact with the demo.

Known Issues

  • Editing a workflow's name can make it too long and it will fail to import. Limit workflow names to 100 characters.
  • Not all self-hosted token tag types are supported for Workflow input and output parameters in Laserfiche Cloud. The supported types are: String, Integer, Long, Numeric, DateTime, Boolean, and GUID. All other token tag types for input and output parameters, including compound types, will be converted to the type "String" during deployment.
  • The following resources can only be added to a package if they are part of the Global project: Capture profiles, Capture profile groups, Smart Invoice profiles, files, document merge rules. Similarly, these resources can only be deployed to the Global project.
  • If you deploy process automation resources to one project, and then re-deploy the same package but change the project to another project, the resources will be deployed differently depending on the resources type.
    • Business processes and surveys will be moved from project 1 to project 2. Their IDs will be kept the same and running instance won't be affected.
    • For other process automation project resources, Deployment Manager will remove the project 1 resources from the current package so that the project 1 resources will remain the target environment and running instances won't be affected. Then, new resources will be created in project 2.