Calling a Workflow form changeAnswersResults.jsp

Can we call a workflow form changeAnswersResults.jsp?
In changeAnswers.jsp, when we click on Save or Cancel, accordingly I want to call two different workflows (may one)
Can anyone give me example?
Thanks

hi,
u can use following code
     LighthouseContext _lhSess = null;
_lhSess = (LighthouseContext) new com.waveset.session.InternalSession();
TaskDefinition taskDef = (TaskDefinition) lhSess.getObject(Type.TASKDEFINITION, "workflow name");
TaskTemplate template = new TaskTemplate(taskDef);
template.setExecMode(TaskDefinition.ExecMode.SYNC);
template.setOwner("Configurator");
TaskInstance task = _lhSess.runTask(template);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Can we call a workflow form a JSP and/or form a Java Class?

    Is it possible to call a workflow form a JSP and/or form a Java Class?

    Below is some xpress code I wrote once, used to dynamically lauch workflows from within a workflow. Since it basically uses java classes, you reuse these in your java program or jsp:
    - create a new generic object
    - call the setId, put, ... methods on it
    - set the input variables for the workflow by putting them into the generic object
    - call the checkinView method on a LighthouseContext object which launches your workflow.
    If all you need is starting a workflow from a jsp, you might also want to take a look at the tasks/taskLaunch.jsp jsp. This is an out of the box jsp which allows launching of tasks. If I remember correctly you have to give an url parameter which specificies the name of task you want to start: tasks/taskLaunch.jsp?id=<workflow-name>
    - Robin
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE TaskDefinition PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <TaskDefinition name="MVG_TD_LaunchWorkflow" taskType="Workflow" executor="com.waveset.workflow.WorkflowExecutor" suspendable="true" syncControlAllowed="true" execMode="sync" execLimit="0" resultLimit="0" resultOption="delete" visibility="runschedule" progressInterval="0">
         <Extension>
              <WFProcess name="MVG_TD_LaunchWorkflow">
                   <Variable name="workflowName" input="true"/>
                   <Variable name="taskInstanceName" input="true"/>
                   <Variable name="inputs" input="true"/>
                   <Variable name="processView"/>
                   <Activity name="start">
                        <Transition to="createProcessView"/>
                   </Activity>
                   <Activity name="createProcessView">
                        <Action>
                             <block trace="true">
                                  <set name="processView">
                                       <new class="com.waveset.object.GenericObject"/>
                                  </set>
                                  <invoke name="setId">
                                       <ref>processView</ref>
                                       <s>ProcessViewer</s>
                                  </invoke>
                                  <invoke name="put">
                                       <ref>processView</ref>
                                       <s>task.process</s>
                                       <ref>workflowName</ref>
                                  </invoke>
                                  <invoke name="put">
                                       <ref>processView</ref>
                                       <s>task.taskName</s>
                                       <ref>taskInstanceName</ref>
                                  </invoke>
                                  <if>
                                       <notnull>
                                            <ref>inputs</ref>
                                       </notnull>
                                       <then>
                                            <invoke name="assimilate">
                                                 <ref>processView</ref>
                                                 <ref>inputs</ref>
                                            </invoke>
                                       </then>
                                  </if>          
                             </block>
                        </Action>
                        <Transition to="checkInProcessView"/>
                   </Activity>
                   <Activity name="checkInProcessView">
                        <Action>
                             <block trace="true">
                             <invoke name="checkinView">
                                  <invoke name="getLighthouseContext">
                                       <ref>WF_CONTEXT</ref>
                                  </invoke>
                                  <ref>processView</ref>
                                  <new class="java.util.HashMap"/>
                             </invoke>
                             </block>
                        </Action>
                        <Transition to="end"/>
                   </Activity>
                   <Activity name="end"/>
              </WFProcess>
         </Extension>
         <MemberObjectGroups>
              <ObjectRef type="ObjectGroup" id="#ID#Top" name="Top"/>
         </MemberObjectGroups>
    </TaskDefinition>

  • Calling Interactive Adobe Form from workflow work-item

    Hi Experts,
    Here is the requirement.
    WE have Interactive Adobe Form developed and now the requirement is to call this form in our workflow as work-item.
    When the work-item agent double-click on the work-item he must call the adboe form.
    Please provide your inputs/suggestions/Solution/Tips.
    Regards
    Krishna

    Hi Gurprit,
    Thanks for answering my question , appreciated.
    When I am in transaction SWFVISU in the drop-down for the Visualization type I dont see "Adobe Form" .  Whether we need to create an ABAP Webdynpro to call Adobe form.
    Please explain.
    Regards
    Krishna

  • Calling Oracle Workflow in Real-Time

    I want to modify the logic in Oracle Apps (both Oracle self-service (pure HTML and JSP) and Oracle Forms applications) to make real-time calls to a mainframe system. The page needs to take different actions depending on the data from the mainframe system.
    I want to avoid actually customizing the Apps and Forms pages if possible due to customization maintenance and support issues. I have been told that I can use Oracle Workflow to modify the actions of the pages without having to resort to customizations, as calls to Workflow are already embedded. Is this true, and if so, how would I go about inserting a call to a mainframe system?
    I am considering mainframe calls using either a proprietary ODBC driver from a third-party vendor, or devising some sort of SOA interface to the mainframe (I know it would require custom development on the mainframe side).
    Thanks!

    I'm pretty sure the sbRIO cards only have 1 FPGA on them.  So when you load the second FPGA code, the first is being overwritten.  You need to make a single FPGA VI that can handle both functions.  If you post your code, we can give more detailed advice.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Error calling Report from Form

    Hi,
    I'd like to call a report using a Form.
    I have Oracle Form 10.1.2 in Oracle Database 10g.
    I create a button and specify a PL/SQL in the when-button-pressed
    declare
    rep_id REPORT_OBJECT;
    v_rep VARCHAR2(100);
    begin
    rep_id := FIND_REPORT_OBJECT('report9');
    if not id_null(rep_id) then
    v_rep := RUN_REPORT_OBJECT(rep_id);
    else
    message('report not available');
    end if;
    end;
    but after I click the button in the form, it gives an error message in the status bar
    (in the bottom of the form)
    error : FRM-41211: Integration Error: SSL failure running another product
    Any help would be grateful.
    Thanks,
    Buntoro

    I have tried your suggestion.
    I create my own report server using rwserver server=repsrv.
    Another java-based windows showed up. It shows that repsrv is ready.
    I do the following:
    1. Navigate to http://localhost:8889/reports/rwservlet using web browser.
    It showed OracleAS Report Services - Servlet Command Help page.
    But there is no other window popup.
    2. Navigate to http://localhost:8889/reports/rwservlet?userid=PRACTICE/PRTC@MYDB&report=C:\PRACTICE\FORM\MODULE1.JSP&destype=cache&desformat=html&paramform=no&p_1=P1&p_1=P2
    my schema is PRACTICE, password PRACTICE, and database instance MYDB
    the report path = C:\FORM\MODULE1.JSP
    The following error occured
    REP-51002: Bind to Reports Server rep_<computer_name> failed
    3. Finally,
    http://localhost:8889/reports/rwservlet?server=REPSRV&userid=PRACTICE/PRTC@MYDB&report=C:\PRACTICE\FORM\MODULE1.JSP&destype=cache&desformat=html&paramform=no&p_1=P1&p_1=P2
    The following error occured
    REP-51002: Bind to Reports Server repsrv failed
    I don't understand.
    It seems that the Report Service is not recognized although the java-based window state that the Report Server (repsrv) is ready.
    My questions:
    1. Does it means that my report server is not running?
    Or it is running but the browser didn't recognize it?
    I use Internet Explorer 6 and Netscape 7, both of them showed the same error message.
    2. I have read the PDF you've pointed out.
    The paper said there is supposed to be 2 type of server, 'In process' and custom server.
    Both of them will create a configuration file in /reports/conf in DevSuiteHomeDirectory.
    I can see the custom report server's configuration file which I create using rwserver (repsrv.conf)
    but I can't see the 'in process' server's configuration file (rep_<computer_name>.conf).
    What am I supposed to do?
    Many thanks,
    Buntoro

  • Calling Report from Form Error ORA-06508

    Dear all,
    I want migrate from Fom6i to Oracle Developer Suite 10g (10.1).
    Folder Form = C:\APLIORA\IRS\FORM
    Folder Report = C:\APLIORA\IRS\REPORT
    I have modified file DEFAULT.ENV
    FORMS_PATH=C:\APLIORA\IRS\FORM;C:\APLIORA\IRS\REPORT
    i do not have problem call a form from form.
    but when i call report from form show error ORA-06508 : PL/SQL : could not find program unit being called ; -6508
    my procedure is
    PROCEDURE Call_Report IS
         list_id ParamList;
    BEGIN
    list_id := Get_Parameter_List('input_params');
    IF NOT Id_Null(list_id) THEN
    Destroy_Parameter_List(list_id);
    END IF;
    list_id := Create_Parameter_List('input_params');
    Add_Parameter(list_id,'MAXIMIZE',TEXT_PARAMETER,'YES');
    Add_Parameter(list_id,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'YES');
    RP2RRO.RP2RRO_RUN_PRODUCT(REPORTS,'TESTREPORT.REP',SYNCHRONOUS,RUNTIME,FILESYSTEM,list_id,null);
    END ;
    Do I miss something ?
    Can any one help ?
    Thanks

    Hi,
    Thank you for your replay.
    The problem have solved.
    This my step :
    1. Install Windows XP SP2 and Form 10.1.2.0.2 on new pc.
    2. Install Jinit version 1.3.1.28.
    3. Create report server
    3. Compile form, report and pll
    4. call report from from with this procedure :
    PROCEDURE Call_Report (vFILENAME varchar2) IS
    report_id                Report_Object;
    ReportServerJob VARCHAR2(100);
    vc_rep_status      VARCHAR2(100);
    repsvr                          varchar2(21) := 'myserv';
    userid                         VARCHAR2(100);
    pass                          VARCHAR2(100);
    Host                    VARCHAR2(100);
    BEGIN
    userid          := Get_Application_Property(USERNAME) ;
    pass          := Get_Application_Property(PASSWORD) ;
    Host          := Get_Application_Property(CONNECT_STRING) ;
    report_id:= find_report_object('REPORT');
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,vFILENAME||'.jsp');
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,repsvr);
    ReportServerJob:=run_report_object(report_id);
    vc_rep_status := REPORT_OBJECT_STATUS(ReportServerJob);
    WHILE vc_rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED', null)
    LOOP
    vc_rep_status:=REPORT_OBJECT_STATUS(ReportServerJob);
    END LOOP;
    IF vc_rep_status='FINISHED' THEN
    WEB.SHOW_DOCUMENT('/reports/rwservlet?report='||vFILENAME||'.jsp'||'&userid='||userid||'/'||pass||'@'||Host||'&destype=CACHE&desformat=PDF&paramform=yes','_blank');
    ELSE
    message ('Report failed with error message '|| vc_rep_status);
    END IF;
    END;
    Ok, but i have another strange error. I will post new thread.
    Thank you and regards
    Teguh S

  • SOAP XML Response in the form of JSP

    Hi,
    I am using a command in Websphere Commerce(WC) as "WebServices Provider " .For new users command is WC specific java program which takes input and throws back the result to the calling program.
    when a client sends a SOAP xml request to WC WebService Command,it sends back the SOAP XML response in the form of JSP to client.The Client is in Microsoft .Net language.
    My Question is:
    1)How the client is interpreting the SOAP XML response in JSP.
    2)Since the client being a .Net provider,to understand this response,he has to make any extra
    configuration ???
    Can somebody in the forum can help me in this regard.
    Thanks
    Mike

    Hi Mike1999 ,
    I am assigned with one project that is based on SOAP,I dont know abc of this technology.How the events are handled by SOAP....Etc Etc....
    Just eloberate What is ment by SOAP.Why it is used.

  • Calling seeded oracle form from custom form

    Hi All,
    I wan't to call oracle seeded form for Item Entry(INVIDITM) from a custom oracle form in Inventory module. When I call the form using FND_FUNCTION.EXECUTE and pass item_id as one of the paarmeters, the seeded form open but with very limited capability to changes. Most of the field are disabled or non updateable.
    I wan't to know if its possible to open the seeded form in full change mode??
    Thanks in advance

    Hello,
    You can open a form by typing an url in the browser.
    e.g. http://machine:port/forms90/f90servlet?config=...
    So, it is easy to place the call in your jsp (window.open)
    Francois

  • Calling (VB)activex object from JSP

    Hi,
    I am trying to call a ActiveX object from JSP using the ActiveXObject method in javascript. I have a dll filed named LPMSFunctions.dll which is registered and is being passed as an argument to the ActiveXObject method. Below is the code i am trying to execute..
    <html>
    <head>
    <title>Script Example</title>
    </head>
    <body>
    <br><br>
    <P align="center">
    <form action="" method="post">
    <script language="JavaScript">
    function comEventOccured()
    try{
    var myobject;
    myobject = new ActiveXObject("LPMSFunctions72.LPFunctions72");
    alert("Inside LPMSFunction72");
    alert(myobject.GetDocPath());
    catch(e)
    alert("Error");
    </script>
    </form>
    </body>
    </html>When i write the above code and save it as an html file it works fine..the activex object is created and the methods are called , but when i copy the same code to a file and save it as jsp file under webapps folder under tomcat it doesnt work and reports a javascript error with the error being:
    Automation server cant create the object at line :
    var SSOObj = new ActiveXObject("LPMSFunctions72.LPFunctions72");
    Please suggest how can I solve the problem. Your help would be sincerely appreciated.
    Thanks
    shravan

    You want to use the Variant to Data node, wiring in an ActiveX constant configured to the interface type you want.
    Brian Tyler
    http://detritus.blogs.com/lycangeek

  • CALL dll FROM form 6i

    Hi I have to call a dll which returns some message by accepting a file name as input.
    The plateform is Oracle form 6i deployed on oracle AS , and Oracle 8i DB as backend.
    Kindly suggest , what can be best startegy-
    call dll using form 6i in client server .
    call dll using 3 tier deployement.
    or make an ASP or JSP application
    Please suggest.
    Prashant

    Calling DLL using form 6i
    Regards,

  • Problems calling a html form from a different page

    Hi,
    I'm working on a logon for a website. I have a html page and a jsp page that contains the login function. I want to call the login form after the user presses submit. But I'm having problems calling the form from the html page.
    Any help appreciated.
    Here is my html page:
    <form method="POST" action="login.jsp">
    <table>
    <tr>
    <td>
    <div align="center">
    <b>UserName:</b>
    <input name="user_name" type="text" class="input" id="username" maxlength="18">
    <b>Password:</b></font>
    <input type="password" name="password" class="input" maxlength="18">
    </input>
    <input type="button" border="0" value="Login" width="30" height="20">
    </input>
    My jsp page:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <body bgcolor = "#E5E8EF">
    <script language="javascript">
    function login(form) {
         alert("hello");
    if (form.username.value=="joe") {
    if (form.password.value=="bloggs") {             
    location="success.html"
    } else {
    alert("Invalid Password")
    } else {  alert("Invalid UserID")
    //-->
    </script>
    </body>
    </html>

    So your intention is that the JS function would be invoked somehow?
    Are you aware that Javascript is a completely different language from Java/JSP/JSTL?
    Here is a listing of some JSP/Servlet tutorials which might help you further:
    http://www.google.com/search?q=java+tutorial+site:sun.com
    http://www.google.com/search?q=jsp+tutorial+site:sun.com
    http://www.google.com/search?q=servlet+tutorial+site:sun.com

  • Calling report from form. Need PDF output

    I am calling a report from a form using RUN_PRODUCT. I need to display the form in PDF format. When the user clicks the button in the form to run the report, acrobat reader should open up and the report displayed there. Please help.
    Thanks

    Thanks for the response. The first part worked. I am able to get the output in PDF format. In the 2nd part where I want to open acrobat and display the output, I am having some trouble with the code. When I compile, it says
    win_api_environment.read_registry must be declared. Is there some package I need to attach?
    Also, in the After reports trigger, how do I pass vFile (I am assuming this is the PDF file name)?
    Thanks
    The first thing you'll want to do is pass parameters to the report IE DESTYPE, DESNAME and DESFORMAT where these could be FILE, 'c:\temp\report' and PDF.
    Then, you can try this piece of code I wrote (with some help from other people at Metalink and here) sometime back. Now, I call it from forms, but in your case, you'd have to run it in the after report trigger. Since with RUN_PRODUCT you don't know when the report is finished, if you did it from the form, it wouldn't work correctly.
    PROCEDURE OPEN_PDF(vFile IN VARCHAR2)
    IS
    vcServerApp varchar2(40);
    vcServerTag varchar2(600);
    vcCommand varchar2(2000);
    iArgPos pls_integer;
    dummy NUMBER;
    BEGIN
    -- 1 get the Server App for .PDF files
    vcServerApp := win_api_environment.read_registry('HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\.PDF','',true);
    -- 2 get the executable
    vcServerTag := 'HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\'||
    vcServerApp||'\SHELL\OPEN\COMMAND';
    vcCommand:= win_api_environment.read_registry(vcServerTag,'',true);
    -- 3 Sort out how to specify the Filename
    iArgPos:= instr(vcCommand,'%1');
    if iArgPos = 0 then --no substitution Var on the command line
    vcCommand := vcCommand||' '||vFile;
    else
    vcCommand := substr(vcCommand,1,(iArgPos-1))||
    vFile||substr(vcCommand,(iArgPos+2));
    end if;
    -- 4 Run using Winexec (or Host if preferred).
    win_api_shell.winexec(vcCommand);
    EXCEPTION
    when no_data_found then
    abortt('Acrobat Reader was not found! Please consult with your help desk to install it and try again.','N');
    END;
    Chad
    I am calling a report from a form using RUN_PRODUCT. I need to display the form in PDF format. When the user clicks the button in the form to run the report, acrobat reader should open up and the report displayed there. Please help.
    Thanks

  • Is it possible to call a 9i Forms from a 6i Forms ?

    Hello,
    I have a customer using CRM 11.5.10.2 ( Database 9.2.0.6 / 6i Forms) and will be created a functionality in the CRM screen, where end user will call (via button) a custom application running on 9i Forms.
    Customer believes that there is a technical limitation to achieve that. That is, call a 9i Forms from a 6i Forms.
    Is it possible to call a 9i Forms from a 6i Forms ?
    Thank you in advanced for help,
    Marcos Souza.

    I should have thought so, as Forms 9i is exclusively web-driven, so how you launch the URL is immaterial as long as you use a supported browser. As your Forms 9i apps will invariably be on a remote web server, you'll not encounter compatibility issues either. And Forms 6 and 9 development is possible on the same PC using multiple Oracle Homes. Ask Oracle beforehand if you are still not convinced.

  • How to call the crystal report in jsp page

    dear friends
    i want to run or call the crystal report in jsp page.
    if u know that can u send sample code for that to my id
    [email protected]

    Hi Sudhakar,
    Could you please be more speicific about the task you want to accomplish?
    Cheers
    Giri :-)

  • Error "Job already started" when calling a adobe form in Z function module

    Hi All,
    I have a error when calling a adobe form in a custom function module.
    I am using FP_FUNCTION_MODULE_NAME to get the adobe form function module and then i am using FP_JOB_OPEN function module to control the printing parameters such as no print preview or no dialog ..etc.. I dont have any exceptions during the call of FP_JOB_OPEN function module ..
    Later I am calling my function module which was generated for the adobe form and i am getting the error called " JOB ALREADY STARTED".
    I tried executing the same function module in se37 and the PDF form output was generated, and also by commenting FP_JOB_OPEN function module the PDF form output was generated.
    But i need the FP_JOB_OPEN function module to control the output based on the output type which triggers the form output such as the medium from nast record which says print or email or fax.. etc
    Please let me know how to handling this error.

    Just as a followup note. If you are testing a function module from SE37 and the test button you will get a value in SY-CPROG. You must override this value for everything to work.
    If you override the value of SY-CPROG with the main program that will be calling the function module you have no problem.
    John W.

Maybe you are looking for

  • How do i get data from a structure using join?

    hi, what is the actual use of a structure.? my problem is : KUAGV is an existing STRUCTURE. it has got one fields each which links to MARA, AND VBKD tables. i want to fetch all related information from KUAGV, mara, vbkd . which is the better way : us

  • SAP Data Migration from R/3 4.6C to ECC 6.0

    Hey All We are planning to upgrade SAP R/3 4.6C to ECC 6 in near future. I am aware that data migration is not an issue as upgrade takes care of it all. What we are concerned with is that if after a few days of upgrade when the system is functional a

  • Error when itunes tries to connect to ipod

    I am having trouble with Windows giving an error "Problem with I Pod Service Module" . And it closes . Ipod will not connect to Itunes. Ipod showes up in My computor, and will charge. Using Itunes 8

  • A little help about multiple monitors...

    I'll try to explain what I need help on in the simplest way possible. I connected my macbook pro to another LCD monitor I have at home. That way when I work on sites I can have one thing on my monitor and another thing on my Mac. My question is... I

  • Java Exception after applying Patch 10.1.0.3

    After applying the 10.1.0.3 patch to an XP system, I am getting the following error: sys@MYDB>exec dbms_java.grant_permission( 'SCOTT', 'SYS:java.io.FilePermission','C:\tmp\*','read,write,delete'); BEGIN dbms_java.grant_permission( 'SCOTT', 'SYS:java