FUNCTION product_category_graph_members
(* SCHEMA step_merged_ap_schema; *)
-- IN AP232
FUNCTION product_category_graph_members
(p : product_category ) : SET OF product_category;
LOCAL
pcr : BAG OF product_category_relationship;
result : SET OF product_category := [];
END_LOCAL;
pcr := USEDIN(p, 'STEP_MERGED_AP_SCHEMA.' + 'PRODUCT_CATEGORY_RELATIONSHIP.CATEGORY');
IF SIZEOF(pcr) > 0 THEN
result := result + p;
REPEAT i := 1 TO SIZEOF(pcr) BY 1;
result := result + product_category_graph_members(pcr[i].sub_category);
END_REPEAT;
END_IF;
pcr := USEDIN(p, 'STEP_MERGED_AP_SCHEMA.' + 'PRODUCT_CATEGORY_RELATIONSHIP.SUB_CATEGORY');
IF SIZEOF(pcr) > 0 THEN
result := result + p;
REPEAT i := 1 TO SIZEOF(pcr) BY 1;
result := result + product_category_graph_members(pcr[i].category);
END_REPEAT;
END_IF;
RETURN (result);
END_FUNCTION;
Referenced By
Defintion product_category_graph_members is references by the following definitions:
[Top Level Definitions] [Exit]Generated by STEP Tools® EXPRESS to HTML Converter
2020-07-28T17:02:20-04:00