I was wondering what type flowdata.getObject() returns.

On a request form I have a multivalue PickList of data type string. I
put the values of the PickList in a flowdata object (also of type
string).
In the workflow I have an Entity with Operation='Delete
attribute/value'. To match the value in the attribute I have to edit
the values in the flowdata object. Here's what I put in the Delete
Value Expression for the Entity:

=======
function translateBack() {
var retVal = new java.util.ArrayList();
var escapedData =
flowdata.getObject('start/request_form/selectUserRoleRel');

for (var i=0; i < escapedData.size(); i++) {
str = escapedData[i];
str = str.replace(/&lt;/g, "<");
str = str.replace(/&gt;/g, ">");
str = str.replace(/&quot/g, "\"");
str = str.replace(/&amp/g, "&");

retVal.add(str);
}

return retVal;
}
translateBack();
=====

If I just use the flowdata.getObject() call instead of the script above
I get a result (but not the one I need obviously). It seems that the
code within the for-loop never gets reached.
By the way: since the delete operation is a bit hard to debug I tried
the same for a Create/Modify Entity. This doesn't add extra values to
the attribute.

What am I doing wrong?

PS. Is there an easier way to debug this?


--
joost verschuren
------------------------------------------------------------------------
joost verschuren's Profile: http://forums.novell.com/member.php?userid=2785
View this thread: http://forums.novell.com/showthread.php?t=308879