Getting user name of person logged into workspace in BPM 11g.

What API and method calls can we use to determine who is logged into BPM 11g? Since many people can be assigned a role or human task (using dynamic task assignments) how can we determine who the actual user is?
The use case is a user logs into the workspace and executes human tasks assigned to him/her. In the ADF UI, we are using database controls to view, update and create records in database associated with this task. The tables have audit information like, LAST_MODIFIED_BY and MODIFIED_DATE. These fields or columns need to be updated with the user ID and current system date when data changes in the tables.
The problem is that I know how to get the user who the task is assigned to, but if the user is a delegate or process owner, how do we know? Also if many people are assigned to the human task, how do we find which one is actually working on the human task? In other words the current logged in user?
In the ADF task flow, I have access to an object SystemAttributesType that contains a lot of useful information, like the list of assignees. The problem is it doesn't seem to give me information about who is actually working on it (logged in user). Here's a code snippet for how I got this object. It is a method in a managed bean associated with the task flow.
public List getAssignees() throws IOException {
FacesContext context = FacesContext.getCurrentInstance();
String ctx = (String) context.getApplication().evaluateExpressionGet(context,
"#{pageFlowScope.bpmWorklistContext}", String.class);
String tskId = (String)context.getApplication().evaluateExpressionGet(context,
"#{pageFlowScope.bpmWorklistTaskId}", String.class);
IWorkflowServiceClient workflowSvcClient = WorkflowService.getWorkflowServiceClient();
ITaskQueryService wfQueryService = workflowSvcClient.getTaskQueryService();
IWorkflowContext wfContext;
List assignees= "";
try {
wfContext = wfQueryService.getWorkflowContext(ctx);
Task myTask = wfQueryService.getTaskDetailsById(wfContext, tskId);
Element xmlPayload = (Element) myTask.getPayloadAsElement();
SystemAttributesType systemAttributes = myTask.getSystemAttributes();
assignees = systemAttributes.getAssignees();
return aissignees;
Thanks in advance for your help.

Hi.
Plz find the link below, it might hep you.
11g how to get participant information
Bibhu

Similar Messages

  • Getting user name, date and time into 1 field

    Hi All,
    I have to add a new field in a customising include of AUFK table. This field should have user name, date and time. How do I store all these values in a single field of the table? Please help.

    Ok Thanks all. Will try your suggestions. But there is one problem. As i have already mentioned that i will have to display this detail in one field of the table control, The format of display is: user name should be seen above and the date and time separated by space should be displayed below the name. How can i ultimately display this in the table control. Do i have to create 2 different fields (one for name and other for date and time) in the AUFK table or is there any other solution?
    Thanks

  • Participant cannot log into workspace In BPM 10.3.1.0

    Hi, I create a project and want to test it on the workspace. I try to click on button START -> Launch workspace. The IE bring me to the page which require me to key in the username. I keyed in the username and click on button Log in. I cannot log into the worspace. The screen will refresh and require me to key in the username again. I try the same project in my collegue laptop, when she key in, she can see the other screen. It that possible of my IE setting? Thank

    is it possible that you're colleague is running studio, and you're trying to log in to enterprise?

  • Workspace User cannot log into workspace

    Hello Everyone,
    When I try to log into workspace as a user with Workspace User role, I get the following message "Access permission has not been granted to this user." and cannot log in.
    I have already added the user to principles with "INVOKE_PERM" permission for the specific application. But I still cannot log in as that user of Workspace User role. 
    Any help or suggestions for resolving this problem will be greatly appreciated.
    Thank you very much!

    Hi,
    you have given access to the user to invoke all operations on a service. You need to give login access.
    There are following ways to chieve this:-
    1:-In livecycle few default roles are created one of them is 'LiveCycle Workspace User'(Can log in to the     Workspace end-user application), assign this role to user.
    2:-Add the permission 'PERM_WORKSPACE_USER'(Log in to the Workspace end-user application) in your role and assign that role to user.
    Thanks
    Message was edited by: aks@lc

  • How would I create a screen with links after a person logs into their computer?

    I have been asked to create a custom welcome screen that would load after a person logs into their computer . This screen is to have links to a couple of items.
    but I need this to show after they log in and before they see their desktop.
    How do I do this or even accomplish this? 

    According to your description, it really seems like a start screen in Windows 8\8.1, after user logs on to the system, he will first see a "start screen" with tiles (links to an App) on the screen, then he can manually swith to the classic desktop if he
    want.
    But in Windows 7, I never saw this kind of settings, for VB6 and HTA page, seems more related with development, if so, I suggest you post in this forum
    Scripting Forum
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?category=scripting
    and VB Forumhttp://social.msdn.microsoft.com/Forums/en-US/home?forum=vbgeneral
    Regarding to a trigger when a user logs on, you can refer to the following link
    http://www.grouppolicy.biz/2010/01/how-to-schedule-a-delayed-start-logon-script-with-group-policy/
    or
    http://technet.microsoft.com/en-us/library/cc758918(v=ws.10).aspx
    NOTE
    This
    response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.
    Microsoft
    does not control these sites and has not tested any software or information found on these sites.
    Yolanda Zhu
    TechNet Community Support

  • I am not able to see "Edit Mode on" when i log into workspace...

    I am not able to see "Edit Mode on" when i log into workspace...through Weblogic user...Oracle BPM 11g

    If your trying to put pictures that are on your phone to your computer you import it see link below
    http://support.apple.com/kb/HT4083

  • AUTHEN_CSSException logging into Workspace  v11.1.1.3

    Frinds,
    I know this has been covered before, and I have gone through the threads and tried suggestions, but I am still having trouble with this message while attempting to log into Workspace. I get a clean bill of health from System Diagnostic.
    Below is my staqrtup sequence (based upon Hyperion batch files). I thought I would try here before calling Support and submittinig myself to that experience. Thanks!!
    Title STARTING UP HYPERION SERVICE
    REM Shared Services
    net start HyS9SharedServices
    rem waiting 240
    sleep 240
    REM CALC
    net start HyS9CALC
    REM Core
    net start HyS9Core1
    REM Annotation
    net start HyS9Annotation
    REM Workspace
    net start HyS9Workspace
    REM EPMADataSynchronizer
    net start HyS9EPMADataSynchronizer
    REM EPMAWebTier
    net start HyS9EPMAWebTier
    REM eis
    net start "Hyperion Integration Services"
    REM APS
    call E:\Hyperion\products\Essbase\aps\bin\start.bat
    REM EAS
    call E:\Hyperion\products\Essbase\eas\bin\start.bat
    REM EssbaseAgent
    net start "HyS9EsbAgent11.1.1_hypservice_1"
    REM SmartSearch
    net start HyS9SmartSearch
    REM HyS9FRRMI
    net start HyS9FRRMI
    REM HyS9FRReport
    net start HyS9FRReport
    REM HyS9FRPrint
    net start HyS9FRPrint
    REM HyS9FRSched
    net start HyS9FRSched
    REM Financial Reporting
    net start HyS9FRWeb
    REM Web Analysis
    net start HyS9WebAnalysis
    REM EPMA Services
    net start "HyS9BPMA_ProcessManager"
    REM Registry
    Net Start "Hyperion RMI Registry"
    REM Planning
    net start HyS9Planning
    REM EssbaseStudio
    call E:\Hyperion\products\Essbase\EssbaseStudio\Server\startServer.bat
    Any suggestions?

    Hi,
    Are you sure its hanging? Sometimes Workspace can take a little while to load when opening it for the very first time.
    Regards,
    Robb Salzmann

  • I had another person log into my app store on my iphone4 and now his email address comes up on certain things when I try to update and app

    i had another person log into my app store on my iphone4 and now his email address comes up on certain things when I try to update and app

    All apps are tied to the apple ID used to buy them.
    Delete the stolen apps and buy them.

  • I want is that I get  user name!

    Hi,
    Below are my two annotated classes, namely, Requisition and User, that represent two tables requisitions and users. What I want is that I get
    to get username from users table in my requisition query instead of user id which is stored in the requisitions.request_by.
    Table field requisitions.request_by hold the ids of users ,ie, users.id values.
    Here are my tables:
         users
                   + id int(11)
                   username varchar(15)
                   password varchar(15)
                   role int(11)
                   last_login timestamp
         requisitions
                   id int(11)
                   post varchar(50)
                   + request_by int(11)
                   platform varchar(50)
                   experience_required int(11)
                   comments text
                   date_requested date
    Here is my Query for fetching requsition object in the RequisitionServiceimpl.java
         public List getRequisitions(User loggedInUser){
              Query queryRequsitions = em.createQuery("Select r FROM Requisition as r");
              List list = queryRequsitions.getResultList();          
              return list;     
    Below are my two annotated classes Requisition and User:
    import java.util.Date;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.PrimaryKeyJoinColumn;
    import javax.persistence.SecondaryTable;
    import javax.persistence.Table;
    import javax.persistence.JoinColumns;
    import javax.persistence.JoinColumn;
    @Table(name="requisitions")
    @SecondaryTable(name="users")
    @Entity
    public class Requisition {
         @Id
         private int id;
         private String post;
         @Column(name = "request_by")
         private int requestBy;
         private String platform;
         @Column(name = "experience_required")
         private int experienceRequired;
         private String comments;
         @Column(name = "date_requested")
         private Date dateRequested;
         // Name from users Table
         @Column(table="users", name="username")
         private String username;
         public int getId() {
              return id;
         public void setId(int id) {
              this.id = id;
         public String getPost() {
              return post;
         public void setPost(String post) {
              this.post = post;
         public int getRequestBy() {
              return requestBy;
         public void setRequestBy(int requestBy) {
              this.requestBy = requestBy;
         public String getPlatform() {
              return platform;
         public void setPlatform(String platform) {
              this.platform = platform;
         public int getExperienceRequired() {
              return experienceRequired;
         public void setExperienceRequired(int experienceRequired) {
              this.experienceRequired = experienceRequired;
         public String getComments() {
              return comments;
         public void setComments(String comments) {
              this.comments = comments;
         public Date getDateRequested() {
              return dateRequested;
         public void setDateRequested(Date dateRequested) {
              this.dateRequested = dateRequested;
    // Only Getter for Users Table field username
         public String getUsername() {
              return username;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.Table;
    @Table(name="users")
    @Entity
    public class User {
    @Id
    private Long id;
    @Column(name="username")
    private String name;
    private String password;
    private int role;
    public String getName() {
    return name;
    public void setName(String user) {
    this.name = user;
    public String getPassword() {
    return password;
    public void setPassword(String password) {
    this.password = password;
    public Long getId() {
    return id;
    public void setId(Long id) {
    this.id = id;
    public int getRole() {
    return role;
    public void setRole(int role){
    this.role = role;
    Thank you,
    Adil

    I made this changes to Requisition.java and now I can get user name
    import java.util.Date;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.JoinColumn;
    import javax.persistence.OneToOne;
    import javax.persistence.Table;
    @Table(name="requisitions")
    @Entity
    public class Requisition {
    @Id
    private int id;
    private String post;
    @Column(name = "request_by")
    private int requestBy;
    private String platform;
    @Column(name = "experience_required")
    private int experienceRequired;
    private String comments;
    @Column(name = "date_requested")
    private Date dateRequested;
    @OneToOne
    @JoinColumn( name="request_by", insertable=false, updatable=false)
    private User user;
    public int getId() {
    return id;
    public void setId(int id) {
    this.id = id;
    public String getPost() {
    return post;
    public void setPost(String post) {
    this.post = post;
    public int getRequestBy() {
    return requestBy;
    public void setRequestBy(int requestBy) {
    this.requestBy = requestBy;
    public String getPlatform() {
    return platform;
    public void setPlatform(String platform) {
    this.platform = platform;
    public int getExperienceRequired() {
    return experienceRequired;
    public void setExperienceRequired(int experienceRequired) {
    this.experienceRequired = experienceRequired;
    public String getComments() {
    return comments;
    public void setComments(String comments) {
    this.comments = comments;
    public Date getDateRequested() {
    return dateRequested;
    public void setDateRequested(Date dateRequested) {
    this.dateRequested = dateRequested;
    public User getUser() {
    return user;
    public void setUser(User user) {
    this.user = user;
    Edited by: adilsun on Jul 23, 2008 8:36 PM

  • ID gets disabled whenever trying to log into Game Center?

    My girl friends ID gets disabled whenever trying to log into Game Center - this happens the moment she tries, whether she is using her own phone or mine - what to do?

    Yeah, got that with my son's Touch today. I had to give up my old Apple ID (not an email address) after my iOS 5 update on my iPad, so I had to "merge" it with my email address. Now he can't log in without setting up his profile again. This ultimately fails at the nickname point: says I need a password. There is no place to stick a password. Stupid.
    First the Lion slap in the face, now this iOS stuff... I'm losing my patience with Apple quickly.

  • Getting user name from sopa header

    How should get user name from soap header in my udf...?i searched in sdn,but not get exact solution...

    I din't get this with SRemoteUser
    1. i've enabled " Do Not Use SOAP Envolope"
    2.Enabled ASMA
    3.Variable Transport Binding .
    used the following code as well:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey user = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/SOAP", "SRemoteUser");
    conf.get(user);
    But not value in it.. Correct me if iam wrong..

  • To find whether User name has SAP log in ID

    Dear all
            How to check up particular user name has SAP log in ID are not

    Hi,
    Go to transation SU01. Drill down on user. Enter the user name & press enter. Check the user id for selected user name & click on Display. If the user has user id in SAP, then system will show the details, otherwise messgae will appear stating that the user id does not exist.
    Regards,
    Prashant

  • For some reason I keep getting this message when I log into itunes: " itunes cannot locate the cd configuration folder, so you cannot cannot locatimport or burn cd's and dvd's. Thisimport folder must be in the same directory as itunes. " What happened?

    for some reason I keep getting this message when I log into itunes:  "itunes cannot locate the cd configuration folder, so you cannot import or burn cd's and dvd's."  What happened?

    http://discussions.apple.com/thread.jspa?messageID=3645581&#3645581

  • To get the name of the Datasource into WAD

    Hi All,
    I need to get the name of the datasource into WAD,
    i.e. if the datasource is Oracle i need to show it in WAD.
    How am  i suppose to go for it?
    Thanks
    Godhuli

    hi Godhuli,
    there is technical business content infoobject 0TCTDSOURC - datasource.
    - activate from business content for this infoobject with 'dataflow before' if not yet done.
    - you will get infosource 0TCTDSOURC and infopackage, run the infopackage to upload data.
    - this infoobject delivered not as 'infoprovider', you may modify with transaction rsd1, mark 'char. is data target/infoprovider' and reactivate, or you can create an new infoobject (if you don't want modify business content objects), copy from 0TCTDSOURC and create update rules with data update from 0TCTDSOURC.
    - create query to report from 0TCTDSOURC or copied infoobject (as infoprovider)
    - use this query in webtemplate
    hope this helps.

  • Logging into workspace

    hi friends,
    i was able to open the workspace login web page. but i was not able to login into workspace.i was able to login into shared services using admin:password.i have tried using username=admin and password=password and username=administrator password=password for workspace.i have configured bi+ with oracle 10g database.is it there any separate produce to create a user in order to login into workspace?
    i dont have any idea?
    can anyone help me regarding this.its urgent.
    Thanks.

    Find user in shared services, click Provision and grant "Security Manager" role from "Hyperion System 9 BI+" folder.

Maybe you are looking for

  • Slow Speeds ages to sort and I'm down 4 days holid...

    Hi, First time I've posted on a forum. I've had real trouble from the start with BT, ordered Infinity in November 2012, but wasn't installed until December, with me having to take 2 separate days holiday as the first engineer could only fit the the p

  • Can I retain PDF created form fields if importing back to indesign?

    Hello, First time forum user here. I have been trying to create an active form that would work as an internal approval form for any design job created in Indesign. I saw in other posts here that it is not possible to create this in Indesign so I desi

  • ITunes store or Match down?

    Whenever I try to do anything that requires authorization - launching iTunes and iTunes Match tries to refresh, going into my account settings, etc. - I get the "We're sorry, we cannot complete your request on the iTunes Store at this time" message. 

  • HT1766 how do I change the backup file location

    My hard drive is almost full. I need to do a backup on my iPad before I can upgrade the iOS software. I have an external hard drive with plenty of space. Any way of getting iTunes to back up to the external drive so I can do the upgrads?

  • ITunes 12 crash every time at startup

    Application Error ITunes V12.1.1.4 JavaScriptCore.dll 0xc0000005 faulty process 0x137c Operating System: Intel i5 Windows 7 Enterprise SP1 64 bit 4 GB Ram