JSF and JSFF paged called by external task flow

Hello world.

After working with JDeveloper and ADF Faces not too much but not too little time, I have a question:

What is the best and practice how to call from a workflow in a project, external Pages JSF or JSFF located in another project?

In my particular case, I have:
First: a project with all the JSF and JSFF stuff and a task runs for navigation JSFF which are called in a "main" JSF page
Secondly: another proyect with all nodes in key workflows and activities.
The two projects are in the same application.

I studied the Oracle Fusion developer's Guide, read the Blog of the Andrejus Baranovskis to
[http://andrejusb.blogspot.com/2008/06/how-to-call-remote-task-flow-in.html]
And of course to review several post here in the Oracle Forum.

For most of the JSF pages, I use the display component of the URL in the workflow project, providing the URL of the page.
I call to the JSFF, just in the "main" JSF page workflow that calls the JSFF workflow. In a way, it's like a network of workflow.

{So: any suggestions on how to improve this approach ' "?}

Perhaps using an ADF file library JAR could improve this, but I don't know and I don't understand exactly how it works.
A fact more: instead of using business components, I use the ADF faces with the EJB 3.0 technology because work requeriments.

And... This will work also for projects in separate applications? or it is necessary that the workflow and the JSF stuff must be in the same application and even in the same project?

Thanks in advance.

Hello

You can call external task (called remote task flow) flow of a workflow but call activity only if the workflow is using JSPX pages - no fragments of the page. If the workflow that you want to access using fragments of the page then the best practices to follow are to create an ADF of the workflow library and put at the disposal of an ADF Jar library. The library of the ADF JAR can be imported into a project in JDeveloper, using the range of resources in JDeveloper.

Frank

Tags: Java

Similar Questions

  • Call a child task flow Page (.jspx) Parent workflow

    Hi all

    JDeveloper: 11.1.16
    ADF

    My needs: I have two workflow (Parent, child). I'm calling from the Parent child TF (all are pages [.jspx]) in a popup (external).
    I want to open the page child TF TF parent (single page) in the POP-UP window. And should return a parameter as a bean.

    Please suggest me how do. Also give me some related documents, link to the "caller pages directly from an another TF TF.

    -Thank you
    Jeanmarc

    Dietsch,

    not sure it was a question of Oracle Apps (the FndUIShellController domain controller is not available in the product public).

    Christian,

    Have a look here http://www.oracle.com/technetwork/developer-tools/adf/learnmore/69-custom-lov-with-btf-276178.pdf. I did it instead of returning a value 8as) return an object and your done

    Frank

  • The execution of an external task with dynamic parameters

    The current scenario is that a job is running a process that will return an XML of records and their corresponding scores after going through a few search rules. Finally, these files will be returned to Siebel, but until this is done, we would like to run a XSL Transformation on them. We have developed an external executable that takes input and the output XML target files as arguments and applies the transformation.

    Logically speaking, Disqualification will have to write to an XML file, call the external task (pointing to the correct XML file as it may be several simultaneous research generating XMLs), wait for the task to complete, read the XML data, and then pass this information through the web service.

    As mentioned above, the biggest problem here would be the potential of many users at the same time research. Therefore, a Shared output THAT XML is not a workable solution.

    How dynamic arguments can be passed in writing to an XML file and the execution of an external task?

    It depends on.

    In general, we use attributes of the entry on the message to change the behavior of a service in real time. The match of entry score threshold is an example of this - the process uses this attribute do not return the results below. Similarly, we use attributes in the address for service of cleaning that control whether to change the address of entry. Your customer may have a logic that defines the entry attribute values - in the case of Siebel, the threshold value is a good example of what it can be configured in Siebel and defined by the connector for Siebel Disqualification.

    Then there are options outsourced in a process of the Disqualification. These can vary for different works the same task using a profile or command-line... run the limitation of which is that the evolution of the option for a given service means stopping and restarting, but it allows things such as the same configuration to have different behaviors on different series, or by operating on different machines.

    I recommend you to read about outsourcing in the online help. Most of the settings configuration of the Disqualification can be outsourced and substituted at execution - a powerful feature that can and has been used to solve a variety of problems.

    Kind regards

    Mike

  • Query about the ADF task flows call using URL

    ADF Version: 12.1.3 and 11.1.7

    We have a scenario where we want to implement a Home Application and product Application deployed as separate web applications.

    Now the House must have the ability to call the Application of product using call URL delimited task flow.

    My query is whether the return of a stubborn workflow will work in this scenario, because it works with the delimited call task normal flow.

    What are the other alternatives if it won't?

    Also anyone provides me with examples of applications for the above scenario.

    Kind regards

    Nikhil

    Here's a nice article on this topic

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/43-remote-task-flow-169185.PDF

  • ADF task flows and parameters WITHOUT data controls

    Hello world.

    In a previous post, I asked him about the best way to call the workflow "at a distance" by a "local" application Frank Nimphius suggested me to use the JAR ADF libraries between projects for this. I'll apply, but I have a small/big problem:

    As I said in my previous post, I exclusively use the EJB 3.0 - JPA technology in all my projects. The components business or data controls are used. Just a lot of Java-based components.

    Now, supossed that I have a (based in the HR schema) application with 3 projects:

    -L' one with all things EJB: entities from tables, session bean, and an example of a Java client.
    -The second as a 'local' point of view, with a JSPX (viewLocations.jspx) page that contains the table of communities (table_locations).
    -The third view "at a distance", with a JSPX too (viewCountries.jspx) page that contains the table of countries (table_countries).

    I have a button in views the remote, and one to switch from local to remote display and the other for the opposite.

    The goal is: pass a location of choice of table of locations for the project where I need to see the country for the selected location.

    In the table of locations, I use a variable currentLocation (declared as: private location currentLocation = new Locations() ;) to store the selected location and a SelectionListener process, called selectLocation_listener() with this code in the)
    backing.viewLocations.ViewLocations.java:

    + ' public void selectLocation_listener (SelectionEvent selectionEvent) {+
    + / / Add code from the event here... +.
    currentLocation = (rentals) table_locations.getSelectedRowData ();
    +}+

    If the selected location is stored in the variable currentLocation.

    Both in projects the and remote, in that I store the task flow JSPX pages. I have the taskLocal.xml as an unlimited workflow with the viewLocations.jspx as the main view and the taskRemote.xml as a workflow bounded with the viewCountries.jspx as the main view.

    I have deployed the project remotely in a library JAR ADF and imported to the local project, then I get it as a special activity Flow call.

    The question is: How can I pass the variable currentLocation as a workflow setting to my project remotely? I don't have any data control to bind to a workflow parameter.
    Should I really have some control of data to store my currentLocation variable and bind it to a parameter? Or there is another way without data controls?

    Another fact: local and remote project have a dependency with the EJB project.
    What about dependencies? Have a role in call task workflow activities?

    Thanks in advance.

    If you would like more information or a more detailed explanation please ask me.

    Hello

    a data control is needed for this. If you only want to use ADF task Flow and manage the component UI lie yourself, then you are good to go with this approach. To add parameters to a call from bounded task flows, have a look here

    http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31974/TOC.htm (Chapter 15, activities of view URL using 15.3)

    You can make the local variable that is accessible from an accessor method Set/getter bean managed so that you can use EL when you set the value of the parameter.

    Frank

  • OEDQ 9.0.8 - external task - execution of Shell Script

    Hello Disqualification Experts.

    I am looking for your expert advise on this... With the help of the external task I am able to call the .bat (batchfiles) but I'm not able to run .ksh (UNIX shell script file), attached is the example script I am trying to run via the external task.

    File name: testfile.ksh

    #! / usr/bin/ksh

    Set - x

    $ORACLE_HOME/bin/sqlplus - s edq_test/edqtest@edqd < < EOF

    WHENEVER SQLERROR EXIT SQL. SQLCODE

    EXECUTE SP_TRUNCATE_TABLE ('ABC_OWN', 'ABC_TABLE');

    COMMIT;

    quit smoking;

    EXPRESSIONS OF FOLKLORE

    output

    Disqualification-> Manager-> External tasks-> Creates a new task called TestTask who has the below...

    Command: testfile.ksh

    Working directory: \opt\local\software\edq\config\commandarea

    Get this error Message:

    The external task (Execute testfile.ksh) failed because of the following exception: cannot run program "/ opt/local/software/edq/config/commandarea/testfile.ksh": error = 2. No such file or directory

    Thanks in advance!

    BG

    Dear Richard, thank you for your prompt response.

    # / bin/bash helped and I also have to export the ORACLE_HOME in the script, somehow the $ORACLE_HOME is not recognized by the external task.

    Example of Script working:

    #! / bin/bash

    export ORACLE_HOME=/ora02/oracle/product/11.2.0.4/client

    $ORACLE_HOME/bin/sqlplus - s edq_test/edqtest@edqdev<>

    WHENEVER SQLERROR EXIT SQL. SQLCODE

    EXECUTE SP_TRUNCATE_TABLE ('ABC_SCHEMA', 'ABC_TABLE');

    COMMIT;

    QUIT SMOKING;

    EXPRESSIONS OF FOLKLORE

    output

    Thanks for your help!

    BG

  • Input parameters of the task flow and "back" button

    Hello experts. I have two stubborn workflow created by page; say they are TF1 and TF2. Each workflow task has their own controlled beans. These controlled beans are kept in the Page flow scope. The two task-flow has their own of initializers.

    By an action on TF1, I redirect to the TF2. During this redirection, I pass some parameters. After redirection when it enters the TF2, I extract the parameters programmatically. Now I'm back on TF1 and TF2 of TF1, I'm clicking on the back button of the browser. Note that I put anything if the re-entry allowed or not in TF2. After clicking the browser back button access me for the new TF2. TF2 called if I generate any action of the initializer. BUT now I can not get the input parameter values more. All values in the set of input null parameter.

    My question is:

    • Why have defined null values?
    • How can I make persistent values?

    Any pointer would be very useful.

    I use JDeveloper 11.1.1.6.0, WebLogic 10.3.5.

    Thanks in advance.

    Tapas

    There is a way. Click on "back" button is not invoke the lifecycle JSF and browser displays the previous pages in its cache. If somehow, I can say browser not to cache the page, then every time a click the back or next button, the browser would GET the page headed from the server, which would eventually be my.

    So I added a filter to achieve this:

    public class NoCacheFilter implements Filter {
        @SuppressWarnings("unused")
      private FilterConfig _filterConfig = null;
    
        public void init(FilterConfig filterConfig) throws ServletException {
            _filterConfig = filterConfig;
        }
    
        public void destroy() {
            _filterConfig = null;
        }
    
        public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
            HttpServletResponse servletResponse = (HttpServletResponse) response;
            servletResponse.setHeader("Cache-Control","no-cache, no-store, must-revalidate, private, max-stale=0, post-check=0, pre-check=0");
            servletResponse.setHeader("Pragma", "no-cache");
            servletResponse.setHeader("Expires", "Sun, 16 Dec 1984 07:48:00 GMT");
            chain.doFilter(request, response);
        }
    }
    

    Note that I have to specify browser to cache resources, I do R & D to change this filter.

    It works. Hope, now I can spend my weekend peacefully :-).

    Ref:

    Tapas

  • Right-click DeptEmp.jsf and select run from the context menu

    Hello

    Please consider article Oracle Magazine "Catch Me If You Can ' Frank Nimphius
    at http://www.oracle.com/technetwork/issue-archive/2013/13-mar/o23adf-1897193.html

    In the article, it is offered several times to
    «... Right-click DeptEmp.jsf and select run from the context menu...'.»
    When you use JDeveloper 11.1.2.3.0 it will result in JDeveloper starting a browser requesting a URL "/ faces/DeptEmp" (without ".jsf").
    (Note that in the sample adfc - config.xml has a view with the id "DeptEmp" activity, but for pages without an activity view corresponding to the stream of unrelated task (adfc-config.) (Xml) JDeveloper starts a browser requesting a "/ faces/otherPage.jsf" URL (with ".jsf").)

    Still, I wonder if we should really run (JSF) pages, or rather an activity view in the flow of a task?

    After running into issues with calling (JSF) page URL rather than controller unbounded ADF task flows view activity URL in another forum thread [1], I try to avoid pages (JSF) (execution of the task-flow unlimited instead) running.
    to Re: login after logout is not possible using af: commandButton
    John Stegeman wrote:
    ... especially since it is very common for people new FAD (and indeed no-so-news-to-ADF people like me) to run their app via a page rather than the workflow and then wonder why it does not work :)...
    But also the Oracle documentation seems to suggest that page running a (JSF) is the way to go (or "a" way to go), see the section "41.2.1 how to run an Application in Integrated WebLogic Server "
    saying: ""in the navigation Application, select the project, a task flows, JSF page or file as the target execution. ".
    at http://docs.oracle.com/cd/E37975_01/web.111240/e16182/deployment_topics.htm#ADFFD22047

    So, who is? Is there a preferred way to run? Running a (JSF) page "also recommended"?

    -[1] ' login after logout is not possible using af: commandButton.
    during the connection after disconnection is not possible using af: commandButton

    Thank you very much
    Jan Vervecken

    Hello

    Still, I wonder if we should really run (JSF) pages, or rather an activity view in the flow of a task?

    The recommendation is to run the activity. I think it's just my laziness to boot from the JSF file in the case of the article (and given my article only has a single page in the workflow unlimited I wonder if my attempt failed, if there was a need for a navigation to another view in the flow of unlimited work). The risk from a page directly, it is a physical implementation of a view that could be used by multiple streams of different tasks (although the common use of the stubborn workflow is to go with fragments of the page, always bounded task flows could be defined using complete documents). His recommendation that you start an activity to view pages in order to ensure the ADFc is used (I wasn't even not aware of 11.2.3 to automatically change request activity instead of the file if there is an activity of referencing).

    Frank

  • Disqualification external tasks

    Hello

    I have a stored procedure, and I am the appellant through a Windows File batch (.bat) in the location "edq\oedq.local.home\commandarea".

    The procedure is completed successfully, but the external task is not getting out even after that stored procedure runs correctly. We have to manually cancel.

    Because the command line is not automatically get closed. Is there any solution to get out of the external Disqualification task task?

    Appreciate your input on this.

    Untitled.jpg

    Thank you

    Anand R

    As we've said before, you must add an EXIT statement at the end of your script. It works for me if you do this:

    ...

    end loop;

    END;

    /

    EXIT;

    /

  • Hi all. How can I manage the preferences that LR do not take up space on my MAC hard drive and works only on the external hard drive?

    Hi all. I am new and on a free trial right now.

    How can I manage the preferences that LR do not take up space on my MAC hard drive and works only on the external hard drive?

    Monthly payment included cloud storage?

    Peut I manage backups? And how?


    -Amir

    Hi amireos,

    Yes, you can create your workflow where you can keep all your images on the external hard drive and the Lightroom catalog file as well.

    If you start with Lightroom and then use the Destination location as external hard drive when you import your image of the external source such as a camera or SD.

    If you already have your Images on the Mac HD drive, then play all your Image on the external hard drive first and then import images directly from there.

    Finally, you can change the location of the Lightroom Catalog as well.

    Default location: folder on the Mac Drive HD, there is folder called Lightroom that you can move on the external drive too (however catalog Lightroom can't memory space as its only import previews of the images is not the real image and full)

    Once you move the file catalog Lightroom external hard disk, then you need to browse the catalog file when you launch Lightroom only once.

    See thread: LR catalog moving on external hard drive

    Let us know if it helps.

    Kind regards

    ~ Mohit

  • How can I take my images in a specific folder on my HD in LR and the transfer of an external HD to make them appear in LR

    How to make my images in a specific folder on my HD in LR and the transfer of an external HD to make them appear in LR.

    My external hard drive is connected to my computer.

    In your operating system, copy (and not move) pictures of the external HD follow these instructions, do scroll down to the section called "update folder location". Adobe Lightroom - find folders and files moved or missing

    Once you have done this, and everything works as expected, you can remove photos from the internal HD.

  • External tasks in OEDQ

    Hello

    I'm new to OEDQ. I am trying to build a work from end to end of the downloading of a file, do a cleanup and formatting, matching and finally inserted/updated to update to the final table. I'm stuck with the options "External task" on OEDQ.
    «Could someone please show how to use the options of "External Executable" and "file download" with some examples please.» I am trying to download a file from a computer on the network (something like / / machinename/foldername/filename.csv)
    Appreciate your help

    Thank you
    JAI

    Hi Jai,

    This should be as simple as using a file:// syntax in the URL of the file download task field.

    For example file://server/directory/subfolder/file.ext

    Kind regards

    Mike

  • Method call as default activity in ADF task flows

    Hello

    I have a workflow to execute a method on the page loading to set cookie values.
    I added a control method of data as the default activity in the workflow. But it is not called immediately, it is executed only if it is called from another view.

    Any help will be appreciated.

    WebCenter Portal App 11.1.1.6


    Code workflow task:

    <? XML version = "1.0" encoding = "UTF-8"? >
    < adfc-config xmlns = "http://xmlns.oracle.com/adf/controller" version = "1.2".
    ID = "___5" >
    < task-flow-definition = id "cookie-task-flow" >
    < default activity id = "__17" > addEmpNoCookie < / default activity >
    < transaction id = "__38" >
    < new-transaction / >
    < / transaction >
    < data-control-scope id = "__39" >
    < shared / >
    < / data-control-scope >
    < managed-bean id = "__1" >
    < id managed-bean-name = "__4" > cookieBean < / managed-bean-name >
    < managed-bean-class id = "__3" > tr.com.signum.roketsan.utils.CookieBean < / managed-bean-class >
    < managed-bean-scope id = "__2" > pageFlow < / managed-bean-scope >
    < / managed-bean >
    <-l' call the method id = "addEmpNoCookie" >
    < method id '__8' = > #{bindings.addEmpNoCookie.execute} < / method >
    < result id = "__16" >
    < id fixed-result = "__7" > addEmpNoCookie < / fixed-results >
    < / results >
    < / method >
    < use-page-fragments / >
    < / task-flow-definition >
    < / adfc-config >

    Def of the activity of the Middle page of

    <? XML version = "1.0" encoding = "UTF-8"? >
    < pageDefinition xmlns = "http://xmlns.oracle.com/adfm/uimodel."
    version = "11.1.1.61.92".
    ID = "cookie_task_flow_cookie_task_flow_addEmpNoCookiePageDef".
    Package = "TR.com.Signum.roketsan.pageDefs" SkipValidation = "true" > "
    < Settings / >
    < executables / >
    < links >
    < methodAction id = "addEmpNoCookie" RequiresUpdateModel = "true".
    Action = 'invokeMethod' MethodName = "addEmpNoCookie."
    IsViewObjectMethod = 'false' DataControl = "CookieBean."
    InstanceName = "CookieBean.dataProvider" > "
    < NamedData NDName = 'cookieValue.
    NDValue = "#{webCenterProfile [securityContext.userName] .employeeNumber} '"
    NDType = "java.lang.String" NDOption = "3" / > "
    < / methodAction >
    < / links >
    < / pageDefinition >

    Hello

    It contains only the activity of the method, and if so, why is he launched with the help of a new transaction? Note that navigation always is an ID of the view and the workflow will not run if there is no view to navigate to. So either the calling flow calls this workflow and workflow returns immediately after execution of the activity of default method then it refers to a display of flow tasks calling or you add a view. Note that cookies are set on the response of a call and it is not issued before coming to a view. For this reason, using a method call activity could be a bad approach to try this so a phase listener is better suited

    Frank

  • How to catch the end of an external task?

    Hello

    How to catch the end of an external task?
    OS: Windows 2003
    DB: 10.2.0.1

    The code I wrote will run forever:
    declare
       d date;
       n number;
       -- and more
    begin
        d := sysdate;
        dbms_scheduler.create_job(
          job_name => c_job,
          job_type => 'executable',
          number_of_arguments  => 14,
          job_action => c_cmd,
          enabled => false,
          auto_drop => true
        );
        dbms_scheduler.set_job_argument_value(c_job,1,'/c');
        dbms_scheduler.set_job_argument_value(c_job,2,c_command);
        dbms_scheduler.set_job_argument_value(c_job,3,c_pw);
        dbms_scheduler.set_job_argument_value(c_job,4,c_pw_val);
        dbms_scheduler.set_job_argument_value(c_job,5,c_port);
        dbms_scheduler.set_job_argument_value(c_job,6,c_port_val);
        dbms_scheduler.set_job_argument_value(c_job,7,c_key);
        dbms_scheduler.set_job_argument_value(c_job,8,c_key_val);
        dbms_scheduler.set_job_argument_value(c_job,9,c_agent);
        dbms_scheduler.set_job_argument_value(c_job,10,c_batch);
        dbms_scheduler.set_job_argument_value(c_job,11,c_source);
        dbms_scheduler.set_job_argument_value(c_job,12,c_dest);
        dbms_scheduler.set_job_argument_value(c_job,13,c_log);
        dbms_scheduler.set_job_argument_value(c_job,14,c_yes);
        dbms_scheduler.enable(c_job);
     
        -- Job started, waiting...
        loop
          select count(1)
          into n
          from user_scheduler_job_run_details t
          where job_name = c_job and
                t.log_date >= d;
          exit when n > 0;
          dbms_lock.sleep(1);
        end loop;
     
    end;
    The work ends in fact, user_scheduler_job_run_details is updated (if you run the select statement in the loop in another session, it returns 1), but the selection running into the loop will always return 0.
    Any help is appreciated.

    Kind regards
    Lmocsi

    Hello

    It's strange, maybe you can try to use the timestamp type rather type date and with the help of an offset in the case where the work already finished for example d = systimestamp - second interval '1'

    Another thing to watch is if you compare the dates in the same time zone, otherwise you must ensure that all sessions use the same time zone (setting the default_timezone attribute Planner can help).

    Hope this helps,
    Ravi.

  • JSF, and ADF application

    Hi all
    I am a new user of ADF. I use the ADF in my application.

    Please guide me how will be better:

    1: I would like JSF and complex components ADF upload, table for paging and sorting. Still, I don't get how to set the environment of the adf. I use the 11.1.1.1.0(Build de Jdeveloper) JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407.

    ADF only 2)

    It's a nice link, spido - unfortunately the ADF information is nowhere near complete :(

    John

Maybe you are looking for

  • Canvio Basic 2 TB suddenly stopped working after Xbox update?

    While to say that the title of the hard drive has stopped working once an update has taken place on the Xbox one a few days ago. Now I tried it on a different Xbox one (didn't read), and also tried on a computer laptop windows 10 has yet no chance, a

  • My lap top won't go on, but the screen is a field of colored lines

    When I turn on the laptop, nothing appears on the screen but the color of the horizontal lines. What's wrong?

  • W530 stuck to the thinkpad logo

    Hello world Can someone please suggest me what to do to solve this? I got the W530 for two years and there is a problem when you turn on the laptop. I have no guaranteed contact Lenovo yet. When I press the power button, often it shows white Thinkpad

  • Windows 7 Explorer and drag / move icons to reposition.

    I'm having a problem with the Explorer of Windows 7.In Windows XP when in Windows Explorer, I am able to select pictures and miniatures, tiles or the icons and then re - position file icons in the pane of files by left clicking and then dragging the

  • Bridge constantly crashing

    Under the bridge El Capitan used to plant with monotony ordinary before10.11.4 (Solution to fix the bridge CC 6.1.1 and 6.2 crashing on Mac OS X El Capitan )... It is back, since I upgraded to 10.11.6. any ideas to solve other than the workaround sol