Human Task task's parameters as combobox

Is posible to show a Human Task's parameter as a <select> in its auto-generated form? I mean, without editing the generated jsp manually.
I'm using SOA Suite 10.1.3.1.0 and JDev 10.1.3.3
Thanks
Neuquino
Message was edited by:
Neuquino

Is posible to show a Human Task's parameter as a <select> in its auto-generated form? I mean, without editing the generated jsp manually.
I'm using SOA Suite 10.1.3.1.0 and JDev 10.1.3.3
Thanks
Neuquino
Message was edited by:
Neuquino

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.

  • Problem in mapping Task payload parameters to Oracle Business Rules facts

    Hi all,
    We are using complex types from our project XSDs inside the Human Task payload. We intend to use these Human Task payload parameters to build routing rules using the Oracle Business Rules interface. Our observation is that when the complexity of these complex types increase, the business rules editor does not show these as facts that can be used in formulating rules.
    Has anybody faced such a problem before. Any help is appreciated.
    We are using the following link to add routing rules –
    http://docs.oracle.com/cd/E25054_01/dev.1111/e10224/bp_decision.htm
    Version details :
    ADF Business Components     11.1.1.60.13
    Java(TM) Platform     1.6.0_29
    Oracle IDE     11.1.1.5.37.60.13
    SOA Composite Editor     11.1.1.5.0.01.74
    Thanks,
    Yamini.

    Problem solved. There was an element in the xml schema that had nillable = true. Because of this the XML Fact for that element would no longer be available in the BPEL Process. Removing the nillable and generating the XML Facts again solved the missing variable problem.

  • Human Task – Using expressions in task parameters

    Hi All,
    In my BPEL process I have a Human Task with about 15 task parameters. I'm trying to define BPEL variables to each and every parameter. I am able to select a type 'variable' variable (ie. /ns18:OutputParameters/ns18:street_name) from tree view and save.
    However, whenever I click on the little flash-light icon and create a type 'expression' using the XPath expression builder I'm having problems saving the change.
    In details this is what happens,
    0.) Double click on Human Task
    1.) Click on flash-light icon in front of a parameter.
    2.) Select Type expression variable.
    3.) Click XPath expression builder.
    4.) Select conversion function 'string()' and double click to add.
    5.) Double click on the required BPEL variable to add.
    6.) Something similar to the following expression is created,
    string(bpws:getVariableData('InvokeGetAllABCInformation_FetchABCInformationService_OutputVariable','OutputParameters','/ns18:OutputParameters/ns18:ACC_ID'))
    7.) Click OK twice and then Apply/OK to go back to BPEL diagram view.
    8.) Now at this point the BPEL is not saved and the tab-title is italic to show it’s unsaved.
    9.) Save the BPEL to disk.
    10.) Double click on the Human Task to show parameters and variables defined.
    11.) The previously defined expression type variable is still there.
    12.) However now if I click either 'Apply' of 'OK' buttons without making any changes the BPEL diagram tab-title becomes italic and when the BPEL is saved to the disk, it forgets about all the expression type variables that was previously defined. Also note that cancelling wouldn't change anything.
    This is a serious issue as I can't change any setting to a Human Task parameter list, as every time I make a change, I loose all the expression type variable declarations.
    Could this be a bug in JDeveloper?
    My JDeveloper Studio Edition Version is: 10.1.3.3.0.4157
    Any help on this would be greatly appreciated.
    Thanks.
    Shaminda.

    ok, looks like no one knows what's going on,
    Here's the workaround that I came up with, If anyone is interested.
    Create a custom XSD (schema) with required variables in it (to be used by expression types vars), and use a copy operation before the human task and create the expression types in there. Then use the schema to map the values to the human task.

  • Human task jsp customization assign calculated value problem...

    We customize human task jsp and add some field.
    We want assign a calculation result to a task variable...
    autogenerated HTML inbup box name is slns0_cl_task_sl_ns0_cl_payload_sl_ns1_cl_bim_Myprocessname_myparametername..
    is it possible to assign a value using this name ? is it correct way?
    is there any other way yo do it..
    Thanks...

    Thansk..
    I tried to use javascript. but I need ro add a combobox to the payload body jsp page.
    Because buid-in Oracle SOA procedures try to forward all parameters "object doesn't support this property error occurs..."
    So question is ...
    How can I add a combobox on payload body jsp pages ?
    Thaks..

  • Human task jsp customizatioın problem...

    We customize human task jsp and add some field.
    We want assign a calculation result to a task variable...
    autogenerated HTML inbup box name is slns0_cl_task_sl_ns0_cl_payload_sl_ns1_cl_bim_Myprocessname_myparametername..
    is it possible to assign a value using this name ? is it correct way?
    is there any other way yo do it..
    Thanks...

    Thansk..
    I tried to use javascript. but I need ro add a combobox to the payload body jsp page.
    Because buid-in Oracle SOA procedures try to forward all parameters "object doesn't support this property error occurs..."
    So question is ...
    How can I add a combobox on payload body jsp pages ?
    Thaks..

  • ADF forms based on BPM human tasks - Invoking webservices/view objects.

    Hi All,
    Is anyone aware of whether the following is a valid implementation that has been carried out before.
    1. ADF forms based on BPM 11G human tasks.
    2.The ADF forms invoke webservices via Webservice data controls. It is pertinent to note that the webservice bring back complex data types. We've tried writing a few forms, resulting in data benig brought back, but not being able to print them to the screen.
    3. The ADF forms also use View Object based on sql to bring back tables of data. If view objects are embedded within the forms, the applciation gives rise to a null pointer exception.
    Considering the form will be invoked via a BPM worklist entry, is there a setting or configuration we should consider before hand. Is this feasible, is there knowledge of this being done commercially.
    Any examples or information regarding the same will be immensely helpful.
    Thanks and Regards,
    Preethi.
    NB : I have posted this in the BPM forum as well as I feel it is relevant to both BPM and ADF.

    Hi Joonas.
    Plese let me explain me better for your understanding
    A big summary for what I meant it's the following:
    1- In the procces you made, when you add the HT activity, you have to implement it, this means declare the input(s) parameters you want. This implementation create the .task file.
    2- Create an application, and projects as HT you have. Each poject are based on the .task file, and automatically create a Data Control (for each project based on a .task) with all you need.
    This w'll be an empty application, so you can customize it all you want. The task selected should have all the parameters previously defined. Those parameters can change if you want.
    2- Create a page(s) in the task flow for the task implementation. You can even split the the payload of the task in differents pages, create your custom pages and any logic you need.
    3- An important aspect is how to match these application with the HT implemented in the process. It's possible, it's a configuration en the Enterprise Manager.
    4- Deploy your application
    All these are explain in the book I mentioned
    Th book you can find it here:
    https://blogs.oracle.com/soacommunity/entry/oracle_soa_suite_11g_handbook_1
    Regards Dariel.
    PS: Please, let me know if you need more details.

  • Error while deleting instances and Human Tasks arent deleted

    Hi,
    The Error:
    Cannot delete instances.
    The process domain was unable to purge the instances from the datastore. The exception reported is: [POL-5130] table or view SYSTEM.WI_FAULT not found
    Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid.
    sql statement: DELETE FROM wi_fault WHERE domain_ref = ?
    When I query tasks over a jsp i also get the uncompleted human tasks from the deleted instances ( the try to delete them, i think they are there, but in the BPEL Console i cant see them anymore).
    The Error occured since i patched my oracle soa suite 10.1.3.1 to 10.1.3.3.
    What can I do?
    I hope someone can help me.
    My best Regards

    I think you didn't ran the upgrade-script when you've installed the patchset 10.1.3.3 to your bpel environment.
    Check the readme file of the patchset and you will see in the post-installation tasks you need to run the upgrade-script to patch your database environment as well.
    Kind regards,
    Nathalie

  • Working with Human Task Service

    Hello everybody,
    I'm trying to do some exercises with Human Task Service and ADF, but I have no clue how to do it. Ok here is what I'm trying to do. I've got a small BPMN process, which calls a WebService and gets a list of locations. Afterwards the locations are passed to the user task. A location is composed of the following elements: street (string), city (string) and a zipcode (integer).
    The user should be able to select a startLocation, an endLocation and a startDate when he wants to do his trip. The result should be passed to the process.
    So far I've created an Human Task with the following parameters: a list of locations, a start location, an end location and a date. I used the autocreation tool to create an adf form. The tool always creates a single table for the locationList and uses input fields for all the elements of startLocation and endLocation. But I want to use 2 selectOneChoice lists, one for startLocation and one for endLocation. An item in the selectOneChoice list should be a single String containing street, city and zipcode.
    Could somebody tell me the basic steps to do so? Where and how can I do the transformation of a 'location' into a single string and vice versa? How to bind a selectOneChoice to locationList and startLocation?
    Thank you in advance, Chris

    You should be able to drag the parameter of the method over to the page and choose to drop it as a selectOneChoice component - you'll then need to bind it to a data control that will provide the possible list of values.
    Here is how you would do this conversion of a parameter to a dropdown list in an ADF BC case:
    http://blogs.oracle.com/shay/2009/12/adf_query_with_parameters_and.html

  • Task Flow based on Human Task

    Hi,
    I have created a Task Flow based on Human Task in the Ui project. The task flow is auto -generated with the taskdetails.jspx as the default activity. If I try to include a ExceuteWithParams method in the task flow as the default activity the page gives a 500 Error in the workliist application.
    Can I no have a method activity as the default activity in this task flow.
    Thanks
    Soumya

    Are you trying to set "Create with parameters" as default task flow activity ? in that case open the the task flow diagram , right click "Create with parameters" data control -> Mark Activity -> Default Activity.

  • Accessing Human Task Payload from ADF Task Flow

    Hi
    Using jDeveloper 11g TP4 SOA...
    The scenario is this:
    1. We have created a Human Task which has parameters accountId and accountType in the payload.
    2. We have then created a Task Flow based on that human task.
    3. Inside the web folder with task flow we have *4 task display forms* (jspx pages).
    4. In the task flow we have the 4 pages and then a router
    5. Now we want the router to look in the payload of the human task and based on the accountType redirect to the correct task display form.
    Problem: We can't access the human task data control from the router in the task flow.
    Does anyone have some insigt into how we can read the accountType from the payload and then pick the correct task display form?

    Hi victor,
    i'm using a SOA(OSB) based task service, but i think that you have to use a "task service" (or something like this) to update your task
    this is my routine
    public Task updateTask(Task task) throws Exception {
    TaskServiceContextTaskBaseType taskUpd =
    new TaskServiceContextTaskBaseType();
    taskUpd.setWorkflowContext(getWorkFlowContext());
    taskUpd.setTask(task);
    return taskService.updateTask(taskUpd);
    where taskService is the port of my proxy.
    Hope this help

  • Problem in creating Human Task Activity in JDeveloper

    Dear Experts,
    I'm very new to JDeveloper & Oracle Bpel PM Server. So I'm trying with sample & demo application.
    I'm facing lots of issues. Kindly guide me to learn Jdeveloper.
    Now I'm trying with "Vacation Request" Application to learn about "Human Task" activity. Also
    I have gone through lot of documents respective to "Human Task" Activity. Still i'm facing problem in
    Implementation.
    +Error: Unable to save *.task file. (Reason system cant find the path specified..
    Des: Can not able to create a new Human Task activity. Also not able to map xsd parameters with
    Dynamic user path........ please suggest me a solution.
    Thanks
    Rajesh

    Please help me in developing Simple "Human Workflow activity" with proper examples or tutorials.

  • How to get the user logged at worklist (Adf Form - Human Task)

    Hi,
    I have an Adf Form Based on Human Task and and need to get the user logged at Worklist Application.
    Anyone know to make this ?
    Thanks.
    Victor Jabur

    Hi, thanks for your reply, but i discover a better way to make this:
    public String getLoggedUserWorklist(){
    String user = "";
    try{
    Map parameters=AdfFacesContext.getCurrentInstance().getPageFlowScope();
    IWorkflowServiceClient wfSvcClient = WorkflowService.getWorkflowServiceClient();
    ITaskQueryService queryService = wfSvcClient.getTaskQueryService();
    String contextId = (String)parameters.get("bpmWorklistContext");
    IWorkflowContext context = queryService.getWorkflowContext(contextId);
    user = context.getUser();
    }catch(Exception e){
    user = "";
    return user;
    }

  • Unable to select an outcome in human task

    Folks,
    I’ve been trying to get a simple human task to work but as of yet I am unable to. I’ve followed the instructions in the BPEL Process Manager Developer’s Guide (10.1.3) and am using the “Auto Generate Simple Task Form” to create the display.
    I can deploy the process without incident and am able to claim the task and see parameters passed in. I am not, however, able to see or select the outcome (which I have defined as ‘Approve’ and ‘Reject’).
    The .task file is as follows:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <taskDefinition targetNamespace="http://xmlns.oracle.com/human_work"
                    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
                    xmlns:ora="http://schemas.oracle.com/xpath/extension"
                    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
                    xmlns:task="http://xmlns.oracle.com/bpel/workflow/task"
                    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                    xmlns="http://xmlns.oracle.com/bpel/workflow/taskDefinition">
       <name>human_work</name>
       <id>${domain_id}_${process_id}_${process_revision}_human_work</id>
       <title>Task!</title>
       <priority>3</priority>
       <process processId="" processVersion=""/>
       <routingSlip xmlns="http://xmlns.oracle.com/bpel/workflow/routingSlip">
          <globalConfiguration>
             <owner>oc4jadmin</owner>
             <earlyCompletion>
                <outcome>APPROVE</outcome>
                <outcome>REJECT</outcome>
             </earlyCompletion>
          </globalConfiguration>
          <participants isAdhocRoutingSupported="false">
             <participant name="taskApprover">
                <resource isGroup="true" type="STATIC">oc4j-administrators</resource>
                <resource isGroup="true" type="STATIC">oc4j-app-administrators</resource>
             </participant>
          </participants>
          <notification includeTaskAttachments="false" actionable="false"
                        secureNotifications="false"/>
       </routingSlip>
       <workflowConfiguration xmlns="http://xmlns.oracle.com/bpel/workflow/configuration"
                              xmlns:ns0="http://xmlns.oracle.com/test_humanTask2">
          <outcomes>
             <outcome>APPROVE</outcome>
             <outcome>REJECT</outcome>
          </outcomes>
          <restrictedActions/>
          <payload xmlSchemaDefinition="human_work_payload.xsd">
             <messageAttribute name="taskInput" attributeType="ELEMENT"
                               type="ns0:taskInput" updatable="false"/>
          </payload>
          <bpelEventListener>false</bpelEventListener>
       </workflowConfiguration>
    </taskDefinition>Any help you all can provide is greatly appreciated.
    Thanks in advance,
    Joseph

    Is there any update to this thread? I am seeing the same or similar problem. I'm using BPEL 10.1.3.3.
    I've created a task with two possible custom outcomes "BE" or "NOT_BE". Anyone in the oc4j-administrators group can claim the task instance. I use the auto task form generator.
    As in the thread, I can claim the task instance (as oc4jadmin) and the task form displays (including one parameter that I defined in the payload); however, the only Task Action available in the dropdown list for selection is "Release". My expectation would be to see "BE", "NOT_BE", and "Release" as available actions.
    Using bpeladmin yields identical results.
    Here is my task definition:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <taskDefinition targetNamespace="http://xmlns.oracle.com/HumanTask1" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc" xmlns:task="http://xmlns.oracle.com/bpel/workflow/task" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://xmlns.oracle.com/bpel/workflow/taskDefinition">
    <name>HumanTask1</name>
    <id>${domain_id}_${process_id}_${process_revision}_HumanTask1</id>
    <title>To Be or Not to Be</title>
    <priority>3</priority>
    <process processId="" processVersion=""/>
    <routingSlip xmlns="http://xmlns.oracle.com/bpel/workflow/routingSlip">
    <globalConfiguration/>
    <participants isAdhocRoutingSupported="false">
    <participant name="Deep Thinker">
    <resource isGroup="true" type="STATIC">oc4j-administrators</resource>
    </participant>
    </participants>
    <notification includeTaskAttachments="false" actionable="false"
    secureNotifications="false">
    <action name="ASSIGN" recipient="ASSIGNEES"><![CDATA[concat(string('Task '), /task:task/task:title, string(' requires your attention. Please access the task from the worklist application.'))]]></action>
    <action name="COMPLETE" recipient="CREATOR"><![CDATA[concat(string('Task '), /task:task/task:title, string(' requires your attention. Please access the task from the worklist application.'))]]></action>
    <action name="ERROR" recipient="OWNER"><![CDATA[concat(string('Task '), /task:task/task:title, string(' requires your attention. Please access the task from the worklist application.'))]]></action>
    </notification>
    </routingSlip>
    <workflowConfiguration xmlns="http://xmlns.oracle.com/bpel/workflow/configuration"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <outcomes>
    <outcome>BE</outcome>
    <outcome>NOT_BE</outcome>
    </outcomes>
    <restrictedActions/>
    <payload xmlSchemaDefinition="HumanTask1_payload.xsd">
    <messageAttribute name="FoodForThoughtParm" attributeType="SIMPLE_TYPE"
    type="xsd:string" updatable="false"/>
    </payload>
    <bpelEventListener>false</bpelEventListener>
    </workflowConfiguration>
    </taskDefinition>

  • Start following process human task direct from exising one

    Hi all,
    Is it possible to start the following human task inside an integrated BPM process directly from the former (now in usage) task??
    For understanding the scenario: I want the user to edit some global ERP data and after ending this, the global data should be posted to ERP with a direct RFC call, which can be the next step in BPM process (but I also can call it from UI). The first task has to be closed, because of data flow controlling parameters. The next human task, to edit local ERP data should be started immediately. I don't want the user to go to UWL again.
    I thought about starting the BPM process with the BPM API, so that I can save process instance ID in context. Is it possible to get the task ID of the actual task of the process? And is the next task callable directly in the same window or another window or tab?
    Any suggestions?
    Thanks
    Alex

    Hi Alexander,
    yes, this could be possible with the public API in EHP1 of NW 7.3 (currently in rampup).
    There you have the process instance ID available in the process context, so you can map it to the task.
    Then, use the public API to retrieve the task for the given process instance, and then forward to the task URL.
    You would need to implement some kind of polling mechanism though, since it may take some time until the next task is created (this happens asynchronously).

Maybe you are looking for