Populating a parameter of a task flow from a different task flow

I have created a BPM process, where two human activities are there. Two human task consist of two task flows. I have inserted some data into table using store procedure from first task flow and passed the id (unique id of table) through BPM process data object into the second task flow. Now I want to start the second task flow with execute with Parameter attribute(where customized query been written on the view object to find details from table) and find the inserted row in the second task flow using the id and show it in a jspx page.
Please help.

You can pass managed bean as input parameter to your BTF, or you can use contextual events, or ...
Maybe I didn't understood you description correctly, but if you use only one dynamic region, then you can't call BTF2 from BTF1.
If you have two regions, one displays BTF1 and second displays BTF2, then this is possible.
Dario.

Similar Messages

  • Calling a bounded task flow from  an unbounded task flow

    How can I navigate from an unbounded task flow to a bounded task flow....
    My situation is as follows:
    In the adfc-config.xml, I have a view activity ADMhome, Wildcard as well as a task-flow-call, admTaskFlow.  A control flow goes from the wildcard to ADMhome while another control flow goes from the wildcard to task-flow-call.
    I have a bounded task-flow "adm-task-flow" with two view actitivies: AdmListView and AdmPageView with AdmListView as the default activity. A Control flow goes from the AdmListView to AdmPageView, all pointing the page fragments
    I created another page ADMregion which is a  (jsf) where I dragged the adm-task-flow onto.
    When I ran the application, the home page displayed properly but when I clicked on a command button to invoke the "adm-task-flow", the application will not responded.
    When I looked at the log message, It gave this message:
    <TaskFlowCallXmlImpl> <parse> ADFc: /WEB-INF/adfc-config.xml:
    <TaskFlowCallXmlImpl> <parse> ADFc: Failed to parse element 'task-flow-reference'.
    <ActivityXmlImpl> <parse> ADFc: /WEB-INF/adfc-config.xml:
    <ActivityXmlImpl> <parse> ADFc: Activity metadata could not be parsed. [Activity Type, ID] = ['task-flow-call', ' admTaskFlow '].

    Thanks for this clarifications...
    I created a view activity in the adfc-config-xml and called the page (ADMregion) where the task flow was embedded. It worked well..
    Another clarification I want is this, when do I use a task flow call to call a task flow?  My thinking and my understanding was that when you create a task flow, you use a task flow call to invoke the task flow.
    Pls another aspect I want you to guide me is on calling a java class from jsf and jsff pages. Being new in these technologies, I have having some difficulties navigating and putting all of them together. My problem is this:
    I created a java class under the view package of Application Sources in the View Controller of my Application. The java class returns a value. I designed a jsff form with input fields and and command buttons. I want when I clicked on a command button to take a parameter from the input field and pass it to the java class, the after processing, the java class returns a value which I will place inside one of the input fields in my jsff form.

  • Query regarding refreshing grid data when returned from  a different Task Flow

    Hi Experts,
    JDEV version used is :11.1.1.5
    Our application uses dynamic UI shell tabs.
    Whenever the user logs in he is taken to the TAB A.
    From TAB A, user navigates to TAB B.
    The TAB B has a GRID B(table with some records ).
    Column A on TAB B has a hyperlink which when clicked will open up a different task flow in a different tab.
    The click on column A's hyperlink for different rows will open different TF's (based on some conditions).
    On clicking the hyperlink the _launchActivity(String title, String taskflowId, boolean newTab) method is used which open the TF in a new tab.
    User works on the TF( on a new tab) which was opened on click of the Column A's hyperlink and clicks on SAVE.
    On click of save  some operation is performed and removeCurrentTab method is called which will close the current tab and the control goes to first  tab(TAB A) .
    The problem:
    Once the user tries to click or come back to to TAB B the GRID B is never refreshed as we are unable to get the handle to refresh the grid data.
    Any suggestions would be highly appreciated.
    Thanks,
    Vikranth

    Hi Experts,
    JDEV version used is :11.1.1.5
    Our application uses dynamic UI shell tabs.
    Whenever the user logs in he is taken to the TAB A.
    From TAB A, user navigates to TAB B.
    The TAB B has a GRID B(table with some records ).
    Column A on TAB B has a hyperlink which when clicked will open up a different task flow in a different tab.
    The click on column A's hyperlink for different rows will open different TF's (based on some conditions).
    On clicking the hyperlink the _launchActivity(String title, String taskflowId, boolean newTab) method is used which open the TF in a new tab.
    User works on the TF( on a new tab) which was opened on click of the Column A's hyperlink and clicks on SAVE.
    On click of save  some operation is performed and removeCurrentTab method is called which will close the current tab and the control goes to first  tab(TAB A) .
    The problem:
    Once the user tries to click or come back to to TAB B the GRID B is never refreshed as we are unable to get the handle to refresh the grid data.
    Any suggestions would be highly appreciated.
    Thanks,
    Vikranth

  • Human Task expiration containing Task History from another Human Task

    Hi All,
    Let me explain you my complete workflow in brief.
    I have 8 Human Tasks and all are sharing Task history. My each individual Human task are in Scope activity. In my payload I have a variable "strExpiryDuration" and I am setting its value in an Assign activity before my last human task. I have assigned this variable "strExpiryDuration" in the expiry duration of my last human task definition. For the reference I am giving the value as "*P0DT1M*". But it is not expiring my last human task at all. I doubt it may be because task history which I am sharing in my human tasks is overwriting the payload values and thats why the value of strExpiryDuration is not setting up in task definition.
    I checked by assigning the same variable strExpiryDuration to some other value ("*P3DT1M*") and assigning it to my first human task definition. In this case, whenever the workflow is assigned to my last human task it is also showing Expiry date as of after 3 days. What is the issue here? Please help.
    Regards,
    Murtaza
    Email:
    murtaza.ghodawala @ alshaya.com
    Edited by: user8977605 on Apr 21, 2011 6:48 AM

    I have found the solution to this generic problem. Whenever you have a human task sharing task history in your workflow, you need to ensure that the changed/modified payload value is assigned to the human tasks properly. In most of the cases, Task history sharing Human Task will override the payload values with the payload values of the previously executed human task in the workflow.
    For that the fix is as below:
    1. Expand the Human Task.
    2. In the Assign activity, write a copy operation in which copy the changed individual payload variable to the payload variable of the Human task whose task history we are sharing.
    For e.g.
    <copy>
    <from variable="inputVariable"
    part="payload"
    query="/client:TravelRequestProcessRequest/client:ExpiryDays"/>
    <to variable="ApprovalsTask_1_globalVariable"
    part="payload"
    query="/task:task/task:payload//client:TravelRequestProcessRequest/client:ExpiryDays"/>
    </copy>
    3. Make this copy operation as the first operation in the Assign Activity.
    I hope this solution will help you to resolve your issues.
    Regards,
    Murtaza Ghodawala
    Email:
    [email protected]
    Edited by: user8977605 on Apr 24, 2011 12:53 AM

  • Can we call a task-flow from a bean in adf?

    Sir,
    Can we call a task-flow from a bean in adf?
    Regards

    you can do this using taskflow call activity
    check - Oracle ADF World: ADF Task Flow Call Activities
    http://docs.oracle.com/cd/E24382_01/web.1112/e16182/taskflows_activities.htm#ADFFD21945
    you can pass input parameter map and dynamic taskflow reference from managed bean
    check -https://blogs.oracle.com/DavidGiammona/entry/dynamically_assign_task_flow_c
    Or if you want to use dynamic region to swich between taskflows
    see- Zeeshan Baig's Blog: Working with Dynamic Regions in Oracle ADF
    Ashish

  • 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

  • Error while calling DYnamic shell task flow from unbounded login activity

    Hi All,
    MY problem-Hi ,
    In my case I have alogin page in undounded task flow which calls dounded task flow.
    My bounded task flow uses dynamic tab shell.And if login is successfull user will be directed to welcome page where default welcome tab shell is open.
    When i run my application i m receving tabConetxt null pointer excetion.
    As per my knowledeg i know how to pass tab context reference from 1 task flow to other.But not sure how should i pass tab context from Login View activity to welcom taskflow
    follwing exception occurs when i click on login link
    javax.faces.FacesException: javax.el.PropertyNotFoundException: Target Unreachable, 'tabContext' returned null
    at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:262)
    at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
    at javax.faces.webapp.UIComponentClassicTagBase.createFacet(UIComponentClassicTagBase.java:510)
    at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:661)
    at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1142)
    Truncated. see log file for complete stacktrace
    Caused By: javax.el.PropertyNotFoundException: Target Unreachable, 'tabContext' returned null
    at com.sun.el.parser.AstValue.getTarget(AstValue.java:88)
    at com.sun.el.parser.AstValue.setValue(AstValue.java:133)
    at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:255)
    at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:259)
    at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
    Truncated. see log file for complete stacktrace
    ANy idea about this
    Edited by: Shubhangi m on May 27, 2010 5:31 AM

    This question was answered in: Oracle UI Shell Functional Pattern
    Edited by: Richard Wright on Jun 15, 2010 8:52 AM

  • Accessing Human Task Payload from ADF Task Flow

    Hi
    Using jDeveloper 11g TP4 SOA...
    The scenario is this:
    1. We have created a Human Task which has parameters accountId and accountType in the payload.
    2. We have then created a Task Flow based on that human task.
    3. Inside the web folder with task flow we have *4 task display forms* (jspx pages).
    4. In the task flow we have the 4 pages and then a router
    5. Now we want the router to look in the payload of the human task and based on the accountType redirect to the correct task display form.
    Problem: We can't access the human task data control from the router in the task flow.
    Does anyone have some insigt into how we can read the accountType from the payload and then pick the correct task display form?

    Hi victor,
    i'm using a SOA(OSB) based task service, but i think that you have to use a "task service" (or something like this) to update your task
    this is my routine
    public Task updateTask(Task task) throws Exception {
    TaskServiceContextTaskBaseType taskUpd =
    new TaskServiceContextTaskBaseType();
    taskUpd.setWorkflowContext(getWorkFlowContext());
    taskUpd.setTask(task);
    return taskService.updateTask(taskUpd);
    where taskService is the port of my proxy.
    Hope this help

  • Button Actions are not working -invoking task flow from other project regio

    Hi
    I have a project using a mani.jspx file having a regions and the region is updated with different views based on a router condition in my bounded task flow. Everything working fine with in the project. I have a seperate project in my application having an index.jspx and region in it. I created the ADF lib jar file of the first project and imported to this project. I could invoke the task flow in the first project to the region in the index.jspx file in the seconed project.But none of the action managed bean method attached to the buttons in this view are working.The methods are not getting called on clicking on button and no error in the backend console of Integrated weblogic server.Any body can help what could be the issue ?
    Thanks
    Suneesh

    The issue that is happening when I refreshed the region with task flow from the project I imported.If I load the taskflow from the imported project on first time rendering all my managed bean actions are executing but if I load a different flow initially and change the taskflow Id imported from other project none of the managed actions are working.
    Thanks
    Suneesh

  • Changing OSM task state/status from another parallel task flow

    Hi, guys!
    I have a problem with implementing parallel task flow. Let's consider such situation: there are two parallel task flows, the first flow contain manual task, upon completion which I need to change second flow's task state/status and vice-versa. I studied XMLAPI functions, wsapi operations, api from automation package but couldn't find appropriate aproach.
    Thanks!
    Edited by: serj129 on 15.08.2011 2:50

    Have you any suggestions?
    I tried to implement 2 automation task, which contain automation plugins. First task implemented xquery sender as completed event, the second task implemented xquery reciever, which changes status to success, but this approach isn't working.
    All properties of automation plugins configured properly, but I always receive next exceptions:
    ####<Aug 22, 2011 4:39:52 PM ALMT> <Warning> <EJB> <car07-eth0.telecom> <AdminServer> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <> <> <1314009592567> <BEA-010065> <MessageDrivenBean threw an Exception in onMessage(). The exception was:
    java.lang.RuntimeException: No transaction associated with request.
    java.lang.RuntimeException: No transaction associated with request
         at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage(Unknown Source)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
         at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4585)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:4271)
         at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3747)
         at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
         at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5096)
         at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    >
    ####<Aug 22, 2011 4:39:52 PM ALMT> <Warning> <EJB> <car07-eth0.telecom> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1314009592571> <BEA-010216> <The Message-Driven EJB: BiTTLautomation.BiTTLautomation.OSMManualListenerMDB is throwing exception when processing the messages. Delivery failed after 185 attempts. The EJB container will suspend the message delivery for 60 seconds before retry.>
    ####<Aug 22, 2011 4:40:09 PM ALMT> <Info> <oms> <car07-eth0.telecom> <AdminServer> <Timer-8> <admin> <> <> <1314009609038> <BEA-000000> <impl.OrchestrationCascadingLRUPolicy: Evicted order /order/474 from orchestration cache due to cache entry expiry>
    ####<Aug 22, 2011 4:40:24 PM ALMT> <Info> <oms> <car07-eth0.telecom> <AdminServer> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-08945C597092560E5D6A> <> <1314009624879> <BEA-000000> <plugin.AbstractAutomator: Creating automation plugin [class oracle.communications.ordermanagement.automation.plugin.XQuerySender_iults7_Impl] built using SDK version [7.0.2.437]>
    I suggest that it is not correct approach, because of automation context restored from DB is related to other task.
    Have any ideas of changing task status from OSM DB directly. This approach is temporary, for compatibility with performing manual tasks in 2 systems: OSM and other
    Thanks!
    Edited by: serj129 on 22.08.2011 3:59
    Edited by: serj129 on 22.08.2011 3:59

  • Call bounded task flow from managed bean

    Hi experts,
    can we call a bounded task flow from a managed bean?
    if yes , please explain.....
    Thankz in advance
    PMS

    Hi john,
    Thankz for ur reply........sorry if im asking stupid questions.
    this is my tree selection handler
    public void treeSelectionHandler(SelectionEvent selectionEvent) {
    RichTree tree1 = (RichTree) selectionEvent.getSource();
    RowKeySet rks2 = selectionEvent.getAddedSet();
    Iterator rksIterator = rks2.iterator();
    if (rksIterator.hasNext())
    List key = (List)rksIterator.next();
    JUCtrlHierBinding treeBinding = null;
    treeBinding = (JUCtrlHierBinding) ((CollectionModel)tree1.getValue()).getWrappedData();
    JUCtrlHierNodeBinding nodeBinding = nodeBinding = treeBinding.findNodeByKeyPath(key);
    DCIteratorBinding _treeIteratorBinding = null;
    _treeIteratorBinding = treeBinding.getDCIteratorBinding();
    JUIteratorBinding iterator = nodeBinding.getIteratorBinding();
    String keyStr = nodeBinding.getRowKey().toStringFormat(true);
    iterator.setCurrentRowWithKey(keyStr);
    JUCtrlHierTypeBinding typeBinding = nodeBinding.getHierTypeBinding();
    String targetIteratorSpelString = typeBinding.getTargetIterator();
    if (targetIteratorSpelString.equals("${bindings.Iascat1View1Iterator}"))
    System.out.println("Tree Selected*************"+targetIteratorSpelString);*
    else
    if(targetIteratorSpelString.equals("${bindings.Iascat2View1Iterator}"))
    *System.out.println("Tree Selected**************"+targetIteratorSpelString);*
    else
    *System.out.println("Tree Selected**************"+targetIteratorSpelString);*
    I hav bounded task flow for each iterator for creating new record......i hav to replace code for calling bounded task flow instead of printing statement
    PMS

  • Invoke task flow from backing bean?

    Hi,
    Is there a way to invoke task flow from a backing bean? If yes, how?
    Thanks in advance

    Thanks Frank. I am not an expert with ADF so please bear with me if my questions doesn't make sense. Basically what I am trying to achieve is this.
    I have a taskflow and I am currently in a ui page which displays a page fragment inside this task flow. In this page, on click of a button, I need to call another task flow and show it in a adf popup. Is this the case referred in the pdf document that you pointed out?
    Thanks

  • Finding current task flow from tempate

    Hi,
    I am using the UI dynamic tab shell. In my application i want to find the the currently loaded task flow from the template. main jspx page is created with dynamictabshell tample whihc contains the logout commandlink. inside that i want to find the currently loaded and active tab task flow need to find for checking the dirty ness of that task flow. is it possible?
    Reg,
    Brahma B.

    Hi..
    Hope following will helpful
    http://technology.amis.nl/blog/12156/adf-11g-what-is-the-currently-active-taskflow-in-a-dynamic-region-2
    http://biemond.blogspot.com/2011/01/get-pageflowscope-of-region-bounded.html

  • Communicate from one bounded task flow to another bounded task flow

    Hi All can someone let me know how to communicate from one bounded task flow to another bounded task flow.

    Hi,
    you use contextual events to communicate from one region to another. Have a look here:
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/web_adv.htm#CACJBFGI
    Also keep an eye on
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/adfinsider-093342.html
    At the end of this week or beginning of next week I am recording a sample for this
    Frank

  • Disable population of 'Cash flow from' on rental  and pool space

    Hello,
    We want to disable the population of a date on  the 'cash flow from' field on the rental space and pool space. We want this field to remain blank when a new pool space or rental space is created. Please advise how this can be done.
    Any hints will be appreciated

    Hi,
    You can do this by making the filed Start Date of Cash Flow display in the Create activity in the following Customization.
    RECACUST > Flexible Real Estate Management (RE-FX) > Master Data > Usage View > Rental Object > Dialog > Field Status
    In Field Status select Activity 01 (Create)  click on Field Grouping and set the field Start Date of Cash Flow as Display.
    But make sure that in the Activity  02 (Change) the filed is set as optional so that you can enter Cash Flow From in the change view for the Rental Object.
    BR//Kishore

Maybe you are looking for

  • Error running a basic app created with CFwizard

    Creted a basic app using the cf wizard. At loging page when I try to log in to the app I get the following error: ReferenceError: Error #1069: Property message not found on mx.messaging.messages.ErrorMessage and there is no default value. at com.cfge

  • Re-install adobe creative suite 5.5 won't accept my product code

    hello I want to re-install adobe creative suite 5.5 on my mac but he don't accept my product code. The code has some letters in it and I can't type them in the boxes. Caspar

  • [TV5200] fx 5200 not working

    i had the fx 5200 running  so smooth on my computer and then all of the sudden one day i turned my computer on and it wasent working.....it stopped being read by my computer and is no longer visable in the device manager...any ideas as to what is wro

  • Select query with combination of two columns

    I need looking to write a nested select statement that would achieve the following. Support i have a table as follows TestTable Name : Age : Country Test1 : 10 : USA Test2 : 11 : USA Test3 : 12 : USA Test4 : 11 : Canada Test5 : 12 : Canada Now i want

  • Help needed to update CS2-script to CS3

    Folks, I am no good at scripting myself (its on my to-do-list), but a friend of mine has a problem with this script, that wont work in CS3. I know that the syntax is wrong, but am unable to do solve this. Who can help? var thecount = app.documents.le