ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » MQWFClient - submit .jsp problems.

Post new topic  Reply to topic
 MQWFClient - submit .jsp problems. « View previous topic :: View next topic » 
Author Message
developer
PostPosted: Wed Feb 03, 2010 11:00 am    Post subject: MQWFClient - submit .jsp problems. Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » MQWFClient - submit .jsp problems.
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.