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 » Sorting Work item based on Date Received

Post new topic  Reply to topic
 Sorting Work item based on Date Received « View previous topic :: View next topic » 
Author Message
yworkflow
PostPosted: Mon Jan 12, 2004 10:57 am    Post subject: Sorting Work item based on Date Received Reply with quote

Newbie

Joined: 29 Aug 2003
Posts: 4

Dear Friends,

I wanted to sort all the workitem based on received date. I tried sorting using sort criteria and it is working fine.

Item take some time (2-5 days) before it gets added to workflow. So received date of workitem is differed by 2-5 days. It differ item to item. If I do sorting by received date it won't be correct (as it represent date when item came to workflow and not the actual date).

Is there any way to set date received for work item?

I have solution ready which keep actual date into container and java code use it and sort based on actual date. Performance result says solution is taking much more time compare to build in SORT Criteria of workflow.

Any help/suggestion is appreciated.
Back to top
View user's profile Send private message
vennela
PostPosted: Mon Jan 12, 2004 11:12 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Quote:
Item take some time (2-5 days) before it gets added to workflow.

What do you mean.
Where is it created?
What do you mean by actual date
Back to top
View user's profile Send private message Send e-mail Visit poster's website
yworkflow
PostPosted: Mon Jan 12, 2004 11:24 am    Post subject: Reply with quote

Newbie

Joined: 29 Aug 2003
Posts: 4

Initial item came into ORACLE database. It take some time for intial process (2-5 days). Once it is over batch program pick up the rows from ORACLE, generate XML and put it in workflow.

So workitem is coming after 2-5 days it is originally received. As a result received date of workflow is 2-5 days newer. I want to set this received date to original date.


P.S. Original Received Date = Actual date when item received in ORACLE
Workflow Received Date = Original Date + (2-5 Days)
Back to top
View user's profile Send private message
vennela
PostPosted: Mon Jan 12, 2004 11:36 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Looks like you don't have much other choice other than this
Quote:
I have solution ready which keep actual date into container and java code use it and sort based on actual date. Performance result says solution is taking much more time compare to build in SORT Criteria of workflow.


Yes, it is resource intensive and perfomance may degrade.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sshaker
PostPosted: Mon Jan 12, 2004 1:08 pm    Post subject: Reply with quote

Disciple

Joined: 20 Sep 2002
Posts: 185

hi
try pushing the data container value into description and sort on the description or store the data container value (THE date) into global container and sort in your client application. hope this helps.. !

regards
_________________
shaker
Back to top
View user's profile Send private message
ucbus1
PostPosted: Tue Jan 13, 2004 8:41 am    Post subject: Reply with quote

Knight

Joined: 30 Jan 2002
Posts: 560

I agree with sshaker and thats how we do it.
We get applications from users say date 01/01/2004, scanned on 01/02/2004, then loded into database on 01/03/2004, then we trap the date 01/01/2004 in our data container and process them sorting on the date.
Back to top
View user's profile Send private message Send e-mail
sshaker
PostPosted: Tue Jan 13, 2004 9:29 pm    Post subject: Reply with quote

Disciple

Joined: 20 Sep 2002
Posts: 185

Hi
the same is discussed in the best practices document. i highly recommend reading of this document

regards
_________________
shaker
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 » Sorting Work item based on Date Received
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.