Creating a solution from a template by using the command line

Draft comment:
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-01-20 10:38
You can create a solution that is based on a solution template to quickly begin designing a new solution. The template provides a basic design for your solution, and you can customize the new solution later in Case Builder. You can use the command line to create the solution. Your administrator determines the templates that are available in an object store.

About this task

If you are a business analyst and want to create a basic solution from a template, you can use Case Builder. However, if you create a solution in Case Builder, you do not have the option to preserve the unique identifiers of any of the objects in the solution.

Creating a solution from a template applies only in the development environment.

Procedure

To create a solution from a template:

  1. Change the current directory to the install_root/CaseManagement/configure directory, where install_root is the location where Business Automation Workflow is installed.
  2. Generate the text input file by running the following command. Do not enter any line breaks when you enter the command:
    configmgr_cl generate_input_sa -operation createFromTemplate 
     -file input_file_name
    [-help]
    -file input_file_name

    Specifies the full path to the text input file to create. The directory structure in the path must exist. You can use any valid file name, but the .txt extension is recommended. For example, use -file C:\solutions\from_template_input.txt.

    -help
    Optional: Shows a brief message on the command syntax instead of running the command.
    For example, the following command creates the C:\solutions\from_template_input.txt input file:
    configmgr_cl generate_input_sa -operation createFromTemplate 
     -file C:\solutions\from_template_input.txt 
  3. Edit the property values in the input_file_name file.
    1. Open the input_file_name file in a text editor.
    2. Provide a value for each property in the file.
      For example, enter the Content Platform Engine server WSI URL value:
      CEWS_URI=http://myserver:9080/wsi/FNCEWS40MTOM
      You can specify whether unique identifiers are preserved when solutions are created from the template later on by providing a value for the preserveIdentifier property.
      Important: Ensure that the preserveIdentifier value is set to the same value that is set in the template unless you have a specific business reason to override the template. If you enter preserveIdentifier=true, do not deploy more than one solution that is made from this template to the same target object store.
    3. Save and close the input file.
  4. Apply the values in the text input file by running the following command. Do not enter any line breaks when you enter the command:
    configmgr_cl execute_sa -operation createFromTemplate 
     -file input_file_name