Overview Schemas Index

PRODUCT_DEFINITION_SCHEMA (jsdai.SProduct_definition_schema)


FUNCTION acyclic_product_definition_relationship
          (relation : product_definition_relationship, relatives : SET [1:?] OF product_definition, specific_relation : STRING) : BOOLEAN;

 LOCAL x : SET OF product_definition_relationship ; END_LOCAL ; IF  relation . relating_product_definition IN  relatives THEN  RETURN  ( FALSE  ) ; END_IF  ; x := QUERY ( pd <* bag_to_set ( USEDIN ( relation . relating_product_definition , 'product_definition_schema.' + 'product_definition_relationship.' + 'related_product_definition' ) ) | specific_relation IN TYPEOF ( pd ) ) ; REPEAT i := 1 TO HIINDEX ( x ) ; IF NOT acyclic_product_definition_relationship ( x [ i ] , relatives + relation . relating_product_definition , specific_relation ) THEN RETURN  ( FALSE ) ; END_IF ; END_REPEAT ; RETURN ( TRUE ) ; 

END_FUNCTION; -- acyclic_product_definition_relationship

public class FAcyclic_product_definition_relationship
          public static Value run(SdaiContext _context, Value relation, Value relatives, Value specific_relation)