Creating Packs

You create Packs to make Workflows (Actions) available for reuse. Therefore, the following must be ready before creating the Pack:

  • Clear purpose of the Pack
  • Technology to be used
  • Actions that are needed to perform the operation and any parameter that is necessary for it
  • VARA objects and variables

To Create a Pack Using the Automic Web Interface

  1. Go to the Process Assembly perspective and open the Packs view.

  2. Select Add Action Pack.

  3. On the New Action pack dialog enter the title of the Action pack.

    The name for the Action Pack is suggested automatically using the format PCK.CUSTOM (prefix).

    The prefix can be configured via the actionbuilder.properties file (see Configuring the Action Builder.

  4. Click Add Action pack. The predefined Pack folder structure is created.

  5. Enter information about the Action Pack in the Documentation object that is stored in the DOCUMENTATION folder.

  6. Optionally, enter a category for this Pack in the METADATA VARA object. This category lets users find the Pack more easily by filtering by it.

To Create a Pack Using the Command Line Interface (CLI)

Enter the following command:

apm build [option] <package_name>

Where [option] can be one of the following:

  • --output-format

    Defines the output format of the package.

    Options:

    • solution: ZIP archive with the extension .solution
    • zip: ZIP archive with the extension .zip
    • tar: GZIP compressed tar-archive with the extension .tar.gz
    • folder: Folder in the specified target directory.

    Short:-o

    Default: folder

  • --target-dir

    Path to target directory in local filesystem

    Short:-d

    Default:<current_dir>/packages/

  • --build-mode

    Path to target directory in local filesystem

    Short:-bm

    Options:

    • xml
    • json
    • all

    Default: json

Example

apm build PCK.AUTOMIC_SHARED -o tar -d /home/deploy/pmRepo -bm xml

Important! This command overrides the setting defined in PACKS_COMPATIBILITY_MODE.

See also: