ROES Server - ORB or GotPhoto Orders With Production Templates - Traders, Packages, Multi-ups

ROES Support Knowledgebase

Workflow for ORB Orders With Production Templates

Use this article to build and process ORB/GotPhoto orders that need production_templates added through ROES Server workflow scripts before transformer and render output.

Product: ROES Server Category: ORB / Production Templates Audience: Lab / Support Article ID: 96
Common need
ORB orders need production_templates copied into the job and text-node bounds corrected before the Transformer Agent and Disk Printer render the final output.

Overview

This workflow uses a reference order and a templates file to locate matching ORB templates, copy production_template data into ORB order jobs, correct node bounds when needed, and then pass the jobs through the Transformer Agent and final render agent.

Templates File Product Creation

Create an ORB catalog in a templates file of a ROES Desktop Client. This can be in either the Test or Live Client. If the catalog is created in the Live Client, use the hidden attribute at the catalog level so customers do not see it.

The templates file should contain all ORB templates and any required production_templates. Use unique, non-recurring values in each template’s id and layoutfile attributes.

Reference Order

The reference order is created from any product in the templates file that contains the ORB templates with productiontemplate added. The script looks for that reference order and uses it to find the templates file that has the productiontemplate needed.

Important Setup Notes

  • Use unique id values for every ORB/GotPhoto template.
  • Use unique id values on each node that may need scripted bounds changes.
  • Use unique output filename macros in the final Disk Printer render step to avoid overwriting rendered files.

Workflow File

Download the workflow file and drop it on the list found under the 'Workflows' tab to create the workflow and all of its queues and agents.  File is here: ORB ProductionTemplates and Job Modifiers.xml.zip

Workflow diagram for ORB production templates and job modifiers
Workflow overview for ORB orders with production templates and job modifiers.
If this image does not display, open it directly: ORB_ProductionTemplateAndJobModifieersWorkflow.png

Workflow Steps

ORB order enqueued to ORB Modify u_id script
Enqueued job in the starting queue of the workflow as received from the ORB order.
If this image does not display, open it directly: EnqueuedToORBModify_u_id.png
1

Script-ORBModifyTemplate u_id

ORB templates may not have repeatable, predictable u_id values. They can start at 1 and increment for each order item added to the ORB order, as well as for each node in each template.

What this script changes

To make u_id values predictable, this job modifier script updates the root template u_id to the value of the template’s id attribute. When the job is enqueued to the next script, the root template has the updated u_id value.

ORB job after modifying template u_id
Job after Script-ORBModifyTemplate u_id updates the root template u_id.
If this image does not display, open it directly: After_ORBModifyTemplate_u_id.png
2

Script ORB Update Production Template

This script uses a unique value in the id or layoutfile attribute to locate matching templates in the templates file used by the reference order. After a match is found, the production_template data is copied and added to the ORB order job or jobs in the following enqueue-to queue.

Match field

The script can be altered to use either id or layoutfile for matching against the reference order’s templates file. The default match field is layoutfile.

Script ORB Update Production Template configuration
Script ORB Update Production Template configuration.
If this image does not display, open it directly: Script%20ORB%20Update%20Production%20Template.png
ORB job after production template update
Job after production_template data is copied into the ORB order job.
If this image does not display, open it directly: After_Script%20ORB%20Update%20Production%20Template.png
3

Script ORB SetBoundsOnNode

GotPhoto and possibly other ORB vendors can populate text-node bounds with 0,0,0,0. This can cause the nodes not to show on the final product because they render too small to see.

Unique node id values are required

Because node u_id values are not predictable, each ORB product should have a unique value in the id attribute of each node. The script uses that node id as a stable reference.

For each node, modify the script by copying the else if block and changing the id and bounds values for that specific node.

Text color attribute note

One observed ORB use case included a ROES-unrecognized attribute named textcolor. That attribute needed to be removed and replaced with the supported color attribute using the desired text color value.

Script ORB SetBoundsOnNode configuration
Script ORB SetBoundsOnNode configuration.
If this image does not display, open it directly: Script%20ORB%20SetBoundsOnNode.png
ORB job after setting node bounds
Job after node bounds are updated using unique node id values.
If this image does not display, open it directly: After_Script%20ORB%20SetBoundsOnNode.png
4

Transformer Agent

The Transformer Agent uses the production_templates copied into the job by the previous scripts to create a single job or multiple jobs representing the new product or products. Those jobs are then enqueued to the next workflow step.

Jobs after Transformer Agent
Jobs after the Transformer Agent creates output jobs from copied-in production_templates.
If this image does not display, open it directly: After_TransformerAgent.png
5

Render – Disk Printer

The final agent uses the productiontemplates and other job changes to render the final product. Use specific macros in the Output File Name field so each rendered file has a unique name and does not overwrite a previously rendered file.

Expected Result

ORB jobs should move through the workflow with predictable root template u_id values, production_template data copied into the job, corrected text-node bounds, transformed output jobs, and final rendered files from the Disk Printer step.

Escalation Notes

  • Confirm the reference order was created from the templates file that contains the ORB templates and production_templates.
  • Confirm each ORB/GotPhoto template has a unique id and layoutfile.
  • Confirm each node requiring scripted bounds changes has a unique id.
  • Confirm whether matching should use layoutfile or id in the production-template update script.
  • Confirm final render output filename macros are unique enough to prevent overwritten files.
Suggested keywords: ORB, GotPhoto, production templates, production_template, workflow, job modifier, u_id, layoutfile, SetBoundsOnNode, Transformer Agent, Disk Printer, reference order

Article Details

Article ID:
96
Category:
Views:
950