EKL - Check Part Filter Mode

Context

Check that all Part filters in session are defined as "Asynchrone". meaning that they need a user action to update them if a change has been done in the catalog

 

Data 3DXML

Code

/* Input Name: i_Filter ; Input_Type: EnsFilter */
let StrName(string)
let StrMode(string)
let OutputMessage(string)
let res (Boolean)
let EnsFilterParameterDescriptors (List)
let pEnsFilterParameterDescriptor (EnsParameterDescriptor)
let NbEnsFilterParameterDescriptors (Integer)
let EnsFilterUnits (List)
let p_Filter_unit (EnsFilterUnit)
let NbEnsFilterUnits (Integer)
let j(integer)
res=false
res = i_Filter-> GetFilterUnits(EnsFilterParameterDescriptors, EnsFilterUnits)
NbEnsFilterUnits = EnsFilterUnits.Size()
j = 1
for j while j <= NbEnsFilterUnits
{
 set p_Filter_unit = EnsFilterUnits.GetItem(j)
 if (NULL <> p_Filter_unit)
 {
   StrName = p_Filter_unit.Name
   StrMode = p_Filter_unit.Mode
   OutputMessage = "Name: "+StrName+" | Mode: "+ StrMode
   if ("FormulaASynchronized" == StrMode)
   {
     ThisCheck->AddTupleSucceededWithComment(OutputMessage, p_Filter_unit)
   }
   else
   {
     /* FormulaSynchronized OR ExpliciteList*/
     ThisCheck->AddTupleFailedWithComment(OutputMessage, p_Filter_unit)
   }
 }
}
txt file