Region bounded taskflow one level up task flow activity

Hello,
in a jspx I use the <af:region> tag with the value pointing to bean from which I get the bounded task flow calling several .jsff files.
At the end of the processing I want to go back to the level of the original jspx to continue calling other jspx file within a bounded task flow.
I tried several ADF task flow activities but didn't succeed like 'parent action' or 'task flow return' or 'task flow call' :-(
What do I have to do to leave the bounded task flow within the region ?
Thanks in advance
Martin

Hi,
if you looked at parentaction then this is thr call you want. Just make sure that the navigationcase you return as the parent action exists for the JPSX page you are on
Frank

Similar Messages

  • Region not refreshing while reentry in task flow using task flow return

    Hi,
    Use Case :
    1) I have a task flow TF1 displayed as a region in page fragment Page1. Task flow has certain input parameters. It displays a data in table which is surrounded by Panel Box which is expanded if certain input parameters are set otherwise disclosed
    2) From Parents screen we have a button , on click of that button I am navigating to a different task flow TF2 , adding some data and coming back to screen Page1 through task flow return activity.
    3) Task flow TF1 should be refreshed with new data which is being set on through a bean variable.
    Task flow TF1 is not being refreshed. (I have tried setting the refresh property to 'If Needed')
    Please Suggest.
    Best regards,
    Anu

    Hi,
    Thanks for the response. Query is being execute in the backend. But region is not being refreshed even after change of parameter.
    Best regards,
    Anuradha

  • Bounded task flow not executing in a default view activity.

    Hi,
    I am practising Region to Region Interaction between two bounded taskflows in an unbounded task flow.
    I will just illustrate the theme:
    *Unbounded task flow[ DEfault view activity(view1)]*
    view1 contains Bounded task flow task 1 and task2.
    task 1 contains fragment frag1 .
    task 2 contains fragment frag2. I want to establish communication between task 1 and task2 through contextual events.
    I have created managed bean seperately for each bounded taskflow bean1 in task1 and bean2 in task2 which are in session scope that is frag1 vaues are maaped to bean1 and frag 2 values are mapped to bean2.
    I completed full flow of creating contextula events and event map too. I was stuck with errror.
    So I created an application only with default view activity containg boundsed taskflow and fragments and respective beans without contextual event and event map , so that i can make sure atleast my basicview is executing properl;y. But I failed to have result.
    Error is shown below:
    <UIXRegion> <_warn> Error processing viewId: /task1/frag1 URI: /frag1.jsff actual-URI: /frag1.jsff.javax.el.PropertyNotFoundException: Target Unreachable, 'frag1' returned null     at com.sun.el.parser.AstValue.getTarget(Unknown Source)
         at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)
         at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:416)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.beforeEncode(LabeledInputRenderer.java:117)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:334)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
    **somw lines removed since exceeding word length**
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    javax.el.PropertyNotFoundException: Target Unreachable, 'frag1' returned null     at com.sun.el.parser.AstValue.getTarget(Unknown Source)
         at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)
         at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:416)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.beforeEncode(LabeledInputRenderer.java:117)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:334)
         **somw lines removed since exceeding word length**     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    <Feb 14, 2013 10:09:12 AM IST> <Error> <HTTP> <BEA-101020> <[ServletContext@20743039[app:TaskR2R2 module:TaskR2R2-ViewController-context-root path:/TaskR2R2-ViewController-context-root spec-version:2.5 version:V2.0]] Servlet failed with Exception
    javax.el.PropertyNotFoundException: Target Unreachable, 'frag13' returned null
         at com.sun.el.parser.AstValue.getTarget(Unknown Source)
         at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)
         at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:416)
         Truncated. see log file for complete stacktrace
    >
    <Feb 14, 2013 10:09:12 AM IST> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at Feb 14, 2013 10:09:12 AM IST. Notification details:
    WatchRuleType: Log
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
    WatchData: DATE = Feb 14, 2013 10:09:12 AM IST SERVER = DefaultServer MESSAGE = [ServletContext@20743039[app:TaskR2R2 module:TaskR2R2-ViewController-context-root path:/TaskR2R2-ViewController-context-root spec-version:2.5 version:V2.0]] Servlet failed with Exception
    javax.el.PropertyNotFoundException: Target Unreachable, 'frag13' returned null
         at com.sun.el.parser.AstValue.getTarget(Unknown Source)
         at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)
         at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:416)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.beforeEncode(LabeledInputRenderer.java:117)
    somw lines removed since exceeding word length     
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = DS-E06995E6AA3D TXID = CONTEXTID = f03d4fb0a8f478c1:-6d1db003:13cd6f5c4ce:-8000-0000000000000039 TIMESTAMP = 1360816752931
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    >
    <Feb 14, 2013 10:09:16 AM IST> <Alert> <Diagnostics> <BEA-320016> <Creating diagnostic image in c:\users\dineshvishnukumar-c\appdata\roaming\jdeveloper\system11.1.1.4.37.59.23\defaultdomain\servers\defaultserver\adr\diag\ofm\defaultdomain\defaultserver\incident\incdir_248 with a lockout minute period of 1.>

    The error logs point to an error in your EL that references the frag1 bean. Firstly, rather than use session scope you must consider using pageFlowScope for your managed bean.

  • How to pass request parameter to bounded task flow?

    Hi, this is probably a simple question, but just not sure how this should be done. I have a .jspx that contains an ADF region for a bounded task flow. The task flow has a required input parameter, e.g. objectId. I want to be able to pass a request parameter that's sent into the .jspx page to the task flow. For example, Test.jspx?id=123 should pass 123 for the objectId input parameter of the task flow.
    When adding the ADF region to the page, the Edit Task Flow Binding dialog prompted for a value for the objectId input parameter. I wasn't sure what I can put for the value so I just hard-coded something like 123 for now. So in the page definition file, sometihng like the following got added:
        <taskFlow id="testtaskflow1"
                  taskFlowId="/WEB-INF/taskflow/test/test-task-flow.xml#test-task-flow"
                  activation="deferred"
                  xmlns="http://xmlns.oracle.com/adf/controller/binding">
          <parameters>
            <parameter id="objectId" value="123"/>
          </parameters>
        </taskFlow>I'm wondering is there some EL expression I can use for the parameter value that gets the value of the id request parameter passed into the .jspx? Thanks.

    you have to use it like.. #{bean.idValue} and in the getter of the id Value use it like
    private int idValue;
    //setter
    //getter
    public int getIdValue(){
              HttpServletRequest request =
                (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
            int id = request.getParameter("id");
           return id;
    }

  • UI Shell - how to allow ADF Library Bounded Task Flow to close itself

    Hi Richard
    Further to my other post, we're having lots of fun with the UI Shell, it's making mockups very easy.
    Question for you though based around the functionality defined in the UI Shell whitepaper. Say we've created our UI Shell application, and rather than wanting to create the bounded task flows in the app (ie.first, second, third), we create them as standalone bounded task flows deployed to ADF Libraries, and imported into our app separately.
    In the UI Shell examples bounded task flows are opened & closed via the UI Shell's own components (say the navigation page items or toolbar buttons), that call the methods in the Launcher bean (_launchActivity & closeCurrentActivity). It's fairly simple to rewrite the launcher helper methods in the launcher bean to call an imported ADF Library bounded task flow to open it as an activity, just referencing the correct task-flow.xml file.
    However as you know a bounded task flow has a "Default Activity" entry point and one or more "Task Flow Return" exit points. What I haven't been able to work out is how when the bounded task flow exits via a task flow return, can we call the closeCurrentActivity method in the Launcher bean? The UI Shell code examples demonstrate closing a bounded task flow by menu options/or similar outside the bounded task flow in the UI Shell, but it would seem reasonable if the bounded task flow exited via a "Task Flow Return" we should be also able to close the activity tab too.
    (....and as extension, before we even do that potentially call the checkState/isDirty() method to stop the user closing the activity too, but again driven by the bounded task flow attempting to exit).
    I could imagine inserting code into the bounded task flow finalizer to close the activity tab, but this pushes the UI Shell tab activity management logic into our standalone ADF Library bounded task flows which isn't ideal, especially if we want to later reuse them in another app which doesn't use the UI Shell.
    Any suggestions welcome.
    Thanks & regards,
    CM.

    And we're back again.... what's a couple months between friends?
    So it turns out after testing our app (d@mn, so close) that we've hit a bug with this approach.
    Our current app allows one BTF to be open in the UI Shell at any one time. Our menu options automatically open one BTF at a time by the user (max one open), and close the previous BTF. However we have some "special" BTFs that require the user to explicitly close the BTF, which in turn makes use of the regionNavigationListener solution I described earlier in this post.
    However we discovered a bug when we do a complete cycle of the 15 embedded regions within the UI Shell.
    Say we:
    1) Open a normal BTF in region 0
    2) Open another normal BTF in region 1 (our solution automatically closes the previous BTF)
    3) We then open another BTF (again the previous BTF is closed) in region 2, yet this a "special" BTF requiring the user explicitly to close it. Upon the user closing the BTF - this results in the regionNavigationListener being called and the removeTab() method called to close down the BTF in the UI Shell
    4) The user then open/closes multiple normal BTFs, one by one, rotating through regions 3, 4, 5 .... eventually back to 1 again
    5) Then the bug occurs - on opening any BTF back in region 2 (as part of the complete cycle of all regions), the tab for the region 2 opens, correct title, and via debugging the Tab.class has all the right settings including taskFlowId, but the tab is incorrectly empty
    doh!
    I've managed to track a symptom of the problem down that may explain what's happening.
    Each time a tab is rendered with a BTF, the Tab classes getBinding() method returns a reference to the binding required for the current BTF. However for some reason on the complete cycle, for "r2" it returns the binding for the previously user-closed BTF from step 3 above, even though we called the TabContext.removeTab() method.
    What I haven't been able to work out is how the bindings get turned on/off dynamically for each BTF being invoked. Presumably for some reason on step 3, the BTF's bindings aren't being correctly removed from r2 even though we called TabContext.removeTab().
    If anybody has any brain waves about what's going on and how to fix this problem, your help appreciated.
    Regards,
    CM.

  • Navigate betwen bounded task flows

    Hi,
    I build ADF UI for BPM. In my application I have a few bounded task flows (allowed url invoked) coresponded with human tasks, and inwoked form BPM Workspace. Unbounded task flow or any start page for application is unused. In my case, user invokes bounded task flow, but should have possibility to navigate to another bouded task flow directly. What is the best way to perform this navigation ? How to do it prorammatically ?
    Kuba

    When you want to invoke another taskflow from the current taskflow -- you could use task flow call activity if it is an one-off case.
    But if you have same scenario across all of the taskflows in the same applications, i would have to exit the current taskflow and invoke the other taskflow.
    This is a well defined pattern and documented in the following post:
    http://blogs.oracle.com/jheadstart/entry/core_adf_11_abandoning_a_bound
    Thanks,
    Navaneeth

  • Bounded Task Flow Navigation Issue

    Hi,
    I'm using Studio Edition Version 11.1.2.3.0.
    I have a main page with a panel splitter. The right side has a dynamic region and the left side contains links to launch a bounded task flow in the dynamic region.
    One of my task flows is a search form and has a call to another bounded task flow when I click on a command link in the table.
    My issue is if I want to return to search form, clicking on the dynamic task flow link doesn't render the search page.
    I have a bean for my dynamic task flow and the taskFlowId variable shows the url of my search page, but the navigation does not happen.
    Is there something that needs to be reset for this to work?

    Hi Frank,
    Sorry about being vague.
    I've compiled a little project using the hr sample db that duplicates my issue.
    Let me know if you have issues downloading it.
    I can provide the project via email if needed.
    Change your db connection to whatever you've defined for the hr db. I have mine running on a slave machine.
    If you click on "Search", search for an employee and then load the employee details by clicking on the employee id link in the table, the region navigates to the employee details page.
    However, if you click on "Search" again, the region does not navigate to the search page, it stays on the employee details page.
    I'm hoping it's just a setting in the properties for the task flow or the page fragment, but I can pen some code if needed.
    [Test Project Folder|https://docs.google.com/folder/d/0B5sTioNqfODuNWpfd3l3cEZfNU0/edit]

  • Bounded task flow task-flow-return to unbounded task flow throws 404

    I'm using an unbounded task flow (adfc-config.xml) to call a bounded task flow (task-flow-definition). All navigation in the bounded task flow works well, data is committing. (I am omitting many of the pages from the bounded task flow to keep this post shorter. If I can get this first page to return to the unbounded task flow, I can copy it forward.)
    My problem is when running from the unbounded task flow, I cannot seem to configure the bounded task flow to return to the login page inside the unbounded task flow, which called it, without a 404 error.
    Unbounded task flow:
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
    <view id="CPPLogin">
    <page id="__1">/CPPLogin.jspx</page>
    </view>
    <task-flow-call id="task-flow-definition">
    <task-flow-reference>
    <document>/WEB-INF/task-flow-definition.xml</document>
    <id>task-flow-definition</id>
    </task-flow-reference>
    </task-flow-call>
    <control-flow-rule id="__46">
    <from-activity-id id="__47">CPPLogin</from-activity-id>
    <control-flow-case id="__48">
    <from-outcome id="__49">success</from-outcome>
    <to-activity-id id="__50">task-flow-definition</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    <control-flow-rule id="__221">
    <from-activity-id id="__222">task-flow-definition</from-activity-id>
    <control-flow-case id="_223">
    <from-outcome id="__224">logout</from-outcome>
    <to-activity-id id="__225">CPPLogin</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    <managed-bean id="__23">
    <managed-bean-name id="__21">backing_CPPLogin</managed-bean-name>
    <managed-bean-class id="__22">view.backing.CPPLogin</managed-bean-class>
    <managed-bean-scope id="__25">pageFlow</managed-bean-scope>
    </managed-bean>
    </adfc-config>
    Bounded task flow:
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
    <task-flow-definition id="task-flow-definition">
    <default-activity>ContactInfo</default-activity>
    <no-save-point/>
    <data-control-scope id="__2">
    <shared/>
    </data-control-scope>
    <managed-bean id="__8">
    <managed-bean-name id="__9">backing_ContactInfo</managed-bean-name>
    <managed-bean-class id="__7">view.backing.ContactInfo</managed-bean-class>
    <managed-bean-scope id="__5">pageFlow</managed-bean-scope>
    </managed-bean>
    <view id="ContactInfo">
    <page id="__6">/ContactInfo.jspx</page>
    </view>
    <task-flow-return id="logout">
    <outcome id="__4">
    <name id="__3">logout</name>
    </outcome>
    </task-flow-return>
    <control-flow-rule id="__41">
    <from-activity-id id="__42">ContactInfo</from-activity-id>
    <control-flow-case id="__43">
    <from-outcome id="__44">logout</from-outcome>
    <to-activity-id id="__45">logout</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    </task-flow-definition>
    </adfc-config>
    Jdev version is 11.1.1.2. WLS is 10.3
    Currently trying to get it to work on the Integrated WLS before deploying an ear to the console.
    I don't know how to configure security, but here is the piece from my web.xml:
    <filter>
    <filter-name>JpsFilter</filter-name>
    <filter-class>oracle.security.jps.ee.http.JpsFilter</filter-class>
    <init-param>
    <param-name>enable.anonymous</param-name>
    <param-value>true</param-value>
    </init-param>
    </filter>
    Also,, I'm finding these hash entries in both Model.jpr and ViewController.jpr:
    <hash>
    <value n="id" v="BC4J Security"/>
    <value n="isJDK" v="false"/>
    </hash>
    Any help would be greatly appreciated. I'm way behind on this deliverable...

    Is the task-flow-return the ONLY way to pass values from the bounded to the unbounded task flow?
    Or is it possible to use a control-flow-case inside the bounded task flow like this, that refers to the unbounded task flow to navigate from the bounded back to the unbounded task flow?
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
    <task-flow-definition id="task-flow-definition">
    <task-flow-call id="adfc">
    <task-flow-reference>
    <document>/WEB-INF/adfc-config.xml</document>
    <id>adfc</id>
    </task-flow-reference>
    </task-flow-call>
    <control-flow-rule id="__41">
    <from-activity-id id="__42">ContactInfo</from-activity-id>
    <control-flow-case id="__43">
    <from-outcome id="__44">logout</from-outcome>
    <to-activity-id id="__45">adfc</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    I've tried every conceivable way to navigate from the bounded task flow, to the unbounded task flow, and the only consistent thing I receive is a 404. Is this a security issue?

  • ADF Task Flow Binding - Refresh ifNeeded being invoked even WITHOUT any Parameter change

    Using JDeveloper 11.1.1.6.0
    Issue: Task Flow Binding property "refresh = ifNeeded" seems to be triggered even without the mutation of the input parameter.
    As per definition, "ifNeeded: refresh the ADF Region if the value of a task flow binding parameter changes." (Reference: 17.5 Refreshing an ADF Region)
    Now for the setup which reproduces the issue.
    I'll focus at the fragment bounded task flow level and will skip the jspx side.
    taskflow: main-flow.xml
    contains a single fragment mainFgmt.jsff
    has a managed bean defined SampleBean.java as pageFlow scope.
    taskflow: sub-flow.xml
    contains a single fragment subFgmt.jsff
    has an inputParameter SampleBean.java (because it is an input parameter, by default it will be at pageFlow scope)
    !important - has a nested taskflow (task flow call as defined in the component pallete) called inner-flow (see below)
    the nested taskflow is the default activity
    the nested taskflow has an outcome pointing to subFgmt where outcome = "return"
    taskflow: inner-flow.xml
    contains a single fragment called stop.jsff
    has a return activity without outcome = "return"
    stop.jsff has a navigation pointing to the outcome.
    Finally mainFgmt.jsff has a task flow binding (pageDef)
    with id = "sub-flow.xml"
    refresh = "ifNeeded"
    parameter SampleBean being submitted as sub-flow's input parameter. (id=sampleBean, value=#{pageFlowScope.mainSampleBean})
    Assume that code compiles.
    In this scenario where the only tricky condition is the inner nesting (defined by !important), when the inner nesting decides to invoke its outcome to visit sub-flow's fragment, mainFgmt is restarting its taskflow which makes sub-flow start over again.
    Another way of saying it is, if sub-flow starts a nested activity and that nested activity exits out to utilize sub-flow's view. The high level definition which is mainFgmt's refresh ifNeeded is restarting sub-flow.
    In the above example if you notice, the bean (SampleBean) is not really being utilized except that it is completing the purpose of refresh=ifNeeded. This scenario is only to simplify the setup - in practical use this bean will be mutated to be utilized as a refresh mechanism.
    Now interestingly, if I change the pattern a bit then the issue will not happen:
    Don't use the nested taskflow (inner-flow) as the default activity, let a fragment of sub-flow hold the initial view.
    Navigate to the nested flow.
    Exit nested flow.
    Everything works.
    Now in this scenario, it seems like the sub-flow needs to have a view established first for it to be properly be used.
    So my questions are as follows:
    Can I consider the behavior of the refresh=ifNeeded as a bug in this usecase?
    Would it be better to utilize a different way of refreshing (maybe combination of refresh condition) to get around the issue?
    Is the use of the task flow as defined logical or does it cross any boundary or best practice that might be causing this behavior?

    Hi,
    actually you lost me in your description due to complexity. I lived under assumption that sub-flow already is a region on a view in main flow, but then you sad that
    "!important - has a nested taskflow (task flow call as defined in the component pallete) called inner-flow (see below)"
    which then confused me as to I have no idea if inner flow now is the second level nesting or first level nesting (should be second level nesting). If sub-flow is a region then having "has an inputParameter SampleBean.java (because it is an input parameter, by default it will be at pageFlow scope)"  is an unnecessary broad scope because the region wont live longer than view scope.
    Anyway, it seems that a region refresh is triggered by the lifecycle involved, which can be by design or a bug. I suggest you file a Service Request with support and provide a test case as purely from the description, its hard to parse and understand what is going on.
    Frank

  • Passing parameter between bounded TaskFlows

    Hi guys,
    I'm using JDEV 11.1.1.1.0
    I have two regions inside the same page jspx.
    I need to pass the parameter "lequelEstActif" from one region to another.
    I use the tag <af:setPropertyListener> and an inputParameter pageFlowScope.lequelEstActif inside the taskflow of one region as below :
    When you click on navigation command located inside a taskflow (jsff page), i want the parameter lequelEstActif of the other taskflow be refreshed.
    <af:commandNavigationItem text="#{viewcontrollerBundle.HOME}" actionListener="#{Rapports.onClickAccueil}"
    selected="#{pageFlowScope.lequelEstActif == '0'}" id="cni1"
    icon="/gfx/icon_house.PNG">
    *<af:setPropertyListener from="0" to="#{pageFlowScope.lequelEstActif}" type="action"/>* <af:clientListener method="cacherQuicklinks" type="action"/>
    </af:commandNavigationItem>
    But it doesn't work. It seems it can't reach the parameter located in another taskflow, i don't understand why.
    Any ideas why???

    In order for the taskflow to be re-executed based on the new parameter set, you would need to set refresh="ifNeeded" for the region in the pageDef.
    Can you check this?
    For more details, check section 17.1.7 in ADF Developer's guide:
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/taskflows_regions.htm#CHDHICHE
    How task flow refresh works:
    If you drop a task flow that takes some parameters as a region in a jsff page, the task flow binding will be added in the pagedef file. If you set refresh='ifNeeded' for the task flow binding, the task flow will be re-executed each time when the value for one of the passed parameters got changed. To be clear, here re-execution means the task-flow will re-execute from it's default activity in the task flow diagram.
    Thanks,
    Navaneeth

  • Multiple task flows on same page

    Surely appreciate any help on this:
    I am dropping the same bounded task flow as a region twice on the same jspx.
    The region ids are different.
    The task flow has a single fragment which is bound to a page definition.
    The page def exposes a web service data control consuming two web methods: a fetch and a corresponding merge.
    I am setting the data control scope to isolated.
    My desire is to have two autonomous copies of the same bindings, one for each task flow.
    Instead, setting the scope to isolated causes the second fragment to bind to nothing.
    Setting the scope back to shared causes both fragments to access the same bindings.
    Any help?
    Thanks and Best regards,
    Josh

    Actually, let me correct this post.. since the above is a workaround and not the real issue.
    The parent page publishes a contextual event that is subscribed to by the regional-ized bounded task flows.
    These are two instances of the same task flow.
    It appears that once the first task flow consumes this event, it is removed from the event queue, so it never reaches the second task flow.
    This appears to be a bug in the ADF framework. I suspect it may be extending a limitation of the underlying JSF controller.
    Please respond if you may have a resolution.
    Thank you and Regards,
    Josh

  • Navigating among task flows

    From a button which is in a region on a page (and therefore belongs to a task flow based on page fragments), how can we go about calling a page which belongs to another separate task flow (this one not being based on page fragments)? Is there a declarative way to do this? Is there a programmatic way to do this? Either way, giving or pointing to existing examples would be very helpful. Thank you.

    There is a declarative approach for calling a page (not a page fragment) from a button within a region using what's called a task flow "URL View" activity. It will navigate the page containing the region to the new page. Therefore, the new page will not appear within the context of the region. Here's some more information on task flow URL View activities:
    A task flow URL View Activity redirects the root view port to any URL addressable resource, even from within the context of an ADF Region. Possible URL addressable resources include ADF Bounded Task Flows, View Activities in ADF Unbounded Task Flows, and addresses external to the current web application (e.g. Google Search). When the URL View Activity is executed at runtime, its corresponding URL EL expression will be evaluated to get the appropriate URL. Any parameter value EL expressions will be evaluated and their resulting values will be added to the URL. Then the client will be redirected to the corresponding URL.
    A URL View Activity will redirect the client regardless of which view port the URL View Activity is executed from (root view port or an ADF Region). This differs from using a regular View Activity with a <redirect> element since the <redirect> element of View Activities is ignored within the context of an ADF Region. It is only honored if the View Activity is within the root view port.
    Redirecting elsewhere within the same application will be handled similar to a back button navigation since the task flow stack will get cleaned up. Redirecting out of the web application will be handled like dereferencing a URL to a site external to the application. Therefore, a URL View Activity is not always expected to redirect the whole page. When running with in a portal environment, redirects to external URLs (e.g. www.google.com) will redirect the whole page while redirects to resources within the same web application (e.g. /context/faces/some-view) will redirect just the portlet, not the whole portal page.
    When constructing a URL for use in a URL View Activity, the URL can be constructed using one of the following approaches:
    * By calling ControllerContext.getLocalViewActivityURL()
    * By calling ControllerContext.getGlobalViewActivityURL() passing in the target viewId
    * Be a fully qualified, absolute URL
    * Be a URL relative to the current view (doesn't start with a '/')

  • How to share the same Database Connection when using several Task Flows ?

    Hi All,
    I’m using JDev 11.1.1.3.0.
    I’m developing ADF Fusion Applications (ABC BC, ADF Faces…)
    These applications are deployed on a Weblogic server.
    Each application has only one Application Module.
    All Application Modules have the same connection type defined: JDBC DataSource : jdbc/GCCDS
    It is working fine.
    I’ve also developed Task Flow Applications for small thinks that are reused in multiple main applications.
    Each Task Flow Application has also one Application Module with the same connections type as main applications.
    All these task flows are deployed to JAR file (ADF Library JAR File) and are reused on my main applications. (drag and drop from the Resource Palette to ADF Regions….).
    There are some parameters passed to Task Flows, so that they can filter data depending on which main applications they are called from.
    Everything is working perfectly.
    All my main applications are using more and more task flows. Which is nice for the reusability etc…?
    Only ONE PROBLEM: DATABASE CONNECTIONS.
    Every Task Flows service made a database connection. So one user may have 10 database connections for the same adf page. And when there are 100 users that are working at the same time, it becomes a problem.
    How to share the same database connections for the main applications and all task flows which are used in the main application?
    Best Regards
    Nicolas

    Hi John,
    When I open a ADF Library JAR file of one of my task flow. (gcc_tf_recentSites.jar)
    I can see TF_RecentSitesService.xml and TF_RecentSitesServiceImpl.class in gcc_tf_recentSites.jar\mu\gcc\tf\recentSites\model\service folder
    + bc4j.xcfg in gcc_tf_recentSites.jar\mu\gcc\tf\recentSites\model\service\common folder.
    bc4j.xcfg details are
    +<?xml version = '1.0' encoding = 'UTF-8'?>+
    +<BC4JConfig version="11.1" xmlns="http://xmlns.oracle.com/bc4j/configuration">+
    +<AppModuleConfigBag ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService">+
    +<AppModuleConfig DeployPlatform="LOCAL" jbo.project="mu.gcc.tf.recentSites.model.TF_RecentSites_Model" name="TF_RecentSitesServiceLocal" ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService">+
    +<Security AppModuleJndiName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService"/>+
    +<Custom JDBCDataSource="jdbc/GCCDS"/>+
    +</AppModuleConfig>+
    +<AppModuleConfig name="TF_RecentSitesServiceShared" ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService" DeployPlatform="LOCAL" JDBCName="gccdev" jbo.project="mu.gcc.tf.recentSites.model.TF_RecentSites_Model">+
    +<AM-Pooling jbo.ampool.maxpoolsize="1" jbo.ampool.isuseexclusive="false"/>+
    +<Security AppModuleJndiName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService"/>+
    +</AppModuleConfig>+
    +</AppModuleConfigBag>+
    +</BC4JConfig>+
    So, it seems that the Application Module is packaged with the task flow....
    Is it normal ?
    Regards
    Nicolas

  • ADF Task Flow: Using Task Flow Call as Application Entry Point

    In our product we have a task flow structure very similar to the Fusion Order Demo application, but we are having serious trouble reproducing the documented functionality of ADF Task Flows.
    Specifically, we cannot use a task flow call as an entry point for our application, which is very important for us to achieve.
    The [Developer s Guide|http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/taskflows.htm#ADFFD1634] states about the [demo application|http://www.oracle.com/technology/products/jdev/samples/fod/index.html] :
    "A Fusion web application always contains an ADF unbounded task flow, which contains the entry point or points to the application. Figure 14-3 displays the diagram for the unbounded task flow from the Fusion Order Demo Application. This task flow contains the Home, *MyOrders*, *checkout*, registerUser, and updateUserInfo *view activities, which are all entry points to the application*."
    "The checkout-task-flow activity in Figure 14-3 is a call to an ADF bounded task flow."
    When we run the Fusion Demo Application, we are only able to use home, updateUserInfo and register as entry points.
    We cannot enter the application through any of the task flow call activities (MyOrders and checkout) as the documentation suggests.
    What are the reasons for this and how do we fix it, so we can use task flow call activities as application entry points?
    Thanks.
    Edited by: Rune Glerup on Oct 9, 2009 2:51 AM
    The forum did not display the link to "Developer's Guide" because the link contained the single quote char '. Single quote char removed.

    Is what you mention here the case in the Fusion Order Demo application?
    If the task flow call activities cannot be used as entry points, why is it stated in the documentation?
    How do we solve this, so that the task flow call activities (including parameter bindings) can be used as entry points, like the documentation suggests?

  • Avoiding request scope bean clashes for task flow calls

    Hi,
    I have two task flows, Tf1 calls Tf2 using a task flow call activity. The structures of the task flows are as follows:
    Tf1
      Managed Bean: TfBean, request scope
        class Tf1Bean
          has property goTf2Button
      View: View1
        Button bound to #{TfBean.goTf2Button}
          Action -> task flow call to Tf2
    Tf2
      Managed Bean: TfBean, request scope
        class Tf2Bean
          has property testButton
      View: View2
        Button bound to #{TfBean.testButton}
    As you can see both have a request scope bean called TfBean but these are different classes in each. The bean classes have different properties for binding the components on the two pages.
    When I click the button in View1 to navigate I get an error telling me that class Tf1Bean does not have the property testButton. Clearly Tf2Bean is not being instantiated as TfBean already exists for the request.
    I'm guessing this is expected behaviour and it seems logical.
    My question however is what would be good standards or practices to avoid this?
    One way would be a naming convention, however what if I am consuming Tf2 from a library? In this case it would ideally work as a black box and I should not be concerned about it's implementation, specifically names chosen for internal managed beans. Even if it was not a problem initially, the developer of the task flow could add or change the name of a request scope bean introducing a conflict at a later stage.
    Thanks,
    Kevin

    Hi Frank,
    Good to meet you at UKOUG Tech13 yesterday. I changed my test case from request scope to backing bean scope. Unfortunately I still get the same error:
    <RichExceptionHandler> <_logUnhandledException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    javax.faces.FacesException: javax.el.PropertyNotFoundException: The class 'yyy.view.Tf1Bean' does not have the property 'testButton'.
      at com.sun.faces.application.ApplicationImpl.createComponentApplyAnnotations(ApplicationImpl.java:1900)
      at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:446)
      at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
      at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:506)
      at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:744)
      at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1311)
      at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:67)
      at oracle.adfinternal.view.faces.unified.taglib.nav.UnifiedCommandButtonTag.doStartTag(UnifiedCommandButtonTag.java:51)
    ...etc.
    What I think is happening, please correct me if I'm wrong...
    Running Tf1, page View1 is displayed.
    Clicking the button on View1 initiates a request and an instance of Tf1Bean is instantiated for the managed bean named TfBean.
    During the request navigation occurs to Tf2 and hence page View2.
    View2 needs a property in TfBean called testButton.
    There is already a managed bean instantiated for this request called TfBean, however this is of class Tf1Bean and does not have the property.
    I have a simple workspace showing this if you want me to send it to you. I am using 11.1.2.4 by the way.
    Thanks,
    Kevin

Maybe you are looking for

  • Could not complete the video frames to layers command because the DynamicLink Media Server is not av

    I have this problem, I have PS CS6 and when I click on File> Import> Video Frames to Layers.. Next, the window that says "Initializing Video Import" starting to load and always get stuck and that's what appears: "Could not complete the video frames t

  • IRecovery: who is it for? how to use it?

    Is this something that jailbreaks your phone? I've tried downloading the downloads that it says to for a windows computer but when i go to open them to "unzip" them it asks for which program to use. What do i do?

  • How to get the content of a website to a txt file via powershell

    Hello, I have a reporting server that creates a report to a URL, by running multiple .xsl files. I want to be able to gather the data in the URL and convert it to csv or txt file via powrshell. Again I want the data inside the URL, I've been playing

  • Clearing cookies, cache and what are plug ins?

    Greetings, I followed a post here from SANIBEL explaining how to successfully clear my cache. Then to clean out the cookies under the Security tab of Preferences by clicking on REMOVE ALL WEBSITE DATA. I then clicked on DETAILS and see that there are

  • How do I fix a stack overflow?

    Hi, Well I hope I am posting this in the right section of topics. I am new to programing.At the moment I am sudying loops in Java. I did something that has caused a "stack overflow" in my computer(Whatever that is). Is this really bad for my computer