Update the workflow in ADF

Dear,
I did facing the problem is whan I create new task flow of JDeveloper version 11.1.1.4.0, this workflow have button to refresh the page, the code below was refresh the page.

public void refreshButton() {}
FacesContext context = FacesContext.getCurrentInstance ();
String viewId = context.getViewRoot () .getViewId ();
ViewHandler vh = context.getApplication () .getViewHandler ();
UIViewRoot page = vh.createView (context, viewId);
context.setViewRoot (page);
}
The code above works fine when I STARTS the task of JDeveloper flow without any problem.

Now, the problem occurred when I deploy this workflow on webcenter and add it as a workflow, when I add this workflow in spaces webcenter (portal), the code above is not working and the button which is I add it does not work, I mean no effect when I press the button refresh

I use:
JDeveloper version 11.1.1.4.0
WebCenter version 11.1.1.5

Hello.

What do you mean speaking of flow of task?
You want cool exactly.? Can not do you with PPR?

Your code is not particularly refreshing your task Flow, refreshes all view current JSF to work.
No doubt can be browser caching issues.
http://Electrotek.WordPress.com/2008/05/30/Refresh-current-JSF-page/

Kind regards.

Published by: Daniel Merchan on 19-mar-2013 23:18

Tags: Fusion Middleware

Similar Questions

  • How to get the userId value in the workflow of adf

    Hello

    I've created a workflow of adf and deployed the same into the application as a library of adf.

    Now, I need to get the registered in the value of the ID of the user in the workflow of adf I created.

    Based on this user ID needed to run the query to retrieve the data related to the user from the database.

    Please help/guide me to solve this problem.

    3 ways to recover the username (not sure what you mean by user ID):
    http://mahmoudoracle.blogspot.be/2012/06/ADF-get-current-logged-user-name.html#.USI_c-h8zIo

    Also provide your JDev version.

    Basically, you need to use the groovy expression in a view criteria (it's the way the faster and easier) and call that view criteria whenever you have need.
    That's if you use ADF BC of course.

  • How to access the BPM 11 g load useful or process varibles in the workflow of ADF

    I'm trying to view/edit the data in a user interface that is linked to a database by using a foreign key, requestId. The foreign key comes from a BPM process where it is spent in the workflow, a human task. The foreign key comes process variables or values of payload. I know that I can simply load the payload in BPM with the data in the tables, but I'm looking for a better solution use the ADF business components to view and edit data directly in the user interface.

    The BPM process uses a web service to start the process. Web services takes a primary key as a parameter to reference a column in the database table. The data is pre-filled with content and a primary key reference. The first activity is an activity of the user. I want the workflow behind the user activity to accept this primary key and use to locate the line in the database, so related views of the database delimited ADF business components can work to present the data in the user interface.

    I tried two approaches to the problem. The first uses the setCurrentRowWithKeyValue operation. The other changes the SQL where clause, used by the ADFbc iterator only returns one row for the given requestId. Both of these approaches fail to work because I don't know how to access the load BPM or variable data entering the workflow. Here is the piece of code that I used to try to define the row using the value of setCurrentRowWithKey:

    public String setRequestId() {}

    FacesContext context = FacesContext.getCurrentInstance ();
    Object requestObj = context.getApplication () .evaluateExpressionGet)
    context, "#{bindings."(, Number.class) RequestId.inputValue "};
    If (requestObj is nothing)
    Returns a null value.
    RequestId number;
    requestId = (number) requestObj;

    ITR DCIteratorBinding = (DCIteratorBinding)

    getBindings () .get ("PatfRequestHdrView1");

    itr.setCurrentRowWithKeyValue (requestId.toString ());

    Returns a null value.

    I didn't get very far with the second approach, change SQL where clause, because I do not know Groovy. I think I need something like:

    adf.object.viewObj.RequestId. but it is not a viewObject associated with BPM data, so I don't know that this particular expression will not work.

    Any help you can give me is greatly appreciated.

    Kind regards
    Mark

    Try this code in your method:

    FacesContext context = FacesContext.getCurrentInstance ();
    String ctx = (String) context.getApplication () .evaluateExpressionGet (context, "#{pageFlowScope.bpmWorklistContext}", String.class);
    String tskId = (String) context.getApplication () .evaluateExpressionGet (context, "#{pageFlowScope.bpmWorklistTaskId}", String.class);
    IWorkflowServiceClient workflowSvcClient = WorkflowService.getWorkflowServiceClient ();
    ITaskQueryService wfQueryService = workflowSvcClient.getTaskQueryService ();
    IWorkflowContext wfContext = wfQueryService.getWorkflowContext (ctx);
    Task myTask = wfQueryService.getTaskDetailsById (wfContext, tskId);
    XMLElement xmlPayload = (XMLElement) myTask.getPayloadAsElement ();
    get the payload as a string simple, useful for debugging
    java.io.StringWriter writer = new java.io.StringWriter ();
    xmlPayload.print (writer);
    String payloadAsString = writer.toString ();
    extract payload values: use methods in Oracle XDK

    See also this post:

    The task of reading by program details

  • Update the Table of Adf

    Hi all

    I have a page jspx, with a table and a button.

    Create the table data control, and it contains 4 columns

    (Name, card student, asked (Question or answer)).

    I create the code for the button to work

    1. Select a record

    2 send email

    3. when I send the request goes from Q to A

    All work fine. The mail has been sent. The demand for DB password Q has. But in my jspx table refreshes.

    Until I close and open again, it displays all the data.

    How cal I solve it?

    Thanks in advance

    Christos.

    Simply add partialTrigger on table pointing to the button.

    It will update the table when the button is clicked.

  • Unable to update the payload by managed program from Bean data

    Hello

    BPM 11.1.1.5 + Extensions Pack features, Feature Pack, JDeveloper 11.1.1.5 model: ADF BC

    How to access the BPM 11 g load useful or process varibles in the workflow of ADF
    The task of reading by program details

    I followed the 2 wires above to read the value according to the payload data.
    So I'm able to read existing values according to the payload data.

    Managed code of bean to get the current payload data (copied from the links above) - tried the call of setOperation and invokeOperation
    SerializableAttribute public class MyBean extends InvokeActionBean
    {
    public String setOperation (ActionEvent actionEvent)
    {
    FacesContext context = FacesContext.getCurrentInstance ();
    String tskId = (String) context.getApplication () .evaluateExpressionGet (context, "#{pageFlowScope.bpmWorklistTaskId}", String.class);
    IWorkflowServiceClient workflowSvcClient = (WorkflowServiceClientFactory.REMOTE_CLIENT) WorkflowServiceClientFactory.getWorkflowServiceClient;
    ITaskService taskSvc = workflowSvcClient. getTaskService().
    ITaskQueryService wfQueryService = workflowSvcClient.getTaskQueryService ();
    IWorkflowContext wfContext = WorklistUtil.getWorkflowContextForASelectedTask ();
    Task myTask = wfQueryService.getTaskDetailsById (wfContext, tskId);
    Element payloadElem = myTask.getPayloadAsElement ();
    NodeList payloadNodeList = payloadElem.getElementsByTagName (("MyApproval"));
    Node fstnode = payloadNodeList.item (0);
    Element fstElmnt = fstnode (element);
    NodeList tstNmElmntLst = fstElmnt.getElementsByTagName ("approvalRequired"); getting node approvalRequired
    Element tstNmElmnt = tstNmElmntLst.item (0) (element);
    _logger.severe ("node Value:" + tstNmElmnt. getNodeValue() "');
    ...
    the above newspaper printed the existing value correctly in newspapers

    So far so good.

    But my requirement is to update the payload data before sending it to the next task.
    These payload data process will decide which path to choose (exclusive gateway).

    So I tried to update the following payload data.

    tstNmElmnt.setNodeValue ("yes"); (actually it comes to dynamic value returned from a java method)
    Return super.setOperation (actionEvent);
    }

    The statement above doesn't seem to work.
    There was no exception as well.
    I checked the data payload of the Oracle Enterprise Manager of verification of process instance console, but it doesn't seem to affect the new value ("yes")

    Can someone check and let me know if I missed something?

    Thanks for any help.
    Concerning
    Sameer

    Next post helped me.
    Assign the role, the Group initiated human when task

    We need to call the following method to update the data payload instead of setNodeValue

    tstNmElmnt.setTextContent ("yes");
    myTask.setPayloadAsElement (payloadElem);
    taskSvc.updateTask (wfContext, myTask);

    Thanks and greetings
    Sameer

  • How can I update my workflow JDeveloper for patch 1 group

    People of Hy,

    Can anyone help to update the workflow of my jdeveloper to the workflow of the patches 1 group?

    Thks

    Open your project on JDev PS1, regenerate the artifact and redeploy. Will do.

    Published by: George Maggessy, February 11, 2010 09:42

  • Deploy the ADF - BC on different JVM (not a cluster) and update the same row

    Hi experts,

    I have a question for the locking of ADF BC. Suppose I have a web application that you want to add using add-British Colombia. And the web service interface is enabled for ADF - BC. In this case, what happens if I try to deploy as follows

    Deploy the web application ADF with add - bc on a JAVA virtual machine and the other JVM deploy only the Add-bc with active web service. In this case how the locking of the database will work. Incase if I change the line in the ADF, faces and then try to update the same line using the web service in the another JVM. Framework will lift the ADF line locked by an other user error? Or the locking works only if both are on the same virtual machine JAVA or deployment in the cluster?

    Thank you

    It depends on how you define your lock mode to work in British Colombia of ADF - but assuming you are using optimistic locking - it will be work well since the ADF BC lock will check whether the data in the DB has changed and then throws an exception in letting you know on the subject.
    http://docs.Oracle.com/CD/E24382_01/Web.1112/e16182/bcstatemgmt.htm#BABHBIAB

  • CRUD using ADF fails to update the database table

    Hi all

    I am very new FAD and JDev. I use JDev 11.1.1.2.0 and oracle 10g DB.

    I created the necessary
    1 model, view, control files of data using JDev to a DB table control.
    2 .jspx file having a "Panel Accordin ' and a page layout"Panel formLayout"to display the fields in table required on the page."

    I use Panel corre layout to display data with buttons of browsers and works very well.
    In the the Panel layout form, after posting the fields I added the button 'submit '. I've linked this button with the operation "Commit" by drop and simple drag.
    PS: I've added the fields by simple drag / drop control of the data file maps to the table in question.

    The performance of the page I find things work fine until I want to use the submit button. It just updates the UI front, but when I check in my database table I find that it has not been updated.

    I am naïve. Pls Guide.
    A site with step - by - development of end to end step will be very large.

    Desperately waiting to get this resolved.

    Thank you all

    Published by: user8925296 on January 16, 2010 02:13

    The performance of the page I find things work fine until I want to use the submit button.

    See if your button submit has an EL expression in its property "disabled".
    Depending on how you want it, delete this EL expression or add partialTriggers button to make it refresh partially each time that a field can be changed on your page changes...
    (Assuming it's all ADF faces that you use. Also, see more here: Re: activate/register button )

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

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

    The purpose of the payload is constructed as follows:

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

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

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

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

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

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

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

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

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

    See you soon,.
    Emil

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

    Hi Emil,

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

    Document document = XMLUtil.createDocument ();

    was soon Nicolas

  • How to update the task workflow via the API

    Hello

    I'm looking for a way to update the details of the task (as comments) for a workflow task human bpel from inside the bpel project (bpel:exec with the java code, for example). Can you suggest a demo code?
    Thank you.

    Are you sure that you copy the right values in the right places and that you didn't overwrite the old values, but add? As the inputs/outputs of task variables are limited, you must copy them into a global variable if you need to access outside their own field of work. I think I need to present the task comments from one task to the other I always use a global variable that maintains the sum of all comments added. You could glue the parts of the copy of your bpel file? Also can you show the comments of the xml task 3 and 5 runtime part?
    Kind regards
    André

  • Workflow runtime do not receive updated the configuration element attribute value

    I added an attribute called "maintenanceMode.  At the beginning of the launch of a workflow I find the value of this (it's a Boolean value) and if it is set to true, the workflow sleeps for 5 minutes then wakes up and checks that the value again.  If it is false then the workflow must run the rest of the run.  The problem I have is that the workflow does not seem to raise the value of the attribute as it was during execution.  If I change the value that I do it manually does not seem to pick up the change.  Is there a discount of some sort I require before you archive it to clear any cached value?

    Paul

    To attract the attention of Paul on this post.

  • ADF Dynamic interface User Shell showing blank tab for the workflow

    Hello

    Jdev 11.1.2.0.0

    I tried application UI standard dynamic tab Shell in my application. Each tab in my application a taskflow.

    If I enable the ADF security, my tabs are displayed as empty. I did added Grant resource task flow.

    But if I disable the security of ADF, the tabs are correct content display.

    Checked under forums
    https://forums.Oracle.com/thread/2393963
    https://forums.Oracle.com/thread/1023619

    I also tried adding project sample Patterns (dynamic tabs) as the jar.
    And by assigning the role authenticated blank.xml. His does not work. Always to the Virgin poster.


    Grateful for the help on this issue.


    Thank you.
    Abhijit

    Issue slipped. After having authenticated the role to

    Blank.XML and dynamicTabShellDefinition

    Refer

    https://forums.Oracle.com/thread/2393963

  • Update the table on the dialog flow back task...

    Hi all

    I have a table. In a context menu of the table, a user uses a menu command to launch a workflow task merely as inline popup dialog box, which allows them to alter certain data associated with the selected line. It all works very well.

    What I'm trying to understand, that's how I trigger a refresh of partial page on the table once the workflow returned and the dialog box closes. I tried to call a support as target bean method of the "listener after" for the call activity of workflow that call the stubborn workflow, which calls AdfFacesContext.getCurrentInstance () .addPartialTarget (table), but which did not cause a refresh of the table. I waited a bit that would be the case.

    So, what event can I link at the right time in order to update the table?

    Thank you

    Hello

    When you open a workflow bounded in a small popup, then you use the earpiece back on the component that runs the pop-up window to refresh the table. On http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html, see example #69

    Frank

  • Pages crashing all the time after updating the OS 10.11.3

    Hello, I have problems with Pages crashing since I received the update OS X El Capitan (10.11.3). Common problems are:

    • Pages could open documents with considerable delays: when I double click on a file, it may take up to 20 seconds before opening the document (at the same time, the only thing running is 2 tabs in Safari with non-intensive websites like Wikipedia);
    • Pages would not open to all documents: sometimes it refuses to open my documents either. When I choose for example a document on the 'Recent' via dock icon Pages list it will not launch it. If I wait for awhile and just click the Pages icon, hoping that it will be launched the document in the background, he brings just to the top of the window with the models as if I wanted to open a new document.
    • 'Missing font"all the time: I did not the latest changes to my fonts, but when I opened a document originally created in Pages (and not a converted copy of an old Word document) it always gives an error message "missing fonts" - particularly associated with Microsoft fonts. I downloaded and installed Cambria and Calibri manually and it fixed the problem... for about 8 hours, then he started again.
    • Beach ball rotation of death during the execution of simple operations: it's exasperating, but every now and then when trying to type or text in bold (and similar), the beach of death ball will appear, making the Pages does not.
    • Crashing before loading the same: when I force quit the app because it did not and then I try to run again, often they no longer again before loading the same. What the...?
    • Impossible to duplicate documents: at one time I thought that it is a certain file at the origin of all evil, so I tried it duplicate several times - which of course caused Pages to plant again and again. Same thing happened when I tried with other files.

    I had a similar problem before and it was fixed to restore the default fonts and removing duplicates in the FontBook app, but unfortunately it did not this time.

    I don't know what is wrong or why. It was working OK just a couple of days. Anyone else have similar experiences with it? Looks like Apple may not come out with an update that doesn't break the workflow of the people. But yay, more emoticons and pictures Live Webcam on the way!

    Because my Pages on El Capitan 10.11.3 v5.6.1 works very well with any of your questions, I believe that it is not Pages, but something out of Pages in your environment operating system as a cache of corrupt police, duplicate fonts, or damaged preferences file. Perhaps it is that you are too many applications running for your memory availability and Pages of hunger. All in due time.

    Let's start with a secure boot that will clear the system and local caches, rebuild the database of the police and then see if it stabilizes your use of the Pages.

    Secure boot

    1. Shut down your Mac.
    2. Press the power button and immediately press on and hold down the SHIFT key until you see the horizontal progress bar. I usually wait until it's an inch along before I release the SHIFT key. Personal touch.
    3. You will arrive at a login window. In the upper right screen, you'll see Safe Boot in red letters.
      1. After you type your password, stop, then press and hold the SHIFT key again once, before you click on the right arrow to open a session.
      2. Continue to hold the SHIFT key until your painting of icons on the desktop.
      3. Because many drivers are not loaded, graphics performance is not optimal, and may feel morose.
    4. Test Pages in startup mode to see if the problems have disappeared.
    5. Restart normally.
    6. Start Pages and open a document.

    Previous post the results of step 4 and 6. Have what improvements (if any) you noticed?

  • Access a value to a variable which is a bean to any place in the application of adf.

    Hello

    I am very new to the ADF.   I'm fighting on access to a variable in another form of bean a bean. My script is as below.

    I have a stubborn workflow. He has a page that has a text field and a button. I have a bean that brought the application. The bean has action method setTextInput(). When the user enters text in the text field and click on butoon methd of bean is called. I am able to get the text entered in my method of bean. I want the text user enterd the value value in a variable of the bean and its value access from ANY WHRE we will ' say to another bean of scope of the request in the workflow of the application of the adf. So could you please help me on this. It is very urgent. I think that this is a common use case.so adf expert can help me easily.

    --

    Your idea is to store the user on a bean to support State, and is not exactly a best practice in the ADF, if you are using business components.

    You can create a transitional field in one of your ViewObjects and in this way, you can access the value from anywhere in the application.

    Creation of an attribute of the transitional View object is simple, you can find an example here:

    http://oralution.co.uk/site/2013/08/07/ADF-tutorial-transient-attributes-and-how-to-populate-them-part-1/

Maybe you are looking for

  • How to import .eml messages?

    I have e-mail messages in folders in the .eml format. but none of the programs three import see them as messages when I point to the files. How can I import in thunderbird as local folders? Thank you, in advance.

  • question about the installation of Microsoft fix it solutions

    OK, I went ahead and went to the correction page for proofreading tool to disable/sidebar gadget. Now say that the instructions to RUN the fix it. But I advanced and downloaded the fix to my desk top first. Is it OK to download to the desktop first a

  • HP Officejet Pro 8600 + not to recognize the new real black and yellow ink cartridge

    HP Officejet Pro 8600 +, this machine is 1 year old, just out of warranty and is not recognizing the new yellow and black cartridges HP ink. Tried the hard reset and cleaning the parts set out in other posts in this forum without success. Disappointi

  • Problem with Illustrator CC Type Vertical

    I'm trying to change the orientation of type in Illustrator CC, but it doesn't seem to work.Normally I select type > Type Orientation > Vertical and direction changes so that the letters are separate.Lately, however, when I select this option simply

  • HP Pavilion dv4-2170us graphics card

    Hello guys I have one question though that I got involved me with games now and I bought this laptop HP Pavilion dv4-2170us about a year ago and now I want to upgrade my graphics card because I can't run games like SECTION 8 PREJUDICE because I'm in