Code for return from task flow

Hi,
I came across this TaskFlowUtils which contains utility methods related to task flow.
Is there any method which will cause return from task Flow. I can't find the same.
I do not want to return via Task Flow return activity.
Regards,
Nikhil

Nikhil, which jdev version do you use?
What is your use case?
Are you referring to the class TaskFlowUtils Chris Muir developed and which is available through ADFEMG?
If yes, this class is more to inspect the current task flow. It contains some methods to control the task flow (commit, rollback), but is not meant to navigate.
It is essential to understand how task flows work, if they are called using a task flow call activity or if they are run in a region. A task flow run in a region is not meant to return. It always run once it initiated. There are patterns how regions communicate with their parent or other regions.
So the question is what do you want to do?
Why do you want to return from a task flow and why don't you want to use the task flow return activity?
Timo

Similar Messages

  • Best way to refresh page after returning from task flow?

    Hello -
    (Using jdev 11g release 1)
    What is the best way to refresh data in a page after navigating to and returning from a task flow with an isolated data control scope where that data is changed and commited to the database?
    I have 2 bounded task flows: list-records-tf and edit-record-tf
    Both use page fragments
    list-records-tf has a list.jsff fragment and a task flow call to edit-record-tf
    The list.jsff page has a table of records that a user can click on and a button which, when pressed, will pass control to the edit-record-tf call. (There are also set property listeners on the button to set values in the request that are used as parameters to edit-record-tf.)
    The edit-record-tf always begins a new transaction and does not share data controls with the calling task flow. It consists of an application module call to set up the model according to the parameters passed in (edit record X or create new record Y or...etc.), a page fragment with a form to allow users to edit the record, and 2 different task flow returns for saving/cancelling the transaction.
    Back to the question - when I change a record in the edit page, the changes do not show up on the list page until I requery the data set. What is the best way to get the list page to refresh itself automatically upon return from the edit-record-tf?
    (If I ran the edit task flow in a popup dialog I could just use the return listener on the command component that launched the popup. But I don't want to run this in a dialog.)
    Thank you for reading my question.

    What if you have the bean which has refresh method as TF param? Call that method after you save the data. or use contextual event.

  • Movement code for return from Production without WBS?

    Hi All
    How can I return material from production without entering a WBS. Currently we use MB1A movement type 222 but we have difficulty in identifying material coming back from production. But we have to enter a WBS element. As you know, this takes the cost of the material from the WBS. If we have no WBS we cannot return it into stock.
    How can I return material into a warehouse from production without entering (no reference) to a WBS? Material is issued to production using movement types 221 and 281.
    Thanks
    Darren

    Hi,
    Please try to use the movement types: 521 (or) 531 , to receive goods without referring Production Orders/ WBS elements.
    Regards,
    Narayana.

  • Why Dev Guide says "create a separate project for each ADF task flow ..."

    Hi,
    We have a BPM process application which is having a few human tasks. The form for each of the human tasks is similar. We’d like to be able to share some page fragments or code between them and create single web application to handle all the human tasks for this BPM process application. Then I found the following in the Oracle document “Developer’s Guide for Oracle SOA Suite 11g Release 1 (11.1.1.4.0)”:
    “If the SOA composite contains multiple human tasks, create a separate project for each ADF task flow associated with each human task.”
    I wonder if we have to do that and if so, what is the reason.
    Do you have any clue? Please help.
    Thanks a lot,
    Helen

    Hi Helen
    1. I do not know the reason why they mentioned like separate project for each human task. NO, this is not required and we can have just one UI Project like MyTaskForms and have all the JSPs in this same project for each Human Task.
    2. On our side, we have like 10 Human Tasks, all using the same Payload. So we have 10 .task file. For the very first .task file, we used Auto Generate Project and gave project name like OurAppTaskForms. The reason we did this is, so that it adds all the required dependent libraries, tag libs etc properly. For all remaining 9 .tasks file, we did NOT use auto generate. Instead we used standard New -> JSF From Human Task and select one task at a time and follow the steps. These steps are covered in the online documentation. At the end in our BPM App, we have just one UI Project with all the 10 screens.
    3. ALSO, all the 10 screens have some common data. This we put in a reusable JSF Fragment page. And associated a custom Managed Bean for this to set and get values from this fragment and also some Actions for some buttons in the JSF. Then we included this JSF in each taskform jsf file, uisng the include tag. We added this include tag, somewhere in the top. So all screens share common jsf fragment page.
    4. We can refine the above stuff further. As per above, we still have 10 JSF screens for each one of the 10 .tasks. Ofcourse all these 10 jsf have same common jsf fragment. BUT instead of 10 individual jsf screens, we can have only ONE Jsf screen also. Refer online docs for the details. The challenging part is, since we have only one jsf, there may be some bussiness stuff, validatoin stuff to take care of in custom ValidationCallback Handler classes. Say for Task1, we had to show some buttons, but NOT for Task2. So we had to handle this logic. Also in validation call back, we can always get each Tasks, title also. So we can workaround this issue also. We are in the process of doing this right now. But first 3, we already did and they are working fine.
    My personal suggestion is first go with single jsf fragment and include in all tasks jsp files. Any changes to common elements need to make only in one place i.e fragment page.
    Thanks
    Ravi Jegga

  • Separate project for each ADF task flow?!

    Hi,
    We have a BPM process application which is having a few human tasks. The form for each of the human tasks is similar. We’d like to be able to share some page fragments or code between them and create single web application to handle all the human tasks for this BPM process application. Then I found the following in the Oracle document “Developer’s Guide for Oracle SOA Suite 11g Release 1 (11.1.1.4.0)”:
    “If the SOA composite contains multiple human tasks, create a separate project for each ADF task flow associated with each human task.”
    I wonder if we have to do that and if so, what is the reason.
    Do you have any clue? Please help.
    Thanks a lot,
    Helen

    This is answered in SOA forum: Re: Why Dev Guide says "create a separate project for each ADF task flow ..."

  • Data Source for reused bounded task flow

    Hi,
    I am using JDeveloper 11.1.2.4.0.
    I have a project from which I exported a bounded task flow to be used in other projects.
    When I include that bounded task flow in a separate project, its data source does not appear in the Databindings.cpx of the project in which it is reused.
    How will the data source for the reused task flow be set in the separate project?

    I have a project from which I exported a bounded task flow to be used in other projects
    By that you mean that you have crated a adfLibrary from the the task flow?
    When I include that bounded task flow in a separate project
    By that you mean you have added the adfLib created above to the other project from the resource palette, right click and 'add to project'?
    How will the data source for the reused task flow be set in the separate project?
    Once you have added the project you refresh the data control and the other task flow should show up.
    Timo

  • HT4480 I have redemption codes for FCP from my university - how many machines can I install on?

    I have redemption codes for FCP from my university - how many machines can I install on?

    Do you have these codes because this will be your app? Or is this a "loan" from the school to install on your machine? Do you use your own Apple ID to redeem the code and install the app?
    If it is your app, then you may install it on as many Macs as you own or have in your control.

  • What is t-code for return delivery to supplier ?

    what is t-code for return delivery to supplier ? I understand it can also be done through MIGO.
    And how can I get delivery number so that I can create invoice to send to vendor.

    Hi,
    If the Recieved material for any reason is rejected and needs to send back to Vendor.
    There is 2 options.
    1) At the time of GR if the material is rejected you can make return delivery in MIGO using Movement type 122 .
    with reference to this 122 document you can send the material back to vendor immidiatly.
    2)If the Material is accepted and Vendor invoice also processed and material is at production then if the material found rejected
    you need to create the Return PO for that vendor.
    Using ME21N enter all the details like Std PO and at item overview you need to select the check box Return.
    So the PO gets created.
    Against this returns PO you need to do the Goods reciept.
    So system will take movement type 161 automatically and your inventory stocks will goes less for that quantity.
    You need to raise the credit memo to debit the Vendor account in MIRO or any other process.
    So that your account also matched with qty & Value
    Then you send the Credit memo details to vendor along with material to the vendor.
    rgds
    Chidanand

  • Hexadecimal code for return character

    Hi,
    Can anyone tell the Hexadecimal code for return character or new line in abap. I want to use it in the following code.
    data: w_ret type X value '<hex code>'
    loop at it_tab.
    concatenate w_ret it_tab-field1 it_tab-field2
                 into it_newtab.
    append it_newtab.
    endloop.
    w_ret shoul be a new line character.

    if you are on WAS 6.10 >
    you can use CL_ABAP_CHAR_UTILITIES=>cr_lf
    else
    '09' as hex code
    Regards
    Raja
    Note: please search the forum before posting a question. this has been discuessed many times here.
    Message was edited by: Durairaj Athavan Raja

  • How to get return values from task flow in af:region ?

    Hi!
    I'm working with a taskFlow that is rendered inside a popup using the "popup inside a region pattern" (http://www.oracle.com/technology/products/adf/patterns/popupregionpattern.pdf), but now this taskFlow has an input parameter and a return value definition. So the question is how to get a value returned by this taskFlow thas is called inside a region?
    Any suggestion?
    Thanks in advance!

    Hi,
    write the value to a shared memory scope like session and read it in the regionNavigation listener. If you follow the paper you refer to then the listener determines of the viewId is null, this a return happens. It wuld then look in the memory scope for the return value.
    Another option would be to use an object that you pass as an argument to the task flow you open in the popup. Then you change the object you passed in, which then makes the return information available in teh calling flow. The object you pass in would have to be in a shared scope too
    Frank

  • Redirect from task-flow to an external link

    Hi,
    From a bounded task-flow I have to use an ePayment virtual system. I have some parameters to fill and call an external link. One of those parameters is the ReturnURL when the payment system will return after finishing the Credit Card payment.
    I am confuse about what to give to ReturnURL variable if the call is from a task-flow. Note that I need the return to be in a specific View inside the task-flow to let me modify/add some value to the DataBase.
    getHeader did not work because it gives the following:
    request.getHeader("Referer");
    http://localhost:7101/TasdeeqApp/faces/member-task-flow/certifyDocument?_adf.ctrl-state=12oyjcx0ho_27
    Any idea about how to develop this type of external payment server using ADF-faces?
    Task-Flow------->https://XXXX---->Back to a specific View inside the Task-Flow
    Thank you
    Jamil
    Edited by: Jamil Nour on Sep 20, 2010 6:47 AM

    Hi Jamil,
    First of all in your case as you want to return to the page in ADF from the epayment, you must to use the UN-bounded task flow with a page that has bookmark flag==true in order to be able to return to that page in your UN-bounded task flow.
    But if you are insist to use the bounded task flow when creating that task flow in the create page un-check the property use-page-fragment.
    then, drag a page ->.jsp not .jsff on that bounded task flow and when you run that page from bounded task flow you will see the address.
    use that address for the return-path.
    http://127.0.0.1:7101/test-forum-ViewController-context-root/faces/adf.task-flow;jsessionid=vGtgMYGSnFdyv1LQXhJ1yQ69MWT26ppvVJQdZTRyzKStrs5L2kHq!-448081696?adf.tfId=*task-flow-definition1*&adf.tfDoc=*/WEB-INF/task-flow-definition1.xml*&_afrLoop=1003390740777&_afrWindowMode=0&_afrWindowId=null
    those with bold is what the parameter must be included when you just right-click on the page on the bounded task flow and run it you will see the URL. just use that URL.
    But if you want to use page fragment to be included in the popup in the page it is not possible to return to them.
    to complicate the situation I have to add another problem that when you want to return to a page in the bounded task flow that page must be only the Entry point (the page with a green hollow around it) if you want to return to a page in the middle of the Task Flow you must use a router in the First Entry and that router base on some parameter from Request decide that go to which page.
    if you think this senario complecated just drop me an email and I will create a test case for you.
    another issue to consider is the property of adf.ctrl-state=16d41j3t8n4* generally when you want to return to an ADF application if you do not specify the exact adf.ctrl parameter to the URL when you want to return to ADF you will face some problem, to clarify the issue when you login to a ADF applicaiton a adf.ctrl parameter is generated that hold the user specific parameter when you leave ADF and want to return to ADF again, as you not login again(create fresh session), you want to continue your last session, you must return to ADF application with same value for ADFctrl.
    I hope this issues give you the idea. ;)

  • User exit for return from delivery - 651 movemment type in WM

    Hi Guru,
    We are going to implement a customize program to control the putaway storage location when the HU returning from delivery in WM environment.
    The process is as below:
    1. Create the return order with reference to the original billing document;
    2. Create the return delivery (original storage location is 0001).
    3. Manually attached the HU we want to return to the delivery ;
    <<<< 4.LT03 to create the TO for this delivery. >>>>>
             - then it will automatically PGR (material document with 651 movement type) 
             - A TO will automatically created and from 904 to another destination storage type 101 (setup in the 651 movement type).
    The requirement is: we need to change the storage location when the TO (904 to 101) is confirmed according to some logic.
    We found that we can not use the user exit "EXIT_SAPLL03T_001 - User Exit at End of TO Creation (in Update Task)" or   'EXIT_SAPLL03T_002 - User Exit at End of TO Confirmation (in Update Task)". We set the break point, but it didn't stop there.
    Any one can help us where we can put our code in?
    Thank you very much,

    Hello!
    The user exit MWMTO001 (FM EXIT_SAPLL03T_001) runs usually in Update
    Task. That means that you have to switch on the update debugging in
    order to let the debugger stop in this exit. In most cases update
    debugging isn´t switch on when the debugger doesn´t stop in the exit.

  • Any Special transaction code for Activation of Work flow

    Hi all.
    Any Special transaction code for Activation and deactive of Work flow?
    which have we need to transport after WF (like task,method,rule)?
    To be reward all helpfull answers.
    Regards.
    Jay

    If I understand your question correctly, you want to know how to activate your workflow after transport ?
    Normally, the status of a workflow is included in your transport (if I'm not mistaken)
    So activate/deactivate in your dev-system and transport it..

  • Code for mailing from behing a proxy using Authentication

    Dear friends,
    I have found several requests regarding the mailing from behing a firewall/proxy with Authentication.. So here is the entire code for the same..
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    import java.util.*;
    import javax.mail.*;
    import javax.mail.event.*;
    import javax.mail.internet.*;
    public class MailClient extends Frame{
    static String mailHost="proxyAddress";
    public MailClient() {
    public static void main(String[] args) {
    Properties properties=new Properties();
    properties.put("mail.smtp.host",mailHost);
    properties.put("mail.smtp.auth","true");
    Session session=Session.getDefaultInstance(properties,new MyAuthentication());
    try{
    Message msg=new MimeMessage(session);
    InternetAddress address[]={new InternetAddress("toAddress1.domain.com")};
    msg.setRecipients(Message.RecipientType.TO,address);
    msg.setSubject("Test Mail");
    msg.setFrom(new InternetAddress("[email protected]"));
    msg.setContent("Please reply.. This is a java mail using Authentication
    technique..","text/plain");
    Transport transport=session.getTransport("smtp");
    transport.connect();
    transport.sendMessage(msg,msg.getAllRecipients());
    }catch(Exception e){e.printStackTrace();}
    Hope this helps..
    regards Stallon
    class MyAuthentication extends Authenticator{
    public PasswordAuthentication getPasswordAuthentication(){
    return new PasswordAuthentication("userName","password");
    }

    Hi stallon,
    Thanks for ur reply.Actually my application is at server2. I have an account in server1 and sending mail from server2. server1 requires authentication to send it to server3. Though we provide it is not accepting.There no errors while execution but mail couldn't be send.
    Please help me as soon as possible.
    Thanks in advance,
    bdurvasula
    //debug code.
    DEBUG: getProvider() returning
    javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
    Microsystems, Inc]
    DEBUG SMTP: useEhlo true, useAuth true
    DEBUG: SMTPTransport trying to connect to host
    "host", port 25
    DEBUG SMTP RCVD: 220 host ESMTP
    server (Netscape Messaging Server - Version 3.6)
    ready
    Thu, 21 Jun 2001 14:23:15 +0800
    DEBUG: SMTPTransport connected to host
    "host", port: 25
    DEBUG SMTP SENT: EHLO rao
    DEBUG SMTP RCVD: 250-host
    250-HELP
    250-EXPN
    250-ETRN
    250-PIPELINING
    250-DSN
    250 AUTH=LOGIN
    DEBUG SMTP SENT: MAIL FROM:<[email protected]>
    DEBUG SMTP RCVD: 250 Sender
    <[email protected]>
    Ok
    DEBUG SMTP SENT: RCPT TO:<[email protected]>
    DEBUG SMTP RCVD: 250 Recipient
    <[email protected]> Ok
    Verified Addresses
    [email protected]
    DEBUG SMTP SENT: DATA
    DEBUG SMTP RCVD: 354 Ok Send data ending with
    <CRLF>.<CRLF>
    DEBUG SMTP SENT:
    DEBUG SMTP RCVD: 250 Message received:
    7745C8DA90B.AAA27D7
    DEBUG SMTP SENT: QUIT
    //now i am sending the mail that was sent by my server
    This Message was undeliverable due to the following
    reason:
    Your message was not delivered because the
    destination
    computer
    refused to accept it. The error message generated
    by
    the server
    is reproduced below.
    Non-local addressee. We do not relay!
    Please reply to Postmaster@mailserver .if you feel
    this message to be in error.Thanks once again
    bdurvasula

  • 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

Maybe you are looking for

  • How to set  the  table I_ORG in 'BBP_EXTREQ_INBOUND'?

    dear all,   Now I am using BAPI 'BBP_EXTREQ_INBOUND' to create a shopping card and have successed.   but  in the table I_ORG,   whatever I set the value of  organization ID and group ID, it will not be changed in the SRM. how can I set them?    t han

  • Windows 7 desktop locks after 10 minutes idle - Policy setting?

    Is there a policy setting to lock the desktop after a certain amount of idle time?  I can't seem to find one, and searches on the web only seem to uncover lock up issues with software, rather than security policy settings. Right now our Win 7 desktop

  • Can you help a novice format an external hard drive?

    Greetings. I'm not very tech literate, so I hope you can help walk me through the following. I have an external 250 GB firewire drive for back up, and I'd like to format and partition it as a bootable drive and also to back up my 2 internal 40 and 20

  • Can not open existing sites in iWeb 09

    I can't open sites that I built in iWeb 09 after my hard drive has been reformatted, I can only open new.

  • PAL 25fps to Progressive for DVD

    Is there a guide somewhere which states how to correctly convert between PAL 25fps video (telecined from film) to NTSC Progressive, with the 4% slowdown added and using the very best possible quality settings? I'm confused about conforming the PAL vi