Problem update the payload using the API of Services of Workflow task

I have problems to update the part of the payload of a task by using the API of Services of Workflow (10.1.3) using the SOAP protocol. Try to use the setPayloadAsElementmethod, it seems, that the element of the payload is deleted rather than being defined.

The purpose of the payload is constructed as follows:

DocumentBuilder builder is DocumentBuilderFactory.newInstance () .newDocumentBuilder ();.
Document document = builder.newDocument ();

Support useful item = document.createElementNS ("http://xmlns.oracle.com/bpel/workflow/task", "payload");
Child element = document.createElementNS ("http://xmlns.oracle.com/pcbpel/test/order", "command");
payload.appendChild (child);

The following lines are used to retrieve and update the subject of the task:

IWorkflowContext context = getWorkflowContext (userId);
Task task = taskQueryService.getTaskDetailsById (context, taskId);

task.setPayloadAsElement (payload);
taskService.updateTask (context, task);

However, for some reason, it seems that the payload is not set correctly and in time updateTask is called on the TaskService object, payload of the task is not available. In turn, this causes an error when the SOAP request must be encoded (since the WorkflowTask schema requires a "payload" element).

I run the code in a debugger and noticed that the the task object has a field nodeArray, which initially contains an element of payload. After the call to setPayloadAsElement has been run, no element of the payload is present in the field of the nodeArray and the mIsPayloadChanged field has been set to true.

Code is taken almost directly from one [example in the documentation of the API: http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28985/oracle/bpel/services/workflow/task/model/TaskType.html#setPayloadAsElement_org_w3c_dom_Element _] and I'm completely lost as what to do differently. Could there be a problem with the way the Document object is built?

Everyone knows about similar problems? Any guidance would be appreciated.

See you soon,.
Emil

P.S. I also tried to spend in an element of payload without child element that does not work either.

Hi Emil,

Your code looks ok. However, I use the oracle.bpel.services.common.util.XMLUtil object to generate the document object.

Document document = XMLUtil.createDocument ();

was soon Nicolas

Tags: Fusion Middleware

Similar Questions

  • Problem when the API update for 10.2.0.1155

    Hi all

    I get error 'Change in API level' when I'm updating the API level.

    For more information please see the attached screenshot.

    Please suggest any solution for this its urgent.

    Thanks in advance.

    Similar thread with answers here...

    http://supportforums.BlackBerry.com/T5/native-development/new-10-2-Gold-install-API-error/TD-p/25468...

  • My CD/DVD on computer does not work and I can't update the Office XP Service Pack 3. Microsoft can do for me?

    The CD/DVD on my computer does not work and I can't update the Office XP Service Pack 3.  Microsoft can do for me?

    Hi Nancy,.

    I suggest you provide more details as to how the problem came to be or how and when it happens. There are many experts here, but you must give specific details
    See you soon ~
  • problem updating the contract line using OKC_CONTRACT_PVT.update_contract_line

    Hi all

    I am facing a problem trying to update the end of contract line dateusing the api OKC_CONTRACT_PVT.update_contract_line. When executing the procedure that calls the api it returns the State S without error and also update the table of base that is OKC_K_LINE_B with new end date successfully.

    The problem is that whenever I'm if commit the changes to the front end, application - contract line record gets endangered. What is happening to all instances of the element. Here are the settings I am passing through the api,

    p_chrv_rec.ID: = < id for row in the okc_k_lines_b table >;
    p_chrv_rec.end_date: = < new_end_date >;
    p_chrv_rec. VALIDATE_YN: = 'N'; -I don't want the api to validate attributes

    Please note that the api is correctly updating the record base table but not able to display in the application. I tried to compare the same record before and after the update to confirm if no value of the indicator is is changed due to the record does not appear in applications. but there is no such changes except the new date and the annualiazed_factor. Can is it you pls let me know no work around as if any option profile must be changed to achieve the same.

    Navigation to the im application to check the update new end date of contract line is:

    Oracle Install Based Agent user-> Instance element-> contracts

    Thanks in advance.

    Kind regards
    Hespel.

    Published by: user10545574 on July 8, 2010 06:56

    Hello

    Shouldn't you be using the public api (OKC_CONTRACT_PUB) rather than the private sector? By directly using the package private, you are probably bypassing some features that could cause problems like the one you are talking about.

    Kind regards.

  • Updated the API levels

    Hi all

    I installed the Momentics IDE on a Win10 and a Win7 PC and when it comes to installing any of the native SDK for Blackberry 10, I get "'Change to the API level' has encountered a problem"

    Details:

    There was an error updating SDK. Press the Details button to review the error.
    SDK Install or Update Operation operation failed: An error occurred while installing the items
    An error occurred while installing the items
    session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]bbndk.win32.cshost.10.3.1.995 1.0.0, action=com.qnx.tools.ide.sdk.manager.core.actions.SdkManagerInstallAction).
    error in opening zip file
    error in opening zip file
    An error occurred while installing the items
    session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]bbndk.win32.cshost.10.3.1.995 1.0.0, action=com.qnx.tools.ide.sdk.manager.core.actions.SdkManagerInstallAction).
    error in opening zip file
    error in opening zip file
    

    The above example is 10.3.1 Although it happens on any of them. When I tried to file a bug report, I get

    An error occured sending the report. Please try again.   
    
    Reason: Moved Permanently
    

    I tried:

    • remove the bbndk and relocation directory
    • Change the permissions on bbndk to full control for all users
    • installation on a FAT32 volume
    • building a machine virtual from Windows Installer media and running the IDE install on it.

    Is there a way to download/install the SDK outside of the IDE?

    It is difficult, but it is possible to download and manually install the API level, but you need to know the exact URL of each file API, you need.

    Two useful links...

    https://supportforums.BlackBerry.com/T5/native-development/how-do-I-install-the-SDK-BB10-offline/TD-...

    https://supportforums.BlackBerry.com/T5/native-development/manual-installation-of-BlackBerry-API-for...

    Some of my own instructions for this are in that first link.

    rsngb2 wrote:

    I was hoping I could get the files required by other means (FTP or other). Also, I was wondering if someone else could download an any of them from the IDE.

    I get that I'm late game here since BB10 is practically an orphan, but I still have some ideas that I want to try on the platform.

  • Problem with the latest Vista Service Pack Update

    Recently, I have intalled SP2 on my computer.  It seems to work very well on my desktop, but when I installed it on my laptop, it went through step 3 Setup (after the break).  At this point, it says it installs and shows 0% installed for several minutes, date at which it says stop, then it restarts and goes to step 3 Installing and this all over again.  I read in the installation it would probably close and restart the computer several times.  However, after about 3 hours of this continuous stop and restart, I get the same result.

    I had to hard boot the computer date to which I tried to restart in 'Safe Mode '.  I thought take it back to a restore point and forget the update.  However, it continues to do the same thing and so I'm TOTALLY unable to use my laptop.  HEEEEEEEEELLLLLLLLLLLLLLLLLLPPPPPPPPPP!

    Hi TM1Designer,

    Try the method below and check if this help.

    Method 1: Perform the clean boot your computer.

    From your computer by using a minimal set of drivers and startup programs so that you can determine if a background program is interfering with your game or program. This type of boot is known as a "clean boot".
     
    To perform a clean boot on a computer, follow these steps.
    1. click on start, type msconfig in the search box and press ENTER.
     
    If you are prompted for an administrator password or a confirmation, type the password, or click on continue.
     
    2. in the general tab, click Selective startup.
    3. under Selective startup, clear the check box load startup items.
    4. click on the Services tab, select the hide all Microsoft Services check box, and then click Disable all.
    5. click on OK.
    6. When you are prompted, click on restart.
    7. after the computer starts, check if the problem is resolved.
     
    Please follow the system in the boot environment. If the problem does not occur, it indicates that the problem is related to an application or a service, we have disabled. You can use the MSCONFIG tool again to reactivate the disabled one by one element to find the culprit.
     
    If your issue is resolved, follow the how to determine what is causing the problem section in KB article to narrow down the exact source.
     
    For more information visit: http://support.microsoft.com/kb/331796
     
    After you determine the startup item or the service that is causing the problem, contact the manufacturer of the program to determine if the problem can be solved. Or, run the System Configuration utility, and then click to clear the check box of the element of the problem.
     
    To restore your computer to a Normal startup mode, follow these steps:

    1. click on start in the box start the search.
    2. type msconfig and press ENTER.

    If you are prompted for an administrator password or a confirmation, type the password, or provide confirmation.

    3. on the general tab, click Normal Startup - load all device drivers and services and then click OK.
    4. When prompted, click on restart.

    Hope this information is useful.

    Umesh P - Microsoft Support

  • problem with the API FileI/O

    I want to download an image and stored in the folder on the SD card, using the API File I / o.

    is not working with blackberry.io.file.saveFile (filePath, blob);

    Here is my code:

    filePath = "file:///store/home/user/myPicture/sample.png"; var

    $.get (url, {function (data)})

    If (data! = null) {blackberry.io.file.saveFile (filePath, data) ;}}

    Alert ("file saved");

    },

    "png");

    I have this Exception:

    java.lang.IllegalArgumentException: invalid type - class java.lang.String running on line 277:

    blackberry.io.file.saveFile(filePath,data);.

    Help me plaiz

    I managed to solve the problem

    I analyzed the api data in blob with gear

    Request.onreadystatechange = {function (callback)}
    If (request.readyState is 4
    (& (request.status == 200 | request.status == 0)) {}

    If {(request.responseBlob)
    Alert ("request." "") "'BLOB');
    blackberry.io.file.saveFile (filePath, request.responseBlob);
    Alert ("file saved");
    } else {}
    Alert ("no request");
    }
    }
    };
    Request.Send (null);
    }

  • Problem invoking the api rest of VCO NSX

    Mary I currently works with VCO and NSX for my license thesis and a few problems when you try to use the api NSX in a VCO workflow.

    I use the built-in VCO which comes with VRA 6.2 and NSX 6.1.3 all living inside a Vcenter 5.5
    I'm just getting started with this and at the moment I just want to create a workflow that performs a GET request to a < nsx-Manager-IP >/api/versions.
    I do this by using workflows of VCO HTTP REST she draws vco.

    First I ran 'add a host REST' and set the URL to < nsx-Manager-IP > who succeeded

    Then 'Add a REST operation' with/api/versions URL model that also succeeds

    To test this, I ran "invoke an operation REMAINS" and selected my newly established operation, that's where I met a wall,

    This workflow fails and throws the exception: connection pool stop (Workflow: call operation of REST / REST call (item0) #6)

    The thing is I'm having a very difficult time to find what means this error, so any help would be really appreciated

    More information:

    I tried to send the same exact request with the Postmaster and who returns the deal answer Yes at least by now I'm pretty sure that the error has something to do with something inside the VCO
    Also I tried to write the address to the Manager of NSX as FULL domain name and it's IP address without change
    Oscar

    Connection pool closing... known, issue install the plug-in here: Technical preview of REST plugin version

    .. You will probably need to re - create your host REST and operations, but after that, your calls should work.

  • Problem update the content item...

    Hello

    When I'm trying to update the content item, I get following error.

    Cannot run the service UPDATE_DOCINFO_BYFORM and populateMissingDocumentValues function.
    (System error: service 'populateMissingDocumentValues' method is not set.).

    Does anyone know how to fix this error?

    Is - this Stellent 7.5.1 on Unix platform? Maybe the problems are related to the new bug 7635248.

    When you use the service CHECKIN_UNIVERSAL and 751 components update (build 77) and ZipRenditionManagement 06_12_18 (build 30) are enabled, the following error occurs.
    System error: the method of service 'populateMissingDocumentValues' is undefined. This error is caused by a problem in the ZipRenditionManagement component.
    Installation of the component of the last CS10gR35UpdateBundle ZipRenditionManagement solve the problem.

    Kind regards
    Boris

  • problem updating the ini file ini file

    I get the ip address of the user's input and to replace the old IP in the .ini to the last ip address file but the problem is when a user enter the IP and I write it in my ini file it does not at once, but if I do it twise in calling the same function of my command button twise then my ini file is updated , it is the strage iniwrite function returnes success although on first attempt. I checked with breakpoint, but when I do it twise, then it is done, please guide me in detail, I am really amayzed by this strange behavior...

    I already gave you the exact order of the functions in my previous message!

    Ini file tool generates an object in memory that allows you to store and locate the values. This object can be filled in reading a file on the disk; Similarly, it can be saved to a file on disk. This is the very first operation and the last to perform if you want a picture to date of your values on the disk. There are three layers to consider:

    1. The file on the disk

    2. The IniText object in memory

    3. The variables specific to your program

    With this in mind, the right order to update the file on the disk so that it reflects the value that your variables have in memory is:

    Ini_New create the object in memory

    Ini_ReadFromFile fill it with the contents of the disc

    Ini_get('sendmail_from') read of the idebugprogramnode2 memory in your program variables

    Here tou can update the values of program

    Ini_Put update the object of memory with the contents of your variables

    Ini_WriteToFile save everything on the disc

    Memory Ini_Dispose clear

    As you save on disk before you call the Ini_Put functions, the disk image is not updated

  • BlackBerry 10: Problem in the API Bluetooth SPP

    Hi all

    Anyone used Bluetooth SPP API SDK 10 Blackberry?

    I used bt_spp_open to connect to a remote server SPP (paired already manually), but the API always returns ENODATA.

    bt_device_init and bt_spp_init was successfully called before the API above.

    The parameters used for the bt_spp_open were:

    (1) the address of the server, mac

    (2) (service UUID which was '0 x 1101',

    (3) true for the non-blocking mode

    Version of OS used target device: 10.0.9.388

    Anyone with experience on the use of Bluetooth API in BB10. Help, please... Thanks in advance.

    For the service book uuid, you must provide a unique UUID that identifies the partucular your server service. 0 x 1101 is not the Service Id, but the ID of the Type of Service for the SPP.

    When you register the server on a remote device (server) use you a 16 unique service uuid numbers to bt_spp_open_server. It's the same uuid that you should bt_spp_open on the client side

  • Problems about the API implementation host of 'assets' to 'maintenance '.

    Hi all

    A requirenment I need to meet is to change the host in a datacenter of 'smart host' for 'maintenance host.

    Is there an api call to achieve this goal, or other approaches? Thank you.

    Ronnie

    We use VCO to do that and use wrapper methods.

    vcHost.enterMaintenanceMode_Task

    is the name of the called method (this is the version that returns as a task) - I don't know if this is useful or not.

  • Problem updated the BIOS on Satellite A300

    You update the BIOS in the model of laptop A300 psagce after the update, the device to be exposed to something.

    Please help very necessary

    To be honest, I don't understand how you mean exactly.
    Can you please explain a bit more detailed what you have noticed after updating BIOS exactly?

  • Fix - It says no problem, updates the load but will not be installed. Error 'WindowsUpdate_0000057A' "Windows update_dt000".

    Fix there work and corrected updates, but updates the load upwards and will not be installed. Error 'WindowsUpdate0000057A' 'Windows update_dt000' on control spent installs almost all office 2003, Excel, Word etc failed sine 5/12 2012.

    See if this helps: http://support.microsoft.com/kb/906602

  • Problem with the installation of service pack 1.

    First - thanks to Bill Smithers for your answer.

    My problem is the following: -.

    Windows has downloaded about six copies of sp1 and always asks me to install another copy!

    Whenever I go to 'update' he asks me to install another copy!

    When I tried to download the sp2 it says I need sp1 must be installed first! But my page update says that it was properly installed.

    Do I need to uninstall SP1 multiple copies? and start again?

    I use Vista home Premium 32 bit and make me a little frustrated to say the least of it.

    I need of sp1 and sp2 for some programs to work. Help!

    Best regards, David

    I had exactly the same problem and it seems to have other, judging by the number of threads on this topic.

    Yesterday, a response to a thread suggested a hyperlink through the Windows Download Center. I tried and for some inexplicable reason, it worked. I have now installed SP1. It shows in my system tray and is no longer updated tells me to install it. The hyperlink is http / / www.microsoft.com/en-us/download/details.aspx?id=910

    Worth a try.

    My next challenge is to install SP2!

Maybe you are looking for