Skip to main content
PACZ (extension .pacz) is a universal component/workflow format for use in the Phoenix Integration products Analysis Server and ModelCenter Server.

Interface Summary

Class Summary

Enum Summary

Package com.phoenix_int.pacz.api Description

PACZ (extension .pacz) is a universal component/workflow format for use in the Phoenix Integration products ModelCenter Remote Execution and ModelCenter Server. A PACZ is a zip archive with component files and a file containing metadata (extension “.pacj”; see below for details) that specifies its usage. Note: PACZ files must be created using an archiving tool that supports UTF-8 encoding for filenames.

PACJ Configuration File

Each PACZ file contains an internal PACJ file, which is a metadata file with an extension of “.pacj”. This file is a simple text file that contains information about the component/workflow specified in JSON and must always be named “component.pacj”. The PACJ format specifies fields that describe the component, and the information it contains is case sensitive. Much of the information in the file is used by many programs to describe the component. Each PACJ file is broken into three sections: component-specific metadata, information about the variables associated with a component, and information about instance files associated with each component.

Component-specific metadata section

Component-specific metadata contains information about the component from a high level. This information includes a description of the component, what version it is, who authored it, and what icon to present to the user. See IComponentConfigfor the interface representing the component configuration metadata All fields listed below should be used in the component-specific configuration, unless otherwise specified:

Variables section

The Variables section is specified by theinputsandoutputsproperties and contains information about the variables used in the component. Both inputs and outputs have the same general format and contain specific information about the variable, including the name, type, and other information as specified below. Input variables should be specified in an array in the field inputsand output variables should be specified in an array in the field outputs. See IRuntimeVariable for the interface describing variables. All fields listed below should be used for each variable, unless otherwise specified: Variable type may be specified using one of the following types. Types are case-sensitive and must be written exactly as listed. Notes:
  • Default values are not currently supported for variables of typeFileorFileArrayand should be omitted.
  • Array default values should be specified by a string that contains the bounding dimensions of the array enclosed in square brackets, followed by a comma-separated list of values enclosed in curly braces.
  • Enumerated values should be specified in standard JSON format, using square brackets and a list of comma-separated values, with special characters such as quotes escaped by a backslash, for example, “Hi! I’m a PACJ enum value”. Note that this format is different from the format used in components and wrappers.
  • PACJ files must be encoded in UTF-8.

Instance Files section

The Instance Files section specifies exactly which files inside of the PACZ archive are important to running the component. This feature is currently unimplemented and will be entirely ignored. However, this feature may be implemented at any time and therefore should be used to help document the internal component. See IRuntimeVariable for the interface describing instance files. Instance files should be located in a field called instanceFiles and should be an array of objects, each containing the following values:

Validation

When ModelCenter Remote Execution or ModelCenter Server attempts to load a PACZ file, it will attempt to validate the contents of the PACJ configuration file against the referenced component. The following conditions are checked and must be satisfied in order for the PACZ to be loaded:
  • All variables that are specified in the component must be present in the PACJ configuration.
  • All variables that are specified in the PACJ configuration must be present in the component.
  • The names of the variables must match between the PACJ configuration and the component.
  • The variable types must match between the PACJ configuration and the component.
  • All variables specified as inputs in the PACJ must be inputs in the configuration, and all output variables in the PACJ must be outputs in the component.
  • The default values of variables specified in the PACJ configuration must match the default (or initial) values of variables in the component.

Example PACJ Configuration File