Overview Schemas Index

ACTION_SCHEMA (jsdai.SAction_schema)


FUNCTION acyclic_action_resource_relationship
          (relation : action_resource_relationship, relatives : SET [1:?] OF action_resource, specific_relation : STRING) : BOOLEAN;

 LOCAL x : SET OF action_resource_relationship ; END_LOCAL ; IF  relation . relating_resource IN  relatives THEN  RETURN  ( FALSE  ) ; END_IF  ; x := QUERY ( ar <* bag_to_set ( USEDIN ( relation . relating_resource , 'action_schema.' + 'action_resource_relationship.' + 'related_resource' ) ) | specific_relation IN TYPEOF ( ar ) ) ; REPEAT i := 1 TO HIINDEX ( x ) ; IF NOT acyclic_action_resource_relationship ( x [ i ] , relatives + relation . relating_resource , specific_relation ) THEN RETURN  ( FALSE ) ; END_IF ; END_REPEAT ; RETURN ( TRUE ) ; 

END_FUNCTION; -- acyclic_action_resource_relationship

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