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..

Similar Messages

  • 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..

  • BPEL customisation on look up field on human task jsp notification.

    We want to customize human task jsp notification
    Some of files are needed to populate a static list or SQL query and we need to use cascading list on custom jsp file.
    can we do this declaretively or we need to develop to code.
    if we need to code how ?
    Thanks...

    Our some of the human task parameter need to be dynamic list
    For example we have a job parameter whose data came from jobs table.
    We can't find how we can do declaretively from task definitions.
    So we tried to solve this customizing jsp code.
    First We create a human task
    and then we create auto generate simple task form jsp's.
    We want to customize this jsp's.
    Some of task parameter need to be a a list box on this jsp.
    so we need to change fallowing procedures (I think)
    <%=getField(payload, form, context, thisDisabled, locale, task, "Next User", "/ns0:task/ns0:payload/ns0:NextUser", "string")%>
    So we need to sample code how can we do it...
    Thanks...

  • Human Task JSPs not deploying on SOA 10.1.3.1 production

    Hi All,
    I am trying to use a custom JSP for a Human Task on SOA Suite 10.1.3.1 & JDev 10.1.3.1. It seems that the JSPs are not being deployed, or they are being deployed in the wrong place.
    The error I get in the Worklist application, when I try to view a task is:
    The requested URL /default/FridayMorning/1.0/HumanTask1/HumanTask1.jsp was not found on this server.
    I have tried this on multiple SOA Suite server machines, one with only one domain, and one with multiple domains, and have also tried developing the project on different JDevelopers on different machines, with the same result.
    I could not find the JSP registered anywhere on the AS Control. I understand they are meant to be deployed under orabpel?
    The BPEL Suitcase does not contain any jsp files, and in the output directory, there is a .jsps folder which contains the java and class files that relate to the JSPs.
    To recreate:
    Open JDev
    Create a new application
    Create a new BPEL project
    Drop a Human Task into the process
    Give it a name
    Click on the magic wand to define the task
    Give it a name
    Click on the + to add a parameter, select the payload of inputVariable
    Click on the + to add someone to route to, pick a user
    Save
    Close Human Task
    Save process
    In the Applications Navigator, expand the project, right click on the HumanTask folder and select Auto Generate Simple Task Form
    Save all
    Build all
    Deploy to BPEL server
    Go to BPEL console, start the process
    Go to BPEL worklist, select the task
    The error appears.
    We have also tried using custom JSPs (instead of simple ones).
    Also, I noticed that if you delete task form files from the popup menu, and then regenerate them, you only get the .tform file, no JSPs are generated.
    Can anyone else verify this happens to them?
    Thanks,
    Mark Nelson

    OCMS stands for Oracle Communication and Mobility Server and is basically a SIP Container embedded as a hook into OC4J 10.1.3.1. I'm using JDK 1.5.0_12-b04. Wondering if there's any other way to check configuration of the JSP compiler.
    Thanks for your help,
    Adam

  • In human task, dynamically assign group doesn't work

    Oracle SOA 11.1.1.4
    My bpel process invokes a human task.
    On the human task Assignment tab, I assigned 3 users (by name), 1 group (by expression).
    The group is configured in LDAP
    When I tested the bpel process, I entered the group and other data required.
    From the worklist app, I see the task listed. It is assigned to the 3 users, but not the dynamically passed-in group.
    From the Audit trail, I saw all data I entered (include the group). Everything seems correct, but I still can’t make the dynamically-pass-group work.
    If I assign the group by name in human task, it works fine.
    The problem is: dynamically assign group doesn't work.
    Please kindly advice.

    Yes, it is possible assign a group as participant of some human task, passing the group name as parameter.
    I have tested just now.
    It works pretty well in SOA 11.1.1.4 (BPEL or BPM).
    Make sure add a data parameter in your human task definition and pass a valid group name to it.
    At the Assignment tab, in the participants' list, add a group, data type by expression, and set the value to the right xpath expression to the corresponding parameter.
    For example: /task:task/task:payload/task:group
    If it is not working look the SOA log files, probably you'll find some information about the error there. Maybe there is some problem with your jazn.com configuration.
    You can also test if there is something wrong related to the group name, trying to transfer some task to the same group by the worklist.

  • Human Task expiration containing Task History from another Human Task

    Hi All,
    Let me explain you my complete workflow in brief.
    I have 8 Human Tasks and all are sharing Task history. My each individual Human task are in Scope activity. In my payload I have a variable "strExpiryDuration" and I am setting its value in an Assign activity before my last human task. I have assigned this variable "strExpiryDuration" in the expiry duration of my last human task definition. For the reference I am giving the value as "*P0DT1M*". But it is not expiring my last human task at all. I doubt it may be because task history which I am sharing in my human tasks is overwriting the payload values and thats why the value of strExpiryDuration is not setting up in task definition.
    I checked by assigning the same variable strExpiryDuration to some other value ("*P3DT1M*") and assigning it to my first human task definition. In this case, whenever the workflow is assigned to my last human task it is also showing Expiry date as of after 3 days. What is the issue here? Please help.
    Regards,
    Murtaza
    Email:
    murtaza.ghodawala @ alshaya.com
    Edited by: user8977605 on Apr 21, 2011 6:48 AM

    I have found the solution to this generic problem. Whenever you have a human task sharing task history in your workflow, you need to ensure that the changed/modified payload value is assigned to the human tasks properly. In most of the cases, Task history sharing Human Task will override the payload values with the payload values of the previously executed human task in the workflow.
    For that the fix is as below:
    1. Expand the Human Task.
    2. In the Assign activity, write a copy operation in which copy the changed individual payload variable to the payload variable of the Human task whose task history we are sharing.
    For e.g.
    <copy>
    <from variable="inputVariable"
    part="payload"
    query="/client:TravelRequestProcessRequest/client:ExpiryDays"/>
    <to variable="ApprovalsTask_1_globalVariable"
    part="payload"
    query="/task:task/task:payload//client:TravelRequestProcessRequest/client:ExpiryDays"/>
    </copy>
    3. Make this copy operation as the first operation in the Assign Activity.
    I hope this solution will help you to resolve your issues.
    Regards,
    Murtaza Ghodawala
    Email:
    [email protected]
    Edited by: user8977605 on Apr 24, 2011 12:53 AM

  • Human task - Parallel flow - sharing payload

    Hi All
    Can I have a human task that is assigned parallely to two different user groups, and when the user in one of the group changes/updates the payload, the user in the other group (the other branch of the parallel flow) is able to see the change?
    Thanks
    Satinder

    Hello,
    I have the same problem can anybody help! My project has been locked in this point. if any body can help I do highly appropriate it.
    Thank you so much

  • Human task preventing to press go button. (required field in payload)

    We have an one step BPEL human task implementation and assigned user must be filll some field of payload before sending task.
    The problem is we are using standart worklist app and assinged user can send the task from worklist without opening it. So we can't control required field.
    We need a Precondition like rule
    is there any way to
    Our SOA suite version is 10.1.3.3.
    Thanks.

    Know this is probably not the direction you wanted to go, but look at Vinay Kumar's blog post on using an initializer:  http://www.techartifact.com/blogs/2013/04/using-a-task-flow-initializer-to-initialize-a-task-flow.html#sthash.CG1CAgfz.1….  (pretty sure he got this from Nick Haralabidis's book: Oracle JDeveloper 11gR2 Cookbook: Nick Haralabidis: 9781849684767: Amazon.com: Books).
    In this a prepare method is created in the Application Module impl java similar to your initialization code:
      public void prepare() {
        // get emps vo instance
        EmployeesVOImpl employees;
        employees = (EmployeesVOImpl)getEmployeesVO();
        // remove all rows from emp rowset
        employees.executeEmptyRowSet();
        // add a new emp row
        EmployeesVORowImpl employee = (EmployeesVORowImpl) employees.createRow();
        // add new emp to rowset
        employees.insertRow(employee);
    Once you expose this as being a Client Interface in your application module, you have the method available to you to drag into your task flow and set the task flow's "URL Invoke" property to "url-invoke-allowed").  This would give you the empty row you're going to populate.
    I don't go this route and instead drag a CreateInsert method onto the task flow as the initial default activity and then flow to the page.  To commit it, just create a binding for the Application Module's commit operation and invoke it from the backing bean when you intercept the submit action.
    Hope this helps,
    Dan

  • Dynamic participant block in Human task flow

    Hi All,
    I am working on human task flow and got stopped on below use case.
    I have two participant block let say A and B. I want to assign participant A depends on flat inside task flow parameter. If Flag is Yes, then it should assign to A and on approval of A it should complete the task flow. But if Flag is NO, then it should first assign to B, on approval from B, it should again assign to A and after that it should complete the task flow.
    I tried to use dynamic role assignment but there i am not able to define above use case. Dynamic rule is saying you can assign A or B depends on some rule(task flow parameter) but my requirement is little different.
    If Flag is Yes,
    - assign to A -> on approval -> complete the task flow.
    If Flag is No
    - Assign to B -> on approval from B -> assign to A -> on approval from A -> complete the task flow.
    I want to build this logic inside single human task flow.
    Please help.
    -Sunil

    Hi Zaloa,
    Can you pls try this.This should work.
    1. Go to Edit Task Definition page and add a Parameter of type string(default).
    2. Now come to the human task dialog( the one you get on double clicking the human task activity) and add a value to the parametr you just added(string)using the search light .This value should be the variable containing the value of the asssigne which you want to add dynamically.
    3.Now again go to the Edit Task Definition page and select the Assignment policy and select the expression path builder.
    4. You should be able to see the parameter you just added under task:payload. select this . now your assigne is dynamically added.
    Pls let me know if you need further details. Hope this helps.
    Thnks
    Message was edited by:
    soaUser

  • TO VIEW MANUAL USER LIST IN HUMAN TASK

    Hii All,
    I want to add in the user list manually in the human task and to assign the task to them.Can anyone please help me how to create userlist manually.
    with regards,
    Deekay.

    Deekey, can you please explain us your question bit more in detail ? By default the users for soa suite are maintained in jazn.

  • How to Design User Accounts and Groups for Human Task

    Hi All,
    I have a requirement wherein we have a group of people to whom tasks get assigned. Details are below
    Assume
    PO- Purchase Order
    IN- Invoice
    CL1 - Client 1
    CL2 - Client 2
    CL3 - Client 3
    REP1 - User 1
    REP2 - User 2
    REP3 - User 3
    APP1 - Approver 1
    APP2 - Approver 2
    APP3 - Approver 3
    1. There are two groups of people say PO_Team and IN_Team.
    2. REPx are the folks who are in the IN_Team. They handle monitor invoices and run reports on them (READ - Only)
    3. APPx are the folks who are in the PO_team. They approve order and sometimes modify them (READ-WRITE)
    4. CLIx are the clients each of whom send PO and expect IN in return
    5. CLI1 - APP1- REP1 together handle one client.
    Now the requirement is something like this
    1. APP1 must be able to see the PO and IN only from CLI1
    2. APP1 must be able to see editable view of PO from CLI1
    3. APP1 must be able to see red only view of IN from CLI1
    4. REP1 must be able to see the PO and IN only from CLI1
    5. REP1 must be able to see read only view of IN from CLI1
    6. REP1 must be able to see read only view of PO from CLI1
    7. In exception cases APP1 can assign a PO from CLI1 to APP2
    Can someone help me in the design of groups and permissions for this?
    TIA

    Groups are the way to go. Every Human Task can be assigned to either a user or a group or a user and a group. Select the last option so that it goes to a particular user but also to a group. That way anyone in the group can approve these tasks though it is sent to one particular users list. Anyone from that group can pick that task up and approve it

  • Human tasks, complex types and variable assignment.

    Hi folks,
    I encountered a problem while working with 10.1.3.1 which I haven't managed to solve yet and would be grateful for assistance. I have defined a complex data type (just a sequence of strings) and want to fill that data type by going through a flow of screens, e.g. through several human tasks. I have defined that type as a variable to the BPEL process and have managed to assign simple expressions to the variable and pass that into a Human Task. In the task I see now a simple input form for all attributes of the type.
    Now the problem. After I fill out the form and complete the human task, I have
    The global variable:
    <outputVariable>
         <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
              <MyProcessResponse xmlns="http://xmlns.oracle.com/VacationRequest">
                   <vorname/>
                   <nachname/>
                   <strasse/>
                   <nummer/>
                   <postleitzahl/>
                   <stadt/>
                   <maximaleDauer/>
                   <minimaleDauer/>
              </MyProcessResponse>
         </part>
    </outputVariable>
    and the return value from the human task:
    <task>
         <title>CaptureData</title>-
              <payload>
                   <MyProcessResponse>
                        <vorname>David</vorname>
                        <nachname>Beckham</nachname>
                        <strasse>HighStreet</strasse>
                        <nummer/>
                        <postleitzahl/>
                        <stadt/>
                        <maximaleDauer/>
                        <minimaleDauer/>
                   </MyProcessResponse>
              </payload>
    </task>
    Now the only thing I would like to do is to replace the original values in the variable with the new values that have been returned from the task, this should be performed in an extra assign step. Sounds simple. JDeveloper wouldn't even let me klick through the return value from the HumanTask, so it seems as if I have to do things manually.
    These are my tries:
    Command 1:
    <copy>
         <from variable="CaptureData_1_globalVariable"
    part="payload" query="/task:task/task:payload" />
    <to variable="outputVariable" part="payload"
    query="/ns1:MyProcessResponse"/>
    </copy>
    Result 1:
    <outputVariable>
         <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
              <ns0:MyProcessResponse xmlns="http://xmlns.oracle.com/bpel/workflow/task"     xmlns:ns0="http://xmlns.oracle.com/VacationRequest">
                   <MyProcessResponse xmlns="http://xmlns.oracle.com/VacationRequest">
                        <vorname>David</vorname>
                        <nachname>Beckham</nachname>
                        <strasse>HighStreet</strasse>
                        <nummer/>
                        <postleitzahl/>
                        <stadt/>
                        <maximaleDauer/>
                        <minimaleDauer/>
                   </MyProcessResponse>
              </ns0:MyProcessResponse>
         </part>
    </outputVariable>
    --> There is one MyProcessResponse element too many
    Command 2:
    <copy>
         <from variable="CaptureData_1_globalVariable"
    part="payload" query="/task:task/task:payload"/>
    <to variable="outputVariable" part="payload"
    query="/ns1:MyProcessResponse/ns1:vorname"/>
    </copy>
    Result 2:
    <outputVariable>
         <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
              <MyProcessResponse xmlns="http://xmlns.oracle.com/VacationRequest">
                   <ns0:vorname xmlns="http://xmlns.oracle.com/bpel/workflow/task"                     xmlns:ns0="http://xmlns.oracle.com/VacationRequest">
                        <MyProcessResponse xmlns="http://xmlns.oracle.com/VacationRequest">
                             <vorname>David</vorname>
                             <nachname>Beckham</nachname>
                             <strasse>HighStreet</strasse>
                             <nummer/>
                             <postleitzahl/>
                             <stadt/>
                             <maximaleDauer/>
                             <minimaleDauer/>
                        </MyProcessResponse>
                   </ns0:vorname>
                   <nachname/>
                   <strasse/>
                   <nummer/>
                   <postleitzahl/>
                   <stadt/>
                   <maximaleDauer/>
                   <minimaleDauer/>
              </MyProcessResponse>
         </part>
    </outputVariable>
    --> This was moreless expected, since I tried to copy the stuff to some wrong place.
    Command 3:
    <copy>
         <from variable="CaptureData_1_globalVariable"
    part="payload" query="/task:task/task:payload/ns0:MyProcessResponse"/>
    <to variable="outputVariable" part="payload"
    query="/ns1:MyProcessResponse"/>
    </copy>
    Result 3:
    --> Task does't return (!!!). In the BPEL Worklist, the task is completed, however in the BPEL console it still apears as "waiting to return from Human task".
    Does anyone have a hint on how to copy the values so that I get exactly the structure that I printed at the very top?
    Thanks for help. Rock On !

    Hello everyone,
    It seems that we are talking about different things, I am afraid. Let me describe the scenario once again:
    - I want to have a BPEL process with more than one role involved
    - This process should be used to gather some complex data.
    - All data gathering should be done through HumanTasks.
    So I defined an xsd complex type, that contains a sequence of fields. This complex type should be part of the process payload.
    Now before HumanTask 1 is called, I copy the contents of this variable into the input for tasks1. This works fine and I see the appropriate values, when opening the Human Task in the BPEL worklist application.
    Now after HumanTask1 is completed, the values I entered inside that tasks are returned as a variable from the HumanTask. My problem is, that I cannot copy the contents of the task back into the main process. With simpleTypes this is relatively ok, since Jdev supports the assembling of the copy operation, however for complex tasks it fails.
    A typical scenario for this would be where e.g. a customer fills a shipping address and afterwards a store staff fills product details in the same order. In Java this could be solved via "pass by reference". Who can provide an example?

  • How to take human task values and store them in DB table

    Hi, I have a workflow and when I assign the task to someone I want to store some info in a database table that I created.
    I have checked the box allow task and routing customization in bpel call backs.
    And under the on Assign message, I put an assign bpel construct and an invoke.
    in the assign construct I am trying to copy some of the elements from my humantasks_globalvariables to certain columns in my database table.
    I have found out you can't copy them directly because the humantasks_globalvariables are of type string and my database columns are anonymous. So I tried using parseEscapedXML(), when I do this I get the error that
    oracle.fabric.common.xml.xpath.XPathFunctionException: parseXML() expects the argument to be either a string or an XML element.
    The humantasks_globalvariable I am using says it's of type string but it gives me this error.
    I am obviously doing something wrong. If anybody know how to take values from a human task and store them in a database table any help would be greatly appreciated.

    In the actual database the column types are varchar2. But when I drag an invoke from the bpel constructs I associate it with by DBadapter partner link and click the button automatically create input variables. It creates an xsd and this is what one of the elements looks like.
    <xs:element name="anyvalue">
        <xs:simpleType>
            <xs:restriction base="xs:string">
                 <xs:maxLength value="20"/>
            </xs:restriction>
        </xs:simpleType>
    </xs:element>When I do an assign and try to assign the values from the humantasks_globalvariables xsd there types look like this.
    task:title string
    and the input variable I automatically generated look like this.
    ns7:anyvalue <anonymous>

  • Jsp:useBean and assigning a value to that bean

    Hello,
    I have a type called Country and I have declared a bean using the "jsp:useBean" syntax.
    I then try to assign a value to that bean in a scriptlet. Eventually I try to retrieve the values using "jsp:getProperty". The problem is that it appears to null.
    Here is the code of the jsp
    <%@ page language="java" %>
    <%@ page import="com.parispano.latinamericaguide.*" %>
    <%
    /* We retrieve the Countries object from the servlet context. */
    ServletContext sc = getServletContext();
    Countries cs = (Countries)sc.getAttribute("countries");
    %>
    <jsp:useBean id="country" class="com.parispano.latinamericaguide.Country"/>
    <%
    /* If the request contains a country id, then we set the variable. */
    country = cs.getCountryFromId(Integer.parseInt(request.getParameter("countryID")));
    %>
    <html>
    <head>
    <title>Country details</title>
    </head>
    <body>
    <table>
    <tr><td>Name</td><td><jsp:getProperty name="country" property="name"/><!-- This is not working--></td></tr>
    <table>
    <%
    out.println(country.getName());//This is working
    %>
    </body>
    </html>This is the code for the bean
    package com.parispano.latinamericaguide;
    * @author Julien Martin
    * Represents a country.
    public class Country implements Comparable {
         private int id;
         private String name;
         private int landArea;
         private String capital;
         private String currency;
         private String flag;
         private String internet_domain;
         private String dialling_code;
         private float literacy;
         private float male_life_expectancy;
         private float female_life_expectancy;
         private String map;
         private int population;
         private int population_year;
         private float birth_rate;
         private int birth_rate_year;
         private float death_rate;
         private int death_rate_year;
         private int gdp;
         private int gdp_per_head;
         private int gdp_year;
         private float unemployment_rate;
         private int unemployment_rate_year;
         public Country() {
         public Country(
              int id,
              String name,
              int landArea,
              String capital,
              String currency,
              String flag,
              String internet_domain,
              String dialling_code,
              float literacy,
              float male_life_expectancy,
              float female_life_expectancy,
              String map,
              int population,
              int population_year,
              float birth_rate,
              int birth_rate_year,
              float death_rate,
              int death_year_rate,
              int gdp,
              int gdp_year,
              float unemployment_rate,
              int unemployment_rate_year) {
              this.id = id;
              this.name = name;
              this.landArea = landArea;
              this.capital = capital;
              this.currency = currency;
              this.flag = flag;
              this.internet_domain = internet_domain;
              this.dialling_code = dialling_code;
              this.literacy = literacy;
              this.male_life_expectancy = male_life_expectancy;
              this.female_life_expectancy = female_life_expectancy;
              this.map = map;
              this.population = population;
              this.population_year = population_year;
              this.birth_rate = birth_rate;
              this.birth_rate_year = birth_rate_year;
              this.death_rate = death_rate;
              this.death_rate_year = death_year_rate;
              this.gdp = gdp;
              this.gdp_year = gdp_year;
              this.unemployment_rate = unemployment_rate;
              this.unemployment_rate_year = unemployment_rate_year;
         public float getBirth_rate() {
              return birth_rate;
         public int getBirth_rate_year() {
              return birth_rate_year;
         public String getCapital() {
              return capital;
         public String getCurrency() {
              return currency;
         public float getDeath_rate() {
              return death_rate;
         public int getDeath_rate_year() {
              return death_rate_year;
         public String getDialling_code() {
              return dialling_code;
         public float getFemale_life_expectancy() {
              return female_life_expectancy;
         public String getFlag() {
              return flag;
         public int getGdp() {
              return gdp;
         public int getGdp_per_head() {
              return gdp / population;
         public int getGdp_year() {
              return gdp_year;
         public int getId() {
              return id;
         public String getInternet_domain() {
              return internet_domain;
         public float getLiteracy() {
              return literacy;
         public float getMale_life_expectancy() {
              return male_life_expectancy;
         public String getMap() {
              return map;
         public String getName() {
              return name;
         public int getPopulation() {
              return population;
         public int getPopulation_year() {
              return population_year;
         public int getLandArea() {
              return landArea;
         public float getUnemployment_rate() {
              return unemployment_rate;
         public int getUnemployment_rate_year() {
              return unemployment_rate_year;
         public void setBirth_rate(float f) {
              birth_rate = f;
         public void setBirth_rate_year(int i) {
              birth_rate_year = i;
         public void setCapital(String string) {
              capital = string;
         public void setCurrency(String string) {
              currency = string;
         public void setDeath_rate(float f) {
              death_rate = f;
         public void setDeath_rate_year(int i) {
              death_rate_year = i;
         public void setDialling_code(String string) {
              dialling_code = string;
         public void setFemale_life_expectancy(float f) {
              female_life_expectancy = f;
         public void setFlag(String string) {
              flag = string;
         public void setGdp(int i) {
              gdp = i;
         public void setGdp_per_head(int i) {
              gdp_per_head = gdp/population;
         public void setGdp_year(int i) {
              gdp_year = i;
         public void setId(int i) {
              id = i;
         public void setInternet_domain(String string) {
              internet_domain = string;
         public void setLiteracy(float f) {
              literacy = f;
         public void setMale_life_expectancy(float f) {
              male_life_expectancy = f;
         public void setMap(String string) {
              map = string;
         public void setName(String string) {
              name = string;
         public void setPopulation(int i) {
              population = i;
         public void setPopulation_year(int i) {
              population_year = i;
         public void setlandArea(int i) {
              landArea = i;
         public void setUnemployement_rate(float f) {
              unemployment_rate = f;
         public void setUnemployment_rate_year(int i) {
              unemployment_rate_year = i;
         public String toString() {
              return name;
         public int compareTo(Object o) {
              Country c = (Country)o;
              int cmp = name.compareTo(c.name);
              System.out.println(cmp);
              return cmp;
    }Can anyone please help?
    Thanks in advance,
    Julien.

    Thanks,
    I have added scope="application". It still show "null" indicating that the bean is not initialized with the properties. I would like a quicker way to initialize a bean property than invoking the setProperty tag for each property.
    Here is a simple example that demonstrates the problem:
    <%@ page language="java" %>
    <%@ page import="com.tests.*" %>
    <jsp:useBean id="monBean" class="com.tests.MonBean" scope="application"/>
    <%
    MonBean mb = new MonBean();
    mb.setName("toto");
    monBean= mb;
    %>
    <html>
    <head>
    <title>Lomboz JSP</title>
    </head>
    <body bgcolor="#FFFFFF">
    <jsp:getProperty name="monBean" property="name"/>
    </body>
    </html>And the bean
    package com.tests;
    public class MonBean {
    private String name;
    public String getName() {
         return name;
    public void setName(String name) {
         this.name = name;
    }This show "null".
    Any other idea why this is not working?
    Thanks,
    Julien

  • Problem in setting dynamic expiration duration from Human Task

    Hi,
    I have a BPEL process, in which the Human task expiration has to be set dynamically..
    In the , I have set the expiration duration with this :-
    <copy>
    <from expression="xp20:format-dateTime(xp20:current-dateTime(),'PT1M')"/>
    <to variable="initiateTaskInput" part="payload"
    query="/taskservice:initiateTask/task:task/task:systemAttributes/task:expirationDuration"/>
    </copy>
    Do not get confused with 'PT1M' .. I want the duration to be 1 minute... Had I used 'PT1M' as a String and assign to the expirationDuration var, it would have caused an error... It needs to be fromatted as a Date..That's y i took this approach ... I am sure this is working fine as I have checked the payload of the task..
    It has a proper duration..
    <initiateTaskInput><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload"><initiateTask xmlns="http://xmlns.oracle.com/bpel/workflow/taskService">
    <task xmlns="http://xmlns.oracle.com/bpel/workflow/task">
    <systemAttributes>
    <expirationDuration>PT1M</expirationDuration>
    Now in the Human task definition(.task file), I have set the expiration duration with "By Expression" option in this way..
    <globalConfiguration>
    <owner>oc4jadmin</owner>
    <expirationDuration duration="/task:task/task:systemAttributes/task:expirationDuration"
    type="XPATH"/>
    </globalConfiguration>
    The problem is the task(at runtime) cannot evaluate the expirationDuration from the XPATH..
    I checked with the WF_TASK table in the orabpel schema ...
    When I use a static duration EXPIRATIONDURATION cloumn gets assigned properly (ie PT1M).. But when i take the XPATH approach, it translates to PT0S.
    Can someone look into this please ?
    Struggling with this for quite sometime...
    saptarishi

    If the Human Task shows status complete, then it's possible that there was an error in the output data association in the process. In EM do you see a fault on the output for the Human Task activity, or if PS4FP the process will go to suspended state if the data association fails.

Maybe you are looking for

  • What DE/Wms support Aero Snap natively ?

    I've always been a GNOME user, but like lots of users Iately I start feeling annoyed by some things in GNOME 3. So I'm starting testing other DEs, and I realize I'm really dependent on the window snap feature. What DE/WMs support it out of the box ?

  • Change in Dynpro

    Hi Experts, How do you know if there were changes on a dynpro? That saves some system variable?  That saves some table? For example If I have a field with value  'X', delete it,  and put 'X' again, Sap detects whether there has been a change, althoug

  • My iPod touch is not charging or showing a battery.

    I haven't used my iPod touch (4G) for about 2 or 3 months because the cable was lost and got a new phone. I bought a belkin cable for my iPod recently and after hours of charging it's still not turning on. It's in really good state and never dropped

  • How do I capture Dolby Digtal 5.1 sound through S/PDIF

    I have an Audigy 2 Value with the Digital I/O adapter device. I'm trying to capture the 5. audio from a TV show via an optical cable connected to the Digital In jack on the Digital I/O adapter. When it's plugged in I can hear the audio on my speakers

  • Query to calculate age

    Hi Please suggest me to wirte a function which can calculate age.