Task Flow Based On Input Parameter

I am using JDev 11.1.1.6.
I have an app that uses a Task Flow with "ExecuteWithParams" to get the parameter from a URL and display the appropriate records on a page.
I do this by using a Bind Variable on the VO that corresponds to the InputParameter on the ExecuteWithParams control.
What I would like to do is flow to a different page, depending on the parameter used in the URL.
Example:
If param in URL is "?TEAM=1" then I would go to the TEAM page and display records for TEAM 1.
If param in URL is "?REGION=3" then I would go to the REGION page and display records for REGION 3.
Thanks,
Ray

This could probably be solved using a router activity or a custom method as the default activity in the Task Flow. Then outcome of the router/method, can easily route to the desired TF activity based on an input parameter. E.g. if parameter is "region" route to executeRegionIteratorWithParams, which in turn will "flow" to displayRegions view activity.

Similar Messages

  • Update an ADF Task Flow based on Human Task

    Hello friends,
    I'm working on Oracle BPM Suite 11g. So, I created a process including its human tasks. Later, I created a Task Flow based in the human task that I setup before. Now I added a new parameter to the human task and I need to update the task flow because (of course) it only contains the payload of the previous configuration.
    Can I do that? What can be the solution?
    Regards....
    AYVR

    It's covered in docs here: http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10224/bp_designtf.htm#BDCDFBCB
    Note that this only updates the control. You'll have to now drag those new payload properties onto the form. If you had removed any properties you'd need to remove those from the form.
    You should also do a refresh of the window that contains the data controls. Sometimes that's necessary to see the changes.

  • Creation an ADF Task Flow Based on a Human Task

    Hello!
    While creating ADF Task Flow Based on a Human Task, I can't bind New TaskFlow to task, which I choose in Dialog.
    Details:
    I Have:
    BPM Project with PackageCreation.task
    ADF Project in Same Application
    I do:
    1. in Application Navigator right click on ADF Project -> New -> Web Tier -> JSF -> ADF Task Flow Based on a Human Task
    in creation Dialog I choose PackageCreation.task and Don't change name of New TaskFlow (automatically JDeveloper set this name to PackageCreation_TaskFlow)
    I have After that:
    new ADF Task Flow and my old PackageCreation.task.
    Question:
    Why my Task don't bind to created ADF task Flow based on it?
    I think, that while creating ADF Task Flow Based on a Human Task it has to change my task, writing some thing like This (inside xml):
    <taskFlowFileLocation>file:/D:/JDeveloper/mywork/SalesQuoteLab/EnterQuoteUILab/public_html/WEB-INF/EnterQuoteDetails_TaskFlow.xml</taskFlowFileLocation>
    That xml element is creating in xml of *.task, while making auto-generation form for human task in BPM Project.

    Juan C,
    I use JDeveloper 11g Release 1.
    May be I didn't explained my question correctly.
    taskdetails1 is creating, and in Data Controls I have objects of my BPM Human Task Payload.
    But in that file "PackageCreation.task" in source I can't find any link to instantly created TaskFlow.xml in my UI project.
    So, I have
    NEW project "PackageCreationUI" with PackageCreation_TaskFlow.xml in it (and TaskDetails1 file too).
    AND Did't Changed PackageCreation.task in BPM Project.
    If I use *"BPM form creation wizard"*, after creating project and TaskFlow in it I see Changes in PackageCreation.task in BPM Project, something like that:
    <taskFlowFileLocation>file:/C:/JDeveloper/mywork/testApp/PackageCreationUI/public_html/WEB-INF/PackageCreation_TaskFlow.xml</taskFlowFileLocation>

  • Task Flow based on Human Task

    Hi,
    I have created a Task Flow based on Human Task in the Ui project. The task flow is auto -generated with the taskdetails.jspx as the default activity. If I try to include a ExceuteWithParams method in the task flow as the default activity the page gives a 500 Error in the workliist application.
    Can I no have a method activity as the default activity in this task flow.
    Thanks
    Soumya

    Are you trying to set "Create with parameters" as default task flow activity ? in that case open the the task flow diagram , right click "Create with parameters" data control -> Mark Activity -> Default Activity.

  • Why : Data Control entry not expandable/empty - ADF Task flow based on HT.

    Hi All,
    I've hoping to create an ADF Task flow based on a human task. I have a stand alone ADF application within the ViewController of which I am attempting to create this task flow. The resultant data control entry doesn't seem to be expandable.
    Questions
    1. When creating an ADF Taskflow based on a human task, should it always be within a project in the same application as the SOA components?
    2. If no, is the resultant human task data control empty or not expandable because the xsd for the HT is based on the MDS? I have configured all the MDS connections within my application.
    JDev : 11.1.1.4
    Thanks
    PP

    Hi,
    Answers :-
    1. No, it is not necessary that your ADF Taskflow based on Human Task should be in the same application where the SOA Project Resides. But for the deployment of that ADF Taskflow you will need the SOA Project.You can add that project whenever you want to deploy.
    2. It might be the cause due to the MDS Configuration .
    Do one thing , while creating the ADF Taskflow based on Human Task , you do select the .task file via the file system not from the MDS.
    If you will select the .Task file of your soa project then it will ask you to name the Taskflow, just name the taskflow as you want and say ok.
    After creating the taskflow, it will add a lot of xml files in your project and it will create a data control of it.
    Hope it helps!!
    Regards,
    Shah

  • How to create Discussions Task Flow Based on Oracle Content Server

    Hi,
    I need to create an ADF application consisting of the following aspects:
    1) Upload, Download and Share documents (I'm using Documents Services provided by WebCenter Jdeveloper Extensions)
    2) Create discussion threads and forums (I'm trying to use Discussion Services provided by WebCenter Jdeveloper Extensions)
    3) User should be able to do an universal search i.e search both documents and discussions forums. (I'm using Search Services provided by WebCenter Jdeveloper Extensions)
    I'm using "Oracle Content Server 10g for WebCenter" to manage my documents and discussions. While logging into GUI of OCS, I'm able to create and post discussion threads.
    But, I'm unable to create discussions adf task flow based on Oracle Content Server.
    The demos/tutorials/dev guides provided at http://webcenter.oracle.com have only described using WLS_Services managed server which is created and setup using WC Suite 11g.
    But I couldn't find any information to develop these discussion services using Jdeveloper WebCenter Extensions and Oracle Content Server.
    Please let me know, if anyone has tried this or if you have any idea of how to go about it.
    Thanks in Advance,
    Harikiran.
    Edited by: harikiran on Jul 13, 2010 3:23 PM

    Hi.
    You have official documentation introducing ADF Task Flows here: http://docs.oracle.com/cd/E23943_01/web.1111/b31974/taskflows.htm
    And you have next step by step tutorials to learn how to implement Task Flows:
    http://yonaweb.be/webcenter_tutorial/part_6_building_taskflow_and_consuming_it_webcenter_portal (Yannick blog post).
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_57/jdtut_11r2_57.html (official JDev samples).
    http://danielmerchanoracle.blogspot.com.es/2011/08/integrar-adf-task-flows-propios-en-una.html (My spanish blog with "how to add a Custom Task Flow into WebCenter Portal Application", 3 different and possible ways).,
    Probably Yannick Blog post if you need to understand how to integrate Bounded Task Flows with WebCenter Portal's.
    Regards.

  • Display the part of table tree based on input parameter

    Hi,
    I have the use case where I have to display the tree table based on the input parameter.This input parameter will display the displaying the node of tree which are under the given input node id.
    so If given node id is 10 then we should to display the node which are under 10.rest should not get displayed.
    Can you tell me how it can be achieved using ADF.
    I am using jdev 11.
    Thanks,
    Harsh

    This depends on how you apply the VC to the VO at runtime. Easiest way to accomplish this would be to create a VO in the data model of the application module which you edit in the data model to already having the vc applied to.
    In your region you can then drag the 'executeWithParameters' method onto the task flow and make it the default activity. Here you map the input parameter of hte task flow to the parameter needed for the executeWithParameter.
    For hte method you get a binding like
        <action IterBinding="EmployeesByNameIterator" id="ExecuteWithParams" RequiresUpdateModel="true" Action="executeWithParams">
          <NamedData NDName="bindLastName" NDValue="#{pageFlowScope.pname}" NDType="java.lang.String"/>
        </action>
    NDValue="#{pageFlowScope.pname}"
    is the inputParameter from the region (or task flow).
    Timo

  • ADF Task Flow based on HumanTask - Region withiin Task form

    Hello All,
    Was wondering if anybody here has sucessfully used region in their human task forms? I really like the idea of regions and after going through the tutorial here* I tired to implement it.
    Following are some additional details of the issue I'm facing.
    I have created a UI project based on a human task. The main <human task>_taskFlow.xml is bounded and non-fragmented. I then dropped 'view' component within this task flow and create a blank jspx page underneath. I then dragged and droped another bounded and fragmented task flow (which is also a train) on to this jspx page. The 2nd task flow has some jsff pages in a train. When I deploy run this bpm project,I can't see train form within the region and I get following Null Pointer Exception on the server:
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:233)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
    Any help would be much appreciated.
    *http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/boundedtaskflow/bounded_task_flow.html                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Update: After struggling with it almost whole day, I recreated the UI project and the problem has gone away.

  • Possible to use menuBar with task flow based ADF menus?

    Hello -
    I've just worked through the " [Create ADF Menus for Page Navigation|http://www.oracle.com/technology/products/jdev/11/cuecards111/adf_set_43/ccset43_ALL.html] " tutorial. It shows how to create menus based on your task flows.
    My question: is it possible to use the af:menuBar with these menu models (instead of navigationPanes or breadcrumbs) ?
    I am using JDev 11g 11.1.1.1.0
    Thanks.
    Edited by: scott.turnquist on Nov 5, 2009 12:07 PM

    Hi,
    The XML menu model extends the Trinidad TreeModel, which extends Collection model. This allows you to access the hierarchical menu structure so that you can use af:iterator to build a structure to display in a af:menuBar
    Frank

  • Modifying the cell content based on input parameter from variable screen.

    I am trying to modify a cell content in the BEX Web Application Report based on the input parameter from the variable screen.
    I am already aware of how to change the cell content by creating a new ABAP class and inheriting CL_RSR_WWW_MODIFY_TABLE.
    I do not know how to get the input parameter variable from the variable screen in my custom class ZCL_RSR_WWW_MODIFY_TABLE. I am not very familiar with ABAP and would appreciate your help.
    Thanks
    Sowmini

    in the start method
    define a work area like line of n_r_data_set->N_SX_VERSION_20A_1-TXT_SYMBOLS
    loop at n_r_data_set->N_SX_VERSION_20A_1-TXT_SYMBOLS into <wa> ..
    endloop .
    This will have all the filter, variable values entered in the selection.
    Regards
    Raja

  • Setting font based on input parameter

    I would like to set the font of certain fields within my form based on the language. We have a table created that will store the language code and the font associated with the language. I am passing this value to the form, but I can't get my scripting correct to set the font to the value of the parameter. If I hard code the value, then the font changes as expected (this.font.typeface = "MS P Gothic"). Can someone please help me? Here is a sample of what I've tried:
    FormCalc:
    If (!$record.V_LANGU_FONT.rawValue.isNull) then
    this.font.typeface = $record.V_LANGU_FONT.rawValue
    endif
    JavaScript:
    if (!$record.V_LANGU_FONT.rawValue.isNull) {
    this.font.typeface = $record.V_LANGU_FONT.rawValue;
    Thanks!
    Julie

    Hi Sandy,
    That was a wonderful article! Unfortunately, I'm still having a problem. When I do a print Preview PDF within SFP, I see the error "Argument mismatch in property or function argument". I have added a normal text field to my design page, set the text field to invisible and bound it to my input field of V_LANGU_FONT. I originally had the field defined as CHAR200 (based on the FPFONTREPL-DESTINATION field), but then changed it to STRING based on the article. I then added the scripting to one of the elements that needs to have the font dynamically changed. I've added a screen shot showing the scripting:
    If I hardcode the font name:
    The font for the element gets changed correctly. Can you please tell me what is wrong?
    Thanks!
    Julie

  • Schedule Process Flow with sysdate input parameter

    Hi experts,
    I'm facing a problem trying to run a schedule in a job,
    The schedule is defined to run daily at 3am, and the job receive a sysdate parameter, when I start the schedule in the control center I put
    TO_CHAR (TRUNC (SYSDATE), 'DD / MM / YYYY') , and the JOB runs fine with the correct date, but the next day the schedule runs with the date from yesterday, i.e the sysdate is not working.
    Maybe I missing something here ?, or is there another way to pass a dinamyc parameter to a scheduled job.
    I´m using OWB 11.2.0.1
    Thanks.

    Chino -
    Once you start the job, do you have to leave the "Job Details" window open in order for teh scheduled task to run?
    thanks for the help ....
    txb

  • Passing the column name on Where condition based on input parameter

    Hi,
    I am using Oracle10g. Following are my table schema.
    Table Name : Codes
    Columns( ID, Level0, Level1,Level2)
    View Name : SampleView
    I have a scenario : A parameter will be passed to my view from C# application. I need to cut the last 4 places of the parameter and need to check 4 conditions as follows :
    1. IF last 4 places of parameter contains the value as "AMPD" then pass level0 column on where condition.
    Sample code : A123XPAMPD
    Expeted Result: Select * from Codes where Level0 ='A123XPAMPD'
    2. IF last 4 places of parameter contains the value as "Alpha numeric" then pass level1 column on where condition.
    Sample code : A123XPAA00
    Expeted Result: Select * from Codes where Level1 ='A123XPAA00'
    3. IF last 4 places of parameter contains the value as 0000 then pass level1 column on where condition.
    Sample code : A123XP0000
    Expeted Result: Select * from Codes where Level1 ='A123XP0000'
    4. IF last 4 places of parameter contains the value as (cannot be all 0's) and cannot contain "Alphabets" then pass level2 column on where condition.
    Sample code : A123XP1001
    Expeted Result: Select * from Codes where Level2 ='A123XP1001'
    Could any one please help me on writing this logic inside the view.
    Thanks in advance.

    Do you want to make sure that at least one alphabet and one number is there?
    select case
         when regexp_like('1111','^[a-zA-Z]+$') -"This says - Only alphabets, not even space
              THEN 'Alphabets'
         when regexp_like('1111','^[a-zA-Z0-9]*$') --"This says - Only alpha-numeric, not even space
          and regexp_like('1111','[a-zA-Z]') --"To make sure atleast one alphabet is there
          and regexp_like('1111','[0-9]') --"To make sure atleast one number is there
              THEN 'AlphaNumeric'
           else 'NULL' --"This is a string. Not actual NULL
          end
    from dual;
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • 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

  • Input Parameter in process flow

    Hi, I can't pass a parameter in a process flow, I'm following these step:
    To accomplish your task you should do following steps:
    1. Define input parameters for all your mappings
    2. Collect mappings within process flow
    3. Define process parameters.
    To do this withing Process editor and point somewhere on process diagram - don't select any activities In bottom-left window you will see the list of all process' activities. Select "Start" activity and press Add button below. New parameter line should appear under Start activity. Edit name and type of parameter and repeat creating input process parameters.
    4. Select Mapping with input parameters. In bottom-left window selectted activity will appear. Click on plus sign to expand mapping parameters. For each parameter set its Binding to the Process parameter. Continue with other mappings.
    The process flow recibe the input parameter, but it's not passing through the mappings
    if I run the maps one by one, the result is Ok
    Thanks and regards

    Hi
    How do you know the process flow is receiving the input, and that the mapping is not?
    So you followed the following
    http://blogs.oracle.com/warehousebuilder/2009/01/process_flow_parameters_1.html
    but with a map as the activity?
    Cheers
    David

Maybe you are looking for

  • HOW TO: Include the ALL Spry files into my site

    Is there a simple way to include ALL the Spry JS and CSS files into my site? Or do I have to manually create each <script> and <link> tags for each file? Right now I am creating a CFM page that has all the <script> and <link> tags so I can just do an

  • Lightroom 4 Catalog didn't save

    Had an interesting one today. Imported a few images this morning, Did some edits and then exited. I received the prompt to backup the catalog, which I accepted. Later in the day I reopened LR4 and the new images weren't there. I checked and the files

  • How can I download a fight simulator in to an I Mac no disk drive

    I don't know how can I install or download a full version of x plane. Since I don't have a cd drive. The computer is brand new.

  • Why the links in the following newspaper's URL never load up when we use mozella Firefox 9.0.1??

    I mean you can load up the url but the problem appears when you open a headline of an Article in the Site.In that case you can see only the said headline without the contents of the Article.This problem does not exist with Internet Explorer 9 which i

  • Erroe APP 523

    Hola: Por favor que hago si me aparece un error APP 523, no puedo entrar al sistema, y como mi tel esta bloqueado con clave acceso no me deja pasar de la verificación del sistema.