XML entities
This section describes the OperaJM objects that integrations encounter. For XML field names and document structure, start with the XML specifications.
Jobs
A job represents a customer order or project. The job ID and year together identify it. Its header includes the order reference, name, status, customer and installation-site details. Customer information copied onto a job can be changed there independently of the customer archive.
A job body can contain typologies, raw materials, cutting-list items, generic job lines and extra costs. It can also contain batches, attachments, and a job log. Job statuses can drive an export workflow and control what an operator can do with a job.
Users can define custom fields on the job header and on individual job rows to carry information beyond the standard job fields. See custom fields on job headers and rows for an example of passing those values to another system.
Job statuses
The job status archive is OPERASTC. Statuses are configurable. They can control whether operators can see, open, or modify a job and whether they can move it to another status. Status changes are tracked in the job log and can trigger actions. Verify the configured status and its effects on the target installation before using it in an integration.
Typologies
A typology models a configured product such as a window, door or curtain wall. It consists of one or more structures. Each structure contains a fixed frame and any sashes, with profiles and accessories making up the assembly.
The typology archive (OPERATPG) stores reusable models. Adding a model to a job creates a copy that can be customized for that job. Profiles and accessories are referenced by name, so changes to the corresponding archive entries can affect the jobs that use them.
OperaJM displays Typology contains unrecognized codes when a referenced profile or accessory is missing from the archive. The typology cannot be calculated until the reference is corrected or removed. Check dependencies in the installation that will calculate the job, especially when copying a model or job between projects. Opera codes are case-insensitive. Preserve the exact case of variable names in math expressions.
Common archives
| Archive | Contents |
|---|---|
OPERASIS |
Window systems |
OPERASER |
Series |
OPERAPRO |
Profiles |
OPERASEZ |
Profile cross-section diagrams |
OPERACMP |
Accessories |
OPERACOL |
Colors |
OPERACOM |
Job list |
OPERATPG |
Reusable typology models |
OPERAFED |
Named data import and export activities |
Use archive statistics to discover the archive names and short IDs reported by your installation.
Archive relationships
The database schema lists tables under their parent tables. In a one-to-many relationship, the parent's primary key (PKEY) can be referenced by multiple child rows through a foreign key (FKEY). Opera uses 32-bit integers for these keys and enforces referential integrity on deletion.
| Parent archive | Child archive | Relationship |
|---|---|---|
OPERASIS |
OPERASER |
A window system can have multiple series. |
OPERASER |
OPERAVSR |
A series can have multiple variable records. |
OPERAPRO |
OPERASEZ |
A profile can have multiple cross-section diagram records. |
OPERAPRO |
OPERAPRP |
A profile can have multiple price records. Each imported price row identifies its parent profile by name. |
Opera also uses name-based references. For example, a profile stores names for its system and series. Deleting a series can leave a profile with a reference to a series name that no longer exists. When mapping archives, use the relationship defined for each table.
See the archive hierarchy for the full parent and child list and the XML fields observed in exports.