Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
REVISION or any customized versioning attribute | String |
Read | The SmarTeam REVISION or another attribute that represents the SmarTeam revisioning logic |
majororder | Integer | Write | The affected major order. A negative value is used to indicate an unsupported value of REVISION. |
Sample
The following sample provides a major order for SmarTeam objects whose REVISION is either a or b.
Let SMT_REVISION(String)
Let order(Integer)
/*************************************************************************************/
/* IMPORTANT : A negative order is used to indicate an unsupported value of REVISION */
/*************************************************************************************/
order=-1
if(Parameters->HasAttribute("REVISION") == true)
{
SMT_REVISION = Parameters->GetAttributeString("REVISION")
if(SMT_REVISION=="a")
{
order=0
}
else if(SMT_REVISION=="b")
{
order=1
}
}
Parameters->SetAttributeInteger("majororder", order)