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 » Restarting Workitem

Post new topic  Reply to topic
 Restarting Workitem « View previous topic :: View next topic » 
Author Message
mqwhelp
PostPosted: Thu Feb 14, 2002 8:01 am    Post subject: Reply with quote

Voyager

Joined: 20 Dec 2001
Posts: 85
Location: TCS

Hi,

I have a process with an activity in it.
When I have restarted the workitem I would like to set some new value in the container..
I have used workitem.forceRestart2(incntr); where incntr is input container..
But the new value didn't come in effect when workitem is restarted..

Please suggest..

Back to top
View user's profile Send private message Send e-mail
jmac
PostPosted: Thu Feb 14, 2002 9:51 am    Post subject: Reply with quote

Jedi Knight

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

This works for me... So I will need more information

_________________
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
mqwhelp
PostPosted: Thu Feb 14, 2002 10:24 am    Post subject: Reply with quote

Voyager

Joined: 20 Dec 2001
Posts: 85
Location: TCS

I have set some initial value say notificationtime using container for activity before creation of Process Instance..
I am able to set this quite happily using
processTemplates[3].createAndStartInstance2(); method..

Now I have started my activity...with
workitem.start();
after that it goes in running state..Now I call following lines of code..

incntr = workitem.inContainer();
cntr = workitem.outContainer();
System.out.println("Enter the new Time for Notification");
String input = din.readLine();
int inp = new Integer(input).intValue();
cntr.setLong("notificationtime",inp) ;
workitem.forceRestart2(incntr);
System.out.println("New Time = "+ incntr.getLong("notificationtime"));


I found the same old time which was set foe creating process instance
Please tell me where did I go wrong..?
Back to top
View user's profile Send private message Send e-mail
jmac
PostPosted: Thu Feb 14, 2002 12:29 pm    Post subject: Reply with quote

Jedi Knight

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

This looks OK to me... I'd contact IBM

_________________
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
mqwhelp
PostPosted: Fri Feb 15, 2002 11:07 am    Post subject: Reply with quote

Voyager

Joined: 20 Dec 2001
Posts: 85
Location: TCS

Yes,John Did you get any solution for the problem...
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 » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Restarting Workitem
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.