JSP Worklist
Hi,
I am trying to run the sample JSP Worklist that is downloadable from this site.
I use Web Logic 6.0 SP1
The first step says :
"Copy code into a directory $WEBLOGIC_HOME/myserver/public_html/worklist"
I cannot find such a path .. . "$WEBLOGIC_HOME/myserver/public_html/worklist",
so, I created this
sub-directory under d:\WL and put the ResponseParser.java file here
2nd step says "Compile the java code ResponseParser.java."
When I try compiling, it gives me the error "package javax.servlet.http does not
exist"
Now, should I download javax.* from Sun site or does it come with web logic.
And what are the other settings I need to have to be able to run this sample JSP.
Can anybody give some pointers? Will appreciate your help.
thanks,
When I try compiling,
The Files you got are talking about wls5.1 and not 6.0
LN wrote:
> Hi,
>
> I am trying to run the sample JSP Worklist that is downloadable from this site.
>
> I use Web Logic 6.0 SP1
>
> The first step says :
> "Copy code into a directory $WEBLOGIC_HOME/myserver/public_html/worklist"
>
> I cannot find such a path .. . "$WEBLOGIC_HOME/myserver/public_html/worklist",
> so, I created this
> sub-directory under d:\WL and put the ResponseParser.java file here
>
> 2nd step says "Compile the java code ResponseParser.java."
> When I try compiling, it gives me the error "package javax.servlet.http does not
> exist"
>
> Now, should I download javax.* from Sun site or does it come with web logic.
> And what are the other settings I need to have to be able to run this sample JSP.
>
> Can anybody give some pointers? Will appreciate your help.
>
> thanks,
>
> When I try compiling,
Similar Messages
-
Jsp worklist in 7.02 - send xml to client
Does the worklist web application in 7.02 support messages with the "Send
XML To Client" action? There appears to be some JSP code related to
displaying message boxes or setting variables (message.jsp,
setvariables.jsp) but I don't see any reference to how it works in the
documentation. If anyone has gotten it to work, I would like to hear about
it.
If it's not supported, I would like to know if and when it will be
supported. If it is supported, I would also like to know where the
documentation is or when it will be documented. The current documentation
for Send XML to Client refers to the deprecated swing task list application.
Thanks, HalA co-worker of mine got the sendxmlclient to work with the worklist web
application. It works the same way it does for the swing tasklist
application, it just wasn't in the documentation that I could find. I must
have missed a step the first time I tried it. Anyway, it appears to work.
Maybe the query.jsp you mention that the docs refer to should actually be
the setvariables.jsp.
Hal
"Alex Thomas" <[email protected]> wrote in message
news:[email protected]..
My guess is that it's not quite there yet. As you say, message.jsp isthere
and the docs(http://e-docs.bea.com/wli/docs70/devclient/intro.htm#1052730)
refer to a query.jsp but it isn't in 7.02. We're currently using the
lightweight client sample for an equivalent mechanism but can't really
recommend this as it's deprecated and disappearing in 8.1
cheers
Alex
On Fri, 28 Mar 2003 18:22:12 -0500, "Hal Deadman" <[email protected]>
wrote:
Does the worklist web application in 7.02 support messages with the "Send
XML To Client" action? There appears to be some JSP code related to
displaying message boxes or setting variables (message.jsp,
setvariables.jsp) but I don't see any reference to how it works in the
documentation. If anyone has gotten it to work, I would like to hear
about
it.
If it's not supported, I would like to know if and when it will be
supported. If it is supported, I would also like to know where the
documentation is or when it will be documented. The current documentation
for Send XML to Client refers to the deprecated swing task listapplication.
>>
Thanks, Hal -
Web based worklist not working...
Hello,
(on wlpi 2.1 on weblogic sp2)
I've created a process that utilizes a stateless session bean. Every thing works
fine when using the fat-client worklist.
I wanted to use the web-based worklist with my process, so I did the following:
1.) Installed the %wlint_home%/samples/bpm_api/jsp/worklist.war from the weblogic
console.
2.) Tweaked the "startWeblogic.cmd" file (I'm in NT) to add the wlpi-worklist.jar
file into the classpath. (this is all in the reamde file in %wlint_Home%/samples/bpm_api/jsp/)
This works at first, as I can get to the login screen, but as soon as I log in, I
get a "Classnotfound error" saying it can't find my home interface for my session
bean.
So, I figured, "Must not be in the classpath (somehow)". I added my bean .jar file
into the classpath, and then try again. I get a different error that says "Classnotfound
error" for the EJBHelper. Same error happens on the fat client in both cases.
I can simply take out my startWeblogic classpath changes, and restart the server,
and the fat-client works again (but the jsp worklist doesn't not -- no surprise.)
Has anyone been able to get the jsp-based worklist to work with a process that uses
an EJB?
daveI totally lost my internet connection via the router WRT54GS V6
I am connected directly into the computer from my cable modem.
I have tried everything. Upgarded firmware, factory default reset, setting the software again and again.
When I run Easylink Advisor it always reads, no internet...like I said the modem is working when plugged directly into my computer.
All proper lights are working on the router and modem.
Could the router be just be broken?
It seems to be getting worse and worse.
help please. -
Error: Error WLI-Worklist
FOllowing error is logged in weblogic server( 8.1 workshop).
<Feb 17, 2004 10:53:16 AM GMT+05:30> <Error> <WLI-Worklist> <BEA-610066> <You
mu
st be in the worklist admin role or task owner or the task claimant or in the
as
signee list to perform this operation.>
It does not specify task. it logs this error frequently. even when there is no
request from browser.
Pls help.
Thanks in advance.Karen
Please ensure that wlpi-worklist.jar is in your classpath when you start
weblogic
Tony
"Karen Law" <[email protected]> wrote in message
news:[email protected]..
I am using Weblogic 6.1 with WLI 2.1. I have just deployed worklist.war
which is a JSP worklist client. I can access the first login page. But
when I insert username, password and submit, an error comes out as
shown:
C:\bea61\wlintegration2.1\config\samples\applications\.wlnotdelete\WEB-INF\_
tmp_war_myserver_myserver_worklist\jsp_servlet\_worklist\__worklist.java:24:
package com.bea.wlpi.server.worklist does not exist
probably occurred due to an error in /worklist/worklist.jsp line 11:
" session="true" %>
C:\bea61\wlintegration2.1\config\samples\applications\.wlnotdelete\WEB-INF\_
tmp_war_myserver_myserver_worklist\jsp_servlet\_worklist\__worklist.java:25:
package com.bea.wlpi.server.principal does not exist
probably occurred due to an error in /worklist/worklist.jsp line 11:
" session="true" %>
I use the default "samples" domain. And I don't know why it can't
include com.bea.wlpi.server.worklist and com.bea.wlpi.server.principal.
Anyone can help? Thx!
Regards,
Karen -
Weblogic V7.0 SP2 is available
<SPAN class=EUDORAHEADER>Date: Mon, 10 Feb 2003 09:50:06 -0800
<BR></SPAN><SPAN
class=EUDORAHEADER>From: Field Support <[email protected]>
<BR></SPAN><SPAN
class=EUDORAHEADER>Reply-To: [email protected] <BR></SPAN><SPAN
class=EUDORAHEADER>X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U)
<BR></SPAN><SPAN class=EUDORAHEADER>X-Accept-Language: en
<BR></SPAN><SPAN
class=EUDORAHEADER>To: [email protected] <BR></SPAN><SPAN
class=EUDORAHEADER>Subject: PRODUCT UPDATE: WebLogic Platform 7.0
Service Pack 2
now available <BR></SPAN><SPAN class=EUDORAHEADER>BEA-mlists: sendto
bea-alleyes
for smaxwell <BR></SPAN><SPAN class=EUDORAHEADER>X-Filtered: Sendmail
MIME
Filter v2.1.0 mailconsole.bea.com h1AHo7g29633 <BR></SPAN><SPAN
class=EUDORAHEADER>X-AntiVirus: Sendmail Anti-Virus Filter
mailconsole.bea.com
4.1.60 4246 h1AHo7g29633 <BR></SPAN><BR><FONT
color=#3333ff></FONT> <BR>
<HR width="100%">
<FONT color=#3333ff>PRODUCT UPDATE: WebLogic Platform 7.0 Service Pack 2
now
available</FONT> <BR><FONT color=#3333ff>Date: February 10, 2003</FONT>
<BR><FONT color=#3333ff>url: <A
href="http://commerce.bea.com/downloads/weblogic_platform.jsp">http://commerce.bea.com/downloads/weblogic_platform.jsp</A> </FONT>
<HR width="100%">
<FONT color=#3333ff></FONT>
<P><B><I><U><FONT color=#3333ff>Summary:</FONT></U></I></B><FONT
color=#3333ff></FONT>
<P><FONT color=#3333ff>WebLogic Platform 7.0 Service Pack 2 is now
available for
download from the BEA Download Center.</FONT><FONT color=#3333ff></FONT>
<P><FONT color=#3333ff><B><I><U>Details:</U></I></B></FONT><FONT
color=#3333ff></FONT>
<P><FONT color=#3333ff>WebLogic Platform 7.0 Service Pack 2 became
available on
February 7, 2003, and can be downloaded from the BEA Download Center
at:</FONT>
<UL>
<LI><FONT color=#3333ff><A
href="http://commerce.bea.com/downloads/weblogic_platform.jsp">http://commerce.bea.com/downloads/weblogic_platform.jsp</A></FONT>
<LI><FONT color=#3333ff><A
href="http://commerce.bea.com/downloads/weblogic_jrockit.jsp">http://commerce.bea.com/downloads/weblogic_jrockit.jsp</A>
(for JRockit kits)</FONT> </LI></UL><B><FONT color=#3333ff>The
highlights of
this service pack release are:</FONT></B><FONT color=#3333ff></FONT>
<P><B><FONT color=#3333ff>Integrated maintenance release for WebLogic
Platform
and component products</FONT></B> <BR><B><FONT color=#3333ff>New
WebLogic
Platform packages that bundle JRockit 7.0 Service Pack 2 with integrated
installation</FONT></B>
<UL>
<LI><FONT color=#3333ff>Windows 2000 (Intel 32-bit)</FONT>
<LI><FONT color=#3333ff>Red Hat Linux Advanced Server 2.1 (Intel
32-bit)</FONT>
</LI></UL><B><FONT color=#3333ff>Includes Service Packs for WebLogic
Platform
7.0 component products:</FONT></B>
<UL>
<LI><FONT color=#3333ff>WebLogic Server 7.0 Service Pack 2</FONT>
<LI><FONT color=#3333ff>WebLogic Workshop 7.0 Service Pack 2</FONT>
<LI><FONT color=#3333ff>WebLogic Portal 7.0 Service Pack 2</FONT>
<LI><FONT color=#3333ff>WebLogic Integration 7.0 Service Pack 2</FONT>
</LI></UL><B><FONT color=#3333ff>Limited feature enhancements (see
product
documentation for details)</FONT></B>
<UL>
<LI><FONT color=#3333ff>WLS performance enhancements, including
encryption
hardware accelerator support</FONT>
<LI><FONT color=#3333ff>WLI BPM Administration enhancements</FONT>
<LI><FONT color=#3333ff>WLI BPM file plug-in</FONT>
<LI><FONT color=#3333ff>WLI BPM JSP Worklist Client</FONT>
</LI></UL><B><FONT
color=#3333ff>Sub-platform support (see product documentation for
details)</FONT></B>
<UL>
<LI><FONT color=#3333ff>Microsoft Windows (Intel 32-bit)</FONT>
<LI><FONT color=#3333ff>Solaris 7, 8, 9</FONT>
<LI><FONT color=#3333ff>Red Hat Linux 7.2</FONT>
<LI><FONT color=#3333ff>Microsoft Windows (with JRockit, Intel
32-bit)</FONT>
<LI><FONT color=#3333ff>Red Hat Linux Advanced Server 2.1 (with JRockit,
Intel
32-bit)</FONT>
<LI><FONT color=#3333ff>SuSE Linux Enterprise Server 7 (WLS-only, Intel
32-bit)</FONT>
<LI><FONT color=#3333ff>Full WebLogic Platform support for HP-UX and AIX
planned
for March 2003</FONT> </LI></UL><B><FONT color=#3333ff>Two ways to apply
maintenance to existing installation (both require customer support
login)</FONT></B>
<UL>
<LI><FONT color=#3333ff>Smart Update</FONT>
<LI><FONT color=#3333ff>Upgrade Installer</FONT> </LI></UL><B><FONT
color=#3333ff>Installers available from BEA Download Center for new
installation</FONT></B><FONT color=#3333ff></FONT>[att1.html]
-
Difference between "Activated" & "Executed"
Hi WLPI Gurus,
In the WLPI Studio, under Task Properties,
there are 2 tabs :
Activated Executed
what is the logic we should follow for deciding
where to place
Business Components and other stuff - under
Actvated or
Executed?
Whatever is under "Activated", gets initiated
(as I understand)
when this task is called. But what is under
"Executed" gets
initiated only when the "Execute Task.." is
done or when the
user clicks on this from the Worklist. Correct?
Also, why does the Worklist (JSP Worklist)
show the tasks
which are already executed? By doing this,
is there not the
risk that the user can click on this task again
and thereby
initiating the task more than one time and
so on...
Any help/pointers much appreciated.
BTW, is there any speicifc newsgroup for PI?
Thanks, LNsh ip bgp
shows the BGP table (where are stored info coming from BGP update)
sh ip bgp nei x.x.x.x advertised-routes
shows networks that your router will advertise to a specific neighbor
sh ip bgp nei x.x.x.x recieved-routes
shows advertisement received from a specific neighbor; networks (NLRI) filtered with route-map distribute-list,... are included (Inbound soft reconfiguration must be enabled)
sh ip bgp nei x.x.x.x routes
shows only routes sent by a specific neighbor and not filtered or discarded (i.s accepted)
sh ip route
show routing table; it contains the best route for each network (best is first of all the lowest administrative distance, then the lowest metric)
Bye,
enrico.
PS please rate if useful -
Jsp implementation of the worklist client for weblogic 6.0
Hi
Please find attached a demo version of how you can implement a JSP based
worklist client. This code is simply for demonstration/reference purposes
only but it illustrates how to implement a JSP client to the BPM product.
This application is not covered under support.
To install the product simply extract the attachment ( a war file ) and
place it in the applications directory of your weblogic deployment, for
example
d:\bea\wlserver6.0\config\mydomain\applications.
To run the worklist client enter the following url in your browser
http://localhost:7001/worklist
This code will also be placed on the BEA development centre.
Again, it must be re-iterated that although testing of the code has been
done this is not a production application and it's sole purpose it provide
examples of how to use the wlpi-worklist api. in a web environment.
Any questions, comments or updates to this code are welcome and should
be posted to the newsgroup.
Thanks and enjoy
Tony
[worklist.war]Bart
Yes I do
Tony
"Bart Jenkins" <[email protected]> wrote in message
news:3b8bd563$[email protected]..
Tony,
Don't you mean that the target location of the .WAR file should be:
C:\bea\wlintegration2.0\processintegrator\config\mydomain\applications
(Assuming you have elected the default folders for the WLI BPMinstallation
location)
Bart Jenkins, CTO
Globeflow SA
"tony lodge" <[email protected]> wrote in message
news:[email protected]..
Hi
Please find attached a demo version of how you can implement a JSPbased
worklist client. This code is simply for demonstration/reference
purposes
only but it illustrates how to implement a JSP client to the BPMproduct.
This application is not covered under support.
To install the product simply extract the attachment ( a war file )and
place it in the applications directory of your weblogic deployment, for
example
d:\bea\wlserver6.0\config\mydomain\applications.
To run the worklist client enter the following url in your browser
http://localhost:7001/worklist
This code will also be placed on the BEA development centre.
Again, it must be re-iterated that although testing of the code hasbeen
done this is not a production application and it's sole purpose it
provide
examples of how to use the wlpi-worklist api. in a web environment.
Any questions, comments or updates to this code are welcome andshould
be posted to the newsgroup.
Thanks and enjoy
Tony -
WLIntegration Worklist.jsp in a portlet problem
I am using the BEA WLIntegration client example and have managed to get the initial
page displayed in a portal. The Worklist.jsp uses bean ResponseHandler. When trying
to display Worklist.jsp the server returns ResponseHandler not found. For portlets
where a JSP uses a bean where should the baen reside and what references in the
deployment descriptor are required.
The Worklist.jsp works fine when used outside of the portlet framework.Another example of a multi-page portlet is described in Case Study: Building Portlets with JavaBeans.
Regards,
-rh
null -
10.1.3.1 Worklist - Using Prototype with auto-gen JSP forms
There is an interesting conflict when using the javascript package Prototype with the auto-generated jsp for worklist forms.
Inside the main JSP is this javascript function, which iterates through the keyNames array associatively:
function isNameExist(keyNames, name)
var exist = "false";
for (keyName in keyNames)
if(trim(keyNames[keyName]) == trim(name))
exist = "true";
return exist;
However because of Prototype's modifications to the Array object, this function fails. To make it work, change the function to this:
function isNameExist(keyNames, name)
var exist = "false";
if (keyNames && keyNames.length > 0) {
for (var j = 0; j < keyNames.length; j++)
//for (keyName in keyNames)
if(trim(keyNames[j]) == trim(name))
//if(trim(keyNames[keyName]) == trim(name))
exist = "true";
return exist;
FYI: I first discovered the problem when the Save button became disabled (after adding Prototype), and Firefox kept reporting the js error "globalUpdateForm has no properties".
My thanks to Ryan Gahl for this one!
PS: If anyone else has tried using Prototype and knows of other conflicts, please post!My code is in a java Exec, in a bpel process. I am not using any JSP pages. What do you mean by child of the orabpel process? How do I check if my bpel process is a child of the orabpel process?
Thanks!
Moe -
How do you update multiple items in a JSP that are only checked...
I have list of items in my jsp pages and that are being generated by the following code
and I want to be able to update multiple records that have a checkbox checked:
I have a method to update the status and employee name that uses hibernate that takes the taskID
as a paratmeter to update associated status and comments, but my issue is how to do it with multiple records:
private void updateTaskList(Long taskId, String status, String comments) {
TaskList taskList = (TaskList) HibernateUtil.getSessionFactory()
.getCurrentSession().load(TaskList.class, personId);
taskList.setStatus(status);
taskList.setComment(comments);
HibernateUtil.getSessionFactory().getCurrentSession().update(taskList);
HibernateUtil.getSessionFactory().getCurrentSession().save(taskList);
<table border="0" cellpadding="2" cellspacing="2" width="98%" class="border">
<tr align="left">
<th></th>
<th>Employee Name</th>
<th>Status</th>
<th>Comment</th>
</tr>
<%
List result = (List) request.getAttribute("result");
%>
<%
for (Iterator itr=searchresult.iterator(); itr.hasNext(); )
com.dao.hibernate.TaskList taskList = (com.dao.hibernate.TaskList)itr.next();
%>
<tr>
<td> <input type="checkbox" name="taskID" value=""> </td>
<td>
<%=taskList.empName()%> </td>
<td>
<select value="Status">
<option value="<%=taskList.getStatus()%>"><%=taskList.getStatus()%></option>
<option value="New">New</option>
<option value="Fixed">Fixed</option>
<option value="Closed">Closed</option>
</select>
</td>
<td>
<input type="text" name="Comments" MAXLENGTH="20" size="20"
value="<%=taskList.getComments()%>"></td>
</tr>
<%}%>
_________________________________________________________________org.hibernate.exception.GenericJDBCException: could not load an entity: [com.dao.hibernate.WorkList#2486]
org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:91)
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:79)
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
org.hibernate.loader.Loader.loadEntity(Loader.java:1799)
org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:93)
org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:81)
org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:2730)
org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:365)
org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:346)
org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:123)
org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:161)
org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87)
org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:889)
org.hibernate.impl.SessionImpl.load(SessionImpl.java:808)
org.hibernate.impl.SessionImpl.load(SessionImpl.java:801)
com.web.UpdateWorkListAction.execute(Unknown Source)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
before I was running a single update as below and it worked fine:
session.beginTransaction();
int taskId = Integer.parseInt(request.getParameter("taskId"));
String action_taken = request.getParameter("action_taken");
WorkListErrors worklistErrors
= (WorkListErrors) session.load(WorkListErrors.class, new Integer(taskId));
worklistErrors.setAction_taken(action_taken);
session.update(worklistErrors);
session.save(worklistErrors);
session.getTransaction().commit();
but when I try an an update on multiple records it does work when I have a check box checked :
session.beginTransaction();
int taskId = Integer.parseInt(request.getParameter("taskId"));
String action_taken = request.getParameter("action_taken");
WorkListErrors worklistErrors
= (WorkListErrors) session.load(WorkListErrors.class, new Integer(taskId));
worklistErrors.setAction_taken(action_taken);
session.update(worklistErrors);
session.save(worklistErrors);
session.getTransaction().commit();
session.beginTransaction();
String[] tickedTaskId = request.getParameterValues("tickedTaskId");
String[] taskId = request.getParameterValues("taskId");
String[] action_taken = request.getParameterValues("action_taken");
for(int i=0; i<tickedTaskId.length; i++) {
for(int j = 0; j < taskId.length; j++) {
if(tickedTaskId.equals(taskId[j])) {
WorkListErrors worklistErrors
= (WorkListErrors) session.load(WorkListErrors.class, tickedTaskId[i]);
worklistErrors.setAction_taken(action_taken[j]);
session.update(worklistErrors);
session.save(worklistErrors);
session.getTransaction().commit();
/*Close session */
session.close(); -
Task details in BPM worklist on SOA 11g could not retrieved.Experts plz adv
Hi,
This is regarding issues when I click on the Task details on the BPM worklist 11G. I am invoking a BPEL process using custom JSP and from the custom JSP form values are
sent to BPEL and from BPEL i am invoking the Human workflow.
Tech used: BPEL 11.1.1.2, RCU 11.1.1.2.1, WLS 10.3.2 and DB 10.2.0.4
I am using one jsp named "myFlow.jsp" to call the BPEL process and i can able to get the Task in worklist but i click on "Task details" , i am getting "404 error".
Note: There was no errors when i tried with ADF autogenerated form. I can able to approve, reassign and do all operations.
I got one soultion for that, i mean i have to create another custom jsp(taskDetails.jsp) to fetch the values based on the Task Id and finally i have to give that URI in EM to fetch the details.Today i created that also but i dont know how to give the URI IN EM for the task details jsp. I am refering soa developes guide also to get the API's.
My Ref: http://sqltech.cl/doc/oas11gR1/integration.1111/e10224/bp_worklistcust.htm
http://docs.tpu.ru/docs/oracle/en/owl/E14571_01/integration.1111/e10224/bp_designtf.htm
1. myFlow.jsp used - To initiate the BPEL to create a Task in worklist.(By mistake i gave this URI in EM and i am getting the same request page in the task details). Now i created another jsp which queries the task details based on the Task ID. i dont know how to give the URI in EM for this Jsp.
2.taskDetails.jsp - Used to retrive the task details based on thr Task id.
Both Jsp's are displayed below. Please advise how to fetch the task details.
worklist API provided by oracle is used to fetch only the metadata on the Task details but i have to get all the form values also in the task details that has been submitted
by my Jsp(myFlow.jsp)
Both are shown below,
*1. myFlow.jsp*
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%--
<%@page import="com.oracle.bpel.client.Locator" %>
<%@page import="com.oracle.bpel.client.NormalizedMessage" %>
<%@page import="com.oracle.bpel.client.dispatch.IDeliveryService" %>
--%>
<%@page import="oracle.fabric.common.NormalizedMessage" %>
<%@page import="oracle.fabric.common.NormalizedMessageImpl" %>
<%@page import="oracle.soa.management.facade.Locator" %>
<%@page import="oracle.soa.management.facade.LocatorFactory" %>
<%@page import="oracle.soa.management.facade.Composite" %>
<%@page import="oracle.soa.management.facade.Service" %>
<%@page import="oracle.soa.management.facade.CompositeInstance" %>
<%@page import="oracle.soa.management.facade.ComponentInstance" %>
<%@page import="oracle.soa.management.util.CompositeInstanceFilter" %>
<%@page import="oracle.soa.management.util.ComponentInstanceFilter" %>
<%@page import="java.util.Hashtable" %>
<%@page import="java.util.UUID" %>
<%@page import="java.util.List" %>
<%@page import="java.util.Map" %>
<%@page import="javax.xml.transform.*" %>
<%@page import="javax.xml.transform.dom.*" %>
<%@page import="javax.xml.transform.stream.*" %>
<%@page import="javax.naming.Context" %>
<%@page import="org.w3c.dom.Element" %>
<%@page import="java.io.*" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
<title>myFlow</title>
</head>
<body>
<%
String ssn = request.getParameter("Name");
if (ssn == null)
%>
<h3>Invoke BPEL Application</h3>
<h4>NYC Application Form</h4>
<form>
<table>
<tr>
<td>NAME:</td>
<td><input type="text" name="Name"></td>
</tr>
<tr>
<td>NRIC Number:</td>
<td><input type="text" name="NRIC" value="12345678"></td>
</tr>
<tr>
<td>Gender:</td>
<td><input type="text" name="Gender" value="Male"></td>
</tr>
<tr>
<td>Race:</td>
<td><input type="text" name="Race" value="Indian"></td>
</tr>
<tr>
<td>Occupation:</td>
<td><input type="text" name="Occupation" value="IT"></td>
</tr>
</table>
<input type="submit" value="Submit">
</form>
<%
else
String Name = request.getParameter("Name");
String NRIC = request.getParameter("NRIC");
String Gender = request.getParameter("Gender");
String Race = request.getParameter("Race");
String Occupation = request.getParameter("Occupation");
// 3. Initiate the BPEL process here
//Locator locator = new Locator("default","bpel");
//IDeliveryService deliveryService = (IDeliveryService) locator.lookupService(IDeliveryService.SERVICE_NAME );
// Construct a normalized message and send to Oracle BPEL Process Manager
//NormalizedMessage nm = new NormalizedMessage();
// nm.addPart("payload", xml);
// Initiate the BPEL process
// deliveryService.post("myFlow", "initiate", nm);
try {
Hashtable jndiProps = new Hashtable();
jndiProps.put(Context.PROVIDER_URL, "t3://172.16.16.202:8001/soa-infra");
jndiProps.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
jndiProps.put(Context.SECURITY_PRINCIPAL, "weblogic");
jndiProps.put(Context.SECURITY_CREDENTIALS, "weblogic1");
jndiProps.put("dedicated.connection", "true");
out.println("====Got Values======" + jndiProps.get(Context.PROVIDER_URL));
String inputPay = "<nycproject xmlns=\"http://xmlns.oracle.com/NycDesignApps_jws/NycDesignComp/NycDesignProcess\">\n"
+ "<Name>" + Name + "</Name>\n"
+ "<NRIC>" + NRIC + "</NRIC>\n"
+ "<Gender>" + Gender + "</Gender>\n"
+ "<Race>" + Race + "</Race>\n"
+ "<Occupation>" + Occupation + "</Occupation>\n"
+ "</nycproject>\n";
Locator locator = null;
//http://xmlns.oracle.com/TestDesignApp_jws/TestDesignComp/TestProcess
//http://xmlns.oracle.com/NycDesignApps_jws/NycDesignComp/NycDesignProcess
// connect to the soa server
locator = LocatorFactory.createLocator(jndiProps);
out.println("Connected after Locator - Available domains==>>" +locator.getDomains());
// find composite
String compositeDN = "default/NycDesignComp!1.0";
Composite composite = locator.lookupComposite("default/NycDesignComp!1.0");
out.println("Got Composite : "+ composite.toString());
//out.println("Got Composite : "+ composite.getCompositeDN().toString());
// find exposed service of the composite
Service service = composite.getService("nycdesignprocess_client_ep2");
out.println("Got serviceName : "+ service.toString());
NormalizedMessage input = new NormalizedMessageImpl();
//String uuid = "uuid:" + UUID.randomUUID();
//input.addProperty(NormalizedMessage.PROPERTY_CONVERSATION_ID,uuid);
input.getPayload().put("project", inputPay);
Map payload = input.getPayload();
out.println("Payload : "+ payload);
out.println("input : "+ input);
// process is the operation of the employee service
//NormalizedMessage res = null;
//NormalizedMessage input1 =null;
try {
//res = service.request("process",input);
//input1=service.request("process", input);
service.post("process", input);
} catch(Exception e) {
e.printStackTrace();
out.println("Inside Catch1" + e.getMessage());
//service.post(arg0, arg1);
}catch(Exception e) {
out.println("Inside Catch2" + e.getMessage());
e.printStackTrace();
%>
</body>
</html>
*2.taskDetails.jsp*
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=EUC-KR"%>
<%@page import="java.util.*" %>
<%-- <%@ page import="com.oracle.jay.WorklistClient"%> --%>
<%@page import="oracle.bpel.services.workflow.client.IWorkflowServiceClientConstants" %>
<%@page import="oracle.bpel.services.workflow.client.IWorkflowServiceClient" %>
<%@page import="oracle.bpel.services.workflow.verification.IWorkflowContext" %>
<%@page import="oracle.bpel.services.workflow.client.WorkflowServiceClientFactory" %>
<%@page import="oracle.bpel.services.workflow.query.ITaskQueryService" %>
<%@page import="oracle.bpel.services.workflow.task.model.Task" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR"/>
<title>TaskDetailsTest</title>
</head>
<body>
<%
String bpmWorklistTaskId = request.getParameter("bpmWorklistTaskId");
String bpmWorklistContext = request.getParameter("bpmWorklistContext");
Map<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String>
properties = new HashMap<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String>();
properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.MODE, IWorkflowServiceClientConstants.MODE_DYNAMIC);
properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_PROVIDER_URL, "t3://172.16.16.202:8001");
properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_CREDENTIALS, "weblogic1");
properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_PRINCIPAL, "weblogic");
IWorkflowServiceClient client = WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT, properties, null);
IWorkflowServiceClient wfSvcClient =
WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.SOAP_CLIENT, properties, null);
//IWorkflowServiceClient wfSvcClient = WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.JAVA_CLIENT);
IWorkflowContext ctx = null;
ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
ctx = querySvc.getWorkflowContext(bpmWorklistContext);
Task humanTask = querySvc.getTaskDetailsById(ctx, bpmWorklistTaskId);
out.println("<br>Task Number: " + humanTask.getSystemAttributes().getTaskNumber());
out.println("<br>Task Id: " + humanTask.getSystemAttributes().getTaskId());
out.println("<br>Title: " + humanTask.getTitle());
out.println("<br>Priority: " + humanTask.getPriority());
out.println("<br>State: " + humanTask.getSystemAttributes().getState());
out.println("<br>Assignees: " + humanTask.getSystemAttributes().getAssignees());
out.println("<br>AcquiredBy: " + humanTask.getSystemAttributes().getAcquiredBy());
out.println("<br>Updated Date: " + humanTask.getSystemAttributes().getUpdatedDate());
out.println("<br>Assigned Date: " + humanTask.getSystemAttributes().getAssignedDate());
out.println("<br>Created Date: " + humanTask.getSystemAttributes().getCreatedDate());
out.println("<br>Updated By: " + humanTask.getSystemAttributes().getUpdatedBy());
out.println();
%>
</body>
</html>
Please Advise
Kind Regards,
-BharathiIt's too late but if someone need the answer..
You can set if the outcome requires comments in General section of the Human Task. -
How do you expand items in a list of items in jsp page
I have this list of task items being retrieved from the data from master table:
<%
List taskList = (List) request.getAttribute("searchresult");
if (searchresultList.size() != 0) {
for (Iterator itr=searchresultList.iterator(); itr.hasNext(); )
TaskList workList =
(taskList )itr.next();
%>
<tr>
<td>
<a href="/taskItemDetail.do?itemId=<%=taskList.getId()%>" >
<%=taskkList.getId()%></a>
</td>
<td><%=taskList.getTask()%></td>
<td><%=taskList.getDate()%></td>
</tr>
<%}%>
now when I click on the above link I want to be able to get the detail for that item from
the detail table and want to be able to show it inbetween the other master tables results.
Kind of like when you expand an item in windows folders by clicking the plus sign (+).Basically you have two choices. You can include the whole, expanded list in your HTML, and use Javascript on the client side to fold and unfold sections, or you can maintain a list of folded items in your web app, and have transactions which alter this list and return an appropriate new page.
Remember, JSPs are not interactive. All they do is generate HTML.
Ideally, store the folding state on the page (e.g. encoded into a hidden field). You could put it in Session, but then if you have two browser windows open on the same browser windows can interfere with one another. -
How to modify a part of task parameters via worklist (not all paramenters)?
I am making a demo of showing the functions of human workflow / worklist using Oracle SOA Suite. The following process is not a real project. But I have some questions about how to modify parameters in worklist and jdeveloper. Please help me.
I create a BPEL with human workflow. It has 2 human tasks.
The first human task is a single approver type and the parameters contents can be modified via worklist. The user is oc4jadmin.
If oc4jadmin rejects it, the process will go to the second human task.
The second human task is a sequential lists of approvers type and the parameters contents can be modified via worklist. 3 users (the order is : jcooper -> jlondon-> tolstoy) can access it. The process is able to abrupt completion if anyone rejects it.
After the process is invoked in BPEL control,
1, oc4jadmin login worklist and modified the data, than reject it.
2, jcooper can login worklist and changed the data, save it, and approve.
3, jlondon login, view data, change data, and save it. However, if jlondon modified the
My questions are as follow:
1, If oc4jadmin rejects the task in worklist, how can I set the parameter cannot be modified and saved.
2, schema:
<schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://xmlns.oracle.com/BPEL_single_sequential"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:vv="http://xmlns.oracle.com/BPEL_single_sequential">
<element name="BPEL_single_sequentialProcessRequest">
<complexType>
<sequence>
<element name="input" type="vv:complexType1" maxOccurs="unbounded"/>
</sequence>
</complexType>
</element>
<element name="BPEL_single_sequentialProcessResponse">
<complexType>
<sequence>
<element name="result" type="string"/>
</sequence>
</complexType>
</element>
<complexType name="complexType1">
<sequence>
<element name="pid" type="string"/>
<element name="ptitle" type="string" maxOccurs="unbounded"/>
</sequence>
</complexType>
</schema>
In the worklist, the user can add another pid and leave the ptitle empty. In the schema, the ptitle (minOccurs=1) should appear at least once. How can I set that, if the user add another pid and must add at least one ptitle before saving it?
3, One element likes gender=male/female. In the worklist form, the default graphic component is an input field. How can I set the component to a dropdown list and it highlight value.
4, The default form is jsp file and it is beautiful. Could I make a jspx page and replace the jsp page? How to replace the jsp to jspx?
5, If I use sequencial approver type for the human task, how can I set various page layout? For example, user 1 can view and modified all parameters. User 2 can view some part of the parameters and changes it. User 3 can view all paramters but can just modified some of them?
Thanks a lot!
Edited by: [email protected] on 2009-3-10 上午12:39
Edited by: [email protected] on 2009-3-10 上午12:44
Edited by: YEHi,
all what you asked about can be done through java script. -
SOA 11g Worklist Apps Customisation and Integration with Plumtree Portal
Hi,
We want to migrate an existing application build using SOA Suite 10.1.3.3 to 11.1.1.2.0.
In the 10g application the worklist application was customised and the customised apps was linked as a remote portlet in BEA Plumtree Portal.
1)In 10g the worklist application source code is available (\SOA_Oracle_Home\bpel\samples\hw\worklistapp) for customisation but is that possible for 11g ?
(The location of the default deployed worklist apps in 11g is /../mdw_home/user_projects/domains/soa_domain/servers/soa_server1/tmp/_WL_user/worklistapp).
Can we take the source code and customize in jdev and deploy under a different contextname in 11g??
3)Our existing 10g worklist was customised a bit in terms of look and feel and for some custom authentication and it was deployed in the 10g SOA Server.
A sample jsp application was created and the login page of the custom worklist apps was linked in a inframe so that it works when integrated with the Plumtree portal as a remote portlet. And this worked perfectly in 10.1.3.3 SOA Suite.
However the 11g SOA worklist login when tagged in a jsp as an inframe in plumtree portal is giving a warning message
Warning: Unable to load content in a frame. Frame content will load at the top level. On cliicking the OK button the worklist page is opening. This is with Firefox browser . however form IE7 or 8 its timing out from portal.
As per http://newsoalife.blogspot.in/2009/09/framebusing-in-adf.html
changing the web.xml for the worklist can help.
Can anyone please let us know on the same as this appeas an unsupported one.
Regards
AshifHi,
Can you check the log file.u are getting any error.can you check wf_error table also u are getting any error.
Can you check consumer in AQ tables.
Thanks,
Rahul -
10.1.3.4 - How to access custom java methods in worklist ?
We want to invoke a custom java method inside of worklist, when the file attachments are added to the worklist. We are planning to modify the auto-generated jsp page to do the same. We have created the custom jar files, but am not sure where to deploy this jar file ? We are not able to compile the jsp /jar. Does anybody have any idea where the custom jar file goes ?
The bpel\samples\hw\worklistapp\readme will explain you about how to do this.
Maybe you are looking for
-
How to restore my Skype onto my new hard drive
My new computer had to have a new hard drive installed. I lost my Skype logo to get onto Skype. I am having trouble getting it re-installed onto my computer. What do I do to get it back operational?
-
Two iMacs each with separate Apple ID. Can I merge onto one Mac?
Two iMacs each with separate Apple ID. Can I merge onto one Mac?
-
What does scale mean in PARALLEL_PROJECTION with SCALE_EXPLICIT policy?
Does anyone know how the parallel projection view is scaled? I'm using: view.setScreenScalePolicy(View.SCALE_EXPLICIT); / /specifies that the scale is taken directly from the user-provided screenScale attribute First of all, I tried two ways of chang
-
How to embed the Greek language Characters in flash dynamic text field
Hi, I have a problem with dynamic text field in flash. I want ot embed Greek Language characters like ≤, ≥, ± etc through actionscript (embedFonts). Plz help. Rakesh Kumar
-
I've tried multiple times checking the settings with flash and I've checked and unchecked "hardware acceleration" and I've cleared my cache and cookies multiple of times. I've uninstalled and reinstalled flash many times to but still I have this issu