How to retrieve email address of @creator/performer in a scr

Posted by stefan.tersin@exicom.se on 05-May-2014 06:06

Hello,

how can I access the @creator/performer email address in a script on a workstep (in a business process)? Currently the users are stored using the oebpm user management. I have tried looking in the documentation but haven't found any complete example.

We are using oebpm 11.3.

Thanks in advance,
/Stefan

Posted by Lakshmi Padmaja on 05-May-2014 11:38

Hi Stefan,
 
Below is the code I have added in the prescript to retrieve email id of the performer. Hope this helps you.
 
String email123;
com.tdiinc.userManager.Realm realm = com.tdiinc.userManager.UserManager.getDefaultRealm();
var per=jst.getPerformer();
com.tdiinc.userManager.User user = null;
user = realm.getUser(per);
email123= user.getAttribute("email");
System.out.println(email123+"Email*****");
 
Regards,
Lakshmi
 
[collapse]
From: stefan.tersin@exicom.se [mailto:bounce-stefantersinexicomse@community.progress.com]
Sent: Monday, May 05, 2014 4:36 PM
To: TU.BPM@community.progress.com
Subject: How to retrieve email address of @creator/performer in a script?
 
Thread created by stefan.tersin@exicom.se

Hello,

how can I access the @creator/performer email address in a script on a workstep (in a business process)? Currently the users are stored using the oebpm user management. I have tried looking in the documentation but haven't found any complete example.

We are using oebpm 11.3.

Thanks in advance,
/Stefan

Stop receiving emails on this subject.

Flag this post as spam/abuse.

[/collapse]

All Replies

Posted by Lakshmi Padmaja on 05-May-2014 11:38

Hi Stefan,
 
Below is the code I have added in the prescript to retrieve email id of the performer. Hope this helps you.
 
String email123;
com.tdiinc.userManager.Realm realm = com.tdiinc.userManager.UserManager.getDefaultRealm();
var per=jst.getPerformer();
com.tdiinc.userManager.User user = null;
user = realm.getUser(per);
email123= user.getAttribute("email");
System.out.println(email123+"Email*****");
 
Regards,
Lakshmi
 
[collapse]
From: stefan.tersin@exicom.se [mailto:bounce-stefantersinexicomse@community.progress.com]
Sent: Monday, May 05, 2014 4:36 PM
To: TU.BPM@community.progress.com
Subject: How to retrieve email address of @creator/performer in a script?
 
Thread created by stefan.tersin@exicom.se

Hello,

how can I access the @creator/performer email address in a script on a workstep (in a business process)? Currently the users are stored using the oebpm user management. I have tried looking in the documentation but haven't found any complete example.

We are using oebpm 11.3.

Thanks in advance,
/Stefan

Stop receiving emails on this subject.

Flag this post as spam/abuse.

[/collapse]

This thread is closed