Here is an example advanced (JavaScript) map. Note that since the
order that Attributes in a Map are evaluated is NOT ordered, you
cannot base one mapping rule on the result of another in the same
Att Map.
Note also that I am addressing Attributes in "work". If this is to be
in an Input Map then you will use "conn" instead.
---
suprName = work.getString("SupervisorName"); // or whatever it's
called
parts = system.splitString(suprName, ",");
if (parts.length == 2) {
firstName = parts[1];
lastName = parts[0];
}
---
And then you return the value you need in the Attribute Map, or you
can write the values directly to your Entry of choice:
work.setAttribute("FirstName", firstName);
work.setAttribute("LastName", lastName);
Of course, if you programmatically add Attributes to the Work Entry,
then they won't show up in selection lists and drop-downs in the
Config Editor.
Hope this helps!
-Eddie
-Eddie