One ViewObject Instance on multiple task flow

Hi all,
I am using Jdev 11.1.2.2. I have a Application Module and a view object defined in it.
I am trying to use the same view object in multiple taskflow.
One of the taskflow has a method exposed(default activity) in the application module that performs setting view criteria programmatically and showing result in a table
ViewObject vo = this.getDepartentVO();
ViewCriteria vc = vo.createViewCriteria();
vc.resetCriteria();
ViewCriteriaRow vcr1 = vc.createViewCriteriaRow();
vcr1.setAttribute("DepartmentId", "=" + DeptId);  //deptId is 10
vc.add(vcr1);
vo.applyViewCriteria(vc);
vo.executeQuery();Another taskflow has the same view object but perform normal search using af:query using a defined view criteria. But since i am setting up the view criteria in the earlier case grammatically , even on this page it shows results only when department_id is 10(for ex).
So what should i do ? Create a different view criteria?
Thanks,
Sam
Edited by: Sam47 on 25-Oct-2012 23:43

grammatically :) No idea what you are trying to say with that.
If you are using the same VO instance, then the filter conditions/etc will be the same. What you can do: add another instance of the VO to your AM and use that one.

Similar Messages

  • How to Split one SAP instance to Multiple Instances?

    Can any one guide me how to Split one SAP instance to Multiple Instances?
    Thanks in Advance.
    Regards,
    VB

    Sure, just extract the pages to a new file. The form fields will stay in
    place.

  • 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

  • OIM AD reverse password sync from one AD instance to multiple OIM instances

    Hi All,
    I have a followind scenario. My client is having multiple offices across the globe. They have OIM installed and configured in each location in each country to manage there local applications. Client also has a Global LDAP which is common across all the offices worldwide.
    My requirement is then i need to setup reverse password sync from Global LDAP to all the OIM sysem across the Globe. As per the reverse password sync connector i can only define one OIM system to sync the password.
    Can you please suggest me some way to achieve this functionality? Is it possible to install more than one password sync connector and configure them with different OIM systems?
    Thanks
    Yogesh

    I have one AD instance and n OIM instances. Can i install multiple AD-OIM passwordd sync components on the same AD machine and configure each component with various OIM's?

  • Can we link one application instance with multiple databases ?

    We have R12.1.1 and db is 11.1.0.7 on redhat 5.3 ( 64 bit).
    Can we link one application instance ( apps / , inst / ) with multiple database ( db / ),
    is this possible ?
    if yes how ?

    >
    Can we link one application instance ( apps / , inst / ) with multiple database ( db / ),
    is this possible ?
    No. You cant link application tier with more than one database.
    Similar query already answered by Hussein in detail in the forum :Re: Multiple instances, single Apps tier Please check that for more details
    -Rk

  • Using ADS in UI Shell with multiple task flows (static and dynamic)

    Greetings,
    I am developing an application in UI Shell and ADS. Following is description of the Application.
    In ThirdPartyComponentArea of the UI Shell I have a task flow with a page fragment(JSFF), which uses ADS (using push mechanism) to get the updates from the server.
    Now we have added a Task List in regional area. The list has following items
    1. One of the items in the TaskList open a dynamic task flow in local area.
    2. Another item in the task list opens a static task flow in local area.
    The issue is, whenever we click either of the links, ADS framework used by the JSFF on the ThirdPartyComponentArea stops working (stops receiving data from ADS and stopActiveData method is invoked by the framework).
    It seems that the task flow initiating in Local Area is causing the ADS framework in other taskflow to end.
    I have read through the documentation, Book - "Oracle Fusion Developer Guide - Building Rich Internet Applications with Oracle ADF Business Components and Oracle ADF Faces" and other examples/blogs.
    From my understanding it seems that ActiveDataManager and EventManager are stopping in this use-case.
    From my understanding opening the task flow in local area is not changing any properties or HTML view of the task flow in ThirdPartComponentArea. Then, why such a behaviour is observed when using ADS in such cases? Is this supported ADS?
    Are such use-cases supported by ADS. From my understanding of these documents it seems they are supported.
    If these use-cases are supported but require some tweaking/workaround in the current flow/logic then also please guide me on it.
    Please let me know if these are not supported by ADS.
    Thanks,
    PShah

    Hi,
    sounds like a product issue to me that you should file with support, providing them a simple test case for analyses
    Frank

  • Ensuring one singleton instance for multiple JVMs

    i am creating a singleton object. But singleton is per JVM (or rather per classloader) right? But i want to ensure only one instance of my singleton even if there are multiple jvms....how can i achieve that?

    javanewbie80 wrote:
    i am creating a singleton object. But singleton is per JVM (or rather per classloader) right? But i want to ensure only one instance of my singleton even if there are multiple jvms....how can i achieve that?You can't.
    Given computers A and B. Neither have any connectivity by any means to the other.
    Install the application on both and run it. There is no way for either application to know about the other thus only one of the following is possible.
    1. Both applications run and create an instance. Then there are two instances and thus it fails.
    2 The application refuses to run. Then there are none and thus it fails
    Other solutions are possible given that some reasonable requirements based on actual business driven needs are presented.

  • Terminating Task inside a instance and multiple tasks as well.

    Hi Experts,
    Please throw some light on this..
    If i've created an instance id for a specific request id then if i've done a terminate operation it is terminated but if we have a specific task inside the instance its not terminated.
    How can i implement it....
    Regards,
    Pavan

    Ya Dan,
    Thanks a lot for the suggestion...
    Its a Event Subprocess that is invoked with Start Message Event and we are using Correlation and we implemented as interrupting message event but we were implementing Terminate end event so let me work it out using End None event and get back to u on this.
    Regards,
    Pavan

  • One portal instance for multiple hostnames with one of them using SSL

    Hi,
    Is it possible to use one Portal and Login Server instance for managing two hostnames (like www.site1.com and www.site2.com) of which one is using SSL. If yes, how do I do this? What do I need to configure?
    Thanks,
    Stijn

    There are procedures on the configuration guide under virtual
    hosts Chapter 5 in manual a90096-01. The manual is on the
    document site.

  • How to return the name (or ID) of the Task FLow in Script

    Sitaution; two task flows created which can be accessed via Tools > TaskFlows within FDQM
    Task Flow "1.1 Multi Load - Import" --> Should run Batch Process Up to Import (enmBatchProcessLevel: 2)
    Task Flow "2.1 Multi Load - Import Up To Validate" --> Should run Batch Process Up to Validate (enmBatchProcessLevel: 4)
    I have developed one generic script which I would like to use for each task flow.
    Only the enmBatchProcessLevel differs between the task flows and therefore I would like to parse this enmBatchProcessLevel as a parameter my generic script.
    To be able to do this, the script needs to know on which task flow a user has clicked. So, I am looking for a function or statement which returns the name (or ID) of the task flow. Based on this name (or ID) a conditional statement can be performed in which a variable is dynamically filled. This variable can then be parsed as a parameter to my generic script.
    For instance:
    Sub GenericRoutine
         Dim strTaskFlow
         Dim intBatchProcessLevel
         '--Get the Task Flow Name
         strTaskFlow = ......<How to return the TaskFlow name or ID?>
         '--Validate the task flow and fill variable intBatchProcessLevel dynamically
         Select Case strTaskFlow
              Case "1.1 Multi Load - Import"
                   intBatchProcessLevel = 2
              Case "2.1 Multi Load - Import Up To Validate"
                   intBatchProcessLevel = 4
         End Select
         '--Execute generic script
         '--Call Batch script and parse intBatchProcessLevel as a parameter:
         Call sBatchProcess(intBatchProcessLevel)
         '--Execute generic script
    End Sub
    Sub sBatchProcess(Byval intBatchProcessLevel)
         Dim lngProcessLevel
         Dim strDelimiter
         Dim blnAutoMapCorrect
         '--Use intBatchProcessLevel to fill lngProcessLevel
         lngProcessLevel = intBatchProcessLevel
         strDelimiter = "_"
         blnAutoMapCorrect = 0
         Set BATCHENG.PcolFiles = BATCHENG.fFileCollectionCreate(CStr(strDelimiter))
         BATCHENG.mFileCollectionProcess BATCHENG.PcolFiles, CLng(lngProcessLevel), , CBool(blnAutoMapCorrect)
    End Sub
    Edited by: user13642656 on Jul 21, 2011 4:55 AM

    Hi, thanks for your reply.
    The Generic script contains 600+ records, which I would like to maintain once, when having multiple Task Flows for Import, UpToValidate, ValidateOnly, UpToExport, ExportOnly etc.
    Is there a central storage in FDQM workbench for script, like a "Module" in Excel VisualBasic environment? Thanks!

  • ADF Task Flow Question.

    Hi everyone,
    Is it possible to call an unbounded task flow from a bounded task flow?
    Let me explain.
    I have created a template, with an af:navigationpane on top. Inside it, I have placed three
    commandNavigationItems: the first two go to simple views.
    The third one goes to a page inside of which there's a tabbed panel with multiple detailItems: each of those contains a region made with page Fragments (so, each of one corresponds to a bounded task flow, which doesn't have a return)
    Now, If I navigate inside one of those bounded task flow, whenever I try to navigate away from then (using the top navigation bar), I get a "ADFC-02005: Task flow definition not found". I guess it's because the action is defined ony inside the main adfc-config. Is there a way to accomplish what I'm trying to do, or did I completely misunderstood how Task Flows are even supposed to work?
    Thanks in advance.
    FS.
    p.s.: see the following images for clearer detail.
    http://img521.imageshack.us/my.php?image=adf1mq4.png
    http://img521.imageshack.us/my.php?image=adf2qo1.png
    http://img521.imageshack.us/my.php?image=adf3ni8.png
    Message was edited by:
    FS

    Very Interesting.
    I would say you can call unbounded from unbounded, never tried this. What does the documentation say about calling other taskflows.
    If you call an unbounded from a bounded you can't return to this bounded taskflow.
    A page fragment bounded taskflow is a page fragment and it only controls that small part of the jsf page. you should use the output parameters of this bounded taskflow so you can interact from this page fragment to the rest of the page.
    Edwin

  • How Worklist/BPM knows which task flow to invoke at runtime

    Hi, I use JDev 11.1.1.5
    In my BPM, I had one Human task activitiy state. Then I create a task flow through "ADF Task Flow Based on Human Task". I found that there is no any configuration value for taskFlowFileLocation property in .task source file. However, the process succefully invoke the correct task flow when I run it.
    I am curious on how the worklist engine associate the task flow with the human task? If there are multiple task flows for the same human task, which file is the right place to find the configurations?
    Thanks,

    Hi Yannick,
    I have a same scenario like yours. Have you implemented that? How to modify the preferences in backing bean? I change the input parameters of taskflow in backing bean. But when popup the edit dialog, the old value is still there. Thanks.
    Regards,
    Joe

  • Pass attribute throw task flows

    I am using jdeveloper 11.1.2
    I have a page contains select one choice component with 100 element in it
    I need to add popup search page so when I search it the 100 elements will be displayed and when I chose one of this element it will be selected in my select one choice
    so I create bounded task flow for my first page
    and I create another bounded task flow for my popup page and now I can search for my element
    how can I make the searched element in the popup page (second page) as the selected element in my select one choice page (first page)

    Task flows can return values. Check
    http://docs.oracle.com/cd/E14571_01/web.1111/b31974/taskflows_parameters.htm#CHDECAAD
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/94-taskflow-return-exit-1474324.pdf

  • Problem reentering task flow in dynamic region

    Hi All,
    I have problem with reentering task flow in dynamic region.
    JDeveloper/ADF 11.1.2.3.0
    Use Case:
    Application contains bussines modules(implemented as bounded task flows) displayed in dynamic region.
    In some modules, default activity is Method Call activity which performs some validations(input parameters, state of records in db, etc.)
    and if some conditions are not satisfied, shows message to the user and exits module (navigates to Task Flow Return activity).
    Problem:
    If user tries to start the same module again, nothing happens(message is not shown).
    If user choose some other module and after that start first module, message is shown(so I suppose this means that task flow was correctly exited first time but dynamic region state was not refreshed).
    Current implementation info:
    Dynamic region has attached regionNavigationListener which resets taskFlowId variable in dynamic region bean if regionNavigationEvent.getNewViewId() == null but this listener is not called if Method Call activity directly navigates to Task Flow Return activity.
    (if user navigates to Task Flow Return activity from button on some page, this works as expected)
    Also, I tried to reset taskFlowId variable from task flow finalizer and to programatically refresh region binding, but this still doesn't work.
    So, am I missing some point about refreshing dynamic region or this is bug in ADF?
    Thanks,
    Dario

    I don't have any popup.
    There is only page which contains dynamic region.
    This dynamic region can be empty or can contain one of business modules(bounded task flows) which are invoked from menu.
    In some cases business module must exit(by invoking task flow return activity) immediately after invocation(because some business validations fail).
    In this case, module will show message to the user.
    Problem is that if user call the same module again, nothing happens(message is not shown) because regionNavigationListener(which only purpose is to reset taskFlowId variable when business module exits) is not triggered when Method Call activity(which is default activity in BTF) navigates to Task Flow Return activity.
    Also, I tried to use Router activity instead Method Call, but problem still exists(regionNavigationListener is not triggered).
    Obviously, regionNavigationListener is called only if navigating from page(or fragment) and this is probably a bug in ADF so I opened SR.
    Edited by: kdario on Oct 27, 2012 5:04 AM

  • Call task flow action from dialog

    I want to call an action from task flow when i press OK on my dialog
    it was work when i was calling it after i press on button,

    if i drag task flow in page and add button in this page I can select one of the actions in task flow in the property inspector panel, ACTION filed of this button
    so when i click on this button the browser will to to the destination of the action
    how can i do that if i have dialog instead of button
    and sorry for my bad english

Maybe you are looking for