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.

Similar Messages

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

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

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

  • Calling a restful web service from a script task

    Hi.  I'm weak in c# but am looking to accomplish this...
    I want to call a RESTful web service from an ssis script task.  I don't want to create a web service so I'm hoping there is some publicly available one I can practice with before our web team provides me with the service I'll eventually use.  Can
    the community provide an example?  I wish I had more but my knowledge is very limited except for using ssis in more sql centric apps.  It would be great if I could exercise both a get and put verb but I understand i'll be lucky if I can even get
    a get to work. 
    Here is an example of a get I found on the web but I don't know if its a viable candidate for me to practice with from my package...
    using System;
    using System.IO;
    using System.Net;
    using System.Text;
    // Create the web request
    HttpWebRequest request = WebRequest.Create("http://developer.yahoo.com/") as HttpWebRequest;
    // Get response
    using (HttpWebResponse response = request.GetResponse() as HttpWebResponse)
    // Get the response stream
    StreamReader reader = new StreamReader(response.GetResponseStream());
    // Console application output
    Console.WriteLine(reader.ReadToEnd());
    and in the same article an example of a put ...
    // We use the HttpUtility class from the System.Web namespace
    using System.Web;
    Uri address = new Uri("http://api.search.yahoo.com/ContentAnalysisService/V1/termExtraction");
    // Create the web request
    HttpWebRequest request = WebRequest.Create(address) as HttpWebRequest;
    // Set type to POST
    request.Method = "POST";
    request.ContentType = "application/x-www-form-urlencoded";
    // Create the data we want to send
    string appId = "YahooDemo";
    string context = "Italian sculptors and painters of the renaissance"
    + "favored the Virgin Mary for inspiration";
    string query = "madonna";
    StringBuilder data = new StringBuilder();
    data.Append("appid=" + HttpUtility.UrlEncode(appId));
    data.Append("&context=" + HttpUtility.UrlEncode(context));
    data.Append("&query=" + HttpUtility.UrlEncode(query));
    // Create a byte array of the data we want to send
    byte[] byteData = UTF8Encoding.UTF8.GetBytes(data.ToString());
    // Set the content length in the request headers
    request.ContentLength = byteData.Length;
    // Write data
    using (Stream postStream = request.GetRequestStream())
    postStream.Write(byteData, 0, byteData.Length);
    // Get response
    using (HttpWebResponse response = request.GetResponse() as HttpWebResponse)
    // Get the response stream
    StreamReader reader = new StreamReader(response.GetResponseStream());
    // Console application output
    Console.WriteLine(reader.ReadToEnd());
     

    Hi
    db042190,
    These kinds of operations are commonly found outside the SSIS section of the forum, you just need to "borrow" the code and wrap into the Script Task. And based on what you see you are on the right tracks.
    One thing you need to be aware of: in production such RESTfull call usually lead to a fiasco for the machine residing in some kind of DMZ or Firewall rules prohibiting these methods or you need a proxy account to run the package and you face unbeggable admins
    who resist to relaxing security.
    My suggestion is to go the easy route: write the app up as a console, standalone app - it will be easier to debug and there will be complete examples of them in abundance on the web.
    Arthur
    MyBlog
    Twitter

  • 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

  • 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.

  • Including the unbounded task flow pages to a template content region

    I have a template with a left and content region.All the pages are linked through an unbounded task flow. On clicking on the left menu options I need to include the unbounded task flow views to the content region. Is there any way to accomplish this ?
    jsp:include is a way to do this ?. I need to change the pageview onclicking on the left menu .It should work like an iframe in html.That means somehow I need to invoke http://127.0.0.1:7101/RMEWebApps-PlsSuiteWeb-context-root/faces/test through the jsp include or using some other mechanism in the content region
    How can I do this ?
    Thanks
    Suneesh

    This is an integration project. We do have an application already using unbounded task flow.We have some other projects as well using regions and bounded task flows. We need to create a frame work so that we can navigate to different projects from the main project.
    What should be the best design approach for integration
    1) Import ADF lib jar files of other projects to main project.Create an unbounded task flow linking all unbounded task flows and create a menu out of that which will link to different projects in the main project
    2) Convert all unbounded task flows to bounded task flows and link the pages.Import ADF lib jar files of other projects to main project.Create a region in main project and dynamically change the region by refreshing it.
    Thanks
    Suneesh

  • How can integrate/call the Oracle Forms in ADF pages or task flow.

    Hi ,
    I Have requirement to integrate the ADF and EBS.
    I have done the ADF pages calling in ESB.
    Right now i am struck up to call the OAF froms in ADF page/taskflow.
    it's high appriciate if any one provide me the any info or how to do this requriment.
    Thanks,
    Madhava.

    Hi,
    Forms integration can happen using af:inlineFrame or by a redirect to a Forms web URL. In the latter case navigation should be from an unbounded task flow ensuring the return address required to resume the ADF application is provided. See: https://blogs.oracle.com/jdevotnharvest/entry/how_to_efficiently_redirect_an for how to construct the return URL
    Frank

  • How to define the default activity for an unbounded task flow?

    In the new "Fusion Developer’s Guide for Oracle Application Development Framework 11g Release 1" documentation at the bottom of page 14-3 it states "An unbounded task flow .... contains a default activity, an activity designated as the first to run in the unbounded task flow, because an unbounded task flow does not have a single point of entry."
    What I can't find is how to define the default activity in an unbounded task flow and where this is recorded? Can we set this via the task flow diagrammer, and which configuration file is it stored?
    I note the first time I run the application with an unbounded task flow a dialog asks me which of the activities in the adfc-config.xml file to make the default, but I can't find where this is recorded.
    Anybody have any ideas?
    Thanks,
    CM.

    Chris,
    In fact this information is nothing that belongs into the taskflow meta data because unbounded taskflow have more than one entry point and there is no notion of default. Its a tools setting (JDeveloper) we had before
    Frank
    Message was edited by:
    Frank Nimphius

  • How to call page in adfc-config from bounded-task-flow return?

    Hello everybody, I am using JDeveloper 11.1.2.3.0
    I have in my adfc-config some pages and one bounded-task-flow (with pages, not page fragments). I call the bounded task flow from one of my pages but I want that when I return from the bounded-task-flow to redirect the page to another page rather than the page that called it. I dont know if this can be done, but do you have any idea on how to achieve something like this?
    Thank you

    Here is your sample http://tompeez.wordpress.com/2013/06/18/jdeveloper-navigation-after-return-from-bounded-task-flow/
    Timo

  • Unbounded task flow call from another ADF application

    Hi,
    I have two different ADF applications having unbounded taskFlow , and requirement is to call that task flow from another one with some parameters .
    how to do that , please .
    Regards,
    Parvez

    Thanks Ashish, I study these documents and  acknowledge.
    Parvez

  • Calling a bounded task flow (that uses fragments) from another application

    Hello,
    I'm currently having difficulties calling a task flow located inside another application.
    I have application Console which is my main application in which I would like to run other applications within. Inside this Console I have it divided into splitter windows and inside them I have regions. My goal is to be able to call a task flow from another application inside one of these regions but so far I'm having no luck.
    My first problem occurred when I created a 'local' task flow to make a call to another application's task flow. When I set the properties to the task flow call, it gave me an error that it could not find the .XML file for that task flow when I ran the Console application. I then proceeded to copy that .XML from the remote application into the Console's WEB-INF directory and I seemed to get a bit farther. The error I get now is saying that I cannot run a task-flow that uses fragments. It's essentially trying to run that task flow as an entirely new page instead of inside the region that it's bound to. It's NOT a dynamic region (although that's the end goal here). So I then changed the other application's task flow to simply display an entire page rather than fragments inside a region and voila, it works..... kind of.
    To recap how I was able to call another application's task flow inside the Console:
    - I had to manually copy the task flow xml file into the Console WEB-INF directory
    - I had to change the task flow so that it didn't use fragments
    - I have called the task flow but I lose my console page entirely, no more regions or splitters so I'm back to square one.
    If anybody has any suggestions, hints, tips or anything, send them this way and I will be forever greateful.
    Thanks,
    Mark

    Thanks for your response Frank.
    Unfortunately the problem seems to be greater than that. I've been able to package task-flows into a jar library and tried importing them that way with no luck.
    I'm simple trying to call an external task-flow to run inside a region which is inside a splitter panel that I call my console.
    Any other ideas ?

  • 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

  • Bounded vs. Unbounded task flows

    I have read the appropriate doc (Ch 13 in the Fusion Dev Guide for OADF) regarding bounded vs. unbounded task flows. Am still somewhat confused by the differences. For a bounded task flow the doc says: 'Has a single entry point.' When I build a bounded task flow (JDev 11.1.1.0) with multiple views I can enter the task flow at ANY of the jspx pages. This is not what I call a single point of entry.
    Please explain what is meant by the above statement as opposed to an unbounded task flow.
    THANKS - Casey

    Casey,
    no you can't. Please have a look at the diagram if it shows a green circle around one of your activities demarking the entry point. Don't confuse running a JSPX page from running a taskflow. Taskflows don't own the pages! Taskflows reference the pages. This means that you can call the JSPX page directly, but its not within the context of a bounded taskflow, but implicitly added to the unbounded taskflow. So you may want to use ADF Security and grant no permissions to JSPX pages to prevent users from directly calling a JSPX page. Bounded taskflows are not a mean to protect pages from access.
    Frank

  • Run bounded task flow as start point in an unbounded task flow

    Hi,
    have a bounded task flow which represents the main flow of the application,
    how can I call the bounded task flow from the adfc-config.xml unbounded task flow directly , in other words to be the first activity to run ?
    I can not have a first page calls my bounded task flow?
    thanks

    hi,
    thanks for replying,
    I am testing exactly what u have posted, but I receive the HTTP 404 error :
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead.
    The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism,
    that an old resource is permanently unavailable and has no forwarding address.where does the flow supposed to go upon reaching a return activity
    The case is simply as follows,
    my task flow represents a simple transaction, starts in the main activity, finishes with a return activity , how can I set the task flow to re-enter the cycle again , upon reaching the return activity, if I am not using an unbounded task flow ?
    regards.

  • Bounded task from unbounded task

    can i call bounded task from unbounded task ?
    when i drop n drag bounded task flow definition file into unbounded task flow i am seeing an X mark which saying "An unbounded task flow refer to pages and therefore can't call bounded task flow"
    Please suggest?
    Thanks

    I did same things
    below is my unbounded task flow ,i have added button in home.jspx with action is "request" so that on click of button ,my bounded task flow call.
    home.jspx -------------(request)-------------------->bounded_task_flow
    so when i called home.jspx it is running fine,but when i press button whose action is request ,i am getting same error.
    Thanks

Maybe you are looking for

  • Regarding connection tab in sql developer

    Hi, i click on sql developer.exe it shows me connection tab only when the oracle database 11g release 2 is not installed on the PC but when i installed the 11g release 2 connection tab disappears please help me in setting sql developer connection wit

  • HT201210 Apple activation server's are down??

    I am not able to activate my phone since yesterday. I tried so many times but its not working. Anyone else facing problems???

  • Adobe reader fatal error

    After install Adobe reader getting next fatal error message: Acrobat failed to load its core dll. Please help to fix that issue? Can not open Acrobat reader because of that fatal error. The OS used is win xp sp3; version of Adobe reader installed is

  • How can I change the id apple on my imac?

    When I want to apdate appear the old ussername and ask me the password. I have not possibiliti to change the ussername!

  • Accessing bits of the data bytes and enable and disabling

    Hello i want to send data byte to the CAN and enable and disable one of its bits how to do?