Rhino javascript allows you to easily import Java packages, and integrate Java code.
In the transformer I would like to write this code as an alternative to mapping incoming data to XML.
import com...ArchetypeModel;
import com...ArchetypeClusterModel;
arch = new ArchtypeModel();
for (i=0; i< msg['definition']['attributes']['children'].length(); i++) {
cluster = new ArchetypeClusterModel();
cluster.getArchetypeClusterRef().setIdvalue(msg['definition']['attributes']['children']['rm_type_name'].toString());
arch.getClusters().add(cluster);
}
tmp = arch.toXml();
Any plans on supporting that?
thanks
Greg
In the transformer I would like to write this code as an alternative to mapping incoming data to XML.
import com...ArchetypeModel;
import com...ArchetypeClusterModel;
arch = new ArchtypeModel();
for (i=0; i< msg['definition']['attributes']['children'].length(); i++) {
cluster = new ArchetypeClusterModel();
cluster.getArchetypeClusterRef().setIdvalue(msg['definition']['attributes']['children']['rm_type_name'].toString());
arch.getClusters().add(cluster);
}
tmp = arch.toXml();
Any plans on supporting that?
thanks
Greg
Comment