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 » BuiltinHandler.render(String command, RequestContext ctx)

Post new topic  Reply to topic
 BuiltinHandler.render(String command, RequestContext ctx) « View previous topic :: View next topic » 
Author Message
zudduz
PostPosted: Fri Aug 07, 2009 11:14 am    Post subject: BuiltinHandler.render(String command, RequestContext ctx) Reply with quote

Newbie

Joined: 07 Aug 2009
Posts: 2

I am coming up to speed on an MQ Workflow implementation. I'm confused as to what com.ibm.workflow.servlet.client.BuiltinHandler.render(String command, RequestContext ctx) does. Can someone explain the render method to me? I took a look at the Javadoc in the documentation and found no explanation.

An excerpt of where it's being used in my code is included below. The class that this code is from extends com.ibm.workflow.servlet.client.GenericCommandHandler

public ResponsePage doLogoff(HttpServletRequest request,
HttpServletResponse response) throws ClientException {

RequestContext context = new RequestContext(request);
BuiltinHandler builtin = context.getBuiltinHandler();
ResponsePage ret = null;

try {
HttpSession session = request.getSession();
SessionContext sessionContext = getSessionContext(request);

// Store the OID
String OID = (String) request.getParameter("id");

// If on a wizard page, a workitem is checked out, undo the checkout
if (OID != null) {
if (OID.length() > 1) {
UndoCheckout(request, response);
}
}

// Call the super's logoff method
super.onLogoff(sessionContext);
ret = builtin.render("doLogoff", context);
} catch (ClientException e) {
ret = reportError(e, context, builtin);
}

return ret;

}
Back to top
View user's profile Send private message
jmac
PostPosted: Sat Aug 08, 2009 6:42 am    Post subject: Reply with quote

Jedi Knight

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

I am a bit confused by the code below. But generally speaking the render method will execute the command and return the page that should be displayed next. For instance if I have a command that is going to do a checkout, I will generally end the method with a
Code:

return builtinHandler.render(Command.WI_CHECKOUT.getCommand(), reqCtx)

This will perform the checkout and by default invoke the jsp to display the activity being checked out
_________________
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
zudduz
PostPosted: Mon Aug 10, 2009 3:49 am    Post subject: Reply with quote

Newbie

Joined: 07 Aug 2009
Posts: 2

I believe I was able to figure it out when I found the JSPViewer class. It's functions line up with strings being passed in.
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 » BuiltinHandler.render(String command, RequestContext ctx)
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.