Resource bundle in the task definition

Hi all,
I'm trying to assign my own resource bundle to a human task definition like specified in the developer doc (http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/workflow.htm#BABDFDHC).
The documentation is not clear at all on what exactly we have to provide on this mask:
- a .properties files?
- a class name ?
If somebody knows how to do it, could you please give me a hint?
Thank you very much!
Nicolas

(sorry for the long post)
I did the following test:
1) I ve implemented 2 classes extending java.util.ListResourceBundle:
package com.imtf.bpm.resources;
import java.util.ListResourceBundle;
public class MyResourceBundle extends ListResourceBundle {
public MyResourceBundle() {
protected Object[][] getContents() {
return contents;
static final Object[][] contents =
{"APPROVE","Approve"},
{"REJECT","Reject"},
and the french corresponding class:
package com.imtf.bpm.resources;
import java.util.ListResourceBundle;
public class MyResourceBundle_fr_CH extends ListResourceBundle {
public MyResourceBundle_fr_CH() {
protected Object[][] getContents() {
return contents;
static final Object[][] contents =
{"APPROVE","Approver"},
{"REJECT","Rejeter"},
2) Added "com.imtf.bpm.resources.MyResourceBundle" in Task Definition -> Advenced Settings -> Configure resources -> Resource Name
3) I've put my 2 Resources class in the $BPEL_HOME/system/classes to be available by the server at runtime (more precisely, according to my package name, it's $BPEL_HOME/system/classes/com/imtf/bpm/resources/)
4) Deployed the workflow, and initiated it
5) Checked the result in the Oracle Worklistapp, but after login an exception occurs on the server console:
07/10/30 14:08:46 java.util.MissingResourceException: Can't find bundle for base name com.imtf.bpm.resources.MyResourceBundle, locale fr_CH
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:699)
at oracle.bpel.services.workflow.metadata.impl.TaskMetadataCache.getResourceBundle(TaskMetadataCache.java:555)
at oracle.bpel.services.workflow.metadata.impl.TaskMetadataCache.getResourceBundle(TaskMetadataCache.java:469)
at oracle.bpel.services.workflow.metadata.impl.TaskMetadataService.getResourceBundle(TaskMetadataService.java:574)
at oracle.bpel.services.workflow.metadata.impl.TaskMetadataService.getOutcomes(TaskMetadataService.java:348)
at oracle.bpel.services.workflow.verification.impl.VerificationService.getTaskCustomActions(VerificationService.java:1535)
at oracle.bpel.services.workflow.verification.impl.VerificationService.addPermissibleTaskActions(VerificationService.java:995)
at oracle.bpel.services.workflow.query.impl.TaskQueryService.addOptionalInformation(TaskQueryService.java:1013)
at oracle.bpel.services.workflow.query.impl.TaskQueryService.addDetailsOptionalInformation(TaskQueryService.java:1042)
at oracle.bpel.services.workflow.query.impl.TaskQueryService.getTaskDetailsById(TaskQueryService.java:453)
at worklistapp.servlets.TaskDetails.handleRequest(TaskDetails.java:87)
at worklistapp.servlets.BaseServlet.doGet(BaseServlet.java:147)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
It seems that my classes are not seen by the classLoader...but strangely it's in the classpath...
could someone help me ?
thanks!
Nicolas

Similar Messages

  • [svn] 2277: 1) Update the messaging-config. xml under resource and add the cluster definition with shared-backend attribute .

    Revision: 2277
    Author: [email protected]
    Date: 2008-06-27 08:22:18 -0700 (Fri, 27 Jun 2008)
    Log Message:
    1) Update the messaging-config.xml under resource and add the cluster definition with shared-backend attribute. [#blz-197]
    2) Minor update to the session test.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/blz-197
    Modified Paths:
    blazeds/branches/3.0.x/qa/apps/qa-regress/WEB-INF/src/remoting/session/FlexSessionAttribu teListenerTest.java
    blazeds/branches/3.0.x/resources/config/messaging-config.xml

    To use servlets u have indeed to update your web.xml...Well I'm not sure this is relevant to your case anyway.
    You have to add a <servlet> element to this file.
    Something like this:
    <servlet>
    <servlet-name>blabla</servlet-name>
    <servlet-class>blablapackage.Blablaclass</servlet-class>
    <init-param>...</init-param>
    </servlet>
    Now this may not solve your problem. Make sure you refer to your servlets using their full qualified names.btw, just to be sure, what is your definition of "servlet"? (i mean: any java class or only javax.servlet.Servlet)

  • How to share a resource bundle throughout the faces application

    adf faces 11g release 1
    I want to implement the resource bundle as a java class extending the ListResourceBundle . That works fine for the local project.
    I then made one global "resource project" that should be shared in all projects. I tried first deploying the project to a adflib jar file,
    but i found that the resource class was not included ! I then deployed to a ordinary jar file and that works fine.
    My question is : Is that the way to make a shared resource bundle ?
    Regards,
    Jan

    Hi.
    Check following
    http://andrejusb.blogspot.com/2009/12/reusing-resource-bundles-from-different.html

  • BUG-JDev 11G 5407-Project level resource bundle usage messes the page

    When you define a resource bundle on the project properties and if you are using templates the page is not properly rendered in the design view but it runs fine.
    What happens is , JDev adds a JSTL set tag just before the *<af:pageTemplate>* tag and this confuses the designer. To workaround I defined the bundle variable in faces-config, it worked fine for the existing texts but when you add a new text to the page JDev keeps adding this set tag at the beginning of the page and you need delete it each time.
    It looks like a bug to me ..
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces"
              xmlns:mcc="http://com.micros.adf.controls"
              xmlns:c="http://java.sun.com/jsp/jstl/core">
    <c:set var="abcdmainBundle"
             value="#{adfBundle['com.abcd.view.zzzz.messages.AbcdMain']}"/>
      <af:pageTemplate viewId="/tmpl/abcdMainFgTmpl.jspx" id="pt1">
        <f:facet name="main">
     

    Hi,
    we have the same issue and therefore do not use the feature of the property inspector.
    Instead we open the *.properties file in jdev and edit it manually.
    There is bug 7537379 around this c:set tag which MAY BE fixed in the next release (11.1.1.2.0) but I don't know if this bug also covers exactly your problem.
    regards
    Peter

  • I want to change the task approving resource

    I am new on MS project server 2010
    when someone publishes a project on PWA he/she is by default the resource approving the tasks.
    how can i appoint another resource to approve the tasks? (if this new resource is not assigned in the project)

    task approval always goes to Status Manager of the task By default Project Owner who create the project and publish it first time act as Status manager for all the task.
    to change it. Open Project form MPP then add coulmn Status manager to the project,
    by right click then insert new column status manager then assign task to new user to whom you want to male task approval. 
    by default his name will not be available in the Status manager drop down list in status manager column on  MPP.
     To available his name either ask that user to do it or ask him to publish the project once then only his name will be available in the Status manager drop down. then assign task to that name and save and publish the project plan.  
    kirtesh

  • Obtain the task instance key

    Hi,
    I have a class which provide an object to a user. The object is pending at a manual confirmation of the operation to pass the state of the resource from provisioning to provisioned.
    Exists any method to obtain the task instance key to set the manual answer throw the OIM API? I have only the object key from de resource.
    Thanks

    Thor.API.tcResultSet getTaskDetail(long processInstanceKey,
    java.util.Map filterMap)
    throws Thor.API.Exceptions.tcAPIException,
    tcAPIExceptionReturns detailed information about all the tasks definitions in the specified provisioning process.
    Parameters:
    processInstanceKey - The key of the process instance in the system.
    Returns:
    A tcResultSet containing one to many rows, each row holding information about a task in the process. The following columns are returned
    Process Definition.Tasks.Key
    Event Handler Manager.Key
    Process Definition.Tasks.Default Assignee
    Process Definition.Tasks.Milestone Dependency
    Process Definition.Tasks.Conditional
    Process Definition.Tasks.Task Name
    Process Definition.Tasks.Milestone Sequence
    Process Definition.Tasks.Milestone Sequence Interval
    Process Definition.Tasks.Required For Completion
    Process Definition.Tasks.Hours
    Process Definition.Tasks.Minutes
    Process Definition.Tasks.Days
    Process Definition.Tasks.Constant Duration
    Process Definition.Tasks.Allow Multiple Instances
    Process Definition.Tasks.Milestone Datalabel
    Process Definition.Tasks.Task Description
    Process Definition.Tasks.Second Duration
    Process Definition.Tasks.Allow Cancellation While Pending
    Process Definition.Tasks.Disable Manual Insert
    Process Definition.Tasks.Milestone Delete Flag
    Process Definition.Tasks.Complete on Recovery
    Process Definition.Tasks.Milestone Mapping Status
    Process Definition.Tasks.Task Effect
    Process Definition.Tasks.Retry Period
    Process Definition.Tasks.Retry Count
    Process Definition.Tasks.Trigger Type
    Process Definition.Tasks.Child Table Name
    Process Definition.Tasks.Assign To User Manager
    Process Definition.Tasks.System Level
    Process Definition.Tasks.Creation Date
    Process Definition.Tasks.Created By
    Process Definition.Tasks.Update Date
    Process Definition.Tasks.Updated By
    Process Definition.Tasks.Note
    Process Definition.Tasks.Row Version
    Throws:
    tcAPIException
    Thanks
    Suren

  • Custom error messages - resource bundle

    Greetings everyone!
    My JDev version is:  11.1.2.3.0
    I've seen several threads in OTN and outside about this topic, but they seem confused (or may be it's me that is missing something).
    I have this current situation, when because of the presence of a FK in the database, when a try to delete a certain record, a popUp shows up ORA-02292 error code. I don't want to enable cascade deletion (i don't want anything to be deleted in that case at all), so i was trying to customize the error message. I've created a java class and declared it as a resource bundle in the Model project. The content is this:
    public class CustomErrorMessages extends ListResourceBundle {
        private static final Object[][] sMessageStrings = new String[][] {
    {"25014", "Another user has made a modification to this record meanwhile. Please cancel your changes!"},
        {"CREDITOR", "This party is assigned as a creditor/debtor in this contract. It cannot be deleted!"},
        {"DEBTOR", "This party is assigned as a creditor/debtor in this contract. It cannot be deleted!"}
        /**Return String Identifiers and corresponding Messages in a two-dimensional array.
        protected Object[][] getContents() {
            return sMessageStrings;
    25014 - refers to JBO-25014 and it works fine. Now CREDITOR/DEBTOR are the FK mentioned above. If i put 02292  or ORA-02292  instead of them it doesn't work at all. If i let them just like this, it works if i run the Application Module only, but not when i run the application. What does it mean?
    Also, i've noticed that the ViewController project has also a "Resource Bundle" section in the properties, but the content is disabled. Should i do any kind of configuration to make it work?
    Thank you in advance.

    Hi,
    this blog is as close as it gets to your requirement
    http://www.jobinesh.com/2011/03/customizing-business-components-error.html
    Frank

  • Resource bundle not found in adapter ear file

              Hi,
              I have an ear file which contains a JCA adapter and a resource bundle properties
              file in a jar file. THis jar file is referenced by the rar file. After deploying
              it, the server generates an resource bundle not found exception. The only way
              to make it deploy is to put my adatper jar to the global classpath. This is not
              consistent with EJB deployment. I tested an ear file that contains an EJB jar
              with contains a resource bundle. The server is able to load the resource file
              from the EJB jar as I would expect. Any comments on that? By the way, I tested
              on WLS 6.1 sp1 and sp2. Thanks.
              Siming
              

              I am having the same problem. Is anything going to be done to fix this?
              "Siming Mu" <[email protected]> wrote:
              >
              >Hi,
              >
              >I have an ear file which contains a JCA adapter and a resource bundle
              >properties
              >file in a jar file. THis jar file is referenced by the rar file. After
              >deploying
              >it, the server generates an resource bundle not found exception. The
              >only way
              >to make it deploy is to put my adatper jar to the global classpath. This
              >is not
              >consistent with EJB deployment. I tested an ear file that contains an
              >EJB jar
              >with contains a resource bundle. The server is able to load the resource
              >file
              >from the EJB jar as I would expect. Any comments on that? By the way,
              >I tested
              >on WLS 6.1 sp1 and sp2. Thanks.
              >
              >Siming
              

  • How to display Image as Error instead of Error Message from Resource Bundle

    hi,
    I want to display images as error instead of error message from Application Properties in struts1.1
    Ex:
    I want to prompt a user to type password length min. of 6 char. If failed, need to show simple image as error rather
    "Length should be min. 6".
    reagrds
    parthiban.

    BalusC wrote:
    RahulSharna wrote:
    in the respective resource bundle modify the value by something was below
    error.password.length=<img src="/images/password-Length.gif" alt="Password Length Issue" align="center"/>
    OK, it apparently allows HTML in error messages.Yes struts allows it :)

  • Resource Bundle Problem

    I have a funny problem with Resource Bundles:
    In the property editor for a Hyperlink object I replaced the text property with the following: #{messages1.MyKey}
    I have defined an action on the hyperlink as follows:
    public String MyHyperlinkId_action ()
    String HyperlinkText = (String)MyHyperlinkId.getText();
    String HyperlinkID = MyHyperlinkId.getId();
    return null;
    getText() returns null since I use the Bundle to set the text. getId() returns the correct Id. If I hardcode the text in the property editor getText() returns that text correctly.
    Any idea, what the problem could be??
    Many thanks
    Tom

    Did you modify the hyperlink text property manually or through the property binding wizard. It could be a spelling mistake. Also make sure MyKey is defined in your resource bundle.

  • Problem with refresh resource bundle...

    Hi Iam refreshing the resource bundle. Iam using the following code:
    hsModelServiceProvider.getInstance().setFallbackBindingContainerEL("");
    JhsModelService jhsService = JhsModelServiceProvider.getInstance().getJhsModelService();
    System.out.print("UserId is :"+userId);
    jhsService.getTransaction().executeCommand("begin APP_USER_CTXT_mgr.set_user('"+userId+"');end;");
    System.out.print("after execute command");;
    // refresh resource bundle
    MethodBinding refreshBundles = FacesContext.getCurrentInstance().getApplication().createMethodBinding("#{nls.refreshBundles}",new Class[] { ActionEvent.class});
    refreshBundles.invoke(FacesContext.getCurrentInstance(),new Object[] {null});
    Iam gettin the following error Upon executing
    ERROR (MessageFactory) -Failed to refresh bundle oracle.jheadstart.exception.JhsUserMessages due to null
    Please help me..
    Thanx in Advance!

    Hi Steven,
    I want to personalise the ADF Application depending the userpreference. I got a tutorial which uses JHeadstart(through refreshing the resource bundle) for the same, but I did not understand that clearly as I said Iam new to this. Can you please give me any sources which speak about the personalisation functionality in detail?
    Thanq

  • How to use resource bundles?

    I have a requirement to translate the test that appears on the custom buttons of my portal application. I know resource bundles are part of .properties file that are delivered in Classes floder. But i am not sure how should i make use of this in translating the button text. It would be grate if someone knows it. I will be  very helpfull.
    Regards,
    Ameya

    Hi Ameya,
    [This link|http://help.sap.com/saphelp_nw04/helpdata/en/74/641640b7b6dd5fe10000000a155106/frameset.htm] will provide you information on how to implement Portal Content Translation.
    [This link|http://help.sap.com/saphelp_nw04/helpdata/en/62/8b1d40bb37e569e10000000a155106/frameset.htm] will explain how to create and access Resource Bundles (read the entire chapter).
    Hope it helps,
    Roy
    Edited by: Roy Cohen on Nov 26, 2008 3:21 PM

  • User visible text in Database or Resource Bundle?

    What is the right approach to store user visible text (UI Lables) in a J2EE web application?
    a. Database
    b. Resource bundle
    The criteria here is the scalability, ease of maintainance.
    Thanks for your help!

    Just to add to the above.
    The choice can also depend on how static are these UI Labels and at what frequency are the updates. If your application allows the administrator or end users to edit the UI Label text, then storing them in the database will give you a lot more flexibility.
    As Justin mentioned, database allows for centralized storage; hence if your application includes other programming technologies like PHP, C/C++, Perl, and PLSQL etc., then the database can act as a single repository that capture all your application translation needs; it also means that you can share the translations between these modules or other applications.
    There is no doubt that resource bundle offers the better performance. If that is a concern, you can consider a hybrid approach, where the resource bundle is generated based on the translations maintained inside the database.
    Nat

  • ADF:  Translated XLIFF Resource Bundle not Selected at Runtime

    Issue: When I run my ADF app in a web browser where French is selected as the default language, the labels on the form are still populated with English text from the default resource bundle, even though an XLIFF resource bundle for French exists.
    Details: I have created a default XLIFF resource bundle containing the text for all labels on my form in English, called labels.xlf. I have also created two translated XLIFF bundles for French and German and named them labels_fr.xlf and labels_de.xlf, respectively.
    On my form, I have used value expressions to retrieve the text for each component's label, like label="#{res.language}. JDeveloper added '<c:set var="res" value="#{adfBundle['oracle.fosxliff.uitest.labels']}"/>' to the top of my page, so I could access the resource bundle text. Identifying the resource bundle in the faces-config.xml file does not work. However, I did define which locales are supported by my application in this config file.
    *NOTE:* When I access these sames resource bundles in a managed bean by utilizing the locale of the UIViewRoot, the correct XLIFF file is retrieved and the translated text is correctly assigned to my components on the form.
    Is there some other configuration that I am missing? I was expecting XLIFF files to work similarly to properties files, which do work correctly regardless of whether the text is accessed using value expressions or managed beans.

    Ok, I've found the answer.
    I've added translatable custom properties on the view implemention
    and access these in the code...

  • ORABPEL-30017 Invalid task definition.

    Hi All,
    We are on 10.1.3.3. BPEL and we see below error in log frequently especially when server is started.
    Some times even this issue brought server down .
    We have multiple human tasks in our bpels and each flow also has one common task called Administration_task and we see issues only for this task from all flows.
    ORABPEL-30017
    Invalid task definition.
    The task definition at http://bpm.formfactor.com:7777/orabpel/default/SxF_Design/2.7/Administration_Task/Administration_Task.task could not be read. The task definition is associated with workflow default_SxF_Design_2.7_Administration_Task
    Make sure that the task definition is available at the specified URL and that it is a valid XML document. Contact oracle support
    http://bpm.formfactor.com:7777/orabpel/default/Mask_Design/3.5/Administration_Task/Administration_Task.task
    java.io.FileNotFoundException: http://bpm.formfactor.com:7777/orabpel/default/Mask_Design/3.5/Administration_Task/Administration_Task.task
    Invalid task definition.
    The task definition at http://bpm.formfactor.com:7777/orabpel/default/SxF_Design/2.5/Administration_Task/Administration_Task.task could not be read. The task definition is associated with workflow default_SxF_Design_2.5_Administration_Task
    Make sure that the task definition is available at the specified URL and that it is a valid XML document. Contact oracle support if error is not fixable.
    ORABPEL-30017
    Thanks,
    Praveen

    This problem is resolve with the help frol Oli. Here is his message. Hopefully helpful for others who run into the same issue:
    ====================
    Here is a work around:
    In your DB, please do the following sql query:
    "select processId, processName, domainName, compositeName, revision, scaLabel, compositeDN, label, processType, targetNamespace, status, organizationalUnitId, subType from BPM_CUBE_PROCESS;"
    Please let me know if you see multiple rows in BPM_CUBE_PROCESS table with compositeName column value "SendAndReceiveBPM", and with status column value 1. If so, then then you can update the status column value to -1 for all those rows. Then deploy the process again. You should be able to log into Workspace.
    If you dont see multiple rows in BPM_CUBE_PROCESS table with compositeName column value "SendAndReceiveBPM", and with status column value 1, then please let me know.
    Hope this helps!
    thanks,
    - oli

Maybe you are looking for

  • Changing G/L account during MIGO

    I have a request to change the G/L account which price variance gets posted during a MIGO posting if the material has a certain material status.  I am not able to change this through configuration due to the fact that the G/L account PPV (purchase pr

  • Email counter and connection not working correctly after updates

    How do I fix the email counter on my dock bar it shows that I have 214 unread and they have all been read? Also, my email is constantly asking me to enter my password to establish connection this is after I have been working in email and sending and

  • Alerts for Marketing Attributes in IC

    Hi We are using CRM 2007 and we have marketing attributes maintained on the Sold-to party business partner. We want this marketing attribute to be displayed in the interaction center when the agent confirms the account. How to configure Alerts (Inten

  • B/s a/c

    hi firends what purpose balance sheet accouts maintain in CO, through primary cost elements ma

  • Color correction like in Aperture

    Hi Im using Aperture for my photos, and there is a nice preset in Adjustment -> Presets -> Quick fix, which makes the color correction for us. Is there such option in FCP X ? Im not good in color correction so i would like to use feature like this. T