Author |
Message
|
mqwhelp |
Posted: Thu Feb 14, 2002 8:01 am Post subject: |
|
|
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 |
|
 |
jmac |
Posted: Thu Feb 14, 2002 9:51 am Post subject: |
|
|
 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 |
|
 |
mqwhelp |
Posted: Thu Feb 14, 2002 10:24 am Post subject: |
|
|
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 |
|
 |
jmac |
Posted: Thu Feb 14, 2002 12:29 pm Post subject: |
|
|
 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 |
|
 |
mqwhelp |
Posted: Fri Feb 15, 2002 11:07 am Post subject: |
|
|
Voyager
Joined: 20 Dec 2001 Posts: 85 Location: TCS
|
Yes,John Did you get any solution for the problem... |
|
Back to top |
|
 |
|