groovy script to add node to second map?

Help
Rob Foree
2012-01-09
2013-04-11
  • Rob Foree
    Rob Foree
    2012-01-09

    I would like to scan a map and post information about it to a second map.
    can someone point me to methods for 'c' or show me how to reference a node on a map
    which is not the groovy host map?

    for example
    def nodeToAdd = map("map2.mm").
    while( i.hasNext ){
       d = i.next;
       if ( d.getText == "copy me" ){
          c.addNewNode( nodeToAddTo, x );
       }
    }