Current Position:Home > Using CREATE PROCESS and START PROCESS in a JSP

Using CREATE PROCESS and START PROCESS in a JSP

Update:10-11Source: network consolidation
Advertisement
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

The Best Answer

Advertisement
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.
  • Error while creating process instruction sheet in COR2 Update:10-11

    While creating Process instruction sheet, the following error is occuring. Please guide me to resolve the issue. Define variable QTYPRODUCED for default value Message no. CPOC110 Diagnosis In the process instruction, variable QTYPRODUCED is defined f

  • BPM 11.1.1.6 error creating process instance Update:10-11

    Hello! I am deploying BPM processes using JDeveloper 11.1.1.5 and SOA Server 11.1.1.6 and I am getting the following error: [2012-12-04T19:11:47.209+01:00] [WLS_SOA1] [NOTIFICATION] [] [oracle.integration.platform.blocks.tenant] [tid: [ACTIVE].Execut

  • Error in manual batch determination while creating process order Update:10-11

    Hi Expert, Manual batch determination is happening for some of material and for some material it is working firne  when creating process order, Pleae assist Thanks IntekhabDear, please open this prd order in change mode CO02 then press tab button cos

  • "ShellExecuteEx() failed to create process. GetLastError() = 2L" When Installing iTunes 11.1 on Windows 7 64-bit Update:10-11

    Hello, I get the following error (in the logs) right after hitting the install button within the iTunes 64bit installation program: Executing: C:\Users\Travis\AppData\Local\Temp\IXP651.TMP\SetupAdmin.exe /evt EFEB /pid 3872 /mon 448 460 ShellExecuteE

  • Need help in creating process codes Update:10-11

    Hi All, I need to create some message type and assign it to some idoc type , and i need to create process code and inbound function module for this. Can some one please help me in this regard. Thanks , Hemhi CATSDB CUSTOM IDOC TRANSFERMATION BETWEEN

  • Steps to create Process Chain in  Version 2004S SAP NetWeaver Update:10-11

    Hi, I have created a process chain in 3.5 version.Now i want to create a process chain in 2004s version.so what should be the steps to create this process chain.Hi 1. Goto RSPC 2.By using create icon create process chain. 3.Now it will ask for proces

  • How to create Process Integration in SLD Update:10-11

    Hello colleagues, I need create Process Integration in SLD my version is PI 7.4. In development system I have create this process How to create in production? Thanks.Hi Victor, you can create the SLD objects in DEV and transport the same in to Qualit

  • Creating Process Workflow Update:10-11

    Dear All, Dear All, I had some mappings in my OWB and I don't want to run them individually, I want all of them to run at once in a specific order by a single click. I read that i can do that with Process flow. Im using OWB 10.2 R2 so I tried to crea

  • Vendor create process using workflow Update:10-11

    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 sig

  • Using CREATE PROCESS and START PROCESS in a JSP Update:10-11

    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