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 » Update container of workitem

Post new topic  Reply to topic
 Update container of workitem « View previous topic :: View next topic » 
Author Message
deepa
PostPosted: Tue Aug 08, 2006 3:05 am    Post subject: Update container of workitem Reply with quote

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
View user's profile Send private message
hos
PostPosted: Tue Aug 08, 2006 4:44 am    Post subject: Reply with quote

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
View user's profile Send private message
jmac
PostPosted: Tue Aug 08, 2006 5:37 am    Post subject: Re: Update container of workitem Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
deepa
PostPosted: Tue Aug 08, 2006 9:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
kotha
PostPosted: Wed Aug 09, 2006 6:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
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 » Update container of 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.