EventHandler - how to get the key to the user

Hello experts,

How to get the key to the user within an event handler. (Recon - BulkOrchestration in bulk of trust)?
The code below works if I create a user from the administration Console, but its does not work for the recon trust.

Recon trust incase it's go to loop else and do not return anything.

private String getUserKey (long processID, orchestration BulkOrchestration) {}
Take string;
If (! orchestration.getOperation () .equals ("CREATE")) {}
Take = orchestration.getTarget () .getEntityId ();
} else {}
OrchestrationEngine orchEngine = (OrchestrationEngine.class) Platform.getService;
Take = (String) orchEngine.getActionResult (processID);

}
Return take;
}


Thanks and greetings
INIYA

Why not try it?

     public BulkEventResult execute(long l, long l1, BulkOrchestration orchestration) {
          logger.debug("BulkEventResult NEW");
          try {
          Identity[] newUserState = (Identity[])getNewUserStates(orchestration);
          logger.debug("newUserState :: " + newUserState);
          for(int y = 0; y < newUserState.length; y++){
               logger.debug(y + " . " + newUserState[y]);
          }

          for(int u = 0; u < newUserState.length; u++){
               HashMap userAttrMap =  newUserState[u].getAttributes();

                     Iterator iterator = userAttrMap.keySet().iterator();
                     while (iterator.hasNext()) {
                                  String key = iterator.next().toString();
                                  Object value = userAttrMap.get(key);
                                  logger.debug(key + " -- " + value);  

                    }
          }

          Identity[] oldUserState = (Identity[])getOldUserStates(orchestration);
          logger.debug("oldUserState :: " + oldUserState);
          for(int y = 0; y < oldUserState.length; y++){
               logger.debug(y + " . " + oldUserState[y]);
          }

          for(int u = 0; u < oldUserState.length; u++){
               HashMap userAttrMap =  oldUserState[u].getAttributes();

                     Iterator iterator = userAttrMap.keySet().iterator();
                     while (iterator.hasNext()) {
                                  String key = iterator.next().toString();
                                  Object value = userAttrMap.get(key);
                                  logger.debug(key + " -- " + value);  

                    }
          }

          }catch(Exception e){
               logger.error("In Catch");
               logger.debug("ERROR :: " + e.getMessage());
          }
          logger.debug("Exiting BulkEvent");
          return new BulkEventResult();
     }

     private Object getNewUserStates(BulkOrchestration orchestration)
    {
        Object newUserStates = null;
        HashMap interEventData = orchestration.getInterEventData();
        if(interEventData != null)
            newUserStates = interEventData.get("NEW_USER_STATE");
        return newUserStates;
    }

      private Object getOldUserStates(BulkOrchestration orchestration)
         {
             Object oldUserStates = null;
             HashMap interEventData = orchestration.getInterEventData();
             if(interEventData != null)
                 oldUserStates = interEventData.get("CURRENT_USER");
             return oldUserStates;
         }

Tags: Fusion Middleware

Similar Questions

  • How to get the user input to dynamic Action confirmation message?

    Hi guys,.

    I use apex 4.1.

    I added a page dynamic Action confirmation message box. How can I get the user input to the confirmation pop up?

    Thank you

    Hello

    you do not directly get user input. But you should still be able to get what you want. Suppose you have a dynamic action which fires for a 'change' (or other) and who has two or more actions

    (1) confirm
    (2) execute the PL/SQL Code

    If the user clicks Cancel/no in the confirm dialog box, APEX stops execution of this dynamic action and not run "run the Code in PL/SQL.

    Hope that helps
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • [MAF] How to get the user name and password after login?

    Hi Experts,

    I have a call to REST where it requires identification information of the user (uname and password) to identify the data that belongs to who.

    Authentication has been made with OAuth.

    I believe that there is an API to get the user name and password in the CRG

    See you soon,.

    Hendry

    Hello.

    You don't need to manipulate the credentials yourself in code. MAF will propagate the logon cookie or inject the identification information in the HTTP header if cookies are not supported.

    To do this, you must select the purchase option of cookie from the server connection Include in REST in the dialog box create a connection Login MAF , such as discussed here:

    http://docs.Oracle.com/middleware/maf210/mobile/develop/MAF-securing.htm#ADFMF23732

    In addition, you must attach the policy of security appropriate to the connection, as explained here:

    http://docs.Oracle.com/middleware/maf210/mobile/develop/MAF-Web-services.htm#ADFMF23697

    Best regards

    Frédéric Desbiens

    Senior Product Manager

    Mobility and Cloud oracle

    Twitter: @BlueberryCoder

    blog: http://blogs.oracle.com/blueberry

  • How to get the user name during the execution of a workflow?

    Here's what I would do:

    Say that each user is allowed to have 4 instances QA, create a workflow when a user run from vCenter plugin, it must be able to get the user name of the SSO user jsmith, and then he questions if there is an existing virtual machine jsmith_qa1, jsmith_qa2,jsmith_qa4, etc., if there isn't one, then create one for him; If not, indicate to the user that there are already 4 cases.

    I found that I can use getCurrentLdapUser to get [email protected] , now I want to remove the domain.name (there are several areas):

    username = actionResult.userPrincipalName.replace ("@[a - z].") +","");

    This does not work. Anyone know where I can find the right document for the document script of vRealize Orchestrator?

    Thank you!

    Jack

    vRO uses javascript as its scripting engine.

    UPN var = actionResult.userPrincipalName;

    var username = upn.substring (0, upn.indexOf("@"));

    Something like this will give what you want. You could also do a replacement, but I think that you should remove the quotes around the regex and use "/" instead.

    username = actionResult.userPrincipalName.replace (/ @[a - z] "+ /," "");

    Paul

  • How to get the user directory in HTML5 extension?

    Hello

    It may be too easy as well, but I am running with no luck here.

    I am beginner in developing extensions to HTML5. First time I'm developing InDesign CC extension in HTML5. Before that, I used it to develop in Flex (AS3). SE directory of the user with the AIR API was pretty easy with the File class as: (File.userDirectory.nativePath). But with the HTML5 extension I do not know how to get it with Javascript.

    I tried with two or three ways but no luck.

    I tried:

    var systemPath = new SystemPath();
      alert(systemPath.APPLICATION);
    

    It says no "defined."

    I also tried with a different API:


    var tmpDir = OS.Constants.Path.tmpDir;
    

    It says «Undefined OS»

    Can someone please advise on this?

    Thanks in advance

    Mac

    Try this,

    var csInterface = new CSInterface();

    Alert (csInterface.getSystemPath (SystemPath.user_data));

    You can follow this link,

    http://www.davidebarranca.com/2014/01/HTML-panels-tips-2-including-multiple-jsx/

    Thanks to M. Davide, his advice will help a lot of newbies (whose too)

    It will be useful,

    Best...

    AI

  • How to get the user name in "atfer serverror" trigger?

    Hi people;

    How do I get the name of the user who simply lack connection to the database in a trigger "after serverror"?
    The code of the trigger:
    create or replace
    TRIGGER TRG_LOGGON_FAILURES 
    AFTER SERVERERROR ON DATABASE 
    BEGIN
      IF (IS_SERVERERROR(1017)) THEN
      UPDATE utilisateur_ora SET UTO_STA='BLOQUE', UTO_DATE_STATUT=sysdate WHERE UTO_USR_GPL=<var_user>;
      COMMIT;
      END IF;
      
    END;

    11.2 you can use

    sys_context('userenv', 'authenticated_identity')
    
  • How to get the user name in a workflow?

    I have a simple request of what appears to be a basic workflow step.

    I create a workflow that has the user approve/reject their own review as the first step of the workflow. My question is, how do I get the username of each document as it comes in the workflow?

    I read on wfAddUser. If that's what I use, how to use it and where I can add it to the Workflow screen?

    Thank you.

    I don't know exactly what you are after all in a row. You want to get the original author?

    The document is checked and the user name is registered. It is the only name available at the moment where the document to enter the workflow, which would be the only user attached to the content so far.

    have you tried looking at the dDocAuthor variable?

  • "Changes Made" during the closing - how to get the user's response?

    When you press the close button after the change of some fields in text on a form, how can I find out what the user has selected? (Save, delete, cancel)

    Hey,.

    I found this link:

    http://www.BlackBerryForums.com/developer-forum/184021-save-discard-cancel-prompt-capture-button-SEL...

    After reading it, I wrote a little lil of the code.

    public boolean onSave()
        {
            Dialog.alert("Saved Data");
            return true;
        }
    

    It works for me and made the work of what I need. In my application, I want to save the data that a user makes when they leave the page. This code is called if 1) a change has been made on the page, and 2) if the user clicks on the "Save" option in the save/discard/Cancel dialog box.

    Hope that helps

    Mike

  • How to get the user clicks SeriesName APEX 4.2 flash chart and defined on a hidden element?

    Hello

    I'm developing a graphic clickable flash of APEX, which should be linked to a specific set of data on another page using the SeriesName (clicked several sets of cards).

    (Returned by a function) sql for APEX chart is

    Select distinct null link, d. DNAME label
    , sum(e. SAL ) over (partition by e. ( DEPTNO salary ( )
    , sum(e. Comm ) over (partition by e. DEPTNO ) comm
    de d Dep. , emp e
    e. DEPTNO = d . DEPTNO

    Currently I am able to disply SeriesName (e.g. salary or Comm) on the 2D chart. This is done by including {% SeriesName} Custome XML.

    But I am unable to detect which series name, the user clicks on - pay is comm.  for example, I am not able to enter the name of the series clicked and set it to a hidden item (called P38_SERIES_NAME).  I have to use JavaScript to achieve this? If so, how?

    The reason why I want to use the unique sql is due to that I will have to call a function to return the dynamic and running sql code, I don't know how many series I. i.e. could be comm, average age, salary, bonus etc...

    What is the easiest way to achieve this?   I use APEX 4.2 and Oracle 11 g.

    Thanks for your advice.

    Concerning

    Susanna Su

    Susanna,

    What you experience is the difference between session state and the value of the element on the page. The URL you have is generated on the rendering of the page and use the value of current session state of the question right now. Then when the page is on the client side and that you set the value of the item through javascript this value is still next to the customer and not in session state. Put the value in session state would not matter, however, because the link has already been made. Your best option is to send the page, ensuring the correct value is set to session state and use a branch in present after the process to redirect the user to the correct page.

    I have also described this here: https://forums.oracle.com/message/11110579#11110579

  • How to get the user name of the user logged into the E-Business Suite in OFA

    Hi all

    I developed a few screens in OPS and recorded also in Oracle applications. I need to enter the user name of the user who has logged in to the E - Business Suite to access my Application OFA, so that depends on his user name I will post a welcome Message on my screen.

    Can someone please suggest how to achieve?

    With our thanks
    Gerber

    Use pagecontext.getuserId or pageContext.getUserName in your controller

    Thank you
    Kassy

  • How to get the user name?

    Is there any place where the username is stored and can be accessed by javascript? I doubt it is stored anywhere that is accessible to the script.

    Other than a logon dialog box and asking the user entry is possible that he could be automagic?

    See http://forums.adobe.com/message/1109507#1109507

  • Dreamweaver connection "How can I get the user name to the other page?

    im a beginner in Dreamweaver CS4 and I'm learning to just watch the tutorial videos...

    I have a big problem...

    ADWCS4 is easy to make a login form...


    for these tutorials I watch I have not meet how to get the user to another page name which connect...

    I'm using PHP

    hope you can answer my question

    http://forums.Adobe.com/thread/417437

  • How to get the Windows OS 8.1 actiivation key after the interview

    Dear Sir.

    My laptop has been given for maintenance on 09/06/2015 & collected on 19/08/2015. Unfortunately, while giving it for maintenance, Service Center authorized Lenovo not asked me to create a recovery media. Everything taking the delivary of the laptop service center could not activate windows 8.1 (this laptop computer OS has been pre-loaded & under warranty). Can someone tell me how to get the product activation key.

    Avinash Karnik

    Avinash-Karnik says:

    Dear Sir.

    Sorry, I fergot to quote these two motherboard have been replaced as original hard drive & motherboard had developed the fault for which I had to abandon for maintenance & replacement & maintenance for 2 & 1/2 months.

    Best regards & thanks.

    What version of Win 8.1 is the unit having now? If it's the PRO version, then probably you need to enter a product key if you reinstall. Try to download using the tool of media win 8.1 64 bit (no PRO version). Use it to install Win'a 8.1. The product key should be detected and you will not be required to enter as described above.

  • I have a single open for Exchange 2007 Standard how license get the product key

    I have a single open for Exchange 2007 Standard how license get the product key

    For assistance, please contact the administrator of your Open License program.

  • How to get the product key I purchased previously?

    How to get the product key I purchased previously?

    Depends entirely on how you bought it in the 1st place.

    A boxed product should have the key on the DVD case, which is the only trace.

    An update Anytime, you should have the key in an e-mail message from Microsoft. If you log in the website to store, you should be able to find the email conversation.

    If another provider such as a key, then you will need to go back to them.

    If your Windows starts now while you can use a keyfinder utility to read the registry key.

Maybe you are looking for

  • Email on ipad

    My iCloud emails are now played. Why is this?

  • G20-114: Re-install operating system recovery disks

    I have a 114 G20 with two drives hard sata 100 GB and recently reinstalled my operating system. The way I put in place, it is that I have XP MCE and all programs on a drive (drive C) and all my documents and given the other drive (drive D). Reasonabl

  • Problem of charging on my Satellite P30

    Hello Reload my P30 is possible only when 'bending' the power cable completely on the side near the entrance to my laptop power (for example, by placing a book under it as close as possible to the laptop). When turn on the power (Boot), he refuses to

  • Why Windows Vista Home Premium will suddenly change in Home Basic?

    Why Windows Vista Home Premium will suddenly change to basic home edition and never change back? Someone asked me to verify the information on the performance and tools > adjust Visual Effects > let windows choose what's best for my computer. But the

  • Library MPL PayPal issue

    Hi all I integrate paypal into my applplication that I have used paypal MPL Library for blackberry, in this library when the control goes into the library he says weak periphery connection check signal strength I read a few reviews and found this one