createClass(name, parentLink)

Sepasoft MES Module Suite

system.mes.batch.phase.createClass(name, parentLink)

Creates a new Phase class object that can be a parent for phases or child phase classes. Use the saveClass function to save the new phase class.

Syntax

system.mes.batch.phase.createClass(name, parentLink)

Parameters

name

Required

string

The name of the new phase class.

parentLink

required

string

MESObjectLinkA link to a parent BatchPhaseClass object. If None is provided for this parameter, then it is added as a child to the BatchRootPhase object.

Returns

A new unsaved BatchPhaseClass object.

Scope

All 

Code Snippet

Python
new = system.mes.batch.phase.createClass('White Chocolate Melter', None)
print new

Python
>>> 
BatchPhaseClass (b693c033-3823-43a9-9c09-9d98ef249b3b, White Chocolate Melter, 1 parents, 0 children, 0 custom properties, 1 complex properties, artifacts not loaded)
>>>

Sepasoft MES Module Suite