Creating Attributes and Entries

The 'most proper' way to create a new attribute or entry during execution seems to be along these lines:

work.newAttributeName =  new com.ibm.di.entry.Attribute();
work.newAttributeName.setValue(false);


And a combination

mailConfig = new com.ibm.di.entry.Entry;
mailConfig.from = new com.ibm.di.entry.Attribute();


You can also do it with the work.createElement, though the work.createAttribute method seems to be working though a less direct model.


Comments