How to retrieve updated payload information from completed HumanTask

after initiating the HumanTask , updating the payload object from java client api
payload information set into task object.
taskService.updateTaskOutcome(workflowContext, task, outcome) ;
after this call the HumanTask will be Completed.
Now i tried to get the Payload which was updated in earlier step.
Task task=taskQueryService.getTaskDetailsByNumber(workflowContext, taskNumber);
XMLElement payload =(XMLElement)task.getPayloadAsElement();
in the payload, it only contains payload which was at the time of humanTask initiation .
Can any one help me, how to retrieve the payload information after completing the HumanTask ?
Thanks in Advance

I think the below code can be used to update the payload in the HumanTask
IWorkflowServiceClient wfSvc=WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
          //instantiate the TaskQueryService Object
          ITaskQueryService taskQuerySvc=wfSvc.getTaskQueryService();
          //instantiate the TaskService Object. it has the UpdateOutcome method
          ITaskService taskSvc=wfSvc.getTaskService();
          final String password="jcooper";
          final int taskNumber=123;
          try {
               //get WorkflowContext
               IWorkflowContext context=taskQuerySvc.authenticate("jcooper",password.toCharArray(), "jazn");
               Task task=taskQuerySvc.getTaskDetailsByNumber(context, taskNumber);
               Element element=task.getPayloadAsElement();
               Element payloadNew=element.getOwnerDocument().createElementNS("http://xmlns.oracle.com/bpel/workflow/task", "payload");
               JAXBContext jaxbContext=JAXBContext.newInstance("object.path");
               Marshaller marshaller=jaxbContext.createMarshaller();
               //new Object() is your Object which you want to update in Process payload
               marshaller.marshal(new Object(), payloadNew);
               task.setPayloadAsElement(payloadNew);
               //update task payload
               taskSvc.updateTaskOutcome(context, task, "APPROVE");
          } catch (WorkflowException e) {
               e.printStackTrace();
          } catch (JAXBException e) {
               e.printStackTrace();
          } catch (StaleObjectException e) {
               e.printStackTrace();
Edited by: user12267906 on Nov 28, 2009 7:43 AM

Similar Messages

  • How can we retrieve the Payload information from B2B

    Hello,
    We are trying to send the payload information back to the client for a failed BPEL Transaction from B2B's b2b_instancemessage view. We are enqueing messages to IP_OUT_QUEUE using BPEL. We see the payload coming correctly in the B2B Business Message Reports. But we don't see the payload coming in the b2b_instancemessage view for failed B2B transactions. How can we see the payload in b2b_instancemessage view for failed B2B transactions as well? or How can we retrieve the Payload information from B2B?
    Any help is greatly appreciated! Thanks. - Sam.
    Edited by: user12049162 on Dec 4, 2009 2:04 PM

    I am not sure about the PDK API to get the group name. But using LDAP API its easy to get the User Group.
    If you find the answer to get the group name using PDK API, Please update in forum. It will really help others.
    --Balaji S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to retrieve client certificate information from sender mail adapter

    Hi, expert:
    I have a requirement to verify the validation of coming email with digital certification. The mail is with digital certification. If the coming email is valid, I 'll get the attachemt of the mail for further processing. I have a sender mail adapter and receiver file adapter configued.
    I have already my own developed adapter module, which is configued in mail adapter. My question is how to retrieve the detailed certificate information in the adapter module developed by myself. Is it feasible?
    Thanks a lot.

    The WL-Client-Proxy cert should be the cert used on the proxy side if SSL is configured between Apache and WebLogic, so I believe that is the reason why that does not work. Basically, the problem here is that SSL is end-to-end, and the two ends of this transaction are the client and apache.
    That said, when you add the +ExportCertData option, this should record the client's SSL certificate in the vairable SSL_CLIENT_CERT.  So you should be able to use request.getAttribute("SSL_CLIENT_CERT").
    See:
    http://www.modssl.org/docs/2.8/ssl_reference.html
    If this doesn't work for you (which is possible if the WL_Proxy is doing something funny to the request), it is probably best just to dump out the entire contents of the session, and see what you have:
    for (Enumeration e = request.getAttributeNames() ; e.hasMoreElements() ; ) {
    String attr = (String)e.nextElement();
    System.out.println("ATTR = " + attr);
    System.out.println("VAL = " + request.getAttribute(attr));
    If you can't see any SSL certificate there, you will have to work out some way to pass this on manually.
    cheers,
    Trevor

  • How to retrieve iPhone tracking information from iPhone.

    Does anyone know how to get the tracking information off of the iPhone?  I am trying to get this information as I am fighting a parking ticket I received while my car was valet'd, but have no other record of being at the bar on the night in question (as I paid with cash...the one time I don't use my credit card, right??!!).  If anyone knows how to retrieve the GPS tracking information (more importantly, how to get tracking information for a specific date), your help will be greatly appreciated.  Thanks!

    Sorry but apple stopped tracking that information and it is no longer available. You will not be able to get any tracking information off your phone.

  • I have 2 imac computers and here are my questions: first, how to I transfer the information from my contact directory from my old imac into my new imac and once the information is transfered how can I print it? Second: I have a large music collection in m

    have 2 imac computers and here are my questions: first, how to I transfer the information from my contact directory from my old imac into my new imac?  Once the information is transfered how can I print it? Second: I have a large music collection in my old Imac computer how do I transfer this information to my new computer? Also how can I share this information with other computers at home?

    I think you may find helpful information here:
    A Basic Guide for Migrating to Intel-Macs
    The Knowledgebase article Intel-based Mac: Some migrated applications may need to be updated refers to methods of dealing with migrating from PowerPC chips to Intel with the Migration Assistant safely. The authors of this tip have not had a chance to verify this works in all instances, or that it avoids the 10.6.1 and earlier Guest Account bug that caused account information to get deleted upon use of the Migration/Setup Assistant. However, a well backed up source that includes at least two backups of all the data that are not connected to your machine will help you avoid potential issues, should they arise. In event it does not work, follow the steps below.
    If you are migrating a PowerPC system (G3, G4, or G5) to an Intel-Mac be careful what you migrate.  Keep in mind that some items that may get transferred will not work on Intel machines and may end up causing your computer's operating system to malfunction.
    Rosetta supports "software that runs on the PowerPC G3, G4, or G5 processor that are built for Mac OS X". This excludes the items that are not universal binaries or simply will not work in Rosetta:
    Classic Environment, and subsequently any Mac OS 9 or earlier applications
    Screensavers written for the PowerPC System Preference add-ons
    All Unsanity Haxies Browser and other plug-ins
    Contextual Menu Items
    Applications which specifically require the PowerPC G5 Kernel extensions
    Java applications with JNI (PowerPC) libraries
    See also What Can Be Translated by Rosetta.
    In addition to the above you could also have problems with migrated cache files and/or cache files containing code that is incompatible.
    If you migrate a user folder that contains any of these items, you may find that your Intel-Mac is malfunctioning. It would be wise to take care when migrating your systems from a PowerPC platform to an Intel-Mac platform to assure that you do not migrate these incompatible items.
    If you have problems with applications not working, then completely uninstall said application and reinstall it from scratch. Take great care with Java applications and Java-based Peer-to-Peer applications. Many Java apps will not work on Intel-Macs as they are currently compiled. As of this time Limewire, Cabos, and Acquisition are available as universal binaries. Do not install browser plug-ins such as Flash or Shockwave from downloaded installers unless they are universal binaries. The version of OS X installed on your Intel-Mac comes with special compatible versions of Flash and Shockwave plug-ins for use with your browser.
    The same problem will exist for any hardware drivers such as mouse software unless the drivers have been compiled as universal binaries. For third-party mice the current choices are USB Overdrive or SteerMouse. Contact the developer or manufacturer of your third-party mouse software to find out when a universal binary version will be available.
    Also be careful with some backup utilities and third-party disk repair utilities. Disk Warrior, TechTool Pro , SuperDuper , and Drive Genius  work properly on Intel-Macs with Leopard.  The same caution may apply to the many "maintenance" utilities that have not yet been converted to universal binaries.  Leopard Cache Cleaner, Onyx, TinkerTool System, and Cocktail are now compatible with Leopard.
    Before migrating or installing software on your Intel-Mac check MacFixit's Rosetta Compatibility Index.
    Additional links that will be helpful to new Intel-Mac users:
    Intel In Macs
    Apple Guide to Universal Applications
    MacInTouch List of Compatible Universal Binaries
    MacInTouch List of Rosetta Compatible Applications
    MacUpdate List of Intel-Compatible Software
    Transferring data with Setup Assistant - Migration Assistant FAQ
    Because Migration Assistant isn't the ideal way to migrate from PowerPC to Intel Macs, using Target Disk Mode, copying the critical contents to CD and DVD, an external hard drive, or networking will work better when moving from PowerPC to Intel Macs.  The initial section below discusses Target Disk Mode.  It is then followed by a section which discusses networking with Macs that lack Firewire.
    If both computers support the use of Firewire then you can use the following instructions:
    1. Repair the hard drive and permissions using Disk Utility.
    2. Backup your data.  This is vitally important in case you make a mistake or there's some other problem.
    3. Connect a Firewire cable between your old Mac and your new Intel Mac.
    4. Startup your old Mac in Transferring files between two computers using FireWire.
    5. Startup your new Mac for the first time, go through the setup and registration screens, but do NOT migrate data over. Get to your desktop on the new Mac without migrating any new data over.
    If you are not able to use a Firewire connection (for example you have a Late 2008 MacBook that only supports USB:)
    1. Set up a local home network: Creating a small Ethernet Network.
    2. If you have a MacBook Air or Late 2008 MacBook see the following:
    MacBook (13-inch, Aluminum, Late 2008) and MacBook Pro (15-inch, Late 2008)- What to do if migration is unsuccessful;
    MacBook Air- Migration Tips and Tricks;
    MacBook Air- Remote Disc, Migration, or Remote Install Mac OS X and wireless 802.11n networks.
    Copy the following items from your old Mac to the new Mac:
    In your /Home/ folder: Documents, Movies, Music, Pictures, and Sites folders.
    In your /Home/Library/ folder:
    /Home/Library/Application Support/AddressBook (copy the whole folder) /Home/Library/Application Support/iCal (copy the whole folder)
    Also in /Home/Library/Application Support (copy whatever else you need including folders for any third-party applications)
    /Home/Library/Keychains (copy the whole folder) /Home/Library/Mail (copy the whole folder) /Home/Library/Preferences/ (copy the whole folder) /Home /Library/Calendars (copy the whole folder) /Home /Library/iTunes (copy the whole folder) /Home /Library/Safari (copy the whole folder)
    If you want cookies:
    /Home/Library/Cookies/Cookies.plist /Home/Library/Application Support/WebFoundation/HTTPCookies.plist
    For Entourage users:
    Entourage is in /Home/Documents/Microsoft User Data Also in /Home/Library/Preferences/Microsoft.
    Credit goes to Macjack for this information.
    If you need to transfer data for other applications please ask the vendor or ask in the  Discussions where specific applications store their data.
    5. Once you have transferred what you need restart the new Mac and test to make sure the contents are there for each of the applications.
    Written by Kappy with additional contributions from a brody.Revised 5/21/2011

  • How to retrieve the parameter names from a JSP page ? Urgent Please

    Hello,
    Can anybody tell me how to retrieve the parameter names from the JSP
    page. (without using getParameterNames() method.)
    The problem with the getParameterNames() method is I get the Jumbled output.
    I need it very badly
    With regards
    Ananth R
    email:[email protected]
    [email protected]

    Dear duffymo,
    My primary intention is to convert the JSP form information into a XML file.
    If I do not get the Parameter names in the correct order how can I maintain
    tag order in XML file.
    For ex: (JSP PAGE VIEW)
    Name--
    FirstName
    MiddleName
    LastName
    Address--
    Street1
    Street2
    City
    Country
    &so on
    (XML File to be generated)
    <Name>
    <FirstName>Value</FirstName>
    </Name>
    <Address>
    <street1>value</street1>
    </Address>
    & so on
    If I use getParameterNames() to get all the parameter names(Which form the tag names in the XML file ) the Enumeration object it returns will not be in the same order as the text fields in JSP.From this I can not construct a meaningful XML file.
    order means: Order of entry on the page, from top to bottom
    That's it
    Waiting for your responses

  • Retrieving free/busy information from the server takes very long time

    Hello, we are running Outlook 2010 32-bit in Windows 7 64.bit, and  have encountered a strange problem, whenever we want to book
    a resource (i.e. conference room) from Scheduling assistant, it takes very long time, sometimes even more than a minute to see the utilization of the room, it being stuck at "Updating schedule information. Retrieving free/busy information from the server"
    The interesting thing is that most newly deployed PCs exhibits this same behavior, while older machines with basically the same setup gets the availability information almost immediately.
    It is unclear whether this is a server setting or desktop issue, as all new Windows 7/Outlook machines that are deployed from the WDS-server exhibits the same slow behavior.
    Please advise any troubleshooting steps to investigate the very slow retrieval lookup of free/busy information from the Exchange server.

    Hi,
    Does this issue occur on OWA?
    If no, it means the issue is mainly related to the Outlook client.
    Regards,
    Simon Wu
    TechNet Community Support

  • How to retrieve SOAP Original Header from request and response

    Hi,
    Does anyone know how to retrieve SOAP original header from SOAP request and response? I surfed but I'm able to see only the retrieval of SOAP custom headers via BPM mediator. Can anyone please help me regarding this? Also Please tell me how to check the headers in the Enterprise Manager.

    HI Chandra,
    Thanks for your suggestions.
    But i think in my case we do not want to get the complete list. We still want to get only 100 items initially and then if the user would scroll down he/she would see more items. But we already need to know the total number of items for the purpose of showing a message to the user. For e.g. Total issues (515),  but the table would initially show only 100 and then another 100 after scroll. So setting the size litmit to max would not help.
    And to be able to use the $count you mentioned, we have to still make another oData service call which we do not want.
    But as i mentioned there is already a property named "__count" in the response of the bindItems() method call and i see that it has correct count but not sure how to retrieve it inside the controller. Thanks.
    Regards,
    Ashish

  • How do I get all information from my smart phone 4 to my new smart phone 5

    How can I move all information from my iPhone 4 to my iPhone 5?

    Using iTunes for this is recommended over iCloud since it will be faster and more thorough. Set the backup to be stored locally on the computer's drive.

  • My  ipod touch is 3rd gen how can i update my ios from 4.2.1 to 5.1.1 when i shift   restore and load the ipod3_5.1.1.ios its always say your firmware is not compatible

    my  ipod touch is 3rd gen how can i update my ios from 4.2.1 to 5.1.1 when i shift + restore and load the ipod3_5.1.1.ios its always say your firmware is not compatible

    I suspect you have a 2G iPod. Those can only go to iOS 4.2.1.
    Identifying iPod models
    iPod touch (3rd generation)
    iPod touch (3rd generation) features a 3.5-inch (diagonal) widescreen multi-touch display and 32 GB or 64 GB flash drive. You can browse the web with Safari and watch YouTube videos with Wi-Fi. You can also search, preview, and buy songs from the iTunes Wi-Fi Music Store on iPod touch.
    The iPod touch (3rd generation) can be distinguished from iPod touch (2nd generation) by looking at the back of the device. In the text below the engraving, look for the model number. iPod touch (2nd generation) is model A1288, and iPod touch (3rd generation) is model A1318.

  • How to get RMAN catalog information from Target database?

    Hi,
    How to get RMAN catalog information from Target database because i don't know about catalog database? is it possible?
    Thanks

    If you run RMAN backups of a target database using a Catalog schema in another database, the target is not aware of the catalog.
    The RMAN backup script would have the connection identifier for the Catalog.
    Hemant K Chitale

  • TS4009 Unable to update payment information to complete iCloud storage renewal, tried over 4 times and different cards

    Unable to update payment information to complete iCloud storage renewal, tried over 4 times and different cards

    I had the same issue, Sent Email offering £7.99 for 25 GB. Then sent me an Email at 2.52AM saying I needed to update my payment method although they had just refunded to it. Then 7 hours later, I had tried to before work at 7AM and thought, "as it won't let me do that on my iphone, I'll do it at lunch." Sadly at 9:56 am UK time, They reduced my storage.
    Having Wasted an hour on the phone tonight, they first tried to explain that £7.99 is More than £0.79 times 12. Doh!
    That was followed with lots of being on hold and then being told "We can't go back, We Can't make a refund. We agree it was short notice and that we didn't do it well, there are lots of issues about this and also that we never offered you that (till the saw the email)" So no better off and now having to pay more for same service. That's pretty poor service all around. I have to upgrade as All my files, Backups and Emails are inoperative Till I do so.
    That's pretty bad for a company of this size, Guess they need some more bad press at the moment.

  • HT4910 how do i restore my information from my i cloud

    how do i restore my information from my i cloud

    Unfortunately, New Zealand doesn't have an Apple store. The closest we have is something called Yoobee, who i'm going to have to visit on the weekend. As while I got my iPad back fixed today, I have been unable to load all of my apps from the Cloud. Weirdly some of the Apps loaded, and I even synced one with my Mac, only to find later that they had disappeared. Now some are showing open but not working. This has been the most frustrating experience. I have always loved my iPads (this is my 3rd one) but I am seriously regretting paying for this one.

  • How to get updated table values from objectlistdataproviders

    how to get updated table values from objectlistdataproviders

    Hi,
    Here is a sample code
    start-of-selection.
    *Select the data you need into an internal table
      loop at it_mara into wa_mara.
    data that needs to be displayed in the output list
        write:/ box as checkbox,
                wa_mara-matnr under text-001,
                wa_mara-maktx under text-002,
                wa_mara-lgort under text-003.
    Hide the data that needs to moved to internal table
        hide:wa_mara-matnr, wa_mara-maktx, wa_mara-lgort.
      endloop.
      clear wa_mara.
    end-of-selection.
      lines = sy-linno.
    at line-selection.
      clear:it_matnr. 
      do lines times.
        check sy-index > 1.
        box = space.
        read line sy-index field value box.
        if box = 'X'.
    *data selected using check box is moved to internal table
          append wa_mara to it_matnr.
        endif.
      enddo.
    Regards,
    Jisha.

  • My iPod Touch has been stolen, someone offers me to make his mine. How can I erase the informations from his iPod and make sure that my library will copy in the new one?

    My iPod Touch has been stolen, someone offers me to make his mine. How can I erase the informations from his iPod and make sure that my library will copy in the new one?

    Restore it as new.
    iPod touch User Guide (For iOS 5.1 Software)

Maybe you are looking for

  • MM period / Year Closing Activity and inventory Valuation ??

    Hallow Experts ! At the time of Period end, we close the Posting Period in Transaction Code - MMPV. So as a Result system opens Next posting period Automatically. (Please Correct if i am wrong). At a time two posting periods are open, Current and pre

  • Purchase order price variance(PPV) accounts.

    Purpose is to add SAP inventory movement types to charge in inventory values,due to changing material numbers for purchased items,to the corresponding purchase price variance(PPV) accounts. ensure correct accounting for valuation changes that current

  • Ipod Updater Need Help

    I have a dmg file from the download and it will not install. What program should i use to install this?

  • Use of field "Open Item management" in Configuration of order types?

    Hi All, Can any body explain me the use of BOX for selectind or de-selecting "Open item management" field for order type in "Configuration of order types"? I need to understand the use of selecting it and not selecting it?

  • How to change order of files in a folder in Finder?

    Is there a way of changing the order that individual files appear in a folder, other than the few choices provided in "View Options -> Keep Arranged By"? I want to re-order some jpeg file in a folder to show as slides using the "Slideshow" option in