|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
|
|
MQWFClient - submit .jsp problems. |
« View previous topic :: View next topic » |
Author |
Message
|
developer |
Posted: Wed Feb 03, 2010 11:00 am Post subject: MQWFClient - submit .jsp problems. |
|
|
Newbie
Joined: 26 Jan 2007 Posts: 8
|
Good night,
I need urgent help.
The interfaces (. jsp's) for manual activities do not allow me to update the workflow work items.
When I start the work item field "Subcontrato = 774". Write 771 in the field, and submit the work item, but is not updated!
Please check the. Jsp:
<%@ page language="java" info="JspWizard" %>
<%@ page import="com.ibm.workflow.api.*" %>
<%@ page import="com.ibm.workflow.api.ProcessInstancePackage.*" %>
<%@ page import="com.ibm.workflow.api.ItemPackage.*" %>
<%@ page import="com.ibm.workflow.servlet.client.*" %>
<%
RequestContext context = (RequestContext)session.getAttribute("context");
ReadOnlyContainer inData=context.getContainer();
WorkItem workItem=context.getWorkItem();
context.setLocale(response);
%>
<%!
public String getStringMember(RequestContext context, ReadOnlyContainer input, String name)
{
String val = null;
try {
val = context.getMemberValue(input, name, "");
}
catch (Exception e) {
}
return val;
}
public double getDoubleMember(RequestContext context, ReadOnlyContainer input, String name)
{
String val = null;
double rtn = 0.0;
try {
val = context.getMemberValue(input, name, "0.0");
rtn = Double.parseDouble(val);
}
catch (Exception e) {
}
return rtn;
}
public int getLongMember(RequestContext context, ReadOnlyContainer input, String name)
{
String val = null;
int rtn = 0;
try {
val = context.getMemberValue(input, name, "0");
rtn = Integer.parseInt(val);
}
catch (Exception e) {
}
return rtn;
}
public String getGlobalMember(RequestContext context, String name)
{
String val = null;
try {
// if (MQWorkflow Web Client vertion != "3.3.2 SP1"), please comment out next line.
val = context.getMemberValue(context.getGlobalContainer(), name, "");
}
catch (Exception e) {
}
return val;
}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title></title>
</head>
<body>
<form name="atributos" method="post" action="<%=context.getCommand("checkInWorkItem", workItem.persistentOid())%>" target="_parent">
Subcontrato <INPUT type="text" name="Subcontrato" value="<%=getLongMember(context, inData, "Subcontrato") %>"><br>
<hr>
<input type="submit" name="checkinWorkitem" value="Complete work item">
<input type="button" name="cancelWorkItem" value="Cancel" onClick="javascript:{location='<%=context.getCommand("cancelWorkItem", workItem.persistentOid())%>';}">
</form>
</body>
</html>
Please I'm desperate.
Thanks |
|
Back to top |
|
|
|
|
|
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|