Using CREATE PROCESS and START PROCESS in a JSP

Hi,
I have built a simple JSP page. I want to call my workflow program from this page.
How should I use the CREATE PROCESS() AND START PROCESS() inside the JSP page?
Also I want to get the value entered in the text field (which will be a hidden field) to be passed to the ITEM_ATTRIBUTE, which I have defined in my program. How can this be achieved?
Please give me the syntax for this.
Please find below the JSP page
=========================================================
<%@page import= "java.util.Date" %>
<script language="javascript" src="ibeCButton.js"> </script>
<html>
<head>
<title>First Page</title>
</head>
<body>
<H3>Today is:
<%= new java.util.Date() %>
<INPUT TYPE="text" NAME="CART_ID">
<INPUT TYPE="submit" onclick = >
</H3>
</body>
</html>
==========================================================
To use LAUNCHPROCESS in JSP, the following is the syntax.
public static boolean launchProcess
(WFContext wCtx,
String itemType,
String itemKey,
String process,
String userKey,
String owner)
Should WFContext have the connection information of the DB.
If I pass only the WFContext and itemType attributes are they enough? Please let me know.
Thanks

There are two options.
1. Good one.
Include wf*.jar files in your system CLASSPATH. Use oracle.apps.fnd.wf.engine.WFEngineAPI class to access engine APIs. You would need to pass WFContext for which you need WFDB.
You basically created WFDB with username, password and connect string. Pass it to WFContext and use it for all Workflow Engine APIs.
2. OK one.
You can get JDBC connection using the default mechanism that your custom Java and JSP code could be using. Call the PLSQL procedures WF_ENGINE.CreateProcess and WF_ENGINE.LaunchProcess over JDBC.
Anyways option 1 makes life easier.

Similar Messages

  • How to use create by and modified by

    how to use create by and modified by ?
    when some one create row it will stamp who create
    and when some one edite row it will stamp who edit row
    i ever user create on and modified on
    but creay by and modified by i never use it.

    Howard,
    If you are not using JAZN you can still register created by and modified by user and date info in a "backdoor-wise" way:
    1. Get the user login string by using System.getProperty("user.name")
    2. Get the current datetime using java.util.Date
    3. In the backing bean for the page and the action method for your submit button, set the values for the components containing the created by or updated by values to the values obtained in points 1 and 2.
    Hope this is somehow useful,
    AG

  • My ipad 2 is in recovery mode, but I can't reset it by using the home and start keys.  Is there another troubleshooting that I can do?

    My ipad 2 is in recovery mode, but I can't reset it by using the home and start keys.  Is there another troubleshooting that I can do?

    read this carefully
    If you can't update or restore you iOS device
    http://support.apple.com/kb/HT1808
    word is you may need to do it multiple times, and be sure to follow all the steps carefully

  • Create Stop and Start Table item using HTMLDB_ITEM - APEX 2.2.0

    Hi, all,
    I guess the subject says it all. How can I create a Stop and Start Table item using HTMLDB_ITEM? I think I can just output "< /table >< table>", but I'd like to use the built-in function if there is one, in case the way tables are rendered were to change, or in case my thinking is wrong, which is always possible ; - )
    Thanks, for this and for all of your help!

    Don, there is no function provided for this.
    Scott

  • Can You have roman numerals for the first few pages of a document and then use normal numbering and start back at 1 for the rest?

    I am writing my theses and want to start with Chapter 1 on page one,
    Thanks

    Menu > Insert > Section Break
    and change the numbering in:
    Inspector > Layout > Section > Start at: > uncheck Use previous headers and footers
    Menu > Insert > Auto Page Numbers/Page Numbers
    Right click on the Inserted number to choose its format.
    Peter

  • JNI communiction using a Java and a C++ Thread

    Hi,
    My purpose is to run a Java and a C++ thread parallel.
    The C++ thread receives events from a hardware. Getting an event it should put this (for testing it is just a String ) to a Java method (there the events will be collected in a vector).
    The Java thread should compute these vector step by step when it is scheduled.
    Therefore I have a Java Thread that invokes a native method.
    This C++ method
    1. stores a refernece to the JavaVM in a global var (using env->getJavaVM ),
    2. stores the object (given by JNICall) in a global var (reference to the calling java object),
    3. creates an object dynamically (this implements a Runnable C++ Interface needed for my Thread structure)
    4. and creates (dynamically) and starts a C++ Thread ( that uses the Win API ) giving it the former created object as parameter.
    Following the C++ thread uses the former stored global JavaVM to get a JNIEnv. It also uses the global stored object.
    After this I prepare for executing a callback to Java, e.g. AttachCurrentThread, GetObjectClass, GetMethodID and so on. Finally I sucessfully start some callbacks to Java (in the while loop of the thread).
    Now here is my Problem:
    The described way only works for a few calls and then raises an error. "java.exe hat ein Problem festgestellt und muss beendet werden." (german os) (In english it should be: "java.exe has detected a problem and has to be determined").
    What is wrong with my idea. It is something with the scope of my dynammically created objects? If have no idea anymore.
    Here the source code (C++ part):
    #include <jni.h>
    #include "benchmark.h"
    #include "bench.h"
    #include "canMessage.h"
    JavaVM *jvm;
    jobject javaObject;
    JNIEXPORT void JNICALL Java_Benchmark_startBench(JNIEnv *env, jobject obj, jobject obj2){
         env->GetJavaVM(&jvm);
         javaObject = obj2;
         cout << "\n C++ Starting benchmark\n\n";
         Benchmark *bm = new Benchmark();
         Thread *thread = new Thread(bm);
         thread->start();
         //thread->join(); //uncomment this there will be no error but also
                                         // no java thread doing it's job
    Benchmark::Benchmark(): _continue(false) {
    Benchmark::~Benchmark(){
    unsigned long Benchmark::run(){
         _continue = true;
         JNIEnv *jniEnv;
            jvm->AttachCurrentThread((void **)&jniEnv, NULL);
            jclass javaClass = jniEnv->GetObjectClass(javaObject);
         if(javaClass == NULL){
              cout << "--> Error: javaClass is null";
         jmethodID methodId = jniEnv->GetMethodID(javaClass, "addMessage", "(Ljava/lang/String;)V");
         if(methodId == NULL){
              cout << "--> Error: methodId is null";
         string str ("This is a test text.");
         const char *cStr = str.c_str();
         jstring javaString = jniEnv->NewStringUTF(cStr);
         jniEnv->CallVoidMethod(javaObject, methodId, javaString );
         int i_loopCount = 0;
         while(_continue){
              i_loopCount++;
              cout << i_loopCount << " C++ runing\n";
              jniEnv->MonitorEnter(javaObject);
              jniEnv->CallVoidMethod(javaObject, methodId, javaString );
              jniEnv->MonitorExit(javaObject);
              canMessage = new CANMessage();
              delete canMessage;
              canMessage = NULL;
         return 0;
    void Benchmark::stop(){
         _continue = false;
    }Is there a better and more elegant way to solve my problem?
    Thanks!

    At
    http://codeproject.com/cpp/OOJNIUse.asp
    http://www.simtel.net/product.php[id]93174[sekid]0[SiteID]simtel.net
    http://www.simtel.net/product.php[id]94368[sekid]0[SiteID]simtel.net
    you will find examples how to implement Java Interface in JNI C++ without Java coding.
    At
    http://www.simtel.net/product.php[id]95126[sekid]0[SiteID]simtel.net
    you can get pure JNI interface for DOTNET.

  • Setup mySQL and access the same from jsp

    Hi,
    I have installed the MySQL in local desktop in d: drive. As per the documentation, have created my.cnf file to point sql directory in d drive.
    Now I dont know how to proceed further. I need to see if MySQL installation is fine, create table and access the data in jsp page. Please advice.
    Thanks in advance.

    For MySQL help try a MySQL forum.
    For connecting to the database, use JDBC. You can get the MySQL JDBC driver from www.mysql.com.
    From there just follow standard java database connection setup.
    http://java.sun.com/docs/books/tutorial/jdbc/index.html

  • How to create process chains,and how to use process like and or xor

    Hi,
    How to create process chains,and how to use process like and or xor.
    can any one please give me a example in each.
    Thanks,
    cheta.

    Hi Cheta,
    Here is step by step procedure to create process chains
    Process chain is nothing but executing a process ..(or) loading the data any process we can do in background.. that means.. automatically we can execute our process based on Time or any event..
    Creating Process Chains
    Prerequisites
    If you want to include a load process in the process chain, you need to have already created an InfoPackage.
    You cannot load flat file data from a client workstation in the background. For this reason, you have stored your data on an application server.
    Creating Process Chains
    You have the option of creating a process chain in the process chain maintenance screen directly or by using a maintenance dialog for a process:
    Creating a Process Chain Directly in the Process Chain Maintenance Screen
    You are in the BW Administrator Workbench.
    1. Click on the Process Chain Maintenance icon in the AWB toolbar.
    The Process Chain Selection dialog window appears.
    2. Choose Create.
    3. Enter the technical name and a description of the chain, and confirm your entry.
    The Add Start Process dialog window appears.
    4. Create a variant for a start process.
    1. a. On the Maintain Start Process screen, choose whether you want to schedule the chain directly or whether you want to start it using a metachain.
    2. b. If you choose to schedule the chain directly, enter the start date value for the chain under Change Selections and save your entries.
    The Maintain Start Process screen appears again.
    3. c. Save your entries, return to the previous screen and confirm your entries in the Add Start Process dialog window.
    You are taken to the Plan View of the process chain maintenance screen.
    In the left-hand area of the screen, a navigation area is displayed. In the right-hand area of the screen, the process chain is displayed.
    5. Use the drag-and-drop function to add the relevant processes into your process chain.
    You use the Process Types function to select the processes. This sorts the process types according to different categories. You can also call up InfoPackages and processes for the data target from the separate InfoSources and Data Targets navigation trees.
    Hope this helps
    Regards
    Karthik

  • HT203177 I had to get a new hard drive in my 27 in IMac. I used time machine to get everything back on my computer. I just turn on time machine and its says it's preparing over 800,000 items to back-up, it never back-up, it stop and starts the process ove

    I had to get a new hard drive in my 27 in IMac. I used time machine to get everything back on my computer. I just turn on time machine and its says it's preparing over 800,000 items to back-up, it never back-up, it stop and starts the process over again.

    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then repair the backup/TM drive.

  • I have a Panasonic camcorder PV-GS65 and I used to be able to connect to my iMac and my machine would automatically recognize the camera, rewind the tape, and start the import process as soon as I turned the device on and it was connected.  not anymore

    I have a Panasonic camcorder PV-GS65 and I used to be able to connect to my iMac and my machine would automatically recognize the camera, rewind the tape, and start the import process as soon as I turned the device on and it was connected.  Now my iMac does not even see my device
    Any suggestions?

    You cannot install the apps on the car.
    The cars head unit is merely acting as an interface to the apps on the device.
    If you want to use those apps in the car, plug the device in and leave it plugged in.

  • HT4889 Hi. I`ve just started transferring from my old Imac to a new Macbook, using the WIFI. But I realize it will take days to get it done. Can I cancel the process, and start over again using the thunderbolt port? Without causing any trouble?

    Hi. I`ve just started transferring from my old Imac to a new Macbook, using the WIFI. But I realize it will take days to get it done. Can I cancel the process, and start over again using the thunderbolt port? Without causing any trouble?

    See Pondini's Setup New Mac guide for possible answers.

  • Process Failure when communicating over MODBUS using LabVIEW 2011 and DSC

    I'm currently trying to read from a PLC's holding registers using MODBUS/TCP. I've confirmed that the PLC is updating the values and responding to MODBUS communication correctly using a third party program called Modbus Poll. However, when I try to poll the PLC using LabVIEW's shared variable engine, I am unable to read any values from the same addresses that I'm viewing with Modbus Poll.
    My setup simply consists of a PC connected directly to the PLC over Ethernet, with no router in between. I am using LabVIEW 2011 SP1 with the DSC module.
    I opened the NI Distributed Systems Manager to view the status of all shared variables in the Modbus library that I created and I've noticed that the CommFail bit is permanently set to "true". All other variables with a "read" access mode report "Process Failure". I've tried restarting the process as well as stopping and starting the local variable engine with no success. I've also restarted my computer several times to see if any services were failing, but this does not seem to have fixed the problem.
    I finally resorted to monitoring communications over the network card that I have the PLC plugged into via Ethernet using Wireshark and I've found that while Modbus Poll is communicating with the PLC, many MODBUS and TCP packets are sent and received. However, when solely using LabVIEW or the NI DSM to communicate with the PLC, there does not appear to be any communication over the network card.
    Something that may be worth noting is that I was able to communicate with the PLC and read values from it with the DSM on just one occasion, when I first figured out which addresses I should be reading from. It all stopped working shortly thereafter. Prior to this, "CommFail" was not usually set to "true" with my current configuration. Thinking that it was my firewall, I have since turned my firewall off, but this seems to have had no effect on the problem either.
    Any help on this matter would be appreciated.
    Solved!
    Go to Solution.

    Just a thought but I think the  register addresses used by LabVIEW are one off of the actual register #.  I was using a CRIO as a modbus IO Server and had to shift the register addresses by 1 to get things to work correctly (can;t recall if it was +1 or -1).  This is documented somewhere on ni.com but can;t seem to find it now.  But here is another  link that may help:
    http://zone.ni.com/reference/en-XX/help/371618E-01/lvmve/dsc_modbus_using/
    Dan

  • Use HCM processes and Forms without using the Enterprise Portal

    is it possible to leverage existing HR Admin Services (HCM processes and Forms) functionality without using the Enterprise Portal?
    1) Create an Adobe form and Interface using SFP
    2) Set up ISR and Form Scenario
    3) Set up Forms configuration to use existing Backend and generic Services
    4) Set up workflow to updated Backend using Services
    is it possible to do the above steps and not use the Portal? If Yes, how do we present the forms to the Manager, and provide different buttons that appears on the Portal by default?
    Any ideas will be greatly appreciated.
    Thanks,
    Saurabh

    Hi Saurabh,
    your assumptions and findings (items can not be started from the backend workflow inbox etc.) are correct: These processes can not be started without the Portal and it is not intended to do this.
    The above mentioned backend report are only forseen for implementation and testing purposes and not for productive use.
    In addition to the fact, that you already can't execute the work items a lot of other features of the framework (Process Browser etc.) are only available through the Portal.
    Best Regards
    Michael Bonrat - Solution Manager HCM Processes and Forms
    Info about HCM Processes and Forms:
    www.service.sap.com/erp: 
    - SAP ERP Human Capital Management -> Workforce Process Management -> HCM Processes and Forms

  • Vendor create process using workflow

    hello,
    I have been assigned a project to desgin a process to automatically create a vendor. below is what I think has to be done. can this be reviewed to see if this is the correct approch and if not, suggest a better approach.
    1) the vendor will sign onto our portal and submit their information to have them created as a vendor in our system. this information will be stored in a custom table
    2) the portal process will have a ABAP program that generates the screen for the user to enter thier data. this program will also start a workflow that will send a notification to a person inside our company for them to review the information and decide weather the vendor can be added.
    3) if the person approves the request, the workflow will submit a process to create the vendor, and send a approval email to the vendor
    4) If the person rejects the process, the workflow will send an rejecction email will be sent to the vendor
    I am in charge of creating the workflow and submitting the vendor create process
    thanks in advance for the help

    Hi Anil
    Take a look at the Workflow collateral located on http://otn.oracle.com/products/integration/content.html.
    I'd also suggest looking at the Sample Workflow Processes included with Oracle Workflow.
    There are also some on demand Oracle iLearning courses (ilearning.oracle.com) which should be very useful for you.
    Cheers
    Mark
    Hi,
    Could anyone give me a case study describing how to create a new process using workflow builder? Where are the notifications saved in the database? Where is the process saved? Give me a general flow of events in the creation of, say a document management process wherein all these details are specified. A document containing the whole flow involved in the creation of a process using workflow builder. What all PL/SQL procedures I need to write and all. I have both workflow server and builder installed.
    This would be of immense help.
    Regards
    Anil

  • Process Chain that uses a DTP and locks up with CX_RSBK_REQUEST_LOCKED

    Hello Experts,
    I am making a program to start a PC inside a loop. This Loop has several dates and ODS ID's. The problem is that inside the loop I make a call to FM RSPC_API_CHAIN_START, after this I have a WAIT UNTIL 30 SECONDS command so that the process has enough time to finish loading data. Each time the loop starts I change the name of the .txt flat file that te PC is going to load and store it inside a Z table with a rutine inside the DTP calling it every loop cycle. And so every time the Process Chain starts it should load a different file into a specifyc ODS. The problem comes at the second loop in which through the RSA1 transaction I find out that the chain is locked with an exception CX_RSBK_REQUEST_LOCKED and the subsequent calls to the Process Chain simply don't start at all. One solution I found was to delete the last Petition Request ID in the table RSSTATMANPART.
    I use RSSM_DELETE_REQUEST to delete that request using that ID and the cube name.
    Now this doesn't work either.
    PROGRAM SUMMARY:
    LOOP WITH ODS THAT NEED LOADING INTO BW ODS
        DELETE PETITION REQUESTS FROM RSSTATMANPART WITH YELLOW OR RED STATUS.(So that PC can start)
        CHANGE FILE THAT DTP ROUTINE WILL LOAD
        START PROCESS CHAIN
        WAIT A CERTAIN AMOUNT OF TIME FOR PC TO FINISH
    ENDLOOP.
    Edited by: Antonio Alejandro Ortega Vergani on Apr 12, 2011 12:05 AM

    Hi saveen,
    I've checked the transaction sm50 to check the available processes and I have 8 BTC(batch), 5 DIA(dialog), 2 UPD(update), 1 ENQ(enqueue) and 1 SPO(spool). Are these the ones you are asking about? I assume you refer to BTC which I believe 8 is enough....correct me if Im wrong here as Im starting out with this please.
    Thing is that Im trying to automate this whole process (for loading various file types(headers.txt, details.txt, payments.txt, etc), for various centers and several months...this is why I want to automate the whole process, so I dont have to go manually through all this data loading. So what I did was try to start the chain inside a loop for every new combination of dates that DIDN'T EXIST in the ODS tables. The process chain is supposed to call a DTP that uses a routine to see which file is going to upload to BW but only does it the first time.
    The problem comes with the second cicle of the loop in which the petition request for the DTP is already green, nevertheless the next start of the chain doesn't come as there seems to be no creation of another request and the exception CX_RSBK_REQUEST_LOCKED in the transaction RSPC.
    Appart from this whenever I try to delete the last request so that this way it does create another request(rnr) in RSSTATMANPART through the use of RSPC_API_CHAIN_START the data in my ODS does not stay and is deleted.

Maybe you are looking for

  • Running the script

    I have to run a script file with 150 sql commands to test the integrity of the database and output into an outfile.Is there any way to send the output results with sql syntax and its corresponding number.Thanks in advance for help.

  • Assignement field for F110

    Hi expert , I am running F110 for vendor payment. System is generating payment document and then creating a check. Hence my payment document is not having check information. How I can bring check number in assignemnet column of bank out going account

  • How to create idoc in real time

    hi guru how to create idoc in real time thanks subhasis

  • Key Pattern Filter

    Hi, I use naming conventions for the keys, and would like to query based on a pattern in the key. e.g. all keys that start with "x" I'm using Strings for my keys. How do I write a filter to do this? I tried creating this Filter: import java.util.rege

  • How to get nginx-passenger to work

    Hello ,  I installed mod-rails using the rvm method. I added nginx as a daemon in /etc/rc.conf. When i try to start nginx inside a rails application , i get this two errors in the console: nginx: [alert] could not open error log file: open() "/var/lo