Template Structure
Template Structure
The process template uses the XML format (Extensible Markup Language). It follows a predefined structure and uses a certain set of tags to define all the tasks involved in any model analysis.
The template exposes a flexible tree-based object model whose hierarchy depends on the order in which the tasks are defined. A template should include the following components:
Header Element—Provides an identification line that is used to recognize the process template. The process templates must contain the <ProcessGuideProcess> elements to define a header of the process template. The following example shows a fragment of the XML schema from the sample template. This fragment shows header information that you can use to describe the template.
<ProcessGuideProcess>
<header product="GuidingUI" fileVersion="1.0" />
Process element—Encloses the set of Creo Simulate tasks involved in any simulation process. Thetask list follows a particular sequence based on the Creo Simulate workflow but may not always include all the tasks.
The process element provides details about the template with the name attribute. Consider the analysis type or the model name as an input value for the name attribute. For example, <process id="1" name="OilPanTemplate">.
All the tasks involved in a simulation process are enclosed within the <process> tag. A process is described through a list of tasks as follows:
<process id="1" name="StaticAnalysis">
<task id, label, object, type, visibility, name, ...>
<description>Text, actionlink(1), Text, infolink(0+), Text</description>
</task>

<task id, object, type, name, ...>
<description>Text, actionlink(1), Text, infolink(0+), Text</description>
</task>

<task>....</task>
</process>
A template must contain a set of tags in the flow as shown in the following example:
<file name>
<header product="GuidingUI" fileVersion="1.0" />
<process id="1" name="------------">
<task id="1" object="-------" label="----------">
<description>------------- </description>
</task>
<task id="2" object="-------" label="----------">
<description>------------- </description>
</task>
<task id="n" object="-------" label="----------">
<description>-------------- </description>
</task>
</process>
</file name>
Sample templates are available at Installation Directory/mech/html/process_guide.