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>

Similar Messages

  • Can I use AWT elements in a JSP, and so could I generate events with them?

    This is because I�m doing a simple JSP that showing a button, my JSP is:
    <html>
    <%@ page import="java.awt.*" %>
    <%! Button b = new Button("Hola!!!"); %>
    <% add(b); %>
    </html>
    But when I tried to see the button in the browser, my JSP generates the following:
    Compilation of '/RAID5/weblogic/myserver/classfiles/jsp_servlet/_gep/_alterno/_23_mayo/__mr4.java' failed:
    /RAID5/weblogic/myserver/classfiles/jsp_servlet/_gep/_alterno/_23_mayo/__mr4.java:79: cannot resolve symbol
    probably occurred due to an error in /gep/alterno/23_mayo/mr4.jsp line 7:
    <% add(b); %>
    Could somebody help me please?.....
    Can I use AWT elements in a JSP, and so could I generate events with them?
    Thanks!!!

    There are 2 ways to run a web page dynamically:
    1) Reload the page via use of javascript or some other scripting language.
    2) Use an applet to regularly check a URL for the data
    Remember, as Paul pointed out, JSP's only generate HTML output. AWT components need to run inside a JVM not a just the browser.
    I could recommend an applet but you may have problems with IE6 not supporting java. Otherwise there shouldn't be too much of a prob.
    If you prefer to use an AWT/Swing setup (for example an application) rather than a JSP setup, Webstart is good for delivering online applications which operate standalone or remotely.
    When you consider that the Java-Plugin and the Webstart puligin are about the same size it's just a matter of weighing up who your target clients are and whats easiest.
    Cheers,
    Anthony

  • Do you need to have Adobe Acrobat X or XI in order to use FormsCentral?  Can FormsCentral be used without Acrobat to create and modify forms?

    Do you need to have Adobe Acrobat X or XI in order to use FormsCentral?  Can FormsCentral be used without Acrobat to create and modify forms?

    Hi Joseph,
    Unfortunately, no. But Adobe does offer a free 30-day trial of Acrobat (absolutely no obligation). So, you could download the trial to fix up the form. For more information, see www.adobe.com/products/acrobat.html. Acrobat is also offered on a subscription basis.
    Sara

  • How can I call the jFreeChart to plot graph and get the result in Servlet?

    I want to use jFreeChart to plot time series graph, and then output the result in Servlet. How can I call the jFreeChart to plot graph and get back the result? Any source code for example? Thanks a lot!!

    Dave,
    ServletDemo1 and others were not in the distribution that I got (jfreechart-0.9.4). I found them under the premium demos somewhere in com/refinery/chart/demo/premium, but could not compile. They're complaining, among other things, about missing classes/packages com.refinery.date.SerialDate and com.refinery.ui. Am I using a wrong version of jfreechart?
    Thanks,
    -Alla
    There is a very simple servlet demo in the JFreeChart
    distribution:
    src/com/jrefinery/chart/demo/ServletDemo1.java
    This simply sends back an image to the browser.
    A second demo, which embeds the chart in an HTML page
    is:
    src/com/jrefinery/chart/demo/ServletDemo2.java
    src/com/jrefinery/chart/demo/ServletDemo2ChartGenerator
    java
    ...includes a time series chart as one of three
    options.
    Regards,
    Dave Gilbert
    JFreeChart Project Leader
    http://www.object-refinery.com/jfreechart/index.html

  • How can I Call the MainVI from its SubVI, and this happen recursively?

    Hi All,
    How can I Call the MainVI from its SubVI, and this happen recursively?
    Actually, LAbView 7.1 doesn't support recurssion?
    Plz help me out!

    Dear GerdW,
    Thanks a lot 2 all of u guys,for all the brilliant responses.
    Actually, my basic aim is to call the Main VI, containing a SubVI.....
    Now, I want to call my main VI from this SubVI...recursively!!!!!..but whenever I tried to put the MainVI in this SubVI..an error message pops out saying recursive calling is not possible.
    I also tried using "Call by reference" but tht also didn't worked...an d error is somewat like...VI is invalid..or type matching..or state matching error.
    Here, Im attaching the snapshot of the MainVI... Im calling the SUBvi from it... It is running GOOD n FINE...
    But prob arrives when I call the Main from the SUBvi, which looks like same as MainVI(with little differences).
    I hope, Im clear in my words n not being ambigous.
    Plz, correct me where ever  im wrong.
    Thank You.
    Mishra_RnD
    Attachments:
    ScrShot.JPG ‏272 KB

  • How can I pass a variable between JSP and Role Form

    I need to pass a variable from (a copy of) applicationmodify.jsp to the IDM Role Form so that the variable is available within the Role Form at display. We've tried getAttribute and setAttribute modifying both the Role Form and the applicationmodify JSP and can get the form to the role form but not accessible but have had no other success. Has anyone had any success in doing this? Any suggestions would be appreciated.

    if by _root level you mean you're loading something into
    _level0 you can't won't be able to use the localconnection. the
    sharedobject is your only option.

  • Can't call a procedure from a PLSQL Library inside forms 10g

    Hello,
    I build a plsql library using forms builder, then I compile it and add to FORMS_PATH.
    I try to use a procedure from that lib so i attached the library to form (without path), then in then WHEN-BUTTON-PRESSED event I call one procedure from that library and i get this message :
    error 201 at line 6 , column 2
    identifier 'LIST_ADD_ALL' must be declared
    ---- MY CODE compiled ok with out errors i've got pll and plx
    declare
         START_LIST_ID ITEM := FIND_ITEM('LIST16');
         END_LIST_ID ITEM := FIND_ITEM('ITEM18');
    begin
         LIST_ADD_ALL(START_LIST_ID, END_LIST_ID);
    end ;
    I dont know if to put some kind of public declaration.
    can anyone help me please.

    In that case, use a batch file to start Form Builder to control your environment settings. The batch file ( e.g. FormsBuilder.bat ) should look roughly like this:
    set oracle_home=C:\Oracle\Dev10g
    set forms=%oracle_home%\forms
    set nls_lang=AMERICAN_AMERICA.WE8MSWIN1252
    set tns_admin=c:\oracle\admin
    set ca_uprefs=c:\data\oracle\10g\uprefs
    set path=%oracle_home%\bin;%path%
    set forms_path=c:\data
    set oratemp=c:\temp
    start frmbld.exe

  • Can we call ASP file in a JSP

    Hi
    Can we call an ASP file in a JSP? Any help would be appreciated
    Thanks

    the containters for asp and jsp are different,i donot think it is possible

  • Conflict sending booking form with jsp and fmt:message key=

    I have developed my new web page using jsp and together with this i am using jBoss 4.0.5.GA!
    The web page has 6 different languages so i have used the <fmt:message key=" " /> tag system for each language.
    On the web page there are a booking form who has two pages, bookings.jsp and booking_sent.jsp.
    The problem i have is when i send the form it opens a page where you only see all the tags, no text at all. For more information follow this link and try out the form; http://www.neptunediving.com/neptune/general/bookings.jsp/
    bookings.jsp and booking_sent.jsp looks exactly the same, except the header text. There most be some sort of conflict here, either with the <fmt:message key=" " /> tag system or maybe with the String message i use to retrieve the information from the form. Both <fmt:message key=" " /> tag system and the String message use the word message so i have tried to change the String message to String msg instead but i still get the same result.
    I have tried everything but i cannot solve this problem. So i wonder if there is anybody out there who can help me with this?

    Nope, can't delete posts on this forum,
    I have developed my new web page using jsp. I have done a booking form,
    There are two pages, bookings.jsp and booking_sent.jsp.
    The page has 6 different languages so i have also used the <fmt:message key=" " /> tag system for each language.
    The problem i have is when i send the form it opens a page where you only see all the tags, no text at all.
    For more information follow this link and try out the form; http://www.neptunediving.com/neptune/general/bookings.jsp/
    When you fill out the form and click send you should come to booking_sent and you do but the page is only full of tags, no text. Booking_sent looks exactly the same as bookings, except the header so why should not this work. I have tried everything but i cannot solve this problem. So i wonder if there is anybody out there who can help me with this?
    Tried going to that URL and got an error page served by Apache Webserver
    Maybe you haven't got the correct connector going between the webserver and the application server?

  • Can I call a C program in trigger, and pass updated data to this program?

    Can I call a C program in Oracle trigger, and pass updated data to this program?
    Thank you

    An update trigger has access to both the old and new values. Your update trigger can call an external procedure (a C program) and pass the old and new values as parameters. For example:
    CREATE OR REPLACE TRIGGER <tname> BEFORE UPDATE OF <tab> FOR EACH ROW
    BEGIN
    pkg.proc(:old.col, :new.col);
    END;
    Where pkg.proc has been created as an external procedure.

  • Invoking Forms from JSP and Vice versa

    Hi,
    I am in to a requirement like invoking a screen developed using Oracle Forms 6i from JSP and vice versa.
    1. Could you please anybody help to get the documents to be refered to get more idea on this?
    2. Is it possible only by Oracle ADF?
    Please help me on this.
    Thanks & Regards
    M Thiyagarajan

    Hi All,
    Thanks a lot for the clarifications.
    Actually, integration should happen between forms and JSP. Parameters need to be passed to and forth. I will go through the specified link.
    Also could you please clarify me where exactly, ADF comes into picture? or what are all the advantages when we go for ADF?
    Thanks & Regards
    M Thiyagarajan

  • TS2326 why the sim card in my phone doesnt work and i can't call anybody while its unlocked phone and itsays no service after few minutes

    I have an ipohne 4 and i have unlocked it at the moment im using T Mobile sim card and the signals apearsjust for few seconds and goes back to no service so i can't call any body while i call before it connects it just hangs up by it sel. why is that if ii could get some  help to fix the problem thanks.

    T-Mobile is not a supported iPhone carrier. Best to call them. But since they dont carry it, they will tell you to call Apple. In turn, will do nothing. T-mobile is terrible anyway.

  • Character Encoding for JSPs and HTML forms

    After having read loads of postings on character encoding problems I'm still puzzled about the following problem:
    I have an instance (A) of WL 8.1 SP3 on a WinXP machine and another instance (B) of WL 8.1 without any SP on a Win2K machine. The underlying Windows locale is english(US) in both cases.
    The same application deployed as a war file to these instances does not behave in the same way when it comes to displaying non-Latin1-characters like the Euro symbol: Whereas (A) shows and accepts these characters as request-parameters, (B) does not.
    Since the war file is the same (weblogic.xml, jsps and everything), the reason for this must either be the service-pack-level or some other configuration setting I overlooked.
    Any hints are appreciated!

    Try this:
    Prefrences -> Content -> Fonts & Color -> Advanced
    At the bottom, choose your Encoding.

  • Can you call a procedure inside another procedure and how many?

    Ok. I have 3 procedures. I would like to call 2 of the from inside one, but I would like them to be in order.
    So,
    procedure1 // this is in db1
         call procedure2
                this collects, and inserts data into table 2 from db1
                this must be run first
         call procedure3
               this update the table1, and table2 from db2, and db3
               this must be run second
         finish procedure1
               this also updates table1 and table2 from db1 and db3
               this must be run third
    procedure1 end;or should I call a function
    procedures 2, and 3 have there own dblinks to other dbs to gather datat, procedure1 is in the same db.
    the procedures dont have to be like above. If you want to run proc3, and call proc1, and proc2 first so be it. Just an example

    create or replace myPackage
    is
    procedure1;
    procedure2;
    procedure3;
    end myPackage;
    create or replace myPackage body
    is
      procedure1 is
      begin
        -- call 2
        procedure2;
        -- call 3
        procedure3;
      end procedure1;
      procedure2 is
      begin
        do_something_here;
      end procedure2;
      procedure3 is
      begin
        do_something_here;
      end procedure3;
    end myPackage;
    /* now run the procedure1 from sql*plus */
    execute myPackage.Procedure1;Message was edited by:
    Sven W. added packaged call

  • Jsp Page session vaiable to java class and vise versa

    Hi to all,
    I am new to jsp, i have to programs, one jsp page and another java class. in jsp page i get the user data from html form and put the id in session. here i have to call the session vaiable to my java class where it (variable)initialize a file name.
    and same i have to call the java class to jsp page which insert statements to sql server,
    Please Help Me.

    //My Java Class file
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import javax.servlet.http.HttpSession;
    import java.sql.Statement;
    public class StuInfo extends Object {
    //main method begins execution of Java application
    public static void main (String args[]){
    String StuFile = "C://"+iD+".txt"; // Here i have to get the session varaible.(ID)
    try {
    In my jsp Page i initilized session as
    session.setAttribute("ID",StuId);
    I am not able to understand where i have to declear the HTTPSession#getAttribute("ID");

Maybe you are looking for

  • Having Problem in access to Source Code Control System (URGENT help needed)

    I am using JDeveloper 9i first time. The repository is in Oracle 8i. I have established a connection from JDeveloper 9i to Oracle 8i repository running on Sun Solaris. We have created a shared area and my colleague have checked-in some files. I have

  • Deploy Forms 9i applications on Websphere Application Server Ver 6.1.1

    Can we Deploy applications developed using Forms 9i in Websphere Application Server Ver 6.1.1? Thanks in advance.

  • How do I turn off the swipe gesture of the magic mouse?

    I found the answer! It was buried in the support community answers and it certainly deserves a repeat: Download: http://magicprefs.com/ Once this is downloaded you will find "Magic Prefs" in your system preferences. I unclicked every single box in th

  • Export Checkbox Value

    My LiveCycle Designer Form has a series of checkboxes. I have run some test on this form in Acrobat under "Manage Form Data" > "Merge Data Files into Spreadsheet". Now when I open this Merged Data as a CSV in MS Excel the data is there except for che

  • Jdbc to SQL Server Express

    Hi I am trying to connect jdeveloper to sql server express. my code is as follows: Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); conn = DriverManager.getConnection("jdbc:sqlserver://localhost\\SQLExpress;user = joebloggs;pssword=pass