Use the Action in a workflow control?

Hello

I have a question about starting a workflow programmatically control in 12 c JDeveloper and ADF.

Imagine, I have two points of view and according to the JSF pages called t3 and t4. Between t3 and t4, there is a control flow to be used from an action that is called from t3. The performDbAuthentication action is within the implementation of an application module called SecurityAM class. View T4 should be called if the t3 button executes the action and action returns true.

Now my problem: if I push the button on t3 SecurityAM method is executed successfully (displays messages to System.out) but there is no switch to view t4. What Miss me.

Here are the code snippets...

Any hint is appreciated.

Kind regards

Björn

ADFC - config.xml:

<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
  <view id="t3">
    <page>/t3.jsf</page>
  </view>
  <view id="t4">
    <page>/t4.jsf</page>
  </view>
  </control-flow-rule>
  <control-flow-rule id="__5">
    <from-activity-id>t3</from-activity-id>
    <control-flow-case id="__6">
      <from-action>#{data.view_t3PageDef.performDbAuthentication.execute}</from-action>
      <to-activity-id>t4</to-activity-id>
    </control-flow-case>
  </control-flow-rule>
</adfc-config>

T3. JSF:

<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
  <af:document title="t3.jsf" id="d1">
    <af:messages id="m1"/>
    <af:form id="f1">
      <af:outputText value="Page t3" id="ot1"/>
      <af:button text="performDbAuthentication" id="b1" actionListener="#{bindings.performDbAuthentication.execute}"
                 disabled="#{!bindings.performDbAuthentication.enabled}"/>
    </af:form>
  </af:document>
</f:view>

T4. JSF:

<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
  <af:document title="t4.jsf" id="d1">
    <af:form id="f1">
      <af:outputText value="Page 4" id="ot1"/>
    </af:form>
  </af:document>
</f:view>

SecuriyAMImpl.java:

public boolean performDbAuthentication(String username, String password) {
  System.out.println("HUsername: " + username);
  System.out.println("HPasswort: " + password);
  System.out.println(true);
  return true;
}

Navigation can be triggered that from property 'action' of the button (in fact, you can trigger navigation same actionListener, but only with the code in some managed bean).

kdario wrote:

In addition, here it should be to fix the navigation rule: #{data.view_t3PageDef.performDbAuthentication.execute} instead of the EL expression.

What do you mean by fixed navigation rule? As documentation says as quoted above, this field is primarily for the use of EL.

My mistake, I want to say is: instead of the"action" to use "result" with a fixed value that corresponds to the result of your method of AM.

of the"action" property is used only if two different methods in the same page may return the same 'result', but navigation must be different for each of them (this is the case of complex navigation that can generally be avoided).

Dario

Tags: Java

Similar Questions

  • Where the log file is located (Win Vista) for the actions of OTHER USERS have taken to using the boxes in user account control?

    Where the log file is located (Win Vista) for the actions of OTHER USERS have taken to using the boxes in user account control?

    I use the version of Vista Home Premium.

    While I don't really like how the UAC area enters the information that tells it when to display the box tell me about your work of things on the UAC (I know an article exist on the web), is not how to answer this question.

    There is no log of UAC elevation file.

  • "File in use: the action cannot be completed because the folder or file is open in another program" when you rename a folder with Thumbs.db inside

    I looked at many similar responses but no nails really our problem.

    On a Windows client 7 to rename a folder that is located on a file server running SBS 2003.  When you try to rename a file that has a file "thumbs.db" in there he throws the message "file in use: the action cannot be completed because the folder or file is open in another program. and then it won't let you rename it.  This isn't a problem with other XP clients attached to the same server.  We have reduced to folders that have this file thumbs.db in through trial and error.

    It will work when you show just the icons which is unacceptable.  However, you can rename a folder that is located on the customers own local disk.

    Suggestions - we can work around it, but it of inturupting workflow and is old fashioned all simply boring.

    Thank you

    Happy to provide system info, anyone needs

    Hi JustinEllery,

    The question you posted would be better suited to the TechNet community. Please visit the link below to find a community that will provide the support you want.
    http://social.technet.Microsoft.com/forums/en-us/WindowsBackup/threads

  • Script to record an action that will convert the sRGB to CMYK file, then use the action in a script to support the process of a folder full of images?

    Is it possible to save an action to convert from sRGB to CMYK, then use the action in a script to support the process of a folder full of images?

    Do action, and run as a batch of PS (file > Automate > batch), or bridge (Tools > Photoshop > batch).

    Pay special attention to all the 'destination', 'save' and 'close' steps. You want to save a copy without overwriting the original, which can easily happen.

  • Move files using the Action Wizard

    Is it possible to move files from one folder to another on a network using the Action Wizard, I want to be able to move files to another folder, and then run OCR and other actions.

    N ° the Action Wizard cannot move or delete files his treatment.

  • How to use the action on all work plans

    I'm trying to find a way to use a single action that can be applied to several work plans.

    How you configure your work plans and guides. I just tried a test action that created two work plans using the work plan tool, then I did drag the guides. The guides are per document, and not unique to each work plan, but the action ran fine.

  • Can I combine three variables by using the action of the Expression in advanced Actions?

    I have an assessment (contains 9 questions) in my project that contains 3 lessons. Each question relates to a specific lesson. I want to break the score on lessons on my Quiz slide, instead of display the total score for all of the evaluation of the results, so that the learner knows what activities require additional study. I created a variable to contain the points marked on each question and assigning points to this variable using "QuizInfoLastPointsScored".

    Screen Shot 2015-03-26 at 11.53.18 AM.png

    I know what are the questions focus on what lesson:

    Lesson 1: questions 1-3

    Lesson 2: questions 4 to 6

    Lesson 3: questions 7 to 9


    However, I don't know how to add 3 variables together to get the total for this lesson. The action of "Expression" only allows me to combine the 2 variables:

    Screen Shot 2015-03-26 at 11.58.09 AM.png

    How can I add a third variable in the action "Expression"?

    I thought you don't need three totals: a global and two partial totals. The latter will be calculated not the subtotals. There is no need to first put the score in a variable separate at all. I used only the variables for totals of the three. You will calculate only the total world, and who could be with a single statement, no need for two to all:

    Expression v_total = v_total + cpQuizInfoLastSlidePointScored



  • How to use the Tablet 3 rd-Party controls (what?)

    Hello, I am new to hearing CS6. I have a Google Nexus 7 Tablet. I would use it for the mixture, but I don't know what 3rd party programs are compatible with the hearing CS6 looks that Adobe does not promote everything on the site, just refferes to them as programs 3rd party. I have creative cloud if that helps.

    Lucaro71 wrote:

    Hello, I am new to hearing CS6. I have a Google Nexus 7 Tablet. I would use it for mixing...

    Hmm... I'll make a suggestion that you don't like... and it's that you get used to hearing and he can do by using a mouse before you think of any form of control of the tablet - that is assuming you can do work at all (which wasn't easy), but...

    It goes like this: I did some experiments with a Tablet and hearing all the time, and I have to say that using such a mixer is less satisfactory - there are delays, and there is absolutely no subtlety on this at all. You spend a lot of time trying to make sure that your fingers are in the right place - and at the same time, of neccessity, must be addressed on the hearing screen - so effectively that you watch two screens at the same time. And that slows you down - a lot.

    What is rather better is to use a kind of remote control surface that has real faders - these are much easier to locate, and because you get the tactile feedback, everything is much more accurate. They are available, and they work fine. Mackie make a very nice...

    The thing the whole tablet, in which case the hearing, is nothing more than a gimmick. They have an audio of any use at all, you may be wondering? Well, there is at least one scenario where they are coming into their own, and it's like PA remotes. If you have a small jury rig PA for your group, using one of them you can set levels from a distance, without using a mixer remotely and the associated snake. And you can test it in several places in the room, too. And for this kind of application, this level of control is very good. But regarding the mixing table with precision control of hearing - quite frankly, as I fear, forget about it.

    And the reason why I proposed learning all about what hearing is capable with a mouse in the first place, is that when you get finally play with a Tablet, you'll realize exactly how much control you have lost, fairly quickly.

  • "File in use: the action cannot be completed because the folder or file is open in another program.

    Hello, we receive the following in Microsoft Windows 7:Folder in use error message, action cannot be completed because the folder or file is open in a different programClose the folder and try again. in fact, this problem occurs if we tried to copy, delete or rename folders or files on the server files (shared folder), if we sometimes we can do. For example, I tried to create a new folder or copy files on the file server (shared folder) 'I have all the permissions', then if I want to rename this file or delete it, I receive the high error. I did some research and found this Microsoft Support article:http://support.microsoft.com/?scid=kb%3Ben-us%3B949857&x=8&y=13, but it only applies to the Win 2008 and Vista (not for Win 7), but I install the fix on Win 7 and still have the same question. If he like adviseThanks & Best looks best regards - Abduljalil Abolzahab Technical Specialist - Microsoft technical support Forum: http://Forum.fourtyfivecorp.net

    http://support.Microsoft.com/kb/2025703

  • use the workspace files ora 10g control

    Hey;

    Is there a way to know how much space is actually used in a control of oracle 10g file?

    We just found out that two gross volumes containing control files are 96 megs and the third is 48 megs. There is a little history on how it happened that, frankly, is irrelevant. It must of course be fixed; However, I am curious to know how much space is actually used. It is obvious that it is less than 48 MB, or the database would be dropped. If it's 47,9999 megs, it is something "we do now" - if it is less that we have room to manoeuvre - this Saturday when the maintenance window is.

    Thanks for all the tips/advice/suggestions.

    Doug O'Leary

    Dear dkoleary!

    Please take a look at this:
    >
    You can calculate the size of the controlfile V$ CONTROLFILE_RECORD_SECTION. The size of each section is RECORD_SIZE * RECORDS_TOTAL rounded to a whole number of blocks. The block controlfile size is identical to the database block size. You then to double this size, because all data in the controlfile is stored in duplicate. This is necessary to recover in case the instance or the system crashes in the middle of a controlfile transaction. Finally, you must also enable 1 block for the header of the file. There is a script called controlfile_size.sql on Ixora web site that will do this for you.
    >

    Yours sincerely

    Florian W.

  • Why the script does not when I use the action "success: Show '?

    Hi all

    I have a group of objects, that are initially hidden from view. I also have a button on the slide, which is configured to display this group of objects by clicking on it.

    The timeline is put on pause after 3 seconds, allowing the user to press the button to display the hidden group - but when the button is clicked the timeline resumes, I don't want to happen.

    No idea how can I avoid this problem?

    Captivate 8.0.1

    By replacing the simple action by action standard oneliner. Take a look on:

    Why choose Standard Simple action? -Captivate Blog

    This blog also has a link to a YouTube video that shows the difference.

  • Use the OAF page and Workflow:

    Hello

    In a workflow, I have a region refered as OAF

    JSP:/OA_HTML/OA.jsp?page=/Oracle/Apps/AP/invoice/request/negotiation/WebUI/NotifPGRN & REFFACTURE = - & INVOICE_ID -.

    Now, instead of this region, I created a new area to satisfy my needs.

    Then, the region and import to the server.

    In the workflow, I changed the new name of the region.

    Now, when I run my page to the old area shows only. OAF page as I can't find the area to be called. But the region is available in the server.

    Please someone help me.

    Thanks in advance,
    Roselyne

    Roselyne,

    Bounce once on the server. It will solve your problem.

    Thank you
    Kumar

  • I can no longer uninstall programs by using the install/uninstall feature in Control Panel.

    I get the message ' could not open INSTALL. LOG file.  This has just begun.  How can I find this file to reinstall?

    I get the message ' could not open INSTALL. LOG file.  This has just begun.  How can I find this file to reinstall?

    See if this will help, since you said "it has started"...
    Do a system restore. Choose the date before having this problem as your restore point.
    Do safe mode:
    Here's how to get safe mode:

    Shut down your computer > turn it back on and immediately and repeatedly tab key F8 until you see a black and white screen. The top/down arrow and select Safe Mode.

    System Restore:
    Start button > Search box, type system restore > press the Enter key > uac prompt > click on choose a different restore point > next > select dates as your restore point, until the click > next > finish
    To sit and wait. The machine restarts when it's done.

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Once I have to zoom on video in post production using the effects Panel and movement controls &gt; scale how can I keep the sharpness of the image?

    How can I keep the sharpness after I Zoom.

    Never exceed 100% scale.  The image is going to deteriorate.

  • How to stop the video by using the Action Script?

    I imported external videos to my application Flash and when I test my movie and I click on a button that takes me to the frame where a video is and I start the video, then go and click on another button which takes me to the frame main or 'House', the video still plays in the background. Is there a way to get videos off automatically when you click another button or go home' (image 1) or something? Just put in stop(); the videos does not stop and my client do not like the fact that you must click pause in the video player and then click another button to go to another video. Any help and advice will be greatly appreciated!

    If you video takes place in an flvplayback component, the component of the assign an instance name (in the properties panel, for example flv_pb) and in the Panel shares add:

    flv_pb.addEventListener (Event.REMOVED_FROM_STAGE, f);

    function f(e:Event):void {}

    flv_pb. Stop();

    }

Maybe you are looking for