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 » Modify data structure for existing process instances

Post new topic  Reply to topic
 Modify data structure for existing process instances « View previous topic :: View next topic » 
Author Message
HeuguetS
PostPosted: Tue Jan 16, 2007 11:54 pm    Post subject: Modify data structure for existing process instances Reply with quote

Newbie

Joined: 16 Jan 2007
Posts: 2
Location: Singapore

Hello,

I need to add a field to a data structure and I would like this modification to apply to the instances already present in the flow. Is there a command or an API to do this kind of operation ?

Until now, I have re-input manually all the processes when the data structure was changing . I'm looking for ways to automate this tedious process...

Thank you all for your help,
HeuguetS
Back to top
View user's profile Send private message
tsrisudh
PostPosted: Wed Jan 17, 2007 3:01 am    Post subject: Reply with quote

Centurion

Joined: 11 Aug 2005
Posts: 113

Well there is no easy way to do this, for the same process, i have written a program which queries each instance remembers that data, terminates that instance and then recreates the same with new data added.

Unfortunately there is no easy way around.
_________________
Srisudhir Tadepalli
Back to top
View user's profile Send private message Yahoo Messenger
jmac
PostPosted: Wed Jan 17, 2007 7:17 am    Post subject: Reply with quote

Jedi Knight

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

I agree no easy way to do this, and in fact you can never duplicate the exact instance that was running since there is no API to expire an activity. If you need to do this you would use the InstanceMonitor and ActivityInstance objects.

GOOD LUCK
_________________
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
hos
PostPosted: Thu Jan 18, 2007 12:05 am    Post subject: Reply with quote

Chevalier

Joined: 03 Feb 2002
Posts: 470

Hi,

if you have the situation that the container structure often changes, you should consider to do part of the container handling in your program logic:
define a 'selfdescribing' container member, i.e. a string field that contains name - value pairs and assign the values to the variables that otherwise would have been filled by a MQWF container API call.
Also keep in mind that subprocesses use late binding, that means they do not get instantiated until they are invoked.
Back to top
View user's profile Send private message
HeuguetS
PostPosted: Mon Jan 29, 2007 5:31 pm    Post subject: Reply with quote

Newbie

Joined: 16 Jan 2007
Posts: 2
Location: Singapore

Hi,

thank you all for your insight. It seems I cannot skip writting a migration program
Back to top
View user's profile Send private message
jmac
PostPosted: Mon Jan 29, 2007 7:01 pm    Post subject: Reply with quote

Jedi Knight

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

For your situation, I believe Volker's suggestion to use the self describing member is the one that would be easiest to implement. You would still need to write some code, but this should be doable.
_________________
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
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 » Modify data structure for existing process instances
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.