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 » General IBM MQ Support » CreationTime parameter for Filter when using ProcessInstance

Post new topic  Reply to topic
 CreationTime parameter for Filter when using ProcessInstance « View previous topic :: View next topic » 
Author Message
humxa
PostPosted: Wed Nov 23, 2005 1:21 pm    Post subject: CreationTime parameter for Filter when using ProcessInstance Reply with quote

Newbie

Joined: 23 Nov 2005
Posts: 8
Location: st. louis

Can I use the CreationTime parameter when setting the value of 'filter' to specify for example workflow items older than 60 days? What would the syntax be for that?

ex.: String filter = "PROCESS_TEMPLATE_NAME = '" + templateName + "' + CREATION_TIME < '" + ???? + "' " ;


Thanks!
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Nov 23, 2005 5:43 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Remember that all MQ date and time information is in UTC

Back to top
View user's profile Send private message Send e-mail
humxa
PostPosted: Wed Nov 23, 2005 8:36 pm    Post subject: Reply with quote

Newbie

Joined: 23 Nov 2005
Posts: 8
Location: st. louis

Thank you for the response! Just like I'm a "newbie" to this site, I'm the same when it comes to MQ. I understand you to say the date/time info is in Coordinated Universal Time. So, is there a solution to my task at hand? Since this would be a regularly performed Java application, I wouldn't be able to use a hard coded date.

Thanks.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Nov 25, 2005 6:04 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

This is a Java problem. You have to set the timezone on the formatter when parsing/formatting the date and time.

I might go the easier way and just set the value of the long to mark date and time.... but then that's up to you .... It makes searching a little bit more difficult...

Enjoy
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » CreationTime parameter for Filter when using ProcessInstance
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.