Hello, we have a problem with flowdata and "not form" activity

Activity 1: (Start)

- Start activity have a picklist (resources) populated with several
DN's
- Data Item Mapping/Post Activity:
resources flowdata.start/request_form/resources dn

Activity 2: (Approval)
-Approval Activity, have a picklist (resources) populated with data from
Start activity:
- Data Item Mapping/Pre Activity:
flowdata.getObject('start/request_form/resources') resources
dn

- Data Item Mapping/Post Activity:
resources flowdata.approval/approval_form/resources
dn

Activity 3: (Resource Request)
Resource Property have a ECMAscript expresion to display all data

ECMASCRIPT:


Code:
--------------------
function bucleRecursos() {
Packages.java.lang.System.out.println("JM: bucleRecursos()");

MyLoop('start/request_form/resources');
MyLoop('approval/approval_form/resources');

// fake return
return 'CN=VISUALSTUDIO,CN=Desarrollo,CN=ResourceDefs,CN= RoleConfig,CN=AppConfig,CN=User Application Driver,CN=driverset1,O=system'
}


function MyLoop(dataFlow) {
Packages.java.lang.System.out.println("JM:" + dataFlow);
v=new java.util.Vector();
ips=flowdata.getObject(dataFlow);
Packages.java.lang.System.out.println("JM: size="+ips.size());
for(var x=0;x<ips.size();x++) {
data = ips.get(x).getFirstChild().getNodeValue()
v.add(data);
Packages.java.lang.System.out.println("JM: loop="+x);
Packages.java.lang.System.out.println("JM: data="+data);
}
return v;
}
--------------------



When call to function, the first time (
MyLoop('start/request_form/resources') ) output are:

JM:start/request_form/recursos
JM: size=3
JM: loop=0
JM: data=cn=Adobe,cn=Aplicaciones
Ofimticas,cn=ResourceDefs,cn=RoleConfig,cn=AppCon fig,cn=User
Application Driver,cn=driverset1,o=system
JM: loop=1
JM: data=cn=Antivirus,cn=Aplicaciones
Ofimticas,cn=ResourceDefs,cn=RoleConfig,cn=AppCon fig,cn=User
Application Driver,cn=driverset1,o=system
JM: loop=2
JM: data=cn=Aplicacin Ofimtica,cn=Aplicaciones
Ofimticas,cn=ResourceDefs,cn=RoleConfig,cn=AppCon fig,cn=User
Application Driver,cn=driverset1,o=system


The second time, ( MyLoop('approval/approval_form/resources') ), output
are:

JM:approval/approval_form/recursos
JM: size=0




How we can read data from Approval activity ?

Thx


--
juanma
------------------------------------------------------------------------
juanma's Profile: https://forums.netiq.com/member.php?userid=332
View this thread: https://forums.netiq.com/showthread.php?t=53635