The task flow ADF/BC - grouping of DB connection problems

Hello

I have a portal application that contains 8 Taskflows in first page (at home), all workflows use backing bean that connects to BC using data binding / control to consume methods of Application Module, basically, the module of the application retrieves the view object and perform queries, updates, etc..

seems that the gate opens a connection of database for each taskflow, when the user opens the first page of the portal I 11, 12 connections open on the Oracle database, is - this normal for the portal, pooling techniques? If a problem how to avoid this?

Thank you

Thiago

Hey guys, I found a property Application Module called jbo.shared.txn I put the same name for all AppModules on flows of different tasks

now when I open a new conext in another browser, for example the House portal that contains 6 common tasks instead of open blocks of 6 database connections it opens only 1 per context.

It may be useful in the future.

Thank you

Thiago

Tags: Fusion Middleware

Similar Questions

  • Is it possible to access the task flow parameter in the EOImpl.create () method?

    Hello

    Is it possible to access the task flow parameter in the EOImpl.create () method? In the affirmative, please let me know how to access.
    FYI... I have a CreateInsert < xxx > activity in the workflow, which, I believe, called the EOImpl.create () method internally. During the creation of the entity, I want to assign a default value based on the parameter of workflow.

    Thank you

    A way to pass parameters from workflow for the model is during the initialization of the workflow. To do this, you can create a prepare() method in the Module of your Application and call it from the workflow. By defining this method by default in your workflow, it will be called every time that the workflow starts. You can pass any task rate desired as the arguments of a function prepare() method. In the prepare() method, save the workflow of the values for parameters in the transient variables EO or VO. These variables will then be accessible in the create() methods.

  • Impossible to make the task flows 'content '.

    Using JDeveloper 12c.2.1

    I have a casting of task defined (using fragments) which have a point of view, which is a page jsff with a button and an input field.

    I have a jsf page based on a template and I insert the workflow defined in one of the facets, but the display of limited work flow content is not displayed.

    I tried to insert the workflow bounded in a single page without a template as well.

    As far as I know, makes it is quite true that I just put the items on the JSFF page.

    Simple page

    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html>
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <af:document title="test_filter_no_template.jsf" id="d1">
            <af:form id="f1">
                <af:panelGroupLayout id="pgl1" layout="vertical">
                    <af:region value="#{bindings.filtertaskflow1.regionModel}" id="r1"/>
                </af:panelGroupLayout>
            </af:form>
        </af:document>
    </f:view>
    

    Where filter task flow is the flow of work.

    Filter task flow display

    <?xml version='1.0' encoding='UTF-8'?>
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <!--oracle-jdev-comment:auto-binding-backing-bean-name:beanFilterStatCodeView-->
        <af:panelGroupLayout id="pgl1" binding="#{backingBeanScope.beanFilterStatCodeView.pgl1}">
            <af:inputText label="Input" id="it1" binding="#{backingBeanScope.beanFilterStatCodeView.it1}"/>
            <af:button text="Filter" id="b1" binding="#{backingBeanScope.beanFilterStatCodeView.b1}"
                       action="#{backingBeanScope.beanFilterStatCodeView.b1_action}"/>
        </af:panelGroupLayout>
    </ui:composition>
    

    Tour out which had not activated the fragments of page under security configuration.

    DOH.

  • Input parameters of the task flow and "back" button

    Hello experts. I have two stubborn workflow created by page; say they are TF1 and TF2. Each workflow task has their own controlled beans. These controlled beans are kept in the Page flow scope. The two task-flow has their own of initializers.

    By an action on TF1, I redirect to the TF2. During this redirection, I pass some parameters. After redirection when it enters the TF2, I extract the parameters programmatically. Now I'm back on TF1 and TF2 of TF1, I'm clicking on the back button of the browser. Note that I put anything if the re-entry allowed or not in TF2. After clicking the browser back button access me for the new TF2. TF2 called if I generate any action of the initializer. BUT now I can not get the input parameter values more. All values in the set of input null parameter.

    My question is:

    • Why have defined null values?
    • How can I make persistent values?

    Any pointer would be very useful.

    I use JDeveloper 11.1.1.6.0, WebLogic 10.3.5.

    Thanks in advance.

    Tapas

    There is a way. Click on "back" button is not invoke the lifecycle JSF and browser displays the previous pages in its cache. If somehow, I can say browser not to cache the page, then every time a click the back or next button, the browser would GET the page headed from the server, which would eventually be my.

    So I added a filter to achieve this:

    public class NoCacheFilter implements Filter {
        @SuppressWarnings("unused")
      private FilterConfig _filterConfig = null;
    
        public void init(FilterConfig filterConfig) throws ServletException {
            _filterConfig = filterConfig;
        }
    
        public void destroy() {
            _filterConfig = null;
        }
    
        public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
            HttpServletResponse servletResponse = (HttpServletResponse) response;
            servletResponse.setHeader("Cache-Control","no-cache, no-store, must-revalidate, private, max-stale=0, post-check=0, pre-check=0");
            servletResponse.setHeader("Pragma", "no-cache");
            servletResponse.setHeader("Expires", "Sun, 16 Dec 1984 07:48:00 GMT");
            chain.doFilter(request, response);
        }
    }
    

    Note that I have to specify browser to cache resources, I do R & D to change this filter.

    It works. Hope, now I can spend my weekend peacefully :-).

    Ref:

    Tapas

  • Restart the task flow

    In a page, I have several components af:selectOneChoice, below which is a dynamic region (whose flow confined task based on the selected values). It works very well, on this day, leading to a change in a box selection in the appropriate workflow being shown. The new workflow starts automatically at step by default, which is great. However, I need to be able to "restart" the currently active workflow with a button.

    Is there a simple way to restart the workflow of a region? The region is already using Refresh = 'ifNeeded' as a change in one of the boxes of selection changes one of the params region. However, the user can be on another step in the taskflow, and I want a quick way to get back them at the beginning.

    I have a solution (based on the ' [ADF area Interaction | http://www.oracle.com/technology/products/adf/patterns/11/ADFRegionInteraction.pdf] ' white paper) that calls the region.queueActionEventInRegion method, but the problem I have with it is that I prefer not to force each subflow for navigation "startOver". The other problem is that my area has also a navigation receiver that hides the selection boxes when a navigation leaves the start page in the region takes place; When the "SystemRoot" region is specified, queue navigation occurs and my triggers of the listener, hide the fields select immediately. I have to kludge my code to prevent this.

    In short, there is no quick way to restart the flow of current, similar to how it works when replace you in an another taskflow?

    Thank you
    Barry

    Hello

    Try this

    DCTaskFlowBinding tf = (DCTaskFlowBinding)JSFUtils.resolveExpression("#{bindings.myRegion1}"); // or any other way to get to the region
    tf.getRegionModel().refresh(FacesContext.getCurrentInstance());
    

    Pedja

  • Run the task flow after the connection

    Hello

    I jdev 12.1.3 with MAF, I want to run the workflow directly after login, I do like image to blow the unlimited broadband task but no work, the workflow does not

    1.png

    any suggestion

    Its depends on the workflow first feature

  • Need help to test the VISA interactive Control: Sorensen XBT32 - 3FTP USB connection problem

    Hello

    I use Windows 7. I installed the USB driver provided in this link:http://www.sorensen.com/products/XBT/XBT_Downloads.htm.

    Max is on the ASRL5: COM5 series & parallel in the Device Manager it is listed in the port: COM5

    I don't know how to test using VISA interactive control to ensure that the connection is established.

    Here are the parameters:

    Serial settings:

    Baud rate: 38400,

    Data bits: 8

    Stop bits: 1

    Parity: None

    I use the default settings for the other options such as flow control: none, Timeout = 2000ms etc.

    In the attributes view tab:

    Attribute: is the connected port

    Current value: error VISA: (Hex 0xBFFF001D) the specified attribute is not defined or supported by the referenced resource.

    I don't know if it's important.

    When I write * IDN? \n (bytes to read: 6), I return the Count: 6 bytes

    When I click on "Read Status Byte":, I get the following error:

    Error reading STB operation VISA: (Hex 0xBFFF003A) cannot start the operation because the installer is not valid (because of attributes defined in an inconsistent state).

    If I click on "Query", I get the following error: reading operation error VISA: (Hex 0xBFFF0015) timeout expired before the operation is complete.

    I also tried to create USB raw driver help driver of VISA Assistant. In this case I kept getting timeout errors: read operation error VISA: (Hex 0xBFFF0015) timeout expired before the operation is complete.

    Can you please tell me what I'm doing wrong?

    Thank you.

    Who cares about the number of bytes written? And configure the windows com port is not relevant. What is important is how you set the com port in the VI or max.

  • Sorry, we could not connect to the Bank it is perhaps due to a connection problem. Please try again.

    Hi, I would like to know if someone is able to help with one? I have... I have an acer desktop pc that I bought new it came with widows 8 on it. I have problems with him now and then with some elements that are not their that should be, for example, I can't log in to the WINDOWS store it happens only with (((Désolé nous n'a pas été capable de se connecter àle magasin de ceci peut être dû à un problème de connexion veuillez RΘessayer)) I know that I'm online because I am on this page by typing now... I would like to know I) an option for led all data on the PC and return it to the factory settings.

    Another thing I window8 running and he said I have a 64-bit operating system & x 64 based processor INTEL (R) CORE (TM)

    but the two JAVA & Flash player are the two 32 bit?   PROCESSOR I3-3220 3.30 GHZ

    I don't have a windows disk as it came on e pc from the store I bought from that is to say, it was a pc brand new catalog if I reset windows will always be be on the pc or I have to buy a disc to reinstall it?

    PS; I have restored to a point about a month ago, but that has not worked I have the same problems now

    ANY HELP OR ADVICE PLEASE THANKS

    Hello William,.

    Thanks for posting your question on the forum of the Microsoft community.

    I would like to know some information about the problem so that we can help you better.

    Other applications on the start screen opens correctly?

    This problem may occur due to corrupted Windows store files or parameters.

    Please, do not restore the system at present.

    I would suggest trying the following methods and check if it helps.

    Method 1:
    Claire Windows store cache and check. Please follow these steps:

    a. press on Windows + R keys.
    b. in the run window, type the following command and press ENTER.

    wsreset.exe

    If this does not help, use method 2.

    Method 2:
    Run Troubleshooter app and check the issue.
    See this link:
    http://download.Microsoft.com/download/F/2/4/F24D0C03-4181-4E5B-A23B-5C3A6B5974E3/apps.diagcab

    Question of Java, please see this article:
    What download Java should I choose for my system to Windows 64-bit operating?
    http://Java.com/en/download/FAQ/java_win64bit.XML

    You can install the 64-bit version of Flash Player for Windows 8 from this link:
    http://go.Microsoft.com/fwlink/?LinkId=252627&clcid=0x409

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • ADF task flows and parameters WITHOUT data controls

    Hello world.

    In a previous post, I asked him about the best way to call the workflow "at a distance" by a "local" application Frank Nimphius suggested me to use the JAR ADF libraries between projects for this. I'll apply, but I have a small/big problem:

    As I said in my previous post, I exclusively use the EJB 3.0 - JPA technology in all my projects. The components business or data controls are used. Just a lot of Java-based components.

    Now, supossed that I have a (based in the HR schema) application with 3 projects:

    -L' one with all things EJB: entities from tables, session bean, and an example of a Java client.
    -The second as a 'local' point of view, with a JSPX (viewLocations.jspx) page that contains the table of communities (table_locations).
    -The third view "at a distance", with a JSPX too (viewCountries.jspx) page that contains the table of countries (table_countries).

    I have a button in views the remote, and one to switch from local to remote display and the other for the opposite.

    The goal is: pass a location of choice of table of locations for the project where I need to see the country for the selected location.

    In the table of locations, I use a variable currentLocation (declared as: private location currentLocation = new Locations() ;) to store the selected location and a SelectionListener process, called selectLocation_listener() with this code in the)
    backing.viewLocations.ViewLocations.java:

    + ' public void selectLocation_listener (SelectionEvent selectionEvent) {+
    + / / Add code from the event here... +.
    currentLocation = (rentals) table_locations.getSelectedRowData ();
    +}+

    If the selected location is stored in the variable currentLocation.

    Both in projects the and remote, in that I store the task flow JSPX pages. I have the taskLocal.xml as an unlimited workflow with the viewLocations.jspx as the main view and the taskRemote.xml as a workflow bounded with the viewCountries.jspx as the main view.

    I have deployed the project remotely in a library JAR ADF and imported to the local project, then I get it as a special activity Flow call.

    The question is: How can I pass the variable currentLocation as a workflow setting to my project remotely? I don't have any data control to bind to a workflow parameter.
    Should I really have some control of data to store my currentLocation variable and bind it to a parameter? Or there is another way without data controls?

    Another fact: local and remote project have a dependency with the EJB project.
    What about dependencies? Have a role in call task workflow activities?

    Thanks in advance.

    If you would like more information or a more detailed explanation please ask me.

    Hello

    a data control is needed for this. If you only want to use ADF task Flow and manage the component UI lie yourself, then you are good to go with this approach. To add parameters to a call from bounded task flows, have a look here

    http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31974/TOC.htm (Chapter 15, activities of view URL using 15.3)

    You can make the local variable that is accessible from an accessor method Set/getter bean managed so that you can use EL when you set the value of the parameter.

    Frank

  • get the property of task flow display name of java

    Version 12.1.3 jdeveloper

    I use this method to get the task flow display name property

    public String getTaskFlowDisplayName() {
            MetadataService metadataService = MetadataService.getInstance();
          //Get the task flow binding defined in our pageDef file
            DCTaskFlowBinding taskFlowBinding = getTaskFlowBinding();
          //Get Id of the currently running task flow
            if (taskFlowBinding != null) {
                TaskFlowId taskFlowId = taskFlowBinding.getViewPort().getTaskFlowContext().getTaskFlowId();
              //Get the definition of the currently running task flow by its Id and return its display name
                if (taskFlowId != null) {
                    logger.info("task FLow: display name:" + metadataService.getTaskFlowDefinition(taskFlowId).getDisplayName());
                    return metadataService.getTaskFlowDefinition(taskFlowId).getDisplayName();
                } else {
                    return "?? task flow name ??";
                }
            } else
                return "?? task flow name ??";
        }
    

    This method worked in 12.1.2 version

    but now, the getViewPort() method is not available

    Any other solution pls? ()

    Thank you

    Have you tried: taskFlowBinding.getTaskFlowId ()?

    Note that DCTaskFlowBinding is an inner class so you should probably not use it.

    If there is no better way, you can try using TaskFlow initializer is to remind current taskFlowId (you can retrieve the current workflow task id with: ControllerContext.getInstance () .getCurrentViewPort () .getTaskFlowContext () .getTaskFlowId ())

    and TaskFlow finalizer to clean the memory value.

    Dario

  • Assignment of the task to its users and groups

    Hi Experts,

    We have a requirement for the assignment of the task to its users and groups. What are the different options we have to achieve this goal.

    (1) considers that I have 6 groups, 6 groups, I need to take a group and itinerary of the task to a dynamic group.

    Each group contains also 15 users when a task is routed to the Group A then all users in Group A should get the job. How can I achieve this. Can u send me please step by step procedure.

    We use Jdev 11.1.1.6

    (2) I have confusion about the roles of Parametic what exactly it is? And what is the difference between parametric and Management Chain.

    Thanks in advance.

    Pavan

    Dan, thank you so much for the post and the explanation...

    But today, I just mention its only 6 groups... but if the groups continues to increase as groups of 100 or more so how can we achieve...

    Kind regards

    Pavan

  • XmlMenuModel cannot be used with bounded task flows

    My project need to use the navigation menu, and use with XmlMenuModel. But I know that use only with the unlimited workflow (can't go with the flow of tasks defined ADF)

    Can anyone explain to me why this problem exists?

    Thank you very much for the support.

    Hello

    This is because the model XML Menu navigates pages and not the task flow. The menu Menu XML, to give you a historical reason why, as developed by the open source Apache MyFaces Trinidad and here there is no bounded workflows. The implementation of the adfc - config.xml xml menu under uses the API provided by Trinidad. In stubborn workflows, view view navigation is done by train stops configured in the stubborn workflow. So you can say that the menu XML template only works for the top-level pages and top-level pages should be defined in the unlimited workflow.

    So for your use case work, you set pages in the unlimited workflow, and then add the workflow bounded as a region (if the region is the only child of a page, then the impression is that it is in fact a page without terminals and not a workflow). In this way, you can implement your design goal.

    Hope this helps

    Frank

  • How not to use no connection DB App with task flows created as 'New deal'

    Hello

    My request is entirely dependent on the Custom java datasource implementation and don't requires no connection DB at all. I made the necessary implementation (http://andrejusb.blogspot.in/2012/03/use-case-for-adf-bc-with-no-database.html) by creating CustomDatabaseConnectionStrategy that says
        @Override
        public ApplicationModule createApplicationModule(Hashtable env) {
          env.put(Configuration.DB_REQUIRES_CONNECTION,Boolean.FALSE);
          env.put(PropertyMetadata.ENV_DO_FAILOVER.pName, PropertyConstants.FALSE);
          return super.createApplicationModule(env);
        }
    My application works great until I have keep my transaction flow of task as "Operation No. Controller. Yes, I use the shell dynamic tab as UI model. But when I keep it as "Begin a new Transaction" and not to share control of data, the screen is not for all. I get an exception (I assume that when I try to open the workflow, he tries to get the connection. Since there is no connection available, it gives me this error. What then?)

    One of my requirement of customer is to open the screen even under multiple tabs as a screen of costs (i.e. with different transactions. "We do a transaction via Tuxedo transaction server). If I load a screen under the first tab with some data, added a few record, deleted records... and if I load the same screen on another tab, it should not refelect the same given what I have under the first tab.


    Requirement:

    I have no DB connection in my application. But I should be able to define the task flow to open with the new instance of the Application module whenever it is open.

    Your help on this would be appreciated.

    Rambeau

    If I understand correctly you requirements, you don't need transactions taskflow-ADF, but you just need to charge DataControls. If this is the case, you don't have to set the behavior of the taskflow transaction to "Always start with new Transaction" (e.g. keep it to 'No controller Transaction'), but the value of the "isolated" DataControl framework (e.g. uncheck the box "Share the data with the calling workflow controls" in the property inspector of the taskflow). In this case each instance taskflow starts in a different frame of DataControl (e.g. it will instantiate its own set of ApplicationModule instances).

    Dimitar

  • The Task Manager XP for a user account.

    How can I Manager tasks for a user reenble? Windows XP SP3.

    DisableTaskMgr
    HKCU
     
    Default range value data type
    REG_DWORD 0 | 1 0
     
    Description
    Prevents users from start Manager (Taskmgr.exe) tasks.
     
    This entry stores the group policy setting disable the Task Manager.
    Group Policy adds this entry to the registry with a value of 1 when you
    enable the policy. If you disable the policy or not configured value
    Group Policy deletes the entry from the registry and the system behaves like
    If the value is 0.
     
    Meaning of the value
    0 (or not in registry) the policy is disabled or not configured. Users can
    Run the Task Manager.
    1 users cannot run the Task Manager. If a user tries to start the task, one Manager
    error message indicating that a policy that prohibits the display.
     
    Task Manager lets users start and stop programs; monitor the performance of
    their computers; view and monitor all programs running on their computers,
    including services system; find the executable names of programs; and change
    the priority of the process in which programs run.
     
     
     
    --
    ..
    --
    "jisgwani" wrote in message news: 3d72d3a7-f6f1-4a4b-a940-7ab5b49a2756...
    > How can I reenble Manager of the tasks for a user? Windows XP SP3.
    >
     
     
  • Page fragment bounded-task-Flow Control Flow Help

    jDeveloper: 11.1.1.0.2

    I have a question to try to understand the correct way to use control flow case between a bounded-task-flow with fragments of page and a page without limits-task-flow. We have taken the approach of our application to have some shell / container pages to host bounded task flows composed of fragments of page to facilitate the reuse and accelerate development. There are 4 or 5 pages of shell on the unlimited-task-flow applications. From now on, we have about 20 fragments of page that are implemented as a bounded flow task. These fragments don't do much now, which means there is only a single fragment in each delimited-task-flow. The question that I'm going to try to call action from navigation to control flow of one of the fragments to load a page another shell.

    For example, shellPage1.jspx contains fragment-flow-1 as a region. In my adfc-config I have shellPage1.jspx and shellPage2.jspx, with the case of 'toShell1' and 'toShell2' control flow, respectively linking two pages. I have a link action related to the 'toShell2' in the fragment that make up fragment-flow-1. When the application is run, shellPage1.jspx and its fragment are displayed. But clicking on the link in the fragment ("toShell2") do absolutely nothing. This not me access the shellPage2.jspx as expected. What I do wrong here or do not understand?

    If the fragment is included as include a JSP page, and not a narrow-minded, all workflow works as expected. This is not desirable, as we then need to copy the fragment pageDef in pageDef of the shellPage to get the DataControls function.
    If the faces - config.xml is used instead, and a case of JSF navigation is used, it also works as expected. This is not desirable because we really do want to be mixing adcf-config and faces-config.

    So I am really puzzled here... Thanks in advance!

    Hello:
    In your case, the adfc - config.xml has the case of flow control between the pages of the shell. And the task-flow - N.xml or yours-task - flow.xml for each default page fragment does not inherit control flow of the page containing the shell case. In your case, in the task of page fragment - flow.xml, you must add a "Parent Action' to sink to shell page2 for example. The result of 'Parent Action' would be 'toShell2' If you call ShellPage1 page fragment.
    Is it 'OK' or 'Useful' for you? Please mark it as if it does.
    Good luck

    Alex

Maybe you are looking for