Job configuration xml files
A Task Agent xml file may include:
• A Job (Task) definition (required)
• A definition of User Interface components (optional)
• The Job Data Exporter definition (required)
• The Job Result Handler (required if has_result_data="true").
• Job Options
The job data exporter, job result handler, and job options can have parameters, some of which are editable when creating or editing a job schedule. The set of these parameters for a job configuration are called job parameters.
Job (Task)
<Job type="" java_class="" has_result_data="">
<DisplayName>name</DisplayName>
User Interface Components
<UI>
(Optional) This defines menu items for the job type and formatting for the multi-select task dialog.
Job Data Exporter
<Exporter java_class="">
(Required) The job data exporter exports data required to execute the job from the Creo Elements/Direct Manager Server database, such as:
• Model or drawing data
• Model or drawing meta data
• Macros and scripts for job execution
• DrawingJobExporter
Exports a drawing with its metadata.
• PlotJobExporter
A specialized DrawingJobExporter.
• ModelingJobExporter
Exports Model data for a Creo Elements/Direct Modeling job.
• ClashJobExporter
A specialized ModelingJobExporter.
Job Result Handler
A result handler must be defined if the <Job> tag includes has_result_data="true".
<ResultHandler java_class="">
The result handler defines what to do with the job results, such as:
• Store to database
• Send by e-mail
• Save to filesystem
Supplied job result handlers are:
• ClashJobResultHandler
Checks in the result of the Recalculate (Clash Analysis) task and updates the Clash Analysis object in the database.
• StoreToDatabaseJobResultHandler
Stores a job's result files in the database.
• EmailJobResultHandler
Sends out the job results in an e-mail.
• SaveToFileSystemJobResultHandler
Saves job result files to a configurable target directory on the server.
• CompoundJobResultHandler
A special job result handler that combines multiple job result handlers. Defining multiple job result handlers displays all of the choices in the New Task dialog.
Permission Check
<PermissionCheck java_class="">
(Optional) Defines where job execution is allowed.
• Allow plotting of drawings only for certain states
Job Options
<Options java_class="">
Define parameters specific to certain job types in the <Options> section of the Task Agent xml files.
• Plot
<Scale>
<Rotate>
<PlotMacro>
• Generate Viewing Format
◦ 3D PDF
<OutputFormat>
▪ <ExportAnnotations>
▪ <ExportContainers>
▪ <PaperOrientation>
▪ <PaperSize>
◦ U3D
<OutputFormat>
▪ <ExportAnnotations>
▪ <ExportContainers>
◦ VRML
<OutputFormat>
▪ <Version>
◦ XVL
<OutputFormat>
▪ <RetainAssemblyStructure>
▪ <ExportAnnotations>
▪ <ExportContainers>
▪ <ExportEmptyParts>
▪ <Version>
▪ <Tolerance>
▪ <FacetedData>
◦ eDrawings 3D
<OutputFormat>
▪ <AdvancedFeatures>
▪ <ExportAnnotations>
▪ <AllowSTLExport>
◦ Product View
<OutputFormat>
▪ <DisplayName>
◦ STL
• Generate Native Format
◦ CATIA V4
<OutputFormat>
▪ <Tolerance>
▪ <DisplayName>
▪ <MinValue>
▪ <MaxValue>
▪ <ExportContainers>
▪ <ExportEmptyParts>
◦ Creo Elements/Direct Modeling
<OutputFormat>
▪ <DisplayName>
◦ I-DEAS
<OutputFormat>
▪ <DisplayName>
▪ <ExportContainers>
▪ <ExportEmptyParts>
◦ Parasolid
<OutputFormat>
▪ <DisplayName>
▪ <TargetSystem>
▪ <ChoiceValue>
▪ <ExportContainers>
▪ <ExportEmptyParts>
◦ Creo Elements/Pro
<OutputFormat>
▪ <DisplayName>
▪ <ExportContainers>
▪ <ExportEmptyParts>
◦ NX
<OutputFormat>
▪ <DisplayName>
▪ <ExportContainers>
▪ <ExportEmptyParts>
• Generate Standard Format
◦ IGES 3D
<OutputFormat>
▪ <SaveAsSolid>
▪ <ConvertToNURBS>
◦ SAT
<OutputFormat>
▪ <ExportContainers>
▪ <MergeFaces>
◦ STEP
<OutputFormat>
▪ <RetainAssemblyStructure>
▪ <ApplicationProtocol>