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 » Invalid command sent

Post new topic  Reply to topic
 Invalid command sent « View previous topic :: View next topic » 
Author Message
WayneLee
PostPosted: Wed Sep 29, 2004 10:22 am    Post subject: Invalid command sent Reply with quote

Newbie

Joined: 29 Sep 2004
Posts: 1

Hi, I want to create one customized command in workflow web clint, say myRefresh, and according to the steps in wf programming part 9,

I have myJSPViewer (extends JSPViewer class) class with a method of public ResponsePage myRefreshResponse(RequestContext context)
throws ClientException
{
return new ResponsePage(context, "/forms/ListViewer.jsp");
}

And I have myCommandHandler ( which extends GenericCommandHandler), with methods
//methods 1.
public RequestContext myRefresh(RequestContext context)
{
//just do nothing;
return context;

}
//when implement the above method, web client complaining:
//Method com.manpower.integration.workflow.webclient.
//TestMyCommandHandler.myRefresh(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) not found.

//method 2:
public void myRefresh(HttpServletRequest req, HttpServletResponse resp)
//public RequestContext myRefresh(HttpServletRequest req, HttpServletResponse resp)
{
//just do nothing;
//return getContext();
}

then, when I clich the refresh button, which associated with myRefresh command

the web client complain:
Invalid command sent: myRefresh

Note: in the webclient.properties file
CommandHandler mapped the myCommandHandler
and
DefaultViewer mapped to myJSPViewer.

Where is my wrong?
Back to top
View user's profile Send private message
Ratan
PostPosted: Thu Sep 30, 2004 2:26 am    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

BuiltinHandler looks for a method returning "ResponsePage" object. Neither of your two methods do that.
_________________
-Ratan
Back to top
View user's profile Send private message Send e-mail
MQSerious
PostPosted: Thu Sep 30, 2004 10:53 am    Post subject: Reply with quote

Acolyte

Joined: 29 Mar 2004
Posts: 68
Location: At Large

Try prefixing your custom commands with "x-" - recommended way to define custom commands and to future-proof the web client.
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 » Invalid command sent
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.