Human Task output variables (I need help I'm in a dead end alley)

Good evening to all. I have a human task, that receives this input in the input variable:
     <element name="ReadWriteHumanTaskProcessRequest">
          <complexType>
               <sequence>
                    <element name="numero" type="string"/>
                    <element name="apellidos" type="string"/>
                    <element name="nombres" type="string"/>
                    <element name="direccion" type="string"/>
               </sequence>
          </complexType>
     </element>
I append this to the payload of the task :
<bpelx:append>
<bpelx:from variable="inputVariable" part="payload"
query="/client:ReadWriteHumanTaskProcessRequest"/>
<bpelx:to variable="initiateTaskInput" part="payload"
query="/taskservice:initiateTask/task:task/task:payload"/>
</bpelx:append>
The JSP page shows fine, user modify the fiels, I can see in the Receive part of the Human task the fields that are modified:
<?xml version="1.0" encoding="UTF-8" ?>
- <task xmlns="http://xmlns.oracle.com/bpel/workflow/task">
<title>Another One</title>
- <payload xmlns="http://xmlns.oracle.com/bpel/workflow/task">
- <ns1:ReadWriteHumanTaskProcessRequest xmlns:ns1="http://xmlns.oracle.com/ReadWriteHumanTask">
<ns1:numero>1</ns1:numero>
<ns1:apellidos>q</ns1:apellidos>
<ns1:nombres>a</ns1:nombres>
<ns1:direccion>z</ns1:direccion>
</ns1:ReadWriteHumanTaskProcessRequest>
</payload>
I need to retrieve the value of the contet of the payload, I have tried this:
<copy>
<from variable="ReadWriteHT_1_globalVariable"
part="payload"
query="/task:task/task:payload"/>
<to variable="inputVariable" part="payload"
query="/client:ReadWriteHumanTaskProcessRequest"/>
During deploymet I got a warning about incompatible types in from-spec to-spect but it works anyway.
But the result is this:
<inputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload"><ns1:ReadWriteHumanTaskProcessRequest xmlns="http://xmlns.oracle.com/bpel/workflow/task" xmlns:ns1="http://xmlns.oracle.com/ReadWriteHumanTask"><ns1:ReadWriteHumanTaskProcessRequest xmlns:ns1="http://xmlns.oracle.com/ReadWriteHumanTask">
<ns1:numero>1</ns1:numero>
<ns1:apellidos>q</ns1:apellidos>
<ns1:nombres>a</ns1:nombres>
<ns1:direccion>z</ns1:direccion>
</ns1:ReadWriteHumanTaskProcessRequest>
</ns1:ReadWriteHumanTaskProcessRequest>
</part></inputVariable>
As you can see the payload is inside the input variable and I can't find a way in the copy to write anything but /task:task/task:payload.
I've see the samples and tutorials, those work but mine no. There is a way to get the values from the element task:payload ?

Hello to all. I´ve been trying to do something very similar to Ivan. I created a Human Task that has one Parameter called test which is a {http://www.w3.org/2001/XMLSchema}string. I then genereted a Auto Task Form so that I can update the value of this parameter in the worklist. So for so good. Now I want to get this value that was inputed in this variable and copy to a global variable that I have created, that has the same type: {http://www.w3.org/2001/XMLSchema}string
I followed the instructions above but had no luck. here is the code:
<assign name="CopyPayloadFromTask">
<copy>
<from variable="TesteFormulario_1_globalVariable"
part="payload"
query="/task:task/task:payload/client:TesteFormProcessRequest/client:test"/>
<to variable="FormReturn"/>
</copy>
</assign>
When I run the flow, it gives me this message:
<selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"><part name="summary"><summary>empty variable/expression result.
xpath variable/expression expression "/task:task/task:payload/client:TesteFormularioProcessRequest/client:test" is empty at line 175, when attempting reading/copying it.
Please make sure the variable/expression result "/task:task/task:payload/client:TesteFormularioProcessRequest/client:test" is not empty.
</summary>
</part></selectionFailure>
I have noticed that this is a general message. I´ve tryed changing the parameter name, from test do glauco, for instance, which doesn´t exist, and the same message is returned. What am I doing wrong?
Thanks
Glauco

Similar Messages

  • Accessing Human Task output parameters

    Hi all.
    I have encountered a problem that I find to be
    quite irritating. I have already searched the
    forum, and read through the threads regarding
    this topic, but still haven't been able to solve
    the issue.
    I have a simple type String variable
    ({[http://www.w3org/2001/XMLSchema]}string)
    called "myName".
    First, I'm initializing this variable with the
    String "none":
    {color:#333333}&lt;assign name = "setVariable"&gt;
    &lt;copy&gt;
    &lt;from expression = "string('none')"/&gt;
    &lt;to variable = "myName"/&gt;
    &lt;/copy&gt;
    &lt;/assign&gt;{color}
    Next, I'm passing this variable as an argument
    to a Human Task called "provideName", that has an
    modifiable attribute called "userName":
    {color:#333333}&lt;copy&gt;
    &lt;from variable = "myName"/&gt;
    &lt;to variable = "initateTaskInput" part = "payload" query = "/taskservice:initiateTask/task:task/task:payload/task:userName"/&gt;
    &lt;/copy&gt;{color}
    Finally, right after the Human Tasks receive activity,
    I'm fetching the alleged modified value, and copy it
    back to my variable:
    {color:#333333}&lt;copy&gt;
    &lt;from variable = "provideName_1_globalVariable" part = "payload" query = "/task:task/task:payload/task:userName"/&gt;
    &lt;to variable = "myName"/&gt;
    &lt;/copy&gt;{color}
    After deploying and starting the process, I claim the task
    on the worklist interface, modify the text field next to the
    label "userName" from "none" to "Tim", select "APPROVE" and
    hit the "GO"-button. I get the "your request was processed
    successfully"-notice, and the flow is reported to have
    completed, BUT: looking at the Audit Trail, I find that the
    variable "myName" actually hasn't changed it's value. It's
    still "none".
    What am I doing wrong? I'd be grateful for your help.
    Thanks!
    Tim
    Edited by: Tadhg207 (-&gt; format)

    No, I did not. Frankly, I didn't know you had
    to save the form before you submit it. I literally
    tried everything, but that.
    Thank you for answering both my questions, James,
    I've spent ages trying to resolve these issues.
    I'd promote you to Guru right away, but, alas, I
    only got a mere 20 points at my disposal. Those
    are yours, though.
    Thanks again. :)
    Question answered.

  • Wanted Main window only on Task bar ...Need help as soon as possible

    Hello All,
    We are creating one application.
    We have main window(JFrame) with four subwindows.
    By clicking buttons on main window the subwindows will be opened.
    By using Iconified method we are able to minimise all the subwindows when main window is minimised.
    But on the task bar all the windows are showed.
    But we want to show main window only on the task bar while minimising
    That means all the sub windows should come under main window.
    Will Deiconified satifies this condition while maximisation.
    Need some ones help.
    Thank You All.
    Rajiv.V

    Use show() and hide() on your subwindows instead of iconifying and deiconifying them. Minimizing a window should produce exactly the behavior you're seeing. Using the right tool will get you the right result.

  • Error code 3150 - Cannot find output destination. Need help to resolve

    I just installed a new router running DHCP and now I'm unable to reach my printer from all computers. The error code says "Cannot find output destination. Check the printer power connection, make sure the printer is switched on, and then try again.: -3150
    The printer is obviously powered on and connected to the LAN. There is an apparent IP address problem, however, I can ping the IP that seems to be loaded in the printer.
    I'm using Mac computers and I seem to have recurring IP issues with this printer.
    Thanks for any help.

    i am having the same issue as well.

  • No audio output - tried everything - need help

    I've got this message (with double cross over the icon) in my Toshiba U305-S5107 computer. I've tried
    to uninstall and install the new drive many times without result. Uninstall also yahoo music box and toshiba music player trying to avoid conflicts with windows media player.
    Any other idea? Thank you.
    Message Edited by Dokys on 03-01-2009 06:44 AM
    Message Edited by Dokys on 03-01-2009 10:23 AM

    Satellite U305-S5107 
    I've tried to uninstall and install the new drive many times without result.
    This driver (the newest one)?
       Realtek Audio Driver for Windows Vista
    If so, try this one.
       Realtek Audio Driver for Windows Vista
    -Jerry

  • Need Help!!! Another dead ipod!!!

    My 1st ipod click wheel 40 Gb ipod gave up the ghost after 9 months and decided to have its own electrical fire (wonderful). After 3 months of trying to get a replacement, the replacement won't work.
    I have downloaded the software, charged the new ipod, but it will only switch on if it is plugged into mains electricity. I can't get it to turn on at all if it is stand alone, or plugged into my computer. What is the matter? How can I get it to work?
    I am contemplating sending the **** thing back and getting my money back as I have almost had it!!!!!!:-#
    40 Gb Click Wheel    

    I am contemplating sending the ** thing back and getting my money back
    That ain't gonna happen.
    Try the 5Rs. If that does nto fix it, send it back for repair.

  • How to create tab pages in Human task Using Wizard

    hi,
    how to create tab pages in Human task Using Wizard.i need to display the personal details and the offical details in the same page with different tabs for each.it is possible to do lika this.if yes,how can we do this.
    Regards

    Stuart,
    Within a SAP Portal Tabs are not used like you want them to
    By default Tabs are used inside an iView and not to "tab" between iViews on a page...
    The most straightforward solution would be creating a custom PageLayout that you can assign to your page.
    I would sugest to implement this custom PageLayout with DIV layers and trigger "tabbing" via JavaScript eventing.
    For more infor on how to create a custom PageLayout take a look at here:
    [http://help.sap.com/saphelp_nw70/helpdata/en/42/efbac120711a71e10000000a422035/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/en/42/efbac120711a71e10000000a422035/frameset.htm]
    Good Luck,
    Benjamin Houttuin

  • Classes generated for Human Task UI

    Hi All,
    I created ADF UI out of a human task (using Automatically generate form option). After generating, I can see lot of .xml files under the HumanTaskForm package, in the newly generated project. I would like to know the way in which these classes (Java Bean) are generated under the HumanTaskForm package.
    Also, when I update some values in the UI page at runtime, I am able to see the change , in the response message of the HumanTask. I would like to know, from where the binding information come from, for those UI components, so that they are able to update!
    Kindly give me some good documents that would explain me regarding the bean classes generated for HumanTask.
    When I searched for the same, I could get the documents regarding the configuration of Human Task only. I need information regarding the Bean classes for Human Task.
    Thanks,
    Sabarisri. N

    Please post on the Jdeveloper and ADF Forum where you will get more help
    JDeveloper and ADF

  • Human Task : assign task to user at runtime based on some conditions

    HI ,
    I have a requirement that is, Assign task to users/ groups at runtime for approval based on material qty. please help me in design approach to achieve the same.
    thanks in advance.
    Guru

    Hi Guru
    You can achieve this with and without business rules. I am assuming you have a payload with element like "qty". In task details page or somehow, this gets filled. Now later on you can have like this:
    1. Without Business Rules:
    a) Lets assume you have human tasks like ApproverDefault, Approver100, Approver200, ApproverAll etc.
    b) After your first Task, add a XOR Gateway. Default path of XOR goes to ApproverDefault. Then you have like 3 more paths with Conditions like qty between 0 and 100 goes to Approver100. Qty between 100 and 200 goes to Approver200. Qty more than 200 goes to ApproverAll.
    Quantity
    No conditions (Default) -> ApproverDefault
    qty < 100 -> Approver100
    qty > 100 and qty < 200 -> Approver200
    qty > 300 -> ApproverAll.
    2. With Business Rules
    a) This needs some learning. Please do refer detailed online docs. I am just giving brief steps. Create extra fields of type Boolean in payload like AutoApproved, NeedApproval100, NeedApproval200, NeedApprovalAny etc. Have more meaningful names as per your requirement and human task though.
    b) You need to drag and drop Business Rules component and edit it in JDeveloper.
    c) First create a Bucket set with Range of Values for Qty field like -infinity to 0, 0 to 100, 100 to 200, 200 to infinity. You just enter rows like 0, 100, 200, and rest is taken care to add these Ranges.
    d) Now create Decision Rules. For each range, create a action and set the flag(s) appropriately.
    e) See hello world example for exact steps and full understanding.
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/obpm/11g/r1/firstProcess/firstprocess_obpm11g.htm
    Pros & Cons:
    a) Without Business Rules is very simple and straight forward. Quick and easy to develop and test. But if you want to control the range of values for qty, you need to modify the process and redeploy. Its kind of tight.
    b) Business Rules gives more flexible. You can change qty at run time, provided you use BPM Composer. But takes some learing and needs some debug if it fails like that.
    There are many differences and pros and cons. But above are the main ones.
    If you are a beginner, go with First Approach for now.
    Thanks
    Ravi Jegga

  • How to retrieve a due date from a human task and create a report in BAM with it

    Hi.
    I'm working with a BPM process, the requirement is that I have a human task and a working hours limit to complete it. For this purpose I created a calendar in the bpm workspace and I've associated it to a role that executes that human task. Now I need to know how can I pass it into a data_object in BAM in order to create a Dashboard that lets me know whether a human task was completed just in time.
    I'm using Oracle SOA Suite 11.1.1.7.0
    Thank you.

    There's a correction to the code. For whatever reason doing it that way still sets it as a "remind me when" parameter. Use the following code instead:
    tell application "System Events" to set FrontAppName to name of first process where frontmost is true
    if FrontAppName is "Reminders" then
              tell application "Reminders"
                        set duedate to (current date) + (2 * days)
      make new reminder with properties {name:"New Reminder", due date:duedate}
              end tell
    else
              display dialog "failed to make new reminder!"
    end if

  • Unable to add Human Task flow to composite

    Hi,
    I'm  learning SOA & building up Purchase Order SOA App.
    My Jdev ver is 11.1.1.6
    While I'm trying to Add a Human Task to Composite I'm getting below error stack.
    Invoking command: delete_namespace_from_adfconfig
    Invoking command: add_namespace_to_adfconfig
    Uncaught exception
    java.lang.NoSuchMethodError: oracle.mds.internal.dt.net.OraMDSDTURLConnection.getInputStream(Loracle/mds/core/MDSSession;)Ljava/io/InputStream;
      o.mds.internal.dt.net.OraMDSDTURLConnection.getInputStream(OraMDSDTURLConnection.java:124)
      j.net.URL.openStream(URL.java:1010)
      o.j2ee.ws.wsdl.xml.WSDLReaderImpl.openAsStreamConnection(WSDLReaderImpl.java:576)
      o.j2ee.ws.wsdl.xml.WSDLReaderImpl.readDocument(WSDLReaderImpl.java:438)
      o.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:377)
      o.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:627)
      o.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:269)
      o.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:240)
      o.tip.tools.ide.common.utils.wsdl.WSDLUtil.parseWSDL(WSDLUtil.java:1333)
      o.tip.tools.ide.fabric.model.SCAWSDLManager.loadWSDL(SCAWSDLManager.java:200)
      o.tip.tools.ide.fabric.api.WsdlInfo.readWSDL(WsdlInfo.java:254)
      o.tip.tools.ide.fabric.api.WsdlInfo.getAbstractWsdlLocation(WsdlInfo.java:475)
      o.tip.tools.ide.fabric.api.WsdlInfo.getAbstractWsdlLocation(WsdlInfo.java:466)
      o.tip.tools.ide.fabric.api.SCAControllerInterfaceImpl.addInterface(SCAControllerInterfaceImpl.java:322)
      o.tip.tools.ide.fabric.api.SCAControllerServRefImpl.addServiceInternal(SCAControllerServRefImpl.java:430)
      o.tip.tools.ide.fabric.api.SCAControllerComponentImpl.createComponent(SCAControllerComponentImpl.java:83)
      o.tip.tools.ide.fabric.api.SCAControllerImpl.createComponent(SCAControllerImpl.java:262)
      o.tip.tools.ide.workflow.ide.jdeveloper.JDevWorkflowProject.createComponent(JDevWorkflowProject.java:239)
      o.tip.tools.ide.workflow.ide.jdeveloper.JDevWorkflowProject.handleComponentCreation(JDevWorkflowProject.java:222)
      o.tip.tools.ide.workflow.ide.jdeveloper.JDevWorkflowProject.commit(JDevWorkflowProject.java:196)
      o.tip.tools.ide.workflow.util.CreateWorkflowCommand.doIt(CreateWorkflowCommand.java:75)
      o.tip.tools.ide.workflow.projectwizard.JDevProjectBuilder.createIDEProject(JDevProjectBuilder.java:72)
      o.tip.tools.ide.workflow.projectwizard.WorkflowCreationDialog.createProject(WorkflowCreationDialog.java:116)
      o.tip.tools.ide.workflow.projectwizard.WorkflowCreationDialog$1.run(WorkflowCreationDialog.java:100)
      j.lang.Thread.run(Thread.java:662)
    Please Help me out..!!!
    Thanks in Advance

    Its due to JDeveloper installation or cache issue...
    I uninstalled completely and installed again. I am able to create Human Task now. Maybe it helps someone.
    -Sudheer

  • BPM 11g deployment error when include Human Task

    During deployment, when I include a Human Task in my BPM 11g project, the deployment fails.  The error message in JDeveloper is:
    Weblogic Server Exception: weblogic.application.ModuleException:
    Caused by: weblogic.common.ResourceException: weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: [unixODBC][Driver Manager]Data source name not found, and no default driver specified
    If I don't include the Human Task application in deployment, it's fine.  I used the Auto Create feature to generate the ADF project/form.  I've deleted and recreated the Human Task, but that hasn't helped.
    What can cause this error?  I've googled for days, but have not found anything similar.

    Kunwar - Thank you very much for your reply.  I checked in EM under Applications, and there is no application with the name of my Human Task application that is part of my BPM project.  To be sure, I just rebooted the server and checked again, but it is not there, and the reboot did not solve the problem.
    I'm not sure if this is related to the problem, but here is some other information.  A few days ago when I tried to redeploy just the BPM project (keeping save revision, and checking "Overwrite any existing composites"), I received a null pointer exception error.  Since then, I must Undeploy the BPM Application using EM to then redeploy it using JDeveloper.  Here is the error I was getting:
    [08:03:59 AM] Sending archive - sca_PERAC91A_rev1.0.jar
    [08:04:07 AM] Received HTTP response from the server, response code=500
    [08:04:07 AM] Error deploying archive sca_PERAC91A_rev1.0.jar to partition "default" on server AdminServer [http://soabpm-vm:7001]
    [08:04:07 AM] HTTP error code returned [500]
    [08:04:07 AM] Error message from server:
    There was an error deploying the composite on AdminServer: Error occurred during deployment of component: PERAC91A to service engine: implementation.bpmn, for composite: PERAC91A: java.lang.NullPointerException.
    [08:04:07 AM] Check server log for more details.
    [08:04:07 AM] Error deploying archive sca_PERAC91A_rev1.0.jar to partition "default" on server AdminServer [http://soabpm-vm:7001]
    [08:04:07 AM] ####  Deployment incomplete.  ####
    [08:04:07 AM] Error deploying archive file:/D:/Data/consulting/AllStar/PERAC/Dev/JDeveloper/PERAC91A/PERAC91A/deploy/sca_PERAC91A_rev1.0.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)

  • Unable to create Human Task and Business Rule in JDeveloper

    Hello,
    I am unable to create Human Task or business rule in my JDev... am getting below error in Feedback tab.
    Previously reported error [NoSuchMethodError in o.mds.internal.dt.config.NamespaceConfigBuilder:397]
    And Below is the message log trace.
    Oct 15, 2012 12:58:51 PM oracle.security.jps.internal.common.util.StrictValidationEventHandler handleEvent
    WARNING: Failed to validate the xml content. SchemaLocation: schemaLocation value = 'http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd' must have even number of URI's. Location: unavailable.
    Oct 15, 2012 12:58:51 PM oracle.security.jps.internal.common.util.StrictValidationEventHandler handleEvent
    WARNING: Failed to validate the xml content. cvc-complex-type.2.4.b: The content of element 'propertySets' is not complete. One of '{"http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd":propertySet}' is expected. Location: unavailable.
    Oct 15, 2012 12:58:51 PM oracle.jps.common
    WARNING: Failed to validate the xml content. cvc-complex-type.2.4.b: The content of element 'propertySets' is not complete. One of '{"http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd":propertySet}' is expected. Location: line 3 column 19.
    Any idea/suggestions would be greatly helpful.
    Thanks,
    Sudheer

    Its due to JDeveloper installation or cache issue...
    I uninstalled completely and installed again. I am able to create Human Task now. Maybe it helps someone.
    -Sudheer

  • Retrieve IWorkflowContext  in a Human Task Custom Escalation

    Hi,
    We have a requirement to use ITaskQueryService to query task details in a custom escalation for a Human Task (implements IDynamicTaskEscalationPattern) and need to get handle of existing IWorkflowContext. We do not have user and password to create a new IWorkflowContext in the custom escalation class. I appreciate if anyone could suggest any solution?
    Thanks!

    Hi,
    Any suggestions please...
    Thanks!

  • I have successfully downloaded Photoshop Elements but did not get an e-mail and do not have a registration # and need help getting one/

    I have successfully downloaded Photoshop Elements 13.  I did not receive an e-mail with the registration number but did get verification of email address.  I have been through all the help sights and only reach dead ends.  Help!

    Photoshop Elements is not part of the Cloud, I will move this to that forum
    Photoshop Elements Forum http://forums.adobe.com/community/photoshop_elements
    Select a topic, then click I STILL NEED HELP to activate Photoshop Elements Online chat
    -http://helpx.adobe.com/contact.html?product=photoshop-elements or
    http://helpx.adobe.com/photoshop-elements/kb/troubleshoot-installation-photoshop-elements- premiere.html

Maybe you are looking for

  • Iphone 4 is not recognized by itunes, will not sync, charge indicator icon does not come on when hooked to usb charger

    When I hook my iphone 4 up to itunes, it does not show up on the left. It will not sync, and the lightning bolt charging indicator on the phone does not come on although it appears to be charging over time because the battery level has increasd. I am

  • AP Aging with Doc Currency?

    Dear Experts, I am trying to get the AP Aging by Document Currency (instead of Local Currency) using the format as per S_ALR_87012078 (instead of S_ALR_87012085). I have created a from copy from 0SAPDUEAN-01 but I could not find any characteristic th

  • Insert and update tables from SQL server to oracle database tables

    Hi, I am having problem while update data from sql server to oracle database tables. I am doing one way insert +updates that is from SQL Server tables ==> Oracle database tables I am using tools Sql server Integration service. I can insert data from

  • Detail info on SAP-ABAP interfaces

    Hi experts,                  i need detailed info on abap interfaces,  means  what are all interfaces in ABAP & how that will work ......i would like to know that BDC program  comes under interface or not ..... Thanks in advance

  • Resource adaptor

    I am trying to use the Resource Adaptor for IDM6 with Lotus Notes/Domino 7.x. Are there any issues?