Author |
Message
|
sanathkumar |
Posted: Tue Jun 28, 2005 12:34 pm Post subject: Activity force Restart - Expirty Time problem |
|
|
Apprentice
Joined: 01 Jul 2003 Posts: 27
|
Hi
I have a situation like we set up the expirty time for the activity assume that 7 days. We set up this expiry time through container variable in Seconds.
After 2 days I need to change one of the container variable in MQ Workflow for that activity(we are storing Email address in one of the container varibale if that person left the company and need to change email address to somebody). When I do the forceRestart of the activity by updating the container variable and recalculate the expiry time and update the expiry time through container variable I am not getting the expiry time for the force restarted work item but I am able to see the updated expiry time value in the container variable.
Why it is happening like that?. Is forceRestart will not set the expiry time reset for that activity?. I am doing force restart thourgh the "WebClient" to change the container variables.
Appreciate any alternative solutions. Help need immediately as this the Issue on PRODUCTION.
Cheers,
sanath |
|
Back to top |
|
 |
Maverik |
Posted: Tue Jun 28, 2005 11:20 pm Post subject: |
|
|
Apprentice
Joined: 14 Jun 2005 Posts: 27
|
Hi sanath,
I had asked some question regarding the setting of expiry time on this forum and had come to know that expiry time cannot be set using java API's. I'm not sure about setting the expiry time in a variable and checking that...this might be possible.
Also if you are force restarting, r u doing a checkIn ? i.e how are u trying to update the field...is the workitem remaining in the same Activity or going to the next ?? |
|
Back to top |
|
 |
hos |
Posted: Wed Jun 29, 2005 3:59 am Post subject: |
|
|
Chevalier
Joined: 03 Feb 2002 Posts: 470
|
|
Back to top |
|
 |
sanathkumar |
Posted: Wed Jun 29, 2005 5:56 am Post subject: |
|
|
Apprentice
Joined: 01 Jul 2003 Posts: 27
|
Hi
I am not doing check-in. I am doing forcerestart of the same activity using webclient. If we do forcerestart in webclient that will allow us to change container values.
After I did force restart my expiry timer is not resetting and workitem remaining in the same activity and container values are changed.
According to the tech note if it is not possible to reset the timer once the timer has been started then what is the alternative solution for this problem.
Appreciate any solutions for this problem.
sanath. |
|
Back to top |
|
 |
jmac |
Posted: Wed Jun 29, 2005 6:31 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Sanath:
One thing I might try, but no guarantee it will work....
Instead of forceRestart do forceFinish. Have the activity alone inside a block, when you forrceFinish the activity, make sure that the block fails its exit condition. If you do the mapping properly, I don't see why this wouldn't work.... but I've never tried it. If you try this please report back the results. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
sanathkumar |
Posted: Wed Jun 29, 2005 1:15 pm Post subject: |
|
|
Apprentice
Joined: 01 Jul 2003 Posts: 27
|
Hi
Thanks for ur suggestion. I will suggest to change the process flow to include that activity in BLOCK with exit condition.
I tested by creating test process and it is working fine. Thanks a lot for ur suggestion.
Cheers,
sanath |
|
Back to top |
|
 |
|