if worklist_variable_value is None and True and variable_id not in default_variable_id_list: # XXX(WORKFLOW): it seemed that for_catalog was usually set to 1
if worklist_variable_value is None and variable_value.getForCatalog() == 1 and variable_id not in default_variable_id_list: