Document Phase

Sepasoft MES Module Suite

Document Phase


Overview

Use the Document Phase for:

  • Adding procedures and steps to recipes.
  • Adding instructional and informational materials.

Built to support HTML5, a Document Phase supports form elements such as check boxes and entry fields as well as media.

Content can be driven by Ignition tag values and other phases.

Document Phase Change Propagation

Note Included in 3.81.11 SP9 and later.

The Document Phase Change Propagation feature is a core mechanism for managing and distributing updated documents from a central 'document phase' to all associated recipes and templates where it is utilized. Its strategic purpose is to ensure that revisions made to a source document can be systematically and intentionally pushed downstream, maintaining consistency across multiple dependent items.

This guide details the propagation mechanism, the user controls that govern it, the expected outcomes of your actions, and known operational limitations of the feature. To use this feature effectively, it is important to first understand its fundamental concepts and workflow.

The Propagation Mechanism: How it Works

Understanding the step-by-step process of document propagation is key to leveraging this feature correctly. The mechanism is not automatic; it is a deliberate action controlled by the user during the phase update process, designed to give you explicit control over how and when document changes are distributed.

Change Detection and Versioning

The propagation process is initiated when a document linked to a document phase is modified.

  • The "Changed" Status Trigger When a document attached to a document phase is changed, its status is recorded as "Changed."
  • Automatic Phase Versioning This change automatically triggers an increment of the phase version number, creating a new version of the phase that contains the updated document.

The User Control for Propagation

The decision to propagate the document change is managed by a single, critical user control element.

  • The Propagation Checkbox A checkbox is located within the phase update dialog.
  • Explicit User Permission Checking this box explicitly grants permission for the document changes to be pushed from the updated phase to all dependent recipes and templates.

The Forceful Overwrite Behavior

Enabling propagation has a significant and immediate impact on the recipes where the document phase is used. The new version of the document from the phase forcefully overwrites whatever document was previously attached to the recipe.

Warning: This overwrite occurs even if the recipe's document had been modified from the original phase document. As a result, any local changes made to the document at the recipe level will be permanently lost once propagation is enabled.

This concludes the mechanics of how the propagation is triggered and executed. The following section details the specific outcomes based on your choice to enable this feature.

Expected Outcomes Based on User Action

The update status of all associated recipes and templates is determined entirely by the user's decision to "push" the document edits during the update process. The outcome varies depending on whether you check the propagation box and which assets you target for the update.

Scenario 1: Propagating Document Edits (Checkbox is CHECKED)

When the checkbox is checked, the updated document is successfully pushed from the phase to the targets you select.

  • When only updating recipe: Recipes that use the document phase will be updated with the new document.

  • When only updating templates: Templates that use the document phase will be updated with the new document.

  • When updating recipes and templates: Both recipes and templates that use the document phase will be updated.

Scenario 2: Not Propagating Document Edits (Checkbox is UNCHECKED)

If you choose not to check the propagation box, the document changes remain isolated within the document phase. No downstream assets will be updated.

  • When only updating recipe: Recipes will not be updated with the document phase change.

  • When only updating templates: Templates will not be updated with the document phase change.

  • When updating recipes and templates: Neither recipes nor templates will be updated.

While these scenarios describe the intended behavior, it is important to be aware of certain limitations observed during testing, which are detailed below.

Known Limitations and Important Notes

This section contains critical information for the successful use of the Document Phase Change Propagation feature. While the functionality is robust for updating recipes, testing has revealed specific limitations regarding template updates that users must be aware of to avoid unexpected results.

Observed Behavior in Template Updates

Recent testing has identified inconsistencies when attempting to propagate document changes to templates. The following outcomes were observed:

  • If the user selects to update only the recipe, recipes will update correctly.

  • If the user selects to update only templates, templates do not update.

  • If the user selects to update both recipes and templates, recipes are updated, but templates are not updated.

Users should factor this observed behavior into their workflow, particularly when managing documents intended for use in templates.

Note on Non-Document Phases

Please note that the behaviors and limitations described in this guide apply exclusively to the propagation of documents within document phases. Standard propagation for phases that do not contain documents operates under a separate mechanism and is expected to function as intended.

Extract HTML Documents from Document Phases

To extract HTML documents from document phases, use the scripting function: batch.queue.getStepDocument(batchID, Document Phase Reference).

Required

Warning

The Sepasoft Document Management module must be installed with the Batch Procedure module to use Document Phases in a batch system.

Document Phase Parameters

See  Properties Common to All Phase Parameters

Parameter NameData Type

Description

Value Source By Default

Recording Type By Default

Tag Type

Propagate_Hold_To_ParentBoolean

When a Phase state changes to HELD, the HELD state is propagated to the Unit Procedure and Operation. If this parameter is set to True, then the HELD state is passed up to the next parent level.

Keep in mind that when you restart the unit procedure or operation, the batch is not restarted. Restart the batch from Batch Controller or Batch Monitor.

Recipe

Changes Not Saved

Memory

Exposed Set to True

When true, recipe parameters are available to reference in the form fields.

Only parameters that match the field data type are displayed.  For example, Checkbox only work for "Boolean" type parameters, Input fields of a "number" type only work for Integer/Short/Long type parameters, 

Editing a Document in a Document Phases

In Phase Manager, edit the Document Phase and then click the edit document in the Base Phase field.

In Recipe Editor, click the pencil icon to edit the document.

The document opens where you can add media and form fields.

Input Fields and Referencing Parameters

Note

Version Specific 3.81.10 SP

When adding new input fields to a document in Batch Phase Manager or Batch Recipe Editor, new fields are highlighted with a warning until the field is attached to a Batch Parameter. This indicates that the field is not correctly attached to a parameter.

Edit Menu

IconNameDescription

Code View

Provides HTML coding in the editor. Toggle between the  Code View and Display View. You can edit in both views.

PrintOpens the browser print menu.

PictureInsert an image into the text, either from a URL located on the internet or from a file on your local machine or network.

UndoUndo the last action carried out by the user.  For each successive press of the undo button a preceding user action will be undone.

RedoRedo the last action carried out by the user.  For each successive press of the redo button a preceding user action will be carried out again.

Find and ReplaceFind text strings. Replaces existing text strings.

LinkInsert a hyperlink in the text to a link that is accessible on the Internet.

Insert CheckboxInserts a form-field checkbox.

Insert Radio ButtonInserts a form-field radio button.

Insert ListInserts a form-field list box.

Insert Text BoxInserts a form-field text box.

Insert Text AreaInserts a form-field text area, scrolling text box.

StyleAdds inline style.

Recent ColorDisplays recent inline colors

More ColorsProvides a color picker

Font FamilyProvides inline font families.

Font SizeSets inline font text.

BoldAdds inline bold formatting to text.

ItalicsAdds inline italic formatting to text.

UnderlineAdds inline underline formatting to text.

Strike OutAdds strike-out underline formatting to text.

Remove Font StyleRemoves inline text styles.

Ordered List

Makes the currently-selected lines into a numbered list.

Unordered List

Makes the currently-selected lines into a bulleted list.

Paragraph Alignment

Aligns text blocks.

Left-align the currently-selected text.

Center-align the currently-selected text.

Right-align the currently-selected text.

Justify the currently-selected text.

Referencing Phase Parameters in Form Fields

The default phase parameters and user-defined phase parameters can be tied to form fields. 

  • Right click a form field in the Document Editor and select Form Field Properties.
  • Each form field has its own set of properties. Each has the option: Attach to Batch Parameter. Enable Attach to Batch Parameter.

See below for each form fields unique properties.

Checkbox Form Field Properties

PropertyData TypeDescription
Field NameStringName of the form-field element.
Attach to Batch ParameterBooleanWhen enabled you can reference a parameter within a recipe's framework: top level procedure down to phase parameters.
ValueStringTo reference a batch parameter, see Referencing Parameters in Batch Recipes.
Initial StateBooleanWhen enabled, initial state is checked.
Read-onlyBooleanWhen enabled, this field is not editable in run-time.
ClassesStringReference style classes.


Radio button Form Field Properties

PropertyDescription
Field NameName of the form-field element.
Attach to Batch ParameterWhen enabled you can reference a parameter within a recipe's framework: top level procedure down to phase parameters.
ValueTo reference a batch parameter, see Referencing Parameters in Batch Recipes.
Initial StateWhen enabled, initial state is checked.
Read-onlyWhen enabled, this field is not editable in run-time.
ClassesReferences style classes.


Dropdown List Form Field Properties

PropertyDescription
Field NameName of the form-field element.
Attach to Batch ParameterWhen enabled you can reference a parameter within a recipe's framework: top level procedure down to phase parameters.
Items for List

Value: To reference a batch parameter, see Referencing Parameters in Batch Recipes.

Selected: Sets the item as selected in the list.

Disabled: Displays the item as non-selectable. 

Height

Height in pixels. The Height property can be set to force the box to remain fixed in height at the number of lines specified. 

The order of the entries can be modified by selecting an item and clicking Up or Down to move it in relation to the other entries.

Single or Multiple SelectionSingle selection only allows one selection. Multiple selection allows and submits one or more.
Read-only or EditableWhen enabled, this field is not editable in run-time.
ClassesReferences style classes.


Text Area Form Field Properties


PropertyDescription
Field NameName of the form-field element.
Attach to Batch ParameterWhen enabled you can reference a parameter within a recipe's framework: top level procedure down to phase parameters.
Initial Value

Enter any text that you want to show in this text field in runtime.

PlaceholderSpecifies a short hint that describes the expected value of an input field.
Size in charactersThe Size in Characters property can be set to force the box to remain fixed in width to the number of characters specified.
Number of linesSets the number of lines based on the font size.
Read-only or EditableInitial state is read only. Enable Editable to allow the end user to input text in runtime.
ClassesReferences style classes.


Text Form Field Properties

PropertyDescription
Field NameName of the form-field element.
Attach to Batch ParameterWhen enabled you can reference a parameter within a recipe's framework: top level procedure down to phase parameters.
Value

Enter any text that you want to show in this text field in runtime.

PlaceholderSpecifies a short hint that describes the expected value of an input field.
Min/Max LengthSets the minimum and maximum characters of the text form field.
Size in charactersSets the font size.
Field TypeWhen referencing parameters, only parameters that match the field data type should be displayed.  i.e. Checkbox only work for "Boolean" type parameters, Input fields of a "number" type only work for Integer/Short/Long type parameters, 
Read-only or EditableInitial state is read only. Enable Editable to allow the end user to input text in runtime.
ClassesReferences style classes.

Sepasoft MES Module Suite