Unable to update the dates of start/end with updateUser API

Hi all

I'm trying to update the dates of beginning and end using the updateUser API, but the dates are not defined. I know the updateUser call works because I tested it by changing the user's first name and it worked fine (checked by the IOM web app). Here is the code I use to update as well as the values of the sample that I use. No exception is thrown either. I have no idea what can be the problem. Also, one of my customer request must also display the time when these values where it is updated (via a custom web application that I am building). Is - is this posible? Before I received the time where the call to userUpdate was made and adding that the values would lie in the hash table, but started using 0 for the time since that's what I read on a thread on this forum (Re: (IOM) Timestamp format must be yyyy-mm-dd... )

/*
Examples of values
startDate = 2010-11-08
endDate = 2010-12-09
*/


String startDateStr = startDate.toString () + "00:00:00.000";
String endDateStr = endDate.toString () + "00:00:00.000";

/*
impression of the channels above
startDateStr = 00:00:00.000 2010-11-08
endDateStr = the 00:00:00.000 2010-12-09
*/

AttrValues Hashtable < String, String > = new Hashtable < String, String > ();
attrValues.put ("Users.Start", activateDateStr);
attrValues.put ("Users.End", inactivateDateStr);
usrOps.updateUser (rsUser, attrValues);


Please help me out I was stuck on this problem too long.

Thank you!
-J' I

Published by: cri_cri_99 on June 23, 2009 12:46

It works fine for me.

Map strDate = new HashMap();
strDate.put ("Date of Users.Start", "' * 12:01:56.000000000 2009-06-24 * '");
moUserUtility.updateUser (userResultSet, strDate);

It will show you in DB as * 24 June 09 *. I don't understand what you are asking for more in your thread.

But updateUser API works with this format. If you found the time to some application, convert to this format and run.

If you need help, let me know.

Published by: Arnaud

Tags: Fusion Middleware

Similar Questions

  • How can I update the date cancellation in usr table IOM

    Hello

    I wrote a process task adapter which will return a date. I want to map this date with Deprovisioning return date to the table of the USR.

    While you map this date of return to definition by the user, I don't see the option 'Date of Deprovisioning' playoff from the drop-down list.

    So how can I map this date back to the date of cancellation?

    Basically I want to update USR_DEPROVISIONING_DATE with the date of return of my adapter to process task?

    Pls suggest.

    Thank you

    It may be useful

    Unable to update the dates of start/end with updateUser API

  • need to update the date of the end of the user using the API of the IOM

    We have a requirement where we need to update the date of the end of the user. The details of the user as usr_key, number of days to extend (such as 30 days or 60 days), and affects manager is provided by SOA (maybe by BPEL). In the java class, I need to add the number of days of the closing date of the user and then update the table of the usr by IOM API method - usrMap.put ("USR_END_DATE", updatedEndDate);

    I wrote a small program, but it has erros. Please help me in this situation.
    ' public boolean updateEnddate (String usrKey, String managerKey, String NombreJours) {}
    Boolean result = false;
    String NombreJours;
    int totalNumUsers = 0;
    HashMap usrMap = new HashMap();
    usrMap.put ("Users.Key", usrKey);
    usrMap.put ("USR_MANAGER_KEY", managerKey);
    try {}
    DateFormat sdfSource = new SimpleDateFormat("yyyy-MM-dd");
    Date date = sdfSource.parse("USR_END_DATE");
    SimpleDateFormat sdfDestination = new SimpleDateFormat("dd-MMM-yyyy");
    String userEndDate = sdfDestination.format (date);
    tcResultSet = this.usrIntf.findUsers (usrMap) users;
    totalNumUsers = usersList.getRowCount ();
    If (totalNumUsers > 0)
    for (int i = 0; i < totalNumUsers; i ++) {}
    usersList.goToRow (i);
    updatedEndDate = userEndDate + NombreJours;
    usrMap.put ("USR_END_DATE", updatedEndDate);
    this.usrIntf.updateUser (users, usrMap);
    result = true;
    }
    on the other
    result = true;
    }




    Thank you
    Kalpana.

    Calculate the new date

    /**
    * This method is used to obtain the new date after adding x-days
    @param strDate - date today
    @param daysToAdd - x-days
    * @return Nouvelle_date - date after the addition of x days
    */
    private String incrementDate (Date strDate, int daysToAdd) {}
    Start date
    Logger.info("NotifyLastDayOfService::incrementDate(): entrez»);
    SimpleDateFormat sdf = new SimpleDateFormat ("yyyy-MM-DD 00:00:00");
    Dim str As String = sdf.format (strDate);
    Calendar c = Calendar.GetInstance ();
    try {}
    c.setTime (sdf.parse (str));
    } catch (ParseException exception) e {}
    e.printStackTrace ();
    }
    c.Add (Calendar.DATE, daysToAdd); number of days to add
    String PROMOTIONDate = sdf.format (c.getTime ());
    System.out.println ("calculated End Date:" + PROMOTIONDate);
    Logger.info("NotifyLastDayOfService::incrementDate(): sortie»);
    return Nouvelle_date;
    }

    This should solve your problem :)

  • Unable to update the payload by managed program from Bean data

    Hello

    BPM 11.1.1.5 + Extensions Pack features, Feature Pack, JDeveloper 11.1.1.5 model: ADF BC

    How to access the BPM 11 g load useful or process varibles in the workflow of ADF
    The task of reading by program details

    I followed the 2 wires above to read the value according to the payload data.
    So I'm able to read existing values according to the payload data.

    Managed code of bean to get the current payload data (copied from the links above) - tried the call of setOperation and invokeOperation
    SerializableAttribute public class MyBean extends InvokeActionBean
    {
    public String setOperation (ActionEvent actionEvent)
    {
    FacesContext context = FacesContext.getCurrentInstance ();
    String tskId = (String) context.getApplication () .evaluateExpressionGet (context, "#{pageFlowScope.bpmWorklistTaskId}", String.class);
    IWorkflowServiceClient workflowSvcClient = (WorkflowServiceClientFactory.REMOTE_CLIENT) WorkflowServiceClientFactory.getWorkflowServiceClient;
    ITaskService taskSvc = workflowSvcClient. getTaskService().
    ITaskQueryService wfQueryService = workflowSvcClient.getTaskQueryService ();
    IWorkflowContext wfContext = WorklistUtil.getWorkflowContextForASelectedTask ();
    Task myTask = wfQueryService.getTaskDetailsById (wfContext, tskId);
    Element payloadElem = myTask.getPayloadAsElement ();
    NodeList payloadNodeList = payloadElem.getElementsByTagName (("MyApproval"));
    Node fstnode = payloadNodeList.item (0);
    Element fstElmnt = fstnode (element);
    NodeList tstNmElmntLst = fstElmnt.getElementsByTagName ("approvalRequired"); getting node approvalRequired
    Element tstNmElmnt = tstNmElmntLst.item (0) (element);
    _logger.severe ("node Value:" + tstNmElmnt. getNodeValue() "');
    ...
    the above newspaper printed the existing value correctly in newspapers

    So far so good.

    But my requirement is to update the payload data before sending it to the next task.
    These payload data process will decide which path to choose (exclusive gateway).

    So I tried to update the following payload data.

    tstNmElmnt.setNodeValue ("yes"); (actually it comes to dynamic value returned from a java method)
    Return super.setOperation (actionEvent);
    }

    The statement above doesn't seem to work.
    There was no exception as well.
    I checked the data payload of the Oracle Enterprise Manager of verification of process instance console, but it doesn't seem to affect the new value ("yes")

    Can someone check and let me know if I missed something?

    Thanks for any help.
    Concerning
    Sameer

    Next post helped me.
    Assign the role, the Group initiated human when task

    We need to call the following method to update the data payload instead of setNodeValue

    tstNmElmnt.setTextContent ("yes");
    myTask.setPayloadAsElement (payloadElem);
    taskSvc.updateTask (wfContext, myTask);

    Thanks and greetings
    Sameer

  • custome, update the date process

    Hello everyone,

    I have a page with the box where the user can select a record and update the record by pressing the button.

    I have three processes, and each of these process to update a field (which is a date field) of the page by pressing the specific button. The three processes are:

    declare

    Start

    I'm looping 1.apex_application.g_f01.count


    UPDATE REC_RET_ADD_RECORD

    SET DATE_ADMIN_APPROVED =: P8_DATE_ADMIN_APPROVED

    WHERE REC_RET_ID = APEX_APPLICATION. G_F01 (I);

    end loop;

    commit;

    end;

    Condition: When you press the button (submit) Admin

    The second process:

    declare

    Start

    I'm looping 1.apex_application.g_f01.count


    UPDATE REC_RET_ADD_RECORD

    SET DATE_COMMITTEE_APPROVED =: P8_DATE_COMMITTEE_APPROVED

    WHERE REC_RET_ID = APEX_APPLICATION. G_F01 (I);

    end loop;

    commit;

    end;

    Condition: When you press the button (submit) Committee

    The third method:

    declare

    Start

    I'm looping 1.apex_application.g_f01.count

    UPDATE REC_RET_ADD_RECORD

    SET DATE_OHS_APPROVED =: P8_DATE_OHS_APPROVED

    WHERE REC_RET_ID = APEX_APPLICATION. G_F01 (I);

    end loop;

    commit;

    end;

    Condition: When you press the button (submit) OSH

    Now the problem is, when the user selects the row and selects the date for the Admin field and press the button Admin, the system inserts the date, but after that, if the user wants to choose the same line and update the date of OSH, the system will remove the date for the Admin field and enters the date of OSH in the verse of field and visa OSH.

    I don't know why this is happening. Could you please help me. I appreciate it.

    As you say, you have three buttons, get the names of all three buttons. (I mean the names of the buttons that are unique per page and not the labels. Do not confuse between the labels and the button names)

    Go to each of your processes, make button no condition

    Go to block of condition and select request = e1

    In each respective process enter the exact button names

  • Unable to update the firmware in Mezz KX4 - KR DP 10 GbE Ethernet X 520 14.5.9 version

    Hello

    Try to update Intel x 520 10GbE mezzanine NIC firmware on a blade of M620 fails with the following error:

    SUP0517: Unable to update the firmware in Mezz KX4 - KR DP 10 GbE Ethernet X 520 version 14.5.9.
    Detailed description:
    The image of the firmware specified in the operation did not properly apply. An internal error occurred.
    Recommended action:
    Try the operation again. If the problem persists, download the latest update of your service provider package and try the operation again.

    BIOS, iDRAC, Lifecycle Controller firmwares are newer. I tried to upgrade from iDRAC and directly from controller (using SUU) life cycle, the same thing. haven't tried yet the OS. I want to update firmware, because she refuses to get DHCP address when you try to boot from PXE to deploy the operating system. At the same time in the controller of lifecycle, in the configuration of the network, I was able to successfully get the addresses of the DHCP server and scan the Dell FTP site for firmware updates.

    Any ideas? Thank you.

    Egils

    I would like to start the update of the direct OMSA. Once updated, this should not happen again.

  • Error: "Windows could not update the configuration to start the computer. Installation cannot move forward"during the installation of Windows 8 64-bit OEM System Builder on Macbook Pro for help using Boot Camp

    Hello

    I have a brand new Macbook pro and I bought the OEM System Builder of 64-bit Windows 8 driver in a store. My problem is that I have not only not able to install it using Boot Camp. At the end of the installation, a message appears with the following text "Windows could not update the configuration to start the computer. Installation cannot continue.

    I'm not really a tech guy but I also tried to download virtual box and the same error comes back.

    Can someone help me please?

    Thank you!

    Original title: Windows 8 64-bit English OEM System Builder

    The thread is old now, but it is for those who always have this problem.

    When I got the error, I cancelled and restarted the machine. I pressed the 'option' button when starting upwards and he grew the boot partitions. You should see a 'EFI Boot' partition. Choose that and you restart the installation process, but this time it works.

    Supposedly the boot EFI and WinInstall partition should do the same thing. Manually, select one or the other.

  • update date and time for 3.6 numbers does not show the time and does not automatically update the date

    The 'update date and time"for numbers of 3.6 does not show the time and does not automatically update the date.  What should I do?  Thank you.

    Hi david,

    where do you find ' update of the date and time.

    Quinn

  • error on Windows 2008 server std edition "Windows could not update the Configuration to start the computer. Installation cannot continue. "

    I try to install windows 2008 server std edition on HP DL 380 G5 server, I am getting error while installing "Windows could not update the Configuration to start the computer. Installation cannot continue. ", please suggest?

    I tried also with HP smartstart CD, but failed.

    Thanks guys, I found the answer to my question, I used the last HP smart Start CD (V8.70B for windows 2008 server X 64) for DL380g5 for windows 2008 server STD, and it worked fine.

    Thank you...
  • Windows 2008 Server: unable to update the password. the value provided for the new password does not respect length, complexity, or history of the field requirements

    Unable to update the password. the value provided for the new password does not respect length, complexity, or history of the field requirements

    Hello

    I suggest you to send your request in this forum for better support.
  • Microsoft Security Essentials unable to update the definitions of spyware, error code 0 x 8000-4004

    Microsoft Security Essentials is unable to update the definitions of spyware, my computer is essentially unprotected right now.

    * original title - error code 0 x 8000-4004 (says that there is internet connectivity or network issue/no prlblem with my internet or connectivity *)

    Hello

    Try the steps listed in the links below and check, if this can help: install the latest Microsoft Security Essentials definition updates: http://www.microsoft.com/security/portal/Definitions/HowToMSE.aspx

    How to manually download the latest Microsoft Security Essentials definition updates: http://support.microsoft.com/kb/971606

    For more assistance, you can post your request in the Sub forum: http://answers.microsoft.com/enus/protect/forum

  • Windows could not update the Configuration to start the computer. Installation cannot continue.

    Trying to move from XP to Vista Ultimate.  During installation, the installation gets to 21% on the files and then closes and I get the error "Windows could not update the configuration to start the computer. Installation cannot continue.  Can someone help me with this?

    the problem has been fixed. I started on the dvd to see if I could install it outside of windows. I discovered that I could just install from windows. When I came out, I came across a repair button.  Who find startup errors and fixed them.  I then rebooted and went into windows and was able to install.

  • "Windows could not update the configuration to start the computer" error during the upgrade of Vista in Windows XP

    I have a laptop Dell Inspiron 1505, that is running Windows XP Media Center Sp3. I'm doing a place in upgrading to Vista since the disks to upgrade Dell... Everything's fine until the 'Expansion of the files' [27%], then the installation fails with this message: "Windows could not update the configuration to start the computer. Installation cannot continue. Any changes made to your computer during the upgrade". I did a google search for a fix that involves changing a value in the registry in the HKLM\SYSTEM\CurrentControlSet\Control\Class\ {4D36E976-E325-11CE-BFC1-08002BE10318} for example change the value to PartMgr Upperfilters. Unfortunately, this value was the default for my registry key changes could be made. Some other fixes involved the renaming of Upperfilter.bak, for Upperfilters unfortunately this .bak value does not exist in my registry.

    I tried to boot from the disk of Vista and changing the msconfig for a selective startup but without result.

    In addition, the stall even appears at a similar point when you try to upgrade to Windows 7. Is it because of the presence of hidden Media Direct and Dell restore partitions? Compatibility Assistant programs for the two operating systems found nothing significant. Anti virus has been disabled during the installation procedure. Any help will be greatly appreciated. Thank you.

     

    Hello

    Not quite, but pretty close. Media Direct could not lock the boot sector. It must be a BIOS lock or a mechanism of protection provided by your antivirus software.  Given that, I would check your program settings then for all that prevents changes to the boot sector. You may find more easy just uninstall it and reinstall it after the upgrade. Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • Unable to update the DVD region setting even if there is 1 change remaining allowed.

    Try to change the region of 1 to 4 (Australia) settings on the settings of my dvd region tab.  Even though I have still 1 chance and have inserted a region 4 dvd in the drive, it still gives me the following error message:

    DVD region change error


    Unable to update the settings in the region.  The drive reports that it requires

    media of the destination region (region 4) Please insert

    an environment appropriate and try again

    Hi Jackie477,

    That you change the settings of 1 to 4 (Australia) area, we advise to insert any media (CD or DVD) of Australia in the CD/DVD drive and try to change the region settings to see if it works very well.

    See change region for DVD players (valid also for Windows 7)

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • BlackBerry smartphones, I am able to update the Date and time on WiFi?

    With a 9800 smartphone (3g, WiFi) 6.0 Bundle 278 (v6.0.0.141, platform 6.4.0.64)

    I'm running a few tests with my camera and I took out my Sim Card. I would like to know if I can update the Date and time on WiFi only?

    Note, I am able to navigate successfully.

    No, you can't do a simple navigation with wifi only

    Update on time is made by the carrier or by the RIM servers. No SIM means no access to these data.

Maybe you are looking for