Updating the AD Process Form Using java code

Hi,
I am having requirement to update AD Process form OU and Groups using Scheduler.
Cna any body provide me sample code for updating the process form?
Thanks in advance
Edited by: 790561 on 22/08/2011 20:03

You need to use setProcessFormData(long ProcessInstanceKey,java.util.Map phAttributeList) in your scheduler code. Before calling this API you need to get value of ProcessInstanceKey.
To retrieve ProcessInstanceKey , you should call getObjects()(under tcUserOperationsIntf) API, iterate through the resultset and retrieve ProcessInstanceKey.
You can pass hashmap data similar to this
HashMap phAttributeList= new HashMap();
phAttributeList.put("UD_ADUSER_OU", "your-value");
I believe the groups are available in Child Form, so you can use child form API's like updateProcessFormChildData().
Check the below URL for updating child form API's
Re: Child Form

Similar Messages

  • Problem in updating the GR processing time using BAPI 'BAPI_SAG_CHANGE'

    Hi,
    I am using the BAPI 'BAPI_SAG_CHANGE' for uopdating the GR processing time(BAPIMEOUTITEM-GR_PR_TIME) of the scheduling agreements.
    Issue: when there is no value maintained for GR processing time for a particular scheduling agreemnet the BAPI updates the GR processing time successfully but when there is some value already existing for a particular scheculing agreement then the BAPI does not update this field eventhough the return parameter shows the message 'successfully updated'.   
    Can somebody suggest what could be the reason.
    OR
    Is there any other way/FM to update the scheduling agreements.  
    Thanks,
    Ravindra

    This appears to be old-style BAPI, with ....X tables.  Did you populate the field in the X version of the outitem for the column(s) to be changed?  Did you call the COMMIT bapi after the update?

  • Updating an existing xml file using java code

    hi friends,
    I have simple problem, I have an existing xml file and I want to update some of the values in the file.
    can any one send me the java code for that.
    bye.
    -harish

    org.w3c.dom.Document d = parseXmlFile("D:/www/Detailcache/detail.xml", false);
    public static Document parseXmlFile(String filename, boolean validating) {
    try {
    // Create a builder factory
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setValidating(validating);
    // Create the builder and parse the file
    Document doc = factory.newDocumentBuilder().parse(new File(filename));
    return doc;
    } catch (Exception e) {
    System.out.println("ERROR-->");e.printStackTrace();
    return null;
    look at .. for more related examples
    http://javaalmanac.com/egs/javax.xml.parsers/BasicDom.html?l=rel

  • Process Identification using java- GUID

    How can I access a process identifier using java code?
    in fact i am developing a Group communication application, in which multiple processes communicate each other, and this requires unique identification of each process. for example to determine the sender of a message, i need identifier of the process which has sent the message.
    So please sugest me how can I use Process Identifier or Is there any alterative way, for example I have an idea to use some Globally unique identifier (GUID) for each Process involved, But I dont know actually how to implement that Gloabally Unique Identifier (GUID). Please help me to solve this issue.

    NadeemAbbas wrote:
    How can I access a process identifier using java code?You can't.
    >
    in fact i am developing a Group communication application, in which multiple processes communicate each other, and this requires unique identification of each process. for example to determine the sender of a message, i need identifier of the process which has sent the message.How do they communicate? Sounds like the socket is the identifier.
    Kaj

  • Creating a folder in current workspace using java code

    Hi Experts,
    I need to create a folder and some file in the workspace of NWDS user. Can someone please suggest how can i find out the workspace of user using JAVA code.
    IWorkspaceRoot is not working in NWDS.
    Regards
    Pranav

    Hi Pranav,
    Tell me if you want to create this folder at run time or in NWDS while developing application.
    If you want to create it at the time of development just change your perspective to Java perspective and from there you can see the entire project structure and from there you can create desired files / folders.
    Ninad

  • Can we identify the tale in pdf using java.Is there any resources to do

    Hello Everyone,
                                From last two weeks onwards,I'm trying to identify the table from pdf.I tried so many libraries in java. But I didn't get any solution for it. If you people know anyone about identifying the table from pdf using java code.Please send me the solution for this.
    Thanks in advance.

    Hi Sandeep,
    You might want to check the docs: http://stackoverflow.com/questions/26092932/how-to-identitfy-tables-images-and-list-in-pdf -file-using-java
    http://stackoverflow.com/questions/10878695/how-to-read-a-table-in-a-pdf-using-itext-java
    http://stackoverflow.com/questions/2699243/find-tables-in-pdfs
    And the discussion on the thread: https://forums.adobe.com/thread/286110?tstart=0
    Regards,
    Rave

  • How to Invoke bpel process which is deployed in weblogic using java code

    Hi
    I want to invoke a BPEL Process which is deployed in Weblogic server using Java code. Please provide me the code snnipet which will be used to connect and then invoke a BPEL Process.

    The simple way would be creating a java client to consume the SOAP webservice interface exposed by the bpel process.
    If you have Oracle Service Registry you can also use UDDI to discover the endpoint at runtime.
    But you can also use direct binding to do that.
    If you search on internet you will find many blog entries about this as well as many related posts here on OTN.
    I can't suggest a specific one, but looking on Google this one seems quite ok: Managing Oracle SOA Environment [10g/11g]: Invoking SOA11g Composite Using Direct Binding Invocation API

  • How to get the values from struct data type using java code..?

    Hi ,
    I am newer to java.
    we are using oracle database.
    How to get the data from struct data type using java code.
    Thanks in Advance.
    Regards,
    kumar

    Hi Rajeev,
    To retrieve a FilterContainer you will need to traverse the report structure:
    ReportStructure boReportStructure = boDocumentInstance.getStructure();
    ReportContainer boReportContainer = (ReportContainer) boReportStructure.getReportElement(0);
    FilterContainer boFilterContainer = null;
    if (boReportContainer.hasFilter()) {
         boFilterContainer = boReportContainer.getFilter();
    } else {
         boFilterContainer = boReportContainer.createFilter(LogicalOperator.AND);
    Calling boDocumentInstance.getStructure() will retrieve the entire structure for the document.
    Calling boReportStructure.getReportElement(0) will retrieve the structure for the first report of the document.
    Hope this helps.
    Regards,
    Dan

  • How to change the properties of a directory using java code

    Hai All,
    I need to change the properties of directory( websharing).
    Can i do this using java code.
    Regards,
    Charan

    I need to change the properties of
    directory( websharing).
    an i do this using java code.Depends on whether the server has a Java API to do it. Most likely it hasn't.

  • How to print/list all the groups/users present in Weblogic using Java code

    Hi,
    Weblogic version : 11.1.1.5
    How to print/list all the groups/users present in Weblogic using Java code
    I want to make a remote connection to Weblogic server and print all the users/groups present in it.
    I have gone through the below mentioned site, but I cannot use the same approach since most of the API' are deprecated for example "weblogic.management.MBeanHome;"
    http://weblogic-wonders.com/weblogic/2010/11/10/list-users-and-groups-in-weblogic-using-jmx/
    Thanks in advance,
    Edited by: 984107 on 05-Feb-2013 05:26
    Edited by: 984107 on 05-Feb-2013 22:59

    see this http://www.techpaste.com/2012/06/managing-user-groups-wlst-scripts-weblogic/
    Hope this helps.

  • Benefits of the way using Java codes in Jdev 11.1.1.5

    Hi,
    I know there can be 2 ways to do these:
    retrieve the file to the DB or take the file from the DB.
    1)     1st way is to call DB procedure by passing parameter to it from the java class
    2)     2nd way is use java codes to directly do that
    What is the benefit of using the 2nd way? How about its details?

    Hua,
    I don't see a connection between retrieve the file to the DB or take the file from the DB. and a stored procedure "getTestData(?, ?)".
    As long as Frank (who's crystal ball is much bigger then mine) can guess what you really want to ask, I would appreciate a full use case which we all can understand.
    Timo

  • Latest software update is causing the dock process to use an abnormally high amount of system resources- what's going on?

    After I installed the latest software update (updates that prepare some apps to run on OSX Lion), I'm noticing that the dock process is using 100% of my CPU when idle. This is causing my battery life to be 30 min at best. What's going on?

    There is a conflict with Parallels and the latest update that causes this.  Update Parallels to the latest version and it will fix this.
    Regards,
    Captfred
    http://kb.parallels.com/en/111541

  • How can we make the ms-word data as read-only using java code?

    How can we make the ms-word data as read-only using java code?

    MVSK wrote:
    By using java code i opened a file in ms-word. But the data i want to display as read-only. that means should not change it.I don't think you can do that. Display pdf documents instead.

  • Read an excel file using java code

    Hi,
    I want to create an excel file on the client machine based on the personal details entered on the web page. And I want to save the file on the client machine in the form of CSV. Then I want to read the contents of the spreadsheet using Java Code from the using servlets. Can I read the contents of the file directly from the client machine or do i need to save the file on the server and then read the contents of it. Please help me solve this.

    Hi,
    I want to create an excel file on the client machine
    based on the personal details entered on the web
    page. And I want to save the file on the client
    machine in the form of CSV. Then I want to read the
    contents of the spreadsheet using Java Code from the
    using servlets. Can I read the contents of the file
    directly from the client machine or do i need to save
    the file on the server and then read the contents of
    it. Please help me solve this.As stated I am rather certain that is impossible.
    Servers don't access the file systems of client machines.

  • How to launch Jar file in Mac Os using java code??

    can anyone tell me how can i launch another jar file in my apllication using java code.

    define "launch".
    - You want to run a new java program in a separate process? (see Runtime.exec())
    - You want to run a method in a specific class in the jar? (add jar to application classpath and then simply instantiate the class and call the method)

Maybe you are looking for

  • Can't screen share on one computer on LAN; strange vnc settings?

    While troubleshooting problems using FaceTime on Mac on one of four computers on my LAN, I discovered several strange things about the Mac in question. Though the Mac's name shows up on all the other computers on the LAN under the "Shared" area of th

  • How to export individual sheets in numbers

    I have an account spredsheet that sheets are done monthly but kept in their years. How can I share either PDF or other ways individual months. Some people I dont want to have a full year of records, just individual months. thank you DL

  • Underlined Space Characters and Justifying to the Right

    Basically putting together an invoice which have a few fillable form sections that need to be justified to the right. Using the underscore key runs the risk of looking broken unless I want to play with the kerning. I considered using the line tool, b

  • No Verify Disk after 10.6.4 update

    I just used the combo update to go from 10.6.3 to 10.6.4 on my MacBook Pro and now the Verify Disk button in the Disk Utility is grayed out. I have Repaired Permissions and zapped the PRAM but that did nothing. Any ideas what has happened?

  • Premiere Elements 9 YouTube Sign In ERROR

       Premiere Elements 9 Troubleshooting- "The Username And Password You Provided Do Not Match. Please Try Again Later", this appears when I attempt to sign into youtube while trying to upload a video. I accessed youtube online to double check that my