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 » [b]MQWF Web Client / JSPs[/b]

Post new topic  Reply to topic
 [b]MQWF Web Client / JSPs[/b] « View previous topic :: View next topic » 
Author Message
fbaril2
PostPosted: Sun Jun 09, 2002 10:38 pm    Post subject: [b]MQWF Web Client / JSPs[/b] Reply with quote

Newbie

Joined: 09 Jun 2002
Posts: 1

Hello,

I have been using the MQWF3.3.2 WEB Client with JSPs with the"classic" way :

*************************************************************************************************************
<%@ page language="java" info="JSP activity implementation" %>
<%@ page import="com.ibm.workflow.api.*" %>
<%@ page import="com.ibm.workflow.servlet.client.*" %>
<jsp:useBean id="context" scope="request"
type="com.ibm.workflow.servlet.client.RequestContext"/>
<html>
<body>
<% ReadOnlyContainer inData = context.getContainer();
WorkItem workItem = context.getWorkItem(); %>
:
<%=context.openForm("checkInWorkItem", workItem.persistentOid())%>
:
<input type="submit" name="submitData" value="Complete work item">
<input type="button" name="cancel" value="Cancel"
onClick="javascript:{location='<%=context.getCommand("cancelWorkItem", workItem.persistentOid())%>';}">
</form>
:
</body></html>
*********************************************************************************


When the end user complete the form, with this code, he has two choices :
either
1) SUBMIT (<input type="submit" name="submitData" value="Complete work item">)
or

2) CANCEL (<input type="button" name="cancel" value="Cancel" onClick="javascript:{location='<%=context.getCommand
("cancelWorkItem", workItem.persistentOid())%>';}">


My question is the following :
I would like the user to have a third choice button "KO" i.e : a kind of "checkInWorkItem" but with an _RC different of 0 so that I could test the _RC on a transition condition after the user 's activity.
This way, the user could either press SUBMIT, CANCEL or KO (i.e checkInWorkItem indicating a different _RC code from 0).

Please, could you indicate me how to implement this third possibility ?

Thanks by advance.
Back to top
View user's profile Send private message
jmac
PostPosted: Mon Jun 10, 2002 5:59 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

If you base your condition on a container variable, say "EXIT" you simply have a hidden field on the screen called EXIT, and if they push your Submit button you set the variable to the good value, (i.e pass the condition), or if the hit the KO button you set it to a value that fails the condition.

GOOD LUCK
_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
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 » [b]MQWF Web Client / JSPs[/b]
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.