Correcting conditions - SmartPlant Foundation - IM Update 46 - Help - Hexagon

SmartPlant Foundation Help

Language
English
Product
SmartPlant Foundation
Search by Category
Help
SmartPlant Foundation / SDx Version
10
SmartPlant Markup Plus Version
10.0 (2019)
Smart Review Version
2020 (15.0)

The following predefined conditions fail to parse and should be corrected before they are used. The specific correction for each is in bold type.

It is recommended that all user-defined conditions be validated and corrected. See Validate conditions for more information.

Invalid end

Incorrect: Not INSTR(Obj->EDG_StepWorkflowItem.Interfaces, 'ISPFTransmittal')

Correct: Not INSTR(Obj->EDG_StepWorkflowItem.Interfaces, 'ISPFTransmittal')>0

Incorrect: (Obj1->SPFItemOwner_12.SPFLoginName = Env.UserName or instr (Env.OwningGroupsForUserInQueryConfig, Obj1->SPFItemOwningGroup_12.Name))

Correct: (Obj1->SPFItemOwner_12.SPFLoginName = Env.UserName or instr (Env.OwningGroupsForUserInQueryConfig, Obj1->SPFItemOwningGroup_12.Name) >0)

Mismatch on closing parentheses and needs any()

Incorrect: (Obj->SPFFileFileType_12.UID IN ('FT_dwg','FT_dgn','FT_dxf','FT_igr','FT_pid','FT_sha','FT_spe','FT_zyq')

Correct: Any(Obj->SPFFileFileType_12.UID) IN ('FT_dwg','FT_dgn','FT_dxf','FT_igr','FT_pid','FT_sha','FT_spe','FT_zyq')

Needs edge not relationship definition

Incorrect: Env.CREATECONFIGOBJ->SPFConfigurationConfigurationStatus.Name='Active'

Correct: Env.CREATECONFIGOBJ->SPFConfigurationConfigurationStatus_12.Name='Active'

Needs any() and invalid end

Incorrect: INSTR(obj->Realizes_12.Name, ''ISPFSubscribableItem'')

Correct: INSTR(ANY(obj->Realizes_12.Name), ''ISPFSubscribableItem'')>0

Needs any()

Incorrect: Obj->EDG_LatestVersion.SPFIsDocVersionCheckedOut=False and Obj->EDG_LatestVersion.SPFIsDocVersionSuperseded=False

Correct: Any(Obj->EDG_LatestVersion.SPFIsDocVersionCheckedOut)=False and Any(Obj->EDG_LatestVersion.SPFIsDocVersionSuperseded)=False

Incorrect: Obj->EDG_LatestVersion.SPFIsDocVersionCheckedOut=False and Obj->EDG_LatestVersion.SPFIsDocVersionSuperseded=False and Obj.SPFRevState='WORKING' and (Env.CREATECONFIGUID = Obj.Config or len(Obj.Config) = 0)

Correct: Any(Obj->EDG_LatestVersion.SPFIsDocVersionCheckedOut)=False and Any(Obj->EDG_LatestVersion.SPFIsDocVersionSuperseded)=False and Obj.SPFRevState='WORKING' and (Env.CREATECONFIGUID = Obj.Config or len(Obj.Config) = 0)