Sepasoft MES Module Suite
Using Templates in Batch Procedure Recipes
Operations and Unit Procedure can be saved as Templates.
Recipe (Procedure) > Unit Procedure > Phase
Recipe (Procedure) > Unit Procedure > Operation > Phase
Unlinked Template
Including and Previous to version: 3.81.12 SP4 and 4.83.1 SP4 it is important to note that once a template is placed, the instance is unlinked from the master template. This allows you to extend or modify the logic to meet the specific requirements of the new recipe without affecting the original template or other instances—providing a structured start while maintaining local flexibility.
|
Added in 3.81.12 SP5 and 4.83.1 SP5: Sync-able templates are governed by strict protocols designed to prevent data loss. The primary rules for using them include:
|
Linked and Non-linked Templates
|
In version: 3.81.12 SP5, 4.83.1 SP5 and later |
- Linked Templates maintain an active, synchronized connection to their source. Because they enforce a read-only configuration, they ensure that any structural updates or edits made to the master template are automatically synchronized to the child instance.
- When a Template becomes unlinked: Once a template is unlinked, it retains the fully populated logic and parameters of the original as a starting point, but you are completely free to modify, extend, and customize the logic for your specific recipe without affecting the master template or receiving future updates from it.
Creating and Accessing Batch Recipe Templates
First create the template classes if you want to organize templates into categories. Then, open a recipe and start saving Unit Procedures or Operations into templates.
Access Templates from Batch Recipe Editor.

Perspective Batch Recipe Editor Component
Learn about the Batch Recipe Editor component.

Define Template Classes
Template Classes function as a directory or folder system. If no specific class is selected, the template is stored in the root directory by default.

Save a Unit Procedure as a Template
In Batch Recipe Editor, open the recipe, navigate to the Unit Procedure and click the Save icon.

Save an Operation as a Template

Add the template by entering a name using a naming convention for your project, You have the option of selecting a unit class and adding a description.

Add a Template to a Recipe
Available templates are listed in the palette.

|
Version specific Rules: Including and Previous to version: 3.81.12 SP3 and 4.83.1 SP3 You can drag and drop the element in the design space. Doing this unlinks from the master template. This allows you to extend or modify the logic to meet the specific requirements of the new recipe without affecting the original template or other instances. |
Scripting Functions for Managing Templates
Generation and Organization: |
Use createTemplate(name, parentLink) and createTemplateClass(name, parentLink) to build new templates and folder structures.
|
||
Loading and Saving:
|
Existing templates can be accessed using loadTemplate(mesObjectLink), getTemplateLink(name, parentLink), or getTemplateLinkList(parentLink, pageNumber, pageSize, searchPattern), and committed back to the system using saveTemplate(mesObjectList)
|
||
Modifying and Duplicating: | You can duplicate existing configurations using copyTemplate(copyFromLink, newTemplateName) → MESObjectList, or move them between systems using exportTemplate(templateLink) and importTemplate(xml, parentLink).
| ||
Handling Synchronization: | To specifically handle the synchronization of logic phases (which relates to the syncable templates), you can use the syncPhasesAndSaveTemplate(mesObjectList) function.
|
Alphabetical listing of template scripting functions
Scripting Functions within system.mes.batch.recipe for generating and managing templates:
copyTemplate(copyFromLink, newTemplateName)createTemplate(name, parentLink)createTemplateClass(name, parentLink)exportTemplate(templateLink)getRootTemplateLink()getTemplateLink(name, parentLink)getTemplateLinkList(parentLink, pageNumber, pageSize, searchPattern)importTemplate(xml, parentLink)loadTemplate(mesObjectLink)loadTemplate(name, parentLink)loadTemplateClass(name, parentLink)removeTemplate(templateLink)saveTemplate(mesObjectList)saveTemplateClass(batchMasterTemplateClass)syncPhasesAndSaveTemplate(mesObjectList)
Sepasoft MES Module Suite