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 » urgent - Design Question

Post new topic  Reply to topic Goto page 1, 2  Next
 urgent - Design Question « View previous topic :: View next topic » 
Author Message
DragonFist
PostPosted: Tue Feb 03, 2004 12:07 pm    Post subject: urgent - Design Question Reply with quote

Acolyte

Joined: 11 Nov 2003
Posts: 52

hello all
I have a requirement, depending on the incoming data it should be directed to a particular Department manager(d1/d2/d3). Say

I have three levels of approval level r1, r2, r3. r1 being the lowest level, next level r2,top level being r3. r1 is supposed to start the process, then flow goes to r2 and from there to r3 depending on the actions. If r1 cannot start the process in a certain period of time, it should be transferred to r2, and then from there to r3. If r2 cannot start the process, it will be transferred to r3 which is the final stage of the process flow. Also at level r1, i have 3 depts d1,d2,d3. Depending on the data submitted by the user of d1 it should be forwarded to d1/d2/d3 at r1 level. either one of them can start the process. if r1 starts the process it shud go to r2 .. if r2 starts the process it shud go to r3... if r3 starts the process its the final stage. how to acheive this type of functioality. Did anybody faced this situtaion. Any pointers on how to solve this problem. I dont know whether i am making sense or not.

thx in advance
_________________
DragonFist
Back to top
View user's profile Send private message
kriersd
PostPosted: Tue Feb 03, 2004 12:48 pm    Post subject: Reply with quote

Master

Joined: 22 Jul 2002
Posts: 209
Location: IA, USA

I beilieve you can accomplish this via the use of expiring the activity, which is assigned to R1 after a given amount of time. Then set a transison condition "IF EXPIRED" to the next activity, wich could be assigned to R2.

I havn't tried this before, but it should work.

Good luck.
dk
_________________
Dave Krier

IBM WebSphere MQ Workflow V3.4 Solution Designer
Back to top
View user's profile Send private message
vennela
PostPosted: Tue Feb 03, 2004 1:09 pm    Post subject: Reply with quote

Jedi Knight

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

The expiry solution suggested above works fine.

Quote:
Also at level r1, i have 3 depts d1,d2,d3. Depending on the data submitted by the user of d1 it should be forwarded to d1/d2/d3 at r1 level.

You can do this by dynamic staff assignment. You can use from container feature and assign work items based on the input container information for that activity.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
DragonFist
PostPosted: Tue Feb 03, 2004 1:41 pm    Post subject: Reply with quote

Acolyte

Joined: 11 Nov 2003
Posts: 52

venny and dave, thanx for ur replies. I understood what u r trying to say. But My requirement is as follows. I have staff roles defined as director, manager, time keeper. Director is the top level, time keeper second and manager being the last one. At the manager level, there are there departments with one manager for each say one for finance, one for hr and one for manufacturing. I defined psuedo roles for the above in staffpersons as manager_hr, manager_fin, manager_timekeeper. Can we assign persons to the psuedo persons that i defined earlier, as the managers might be changing from time to time. wat i m trying to say is can we populate these with individual person names say mark is the manager of hr, for manager_hr mark should type in his own user id instead of manager_hr and log in and see the worklists. Is this posibble. If not wat wud be the better solution. or instead of defining a manager staffrole do i have to define manager_hr, manager_fin, manager_timekeepers as staffroles and populate these roles with individual user names. I am a little confused here. Any help would be appreciated.
_________________
DragonFist
Back to top
View user's profile Send private message
Ratan
PostPosted: Tue Feb 03, 2004 4:20 pm    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

Quote:
Can we assign persons to the psuedo persons that i defined earlier, as the managers might be changing from time to time.


You can have Person the authorization to the 'pseudo person''s workitems. This way when mark can log on with his own userID and be able to see 'manager_hr' 's workitems. To be able to work on them Mark should transfer the workitem to himself first and then work on it(You can hide the implementation of transfer from Mark though).
_________________
-Ratan
Back to top
View user's profile Send private message Send e-mail
DragonFist
PostPosted: Wed Feb 04, 2004 1:25 pm    Post subject: Reply with quote

Acolyte

Joined: 11 Nov 2003
Posts: 52

Thank u guys for all the inputs..
I was successfully able to route the messages to the right persons. but the only concern is if some body does not complete the process in time, then it should be transferred to the next activity... i mean to the next person incharge. But the problem is, there is a transition condition inbetween the two activities, which should be satisfied to checkout the activity.. so how to transfer in this type of situation... as the user has to set the transition condition property to yes so that it moves to the next level, at the same level if the user does not act on the activitity in cetain period of time it should move to the next level( automatic). I m a little confused on setting the expirations and how to transfer it to the next level as the transition condition is not satisfied if the first user does not the value to yes. Any pointers on this....

thx
_________________
DragonFist
Back to top
View user's profile Send private message
jmac
PostPosted: Wed Feb 04, 2004 1:30 pm    Post subject: Reply with quote

Jedi Knight

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

If I understand you correctly your condition should look something like this:

Code:
  MoveOnToNextActivity = "YES" OR _State() = _Expired

_________________
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
Ratan
PostPosted: Wed Feb 04, 2004 1:33 pm    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

Ur transition condition should be

(URCondition) OR _ActivityName._state() = EXPIRED

I am not sure about the exact syntax for '_ActivityName._state() = EXPIRED'. Check on it.
_________________
-Ratan
Back to top
View user's profile Send private message Send e-mail
DragonFist
PostPosted: Thu Feb 05, 2004 7:20 am    Post subject: Reply with quote

Acolyte

Joined: 11 Nov 2003
Posts: 52

The condition _state ()= _Expired is actually making it disappear from the worklist of the next level. I set the time for 1 min for testing and tried to check it.. its just not there on the wrklist of the next user. Am i setting the condition true.
isApproved="yes" or _State()= _Expired
For expiration, i set the time as 1 min under exit button and also selected automatic exit option. I dont know why its not transferring, if its transferring where is it going, as I dont see it on the next levels worklist. um.. so any suggestions where i am going wrng..

thx in advance
_________________
DragonFist
Back to top
View user's profile Send private message
jmac
PostPosted: Thu Feb 05, 2004 7:50 am    Post subject: Reply with quote

Jedi Knight

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

You need to give a more detailed explanation. You are saying that
Quote:
I dont know why its not transferring

There will be NO transfer in this case. The current activity will end, and the activity on the target end of the control connector indicating _State() = _Expired will become ready. So of course the activity which expired is no longer going to be on the worklist, unless you have changed the value for Keep Finished Workitems
_________________
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
DragonFist
PostPosted: Thu Feb 05, 2004 8:44 am    Post subject: Reply with quote

Acolyte

Joined: 11 Nov 2003
Posts: 52

Jmac
I understood wat u said by experimenting. My requirement is, At the first level the user has to approve it in a certain period of time.. if he does not act on it then it should be transfered to the next level of approval( to the next person who is incharge of the person .. say if manager does not approve it in time, then it should go to his supervisor.. also i wonder this functionality should be represented as a process flow... as in case if user1 approves it then it should go to user2 to review it and approve.. if user1 does not act on it in time, then it should go to user2 for approving n so on). am i making sense... if so then _state() = _Expired is gonna end the workitem there itself rather than transferring it to the next level of organization for approval.. Any pointers..

thx in advance
_________________
DragonFist
Back to top
View user's profile Send private message
jmac
PostPosted: Thu Feb 05, 2004 8:52 am    Post subject: Reply with quote

Jedi Knight

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

DragonFist wrote:
My requirement is, At the first level the user has to approve it in a certain period of time.. if he does not act on it then it should be transfered to the next level of approval( to the next person who is incharge of the person .. say if manager does not approve it in time, then it should go to his supervisor.. also i wonder this functionality should be represented as a process flow


If I am understanding you correctly, the only way to make this happen without a lot of custom coding, would be to represent your requirements exactly as you stated them in the process model.
_________________
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
DragonFist
PostPosted: Tue Feb 10, 2004 6:54 am    Post subject: Reply with quote

Acolyte

Joined: 11 Nov 2003
Posts: 52

So if the workitem is assigned to a Psuedo role, it can be transferred to the persons who belong to that psuedo role. Instead of doing it manually with the transfer button.. can any body explain how to do it automatically or provide an example on how it can be directly presented to him as his workitem instead of showing the Psuedo role as the owner and transferring it to him. Is there an api or something else to hide the transfer from the person and see it directly on his worklist.

thx in advance
_________________
DragonFist
Back to top
View user's profile Send private message
jmac
PostPosted: Tue Feb 10, 2004 7:02 am    Post subject: Reply with quote

Jedi Knight

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

I can tell you that when I use a Virtual User, it is generally because I don't want the user to even see the worklist. In this case the user simply has a button which says GetNextWorkitem. Upon pusing this button, a transfer of the next item on the Virtual User's worklist is made to the real user. So the transfer is not apparant to the EndUser. The same could be done with a "Pull" type worklist, even the existing Thin Client, by simply replacing the Checkout (start) button with one that executes a custom command which does a transfer followed by a checkout
_________________
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
DragonFist
PostPosted: Tue Feb 10, 2004 7:54 am    Post subject: Reply with quote

Acolyte

Joined: 11 Nov 2003
Posts: 52

Jmac
wat u r saying is right. But wat i have to do is.. whenever a workitem comes on to a virtual user (Psuedo User) it will also be appearing on the person assigned to that virtual user, but he has to do it by transferring it by clicking a button. But to me whenever a user logson it should just appear on his list as his item instead of pressing any buttons... also when I checked in ListViewer.JSP all i see is a java script for popping up the window and calling the context.get("x-transferITem",oid) method being called. Instead of that i need to how they r writing the code to transfer the workitem which should be in RequestContext bean class. so if any body can provide me on how to get there. it would be great. if requestcontext is an api, i dont see the doc for it, if it is a bean class written where can i find the code for it. Am i going right... just need some advice

thanx in advance
_________________
DragonFist
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » urgent - Design Question
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.