|
MetadataMetadata is a hierarchical structure describing a job. Simply put, Metadata is data about data or, in other words, information tagged to data. Depending on the type of job, the Metadata includes information about the job, the data file, items in the Connect database, a PlanetPress Design document, 'User defined information' (sometimes created by regular tasks) and in some cases page properties and page counts. Some of the Action and Output tasks produce, alter, or use the Metadata. In addition to that, PlanetPress Workflow provides a whole series of plugins to create and edit Metadata during a Workflow process (see Metadata Tasks). The things that you have to know in order to use the Metadata tasks effectively are set out in another topic: Working with Metadata. Applications or plugins created in PlanetPress Suite 6 and using Metadata will need to be updated for use in version 2018.1. No backward compatibility mode is available.
When a user-defined emulation (created in PlanetPress Design) is used with Metadata, results and behavior are unknown and unsupported. For instance, refreshing the Metadata file may cause the document to crash and/or corrupt. For this reason, it is strongly advised to create backup copies of your documents beforehand.
Metadata structureThe hierarchical structure of the Metadata is composed of a number of basic levels for adding information to a job. These levels are, from top to bottom:
When Metadata is produced for a given job, a hierarchical (i.e. tree-like) structure is created, composed of the above elements in the following order: Job > Group(s) > Document(s) > Datapage(s) > Page(s). For example:
Any operation that modifies the data with regards to the structure (ex: remove pages, alter the data, etc.) makes the Metadata obsolete and so it must be recreated or refreshed; see Working with Metadata.
Metadata in OL Connect jobsIn PlanetPress Suite, all levels in the Metadata hold information about an actual job. In Connect, that isn't the case. The Metadata file created and maintained by OL Connect tasks looks the same, but contains less information. Only the first three levels in the Metadata hold information about the job: Job, Group and Document. A Group has information about a record set in the Connect database and a Document has information about one record in that set. This information appears under User defined information instead of under Production information. The Data Model fields are added into the Document level. Metadata elementsEach Metadata node (i.e. Job, Group, Document, etc.) is described with a series of elements, that is, system-defined attributes or user-defined fields holding static or dynamic information about the node they are attached to. Each element has a name and a value. More specifically, here is a definition of these 2 types of elements:
In addition to attributes and fields, each node of type Group, Document or Datapage has a Boolean property called 'selected' that indicates whether or not to produce the pages under that node. By default, this property is set to true for all nodes. This property is not visible in the Metadata file, but it can be used in a Script task via the Metadata API. Metadata attributes referenceThe Metadata attributes are categorized as either Production, Finishing or Index/Count. Production attributes describe the production of the job and/or Metadata (e.g. path and name of the datafile, date at which Metadata was created, etc.) Finishing attributes describe the finishing intent (e.g. page dimensions, page orientation, duplex mode, etc.). The presence of some finishing attributes depends on the PlanetPress Design document and target device used when producing the job.
Index/Count attributes are not part of the original Metadata file. They are evaluated live based on the content of the Metadata. Metadata Index/Count values are one-based when viewed in the user interface: the first element in any collection has an index of 1 and the last element's index corresponds to the collection's length. However, in the API and in Metadata selections, they are zero-based: the first element in any collection has an index of 0 and the last element's index corresponds to the collection's length minus 1. This means the zero-based value has to be used when retrieving Metadata (see also: Metadata selections and Rule Interface).
In the following table, the last 5 columns indicate at which level the corresponding attribute is available. This also depends on the type of job, however. In the Metadata file created for an OL Connect job:
Metadata in PlanetPress DesignPlanetPress Design includes a complete set of Metadata-related functionality, which can be referred to as Metadata Tools. These tools can be used to generate Metadata, retrieve or define Metadata elements, and build the Metadata structure of a PlanetPress Design document. For information about these tools see the user guide: PlanetPress Design 7.6 User Guide. |
|