eggbird
software development and
knowledge engineering

Mail

ROIS

System.moveNode

CLIENT TASK moveNode @model %node %from %below;
BEGIN
  IF NOT %below HAS ANCESTOR %node THEN
    IF %from EQUALS NIL THEN
      FROM @model TO %from SELECT PARENT %node;
    ENDIF;
    UPDATE @model
      DELETE LINK %node.isSubclassOf.systemDefinition.%from;
      MODIFY NODECLASS %node
             PARENTS %below;
  ENDIF;
END moveNode;

System.moveBefore

// changes order of children of %parent // moves %node before %next CLIENT TASK moveBefore @model %node %next %parent; BEGIN IF %next EQUALS NIL THEN UPDATE @model MODIFY LINK %node.isSubclassOf.systemDefinition.%parent; ELSE UPDATE @model MODIFY LINK %node.isSubclassOf.systemDefinition.%parent BEFORE %next.isSubclassOf.systemDefinition.%parent; ENDIF; END moveBefore;