Integrations
For the primary quote intake workflow, see Build an OperaJM job from a quote request.
To inspect or operate a running graphical session, see the OperaJM Remote UI.
Inspect the configured database
- Run
operac --helpfrom the OperaJM installation to check available switches. - Run
operac -sxon a test installation and parse the archive list. - Use the archive list and documented command options to choose the integration operation. Verify the request and response on test data before using production data.
Named import and export activities
OperaJM stores named data exchange activities, known as FEDs, in OPERAFED. Configure them under Tools → Data import/export. A definition specifies the activity name, data type and direction, destination, driver directory, and program to run.
An export can be started through the OperaJM interface, the CLI export-filter switch, a job status or a save event. A status-based export can move the job to a different status after successful processing.
For a FED that exports a single job, the documented Type is Jobs. The job-to-CSV example converts the temporary job XML into a tab-separated file with the customer code, item positions, descriptions, quantities, and prices. A status-based FED can transition the job after a successful export. Confirm how the configured status and success checks work before setting up repeated exports.
OperaJM prepares XML in a temporary working directory and removes the directory after the program finishes. A program can use these environment variables:
| Variable | Meaning |
|---|---|
%WORKDIR% |
Temporary working directory |
%driverdir% |
Directory containing the filter's scripts and resources |
%dir% |
Target directory |
%destination% |
Destination value for targets such as a URL or database name |
When the program is a Windows batch file, invoke it with call in the FED program field.
Example: Import profile prices from Excel
Opera installations include Apache Xalan for XSLT and Opera conversion utilities such as xls2xml.exe, csv2xml.exe, and json2xml.exe. This example uses an Excel price list named excel_price_file.xlsx and a stylesheet named xls_mapping_file.xsl. Provide a stylesheet that maps your workbook's columns to the Opera profile price import format. Run each step after the preceding one succeeds, using full executable paths if needed.
-
Convert the workbook to intermediate XML.
cmd xls2xml.exe -o converted_price_file.xml excel_price_file.xlsx -
Transform the intermediate XML into Opera's profile price XML.
cmd xalan.exe -o prices_in_opera_format.xml converted_price_file.xml xls_mapping_file.xsl -
Check that each
<profile_price>contains the<pro_name>of its parent profile. Run the import intoOPERAPRPon an approved test installation.cmd operac.exe -iprp prices_in_opera_format.xml
The orchestrating model can use any language, library, or conversion tool to generate prices_in_opera_format.xml. The requirement for the import is XML in the target archive's format.
Transform Opera XML for the destination
- Use Xalan or Saxon to transform Opera XML with an XSLT stylesheet. For a job export, the documented example paths can be used to select job identifiers, the customer code and component rows for a tab-separated file.
- Use Opera's
csv2xlsutility to turn a CSV intermediate file into an Excel file. Usesetxlsto fill or format cells in an existing workbook. - Use Opera's
xml2jsonorjson2xmlutilities when the other system uses JSON. Inspect the converted document against that system's contract before exchanging it. - For an external database, a filter can generate SQL for that destination and pass it to the destination's SQL client. OperaJM itself stores its archives in files.
Basic converter commands
These commands were checked with the installed utilities on synthetic files. Each command shows a separate conversion.
| Input to output | Command |
|---|---|
| Semicolon-separated CSV to XML | csv2xml.exe -o prices.xml prices.csv |
| Semicolon-separated text to XML | txt2xml.exe -oprices.xml prices.txt |
| XML to JSON | xml2json.exe -o prices.json prices.xml |
| JSON to XML | json2xml.exe -o prices.xml prices.json |
The project includes a Python example for parsing archive statistics and a sample XML input under examples/.