|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Update container of workitem |
« View previous topic :: View next topic » |
Author |
Message
|
deepa |
Posted: Tue Aug 08, 2006 3:05 am Post subject: Update container of workitem |
|
|
Newbie
Joined: 08 Aug 2006 Posts: 2
|
Hi,
I am new to MQ workflow.... I have created a simple process... but got stuck with one issue....
There is activity which has a java program assioscated with it. The program basically, upates the field in activity container and based on that field value we exit from the activity.
Now in the java program, i cant check out the work item, because its in running state.... In such situation - how do i update the container?
-Deepa |
|
Back to top |
|
 |
hos |
Posted: Tue Aug 08, 2006 4:44 am Post subject: |
|
|
Chevalier
Joined: 03 Feb 2002 Posts: 470
|
Well...... in a nutshell:
There is a fundamental difference between Starting an activity or Checking it out
If you have a Java program implementation your assumption is, that the activity is started, not Checked out.
In this case the Programming Guide describes the Container API that a (Java) program implementation uses to
- read input container data and
- set output container data
CheckOut() is used in a graphical environment where a user sets the container values and flags the activity as finished. No (Java) program is running here. |
|
Back to top |
|
 |
jmac |
Posted: Tue Aug 08, 2006 5:37 am Post subject: Re: Update container of workitem |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
deepa wrote: |
Now in the java program, i cant check out the work item, because its in running state.... In such situation - how do i update the container? |
Why is the activity in a running state? Who started it? Do you have it set as Automatic Start? If the activity is in a ready state you should be able to do your checkout/checkin. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
deepa |
Posted: Tue Aug 08, 2006 9:35 pm Post subject: |
|
|
Newbie
Joined: 08 Aug 2006 Posts: 2
|
Hi,
Yes, the activity is auto start.
Is there a way to update container while the workitem is in running state?
-Deepa |
|
Back to top |
|
 |
kotha |
Posted: Wed Aug 09, 2006 6:25 pm Post subject: |
|
|
Partisan
Joined: 12 Mar 2005 Posts: 333
|
When a work item is in running state, you cannt update the container BUT when you restart that work item, you may update container manually. This is not a suggested way to update the container. I suggest you understand the business process first and design the flow for the needs. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|