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

Hi,
Is it possible to access task flow parameter in EOImpl.create() method? If yes, please let me know how to access.
FYI..I am having CreateInsert<xxx> activity in the task flow, which I believe calls EOImpl.create() method internally. While creating the entity, I want assign a default value based on task flow parameter.
Thanks

One way to pass task flow parameters to the model is during the task flow initialization. For this purpose you can create a prepare() method in your Application Module and call it from the task flow. By setting this method as the default in your task flow, it will be called each time the task flow starts. You can pass to the prepare() method any task flow parameters you wish as function arguments. In the prepare() method, save the task flow parameter values in EO or VO transient variables. These variables will be then accessible in the create() methods.

Similar Messages

  • How to use a menu model with a dynamic region and a task flow parameter

    I am using JDeveloper/ADF 11.1.2.1
    I have a menu model that changes which task flow is displayed in a given dynamic region using a backing bean. That works fine. I would like to be able to pass parameters to that task flow based on which menu item is clicked. For example: i have a task flow which shows a page where input fields are used to filter a table. Depending on the value of the task flow parameter I want to change which input fields are displayed. So i will have multiple menu items which refer to the same task flow but have a different set of parameters. I have tried using request scope variables and setting them in the backing bean for the dynamic region which works until the query is submitted at which point the request scope has changed and the value is no longer available. I have tried a number of other 'creative' approaches but have not gotten anything to work. Anyone done this before? Or have an idea on how to solve it?

    Frank,
    I did a fair bit of digging based on your suggestions and some things I found in your Oracle Fusion Developer's Guide book and I came up with something that works really well. It is fairly elegant but requires code. It would be nice if something like a setPropertyListener could be rolled into the menu model. That would make my solution completely declarative.
    Here is my solution:
    My task flow requires a the value #{pageFlowScope.type} to be set. My application has a dynamic region that is changed on the fly using a menu model. The region uses a backing bean (mainRegionManagerBean) which is in the viewScope to manage what taskflow is shown in the region. There are multiple menu items in the menu model that point to the same task flow but pass different values to the #{pageFlowScope.type} parameter. So i wired the menu items up to different methods in the mainRegionManagerBean which set the value for me. See the relevant code below.
    I would be very interested in the feedback from someone with more experience than I on my solution. Maybe there is a more elegant way...
    In the backing bean there is a primary method that was created by generating a dynamic region link which sets the task flow id and then other methods which call it and set the relevant parameters. (JSFUtils is a helper class i wrote to centralize some common tasks):
    public String shipmentTraceMasterTaskflow()
    taskFlowId = "/WEB-INF/taskflow/master/shipmentTraceMasterTaskflow.xml#shipmentTraceMasterTaskflow";
    JSFUtils.setValue("pageFlowScope.type", "");
    return null;
    public String shipmentTraceProNumber()
    shipmentTraceMasterTaskflow();
    JSFUtils.setValue("pageFlowScope.type", "pronumber");
    return null;
    public String shipmentTraceBOLNumber()
    shipmentTraceMasterTaskflow();
    JSFUtils.setValue("pageFlowScope.type", "bolnumber");
    return null;
    In the menu model (notice that these reference the different methods from above):
    <itemNode id="itemNode_ProNumberTrace" label="ProNumber Trace" action="#{viewScope.mainRegionManagerBean.shipmentTraceProNumber}" focusViewId=""/>
    <itemNode id="itemNode_BOLNumberTrace" label="BOL Number Trace" action="#{viewScope.mainRegionManagerBean.shipmentTraceBOLNumber}" focusViewId=""/>
    On the page:
    <af:region value="#{bindings.dynamicRegion1.regionModel}" id="r1"/>
    In the pagedef:
    <taskFlow id="dynamicRegion1" taskFlowId="${viewScope.mainRegionManagerBean.dynamicTaskFlowId}" activation="deferred" xmlns="http://xmlns.oracle.com/adf/controller/binding" Refresh="ifNeeded">
    <parameters>
    <parameter id="type" value="#{pageFlowScope.type}"/>
    </parameters>
    </taskFlow>
    Edited by: Adam Stortz on Nov 22, 2011 11:10 AM

  • Use Task Flow Parameter as value to View query?

    I'm not sure if I have all the terminology exactly correct, but basically I have a task flow that allows the user to edit data in a table. I want to open that task flow, pass a parameter from another task flow, and use that parameter to determine the row which I want to edit. A fairly typical use case I would imagine.
    I can get the calling task flow to call the other task flow, but I cannot seem to determine what to set the value of the parameter in the called task flow to so that it executes the query and populates the page with the data from the row specified by that parameter.
    What is the best practice for this type of use case?

    duplicate: Re: Task flow parameter not available to set method call parameter

  • Is it possible extend a Task Flow at runtime?

    Hello I have a requirement in where we need to define a Bounded Task Flow with multiple views (today we are using a router with 3 views).
    The requirement is to extend the number of views at run time, create a 4th view without a new deployment.
    Is it possible?
    This question came up because in the Content presenter you can create "Templates" and upload them at run time without deploy an application (Internally a template is a JSFF file).
    Regards

    The AppModule for a page is configured in an attribute of the root element of that page. Maybe that attribute is available at the OAWebBean parameter in processRequest.

  • Possible to autocreate task from Technician Portal when creating SR?

    I have this question:
    Is it possible to automatically create a task (and assignment) when creatin a SR in Technician Portal (Field Service)? There is setup for creating automatically tasks and even assigning them to a resource when working in Service in the Create Service Request Form. Is it possible something like that in Field Service?? I think I have the correct setup but this is not happening in Field Service. Is it so it's supposed to be?
    Thanks ,
    Patricia
    Edited by: Patricia Paredes on Feb 2, 2009 9:57 AM

    This is not working in WF.
    Refer this thread
    Re: Contact record not pupulated when Task created using Workflow.

  • Is the task-flow input parameter class value being ignored by the framework

    hi
    Although I don't remember where, I think I read or heard about the task-flow input parameter class value that it is "being ignored by the framework".
    One example of this could be what is currently in the UI Shell sample application available
    at http://www.oracle.com/technetwork/developer-tools/adf/uishellapp-134633.zip
    It has in its task-flow in "flows\second.xml" an input parameter configured like
      <task-flow-definition id="second">
        <!-- ... -->
        <input-parameter-definition id="__3">
          <name id="__2">tabContext</name>
          <value>#{pageFlowScope.tabContext}</value>
          <class>oracle.ui.pattern.dynamicShell.TabContex</class>
          <required/>
        </input-parameter-definition>
        <!-- ... -->
      </task-flow-definition>Notice the missing "t" at the end of the class name "oracle.ui.pattern.dynamicShell.TabContex".
    Still this task-flow configuration does allow to use expressions like "#{pageFlowScope.tabContext.selectedTabIndex}", which suggests that the class value is indeed "being ignored by the framework".
    (see also forum thread "does the UI Shell sample break encapsulation in its task-flows"
    at does the UI Shell sample break encapsulation in its task-flows )
    All relevant references (bug numbers, documentation, blogs) explaining about this task-flow input parameter class value are welcome.
    If no such references exist, maybe someone from Oracle can give some feedback.
    many thanks
    Jan Vervecken

    fyi
    The feedback below was posted in the forum message
    at Re: does the UI Shell sample break encapsulation in its task-flows
    Richard Wright wrote:
    That appears to be a bug for which I am seeking confirmation.There is an enhancement request (i.e., 9377487) submitted over a year ago, that describes this behavior. It is listed as an ER as our documentation (e.g., Fusion Developer's Guide for Oracle ADF, online help ) does not specifically state that Java class for the input parameter definition is checked for type. Further anything using EL is untyped. So the expectation that types are enforced is somewhat puzzling to the development team.
    However, there is an acknowledgment within circles of the development organization, that some might come to have this expectation. One trigger might be the definition itself. The other is the existence of a design time audit on the definition. For example, if the class is specified inaccurately (e.g., typo), there is an audit warning to report "not found."
    Under consideration are a number of framework proposals to check for type without breaking backward compatibility or adding overhead to the production environment.
    In the interim, the following recommendations are given.
    Unless this breaks or can break your app in some way, no need exist for change. Nevertheless, if this is a real concern, write a test or consider a java assertion. By default, assertions are disabled at runtime. There is no need to override that default.I have been able to find enhancement request 9377487, "TASK FLOW PARAMETER VALUES NOT VALIDATED ACCORDING TO CLASS", on My Oracle Support. It currently has "Status 15 - To Internal (Oracle) Review" and "Updated 16-Dec-2010".
    In the context of service request 3-4185839067 recently bug 12838099, "THE TASK-FLOW INPUT PARAMETER CLASS VALUE BEING IGNORED BY THE FRAMEWORK", has been filed and it currently still has "Status 16 - Bug Screening/Triage".
    - about "... the expectation that types are enforced is somewhat puzzling to the development team ..."
    Hmm, strange ... so what are people supposed to expect when there is an option to configure a class name for a task-flow input parameter?
    regards
    Jan

  • Pass parameter from one jsff to other in bounded task flow

    Hi All,
    I'm using 11g adf.
    I have a requiement to get parameters value from one jsff to another jsff .
    In bounded taskflow , the trans.jff has parameters which i have to carry to couple of detaill.jsff (5 jsff).
    In between trans.jsff and detail.jsff am using router to validate the path to call particular detail.jsff.
    Issue now i need some parameter value to send from trans.jsff to detail.jsff.
    i have used below in trans.jsff :
    <af:commandToolbarButton text="update ''}" id="ctb_update"
    action="callingPages"
    actionListener="#{RTACorrespondanceQry.SignatureActListionar}">
    <af:setActionListener from="#{bindings.TransBatchNo.inputValue }" to="#{requestScope.batchNo}"/>
    </af:commandToolbarButton>
    I have created batchNo parameter in bounded task flow parameter
    In bean i try to retrieve value like dis JsfUtils.resolveExpression("#{pageFlowScope.batchNo}")
    In detail.jsff -- #{pageFlowScope.batchNo} in value output text component.
    Getting null value.
    thanks in advance

    Hello user9010551 ,
    you are set a value in requestScope
    <af:commandToolbarButton text="update ''}" id="ctb_update"
    action="callingPages"
    actionListener="#{RTACorrespondanceQry.SignatureActListionar}">
    <af:setActionListener from="#{bindings.TransBatchNo.inputValue }" to="#{requestScope.batchNo}"/>
    </af:commandToolbarButton>and read a value in pageFlowScope !!!!
    JsfUtils.resolveExpression("#{pageFlowScope.batchNo}")

  • EPM Task flow Management

    Hi,
    I'm having trouble accessing task flow management from workspce after having configured SSO. When I disable SSO it works.
    Shared sevices and workspace are on different servers.
    I see that it re-routes to Shared Services. http://serverName:PortNumber/interop/framework/workflow
    I have configured oid for oc4j instances on both servers. I'm not sure what I'm missing. I can access shared services from workspace without any issues.
    Version 11.1.1.3
    Any help will be verymuch appreciated.

    Thanks. The problem with adding a composite association is that both Table A and B have a composite associate on a header record. So when i tried to create a composite association between Tables B and A, the "<Entity> participates in more than one composition association. This will require custom composition management in your application for secondary masters" Warning occurs.
    Which as far as i can tell means that I should not do so - that is based upon the following forum posts:
    Composition Association Warning
    foreign key associations
    I found that one possible way to handle this is to:
    1. use a Commit operation after Table B is submitted - in this task flow, this commits both Tables A & B (and their header).
    2. Do an ExecuteWithParams to get the newly added Table B record (which now has the sequence-generated ID from the header record)
    3. Programatically update table B by using a bean with an OperationBinding that sets updates the attribute via an exposed attribute setter from the VO's ViewRowImpl.
    4. Commit.
    However, this seems somewhat convoluted; so I'm wondering if there is a better way of doing this.

  • Open task flow in new Window

    Hi All,
    JDeveloper version : 11.1.1.6
    ADF
    My Requirement: My taskflow contains three pages(page1,page2 and page 3). In page page2 have a 'commandImageLink' button. When i click the Button the 'page2' should be open in 'New Browser Window'.
    Is it possible with in task flow can i open fragments in New window. Please suggest a best way to accomplish this problem.
    Thanks
    - Moahnraj

    Hi.
    This is fairly simple to do. You can configure a bounded task flow to run in a modal dialog by using a task flow call activity and setting the <tt>useWindow</tt> attribute to true.
    See full instructions here: http://docs.oracle.com/cd/E23943_01/web.1111/b31974/taskflows_dialogs.htm#BABBAFJB
    Best Regards,
    Frédéric.

  • Problem with ADF security and task flow calls

    Hi.
    I am using JDeveloper 11.1.2.0.0.
    I encountered a problem when tried to apply ADF security to my application.
    The way to reproduce the problem:
    1. Create new Fusion Web Application;
    2. Import Business Components from Tables from any existing schema and add at least one table to the ApplicationModule.
    3. Create "welcome page" (for instance, welcome.jsf). Add a button with fixed action outcome "test".
    4. Create test page, for instance, test.jsf. Drag and drop any view object from Data Controls onto the page and create a form with navigation controls. Add a button with fixed action outcome "return".
    5. Create bounded task flow, name it "test", drag and drop our test page on it - the page will be the default activity. Add a task flow return activity. Add a control flow case from the default view activity to the return activity, set From Outcome property to "return". So our return button should cause the task flow to exit.
    6. Open adfc-config.xml in diagram mode and place our welcome page on it. Then drag and drop the test task flow to create a task flow call activity. Add a control flow case from welcome page to task flow call activity, set the From Outcome property to "test". So our test button should call the test task flow.
    7. Configure application to run the unbounded task flow starting with Welcome view activity.
    At this point all works as expected: when application runs, the welcome page is displayed with test button. Pressing the test button results in displaying the test page, return button leads back to the welcome page.
    Now let's configure ADF Security.
    Run the ADF Security configuration wizard, choose ADF Authentication and Authorization.
    On the second page select Form-Based Authentication, check the Generate Default Pages flag.
    On the third page choose No Automatic Grants.
    On the next page keep the Redirect Upon Successful Authentication unchecked. Press Finish.
    Open jazn-data.xml to configure roles, users and resource grants:
    1. Create application role test-role.
    2. Grant the test-role privileges to view the test task flow.
    3. Create user and grant him the test-role.
    Now we have the public available welcome page and the test page with restricted access.
    When application runs, the welcome page is displayed as expected. Pressing the test button redirect us to auto-generated login page. After successful authorization the test page is displayed. But nothing happens if we click now the return button for the first time. When we click the return button once more, the application crushes with Error-500 and message "Target Unreachable, identifier 'bindings' resolved to null". The exact error trace depends on UI control bindings, but looks like this:
    javax.el.PropertyNotFoundException: //C:/Users/DUDKIN/AppData/Roaming/JDeveloper/system11.1.2.0.38.60.17/o.j2ee/drs/Test1/ViewControllerWebApp.war/test.jsf @10,120 value="#{bindings.Id.inputValue}": Target Unreachable, identifier 'bindings' resolved to null
         at com.sun.faces.facelets.el.TagValueExpression.isReadOnly(TagValueExpression.java:122)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:476)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.getReadOnly(EditableValueRenderer.java:390)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.wasSubmitted(EditableValueRenderer.java:345)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.decodeInternal(EditableValueRenderer.java:116)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.decodeInternal(LabeledInputRenderer.java:56)
         at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:342)
         at org.apache.myfaces.trinidad.render.CoreRenderer.decode(CoreRenderer.java:274)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1324)
    (the rest of lines skipped).
    Any suggestions?
    Edited by: user13307311 on Apr 16, 2013 11:39 PM

    @Lovin_JV_941794
    The welcome page is public available since it does not have appropriate PageDef file.
    Login page comes not from the welcome page, it comes after attempt to access the test page. So after the login succeeded the test page appears, because redirect to welcome page after successful login is not configured. I do not need to return the welcome page at this moment, I need to go to the test page.
    It seems the task flow call stack to be destroyed after redirect to login page.
    Edited by: user13307311 on Apr 17, 2013 12:45 AM

  • Single adf task flow portlet with multiple pages and paramter from url

    Hi ,
    I have made a adf task flow portlet with a parameter.
    I have made a portal applcation and added multiple pages . in each of the page I am consuming that portlet through wsrp2.
    I have mapped the task flow parameter in page bindings of the pages with #{param.code}. where code is the get parameter.
    I have edited navigatinoal template so that when i click the pages , code parameter also get added in the url.
    issue
    When I run the applcation and visits first page with get parameter i get the right result. but when i click the on the other page which has some other value for the same get parameter , it doesnt display the value. But the other page shows me correct value if I go this page first but the later page doesnt display any value.
    thanks

    1001446 wrote:
    Hi ,
    I have edited navigatinoal template so that when i click the pages , code parameter also get added in the url.Can you paste the code from the template here?

  • How to use a managed bean in a bounded task flow without definig it in adfc-config

    Dear all
    I create a bounded task flow without page fragments (the pages are jspx), i created a jspx page with a button that its action has bounded to a managed bean function.
    i defined the managed bean on the corresponding bounded task flow, but it does not work.
    But there is no problem when i define the managed bean in adfc-config.xml.
    can anybody help me with this problem.
    is it possible to use jspx page with backing bean in bounded task flows, without defining the beans on adfc-config?
    Thank you very much

    Dear Timo
    I use jDev 11.1.1.6 and the scope is Request.Although when i use task flow page fragment and create jsff pages, there is no problem.

  • How to create an entry hub to all task flows

    I have created a bunch of bounded task flows and want to create a" home" page from which I can access all of the bounded task flows. How can I do this? Thank you.

    I think you can do that , as :
    Create a UnBounded taskFlow with a Home.jspx and create a menu in this Page with the task flow you defined, ( Drag and Drop your task flow into the Home.jspx as Button, link or a other User Interface )

  • Dynamic participant block in Human task flow

    Hi All,
    I am working on human task flow and got stopped on below use case.
    I have two participant block let say A and B. I want to assign participant A depends on flat inside task flow parameter. If Flag is Yes, then it should assign to A and on approval of A it should complete the task flow. But if Flag is NO, then it should first assign to B, on approval from B, it should again assign to A and after that it should complete the task flow.
    I tried to use dynamic role assignment but there i am not able to define above use case. Dynamic rule is saying you can assign A or B depends on some rule(task flow parameter) but my requirement is little different.
    If Flag is Yes,
    - assign to A -> on approval -> complete the task flow.
    If Flag is No
    - Assign to B -> on approval from B -> assign to A -> on approval from A -> complete the task flow.
    I want to build this logic inside single human task flow.
    Please help.
    -Sunil

    Hi Zaloa,
    Can you pls try this.This should work.
    1. Go to Edit Task Definition page and add a Parameter of type string(default).
    2. Now come to the human task dialog( the one you get on double clicking the human task activity) and add a value to the parametr you just added(string)using the search light .This value should be the variable containing the value of the asssigne which you want to add dynamically.
    3.Now again go to the Edit Task Definition page and select the Assignment policy and select the expression path builder.
    4. You should be able to see the parameter you just added under task:payload. select this . now your assigne is dynamically added.
    Pls let me know if you need further details. Hope this helps.
    Thnks
    Message was edited by:
    soaUser

  • Passing Parameters to Bounded Task Flow from JSPX

    Hi All,
    1. Created a JSPX page using UIShell template.  This page contains 4 UI Components (InputComboBoxListOfValues) in SingleObjectContextArea.  Created a Managed Bean for this page and capture the selected value in ValueChangeListner and added the value to pageFlowScope.
    2. Created Unbounded Task Flow, dragged the JSPX page.
    3. Have a existing Bounded Task Flow with page fragments, it has MethodCall activity which is expecting inputParameter values from JSPX.
    4. To call the Bounded Task Flow from Unbounded Task Flow (has JSPX page) created 2nd JSPX page using UIShell template.
    5. Dragged the existing Bounded Task Flow into 2nd JSPX page, in context menu selected Region.  This Region is created in SingleObjectContextArea of UIShell.
    6. When dragged its asking about inputParameter mapping of Bound Task Flow.
    7. Configured the inputParameter value which are coming from pageFlowScope.
    8. Dragged the controlFlow from 1st JSPX to 2nd JSPX page to complete the Navigation.
    9. When running the Unbounded Task Flow, it showing 1st JSPX with LOV.
    10. Selected the values and clicked on Submit Action.
    11. Its now showing 2nd JSPX which contains Bounded Task Flow.
    12. But its displaying empty records table.  (Note: I am passing parameters to MethodCall inputParameters as pageFlowScope, My DB has displaying records based on inputParameters when tested it from OrcleSQLDeveloper)
    Could any body help me on this issue.
    My Code Snippets of Data Binding of 2nd JSPX page which has Bound Task Flow as a regionModel.:
    <taskFlow id="TaskFlow1"
                  taskFlowId="/WEB-INF/oracle/apps/TaskFlow1.xml#TaskFlow1"
                  activation="deferred"
                  xmlns="http://xmlns.oracle.com/adf/controller/binding">
          <parameters>
            <parameter id="PartnerKeyType" value="#{pageFlowScope.PartnerKeyType}"/>
            <parameter id="PartnerKey1" value="#{pageFlowScope.PartnerKey1}"/>
            <parameter id="InteractionPartnerRole"
                       value="#{pageFlowScope.InteractionPartnerRole}"/>
            <parameter id="BusinessProcessName"
                       value="#{pageFlowScope.BusinessProcessName}"/>
          </parameters>

    Hi
    first of all Can you get the pageFlow scope variable in taskflow?which you are passing from jspx page?
    if you are able to get the Lov value in Taskflow try refresh taskflow on changing the LOV.
    you need to add input parameter type as boolean,change the parameter from false to true when the LOV value changed.
    now use refreshifNeeded property in pagedef bindings file

Maybe you are looking for

  • Problem with text formatting on upload

    Hi there, I am new to iWeb and coming from a design background where I'm used to being able to format text leading and character spacing in programs like inDesign. I have found where to do this in iWeb so that my text is not all bunched up and close

  • Search a text string to get location

    Is there any way to search a text string in a PDF file or a page of PDF file to get the location of this text string, say (x, y, width, height)? Thanks a lot for your help.

  • Mighty Mouse track ball button

    I have been using Snow Leopard for a while and one of the things that I like the most is that I can choose what I want to see in my screen when I move my cursor to the lower right or left corner. I have it set up as to SHOW ALL WINDOWS if I move my c

  • Sync-Async Integration

    Hi friends, I have a scenario where two sides are web services.  One WS is Sync and other side is Async.  Is there any way to do Sync-Async integration other than ccBPM ? You suggestions are welcome.

  • How to get FontMetrics for sizing before component is shown

    Is there a way to do this using GraphicsConfiguration, or something else?