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 » Process - Data structure associativity

Post new topic  Reply to topic
 Process - Data structure associativity « View previous topic :: View next topic » 
Author Message
koko
PostPosted: Wed May 04, 2005 7:20 am    Post subject: Process - Data structure associativity Reply with quote

Master

Joined: 26 Sep 2003
Posts: 206

I have a process "Process 1" with "NameStruct". This NameStruct has two fields , FirstName and LastName .

Now I want to come up with a "Process 2" which uses the same "NameStruct". But here I would like to add a new member, MiddleName to the "NameStruct".

Can I do something like this where all Process 1's use a Namestruct with two fields and all process 2's use the Namestruct with three fields??

Or is it better to come up with a new datastructure ??
I tried to import the flow and it seems to be working as I wanted it. But I am not sure if it has any glitches which show up later.
_________________
Thanks

Koko
Back to top
View user's profile Send private message
kotha
PostPosted: Wed May 04, 2005 7:46 am    Post subject: Re: Process - Data structure associativity Reply with quote

Partisan

Joined: 12 Mar 2005
Posts: 333

koko wrote:
Can I do something like this where all Process 1's use a Namestruct with two fields and all process 2's use the Namestruct with three fields??


i dont understand the above line. where do you mention?.

My suggestion: create another data structure with process1's data structure as a variable. and assign it process2.
Back to top
View user's profile Send private message
vennela
PostPosted: Wed May 04, 2005 8:12 am    Post subject: Re: Process - Data structure associativity Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

koko wrote:

I tried to import the flow and it seems to be working as I wanted it. But I am not sure if it has any glitches which show up later.


Export the FDL from runtime and see how many copies of datastructures it has?

It might work, because Process1 is using two of the three field and Process2 is using 3 of the 3 files. But it is not a good idea to implement this I guess.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Ratan
PostPosted: Wed May 04, 2005 8:19 am    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

Quote:
It might work, because Process1 is using two of the three field and Process2 is using 3 of the 3 files. But it is not a good idea to implement this I guess.


It will work for process1 as venny said. Also it is a well adopted practice and I think these extra attributes that are not used are referred to as 'fillers'. This helps you to have inflight processes get new data if needed.
_________________
-Ratan
Back to top
View user's profile Send private message Send e-mail
koko
PostPosted: Wed May 04, 2005 10:29 am    Post subject: Reply with quote

Master

Joined: 26 Sep 2003
Posts: 206

As I expected the datastructure does have three fields.

But my question is more in relation with process creation.

I am creating and starting the instances by putting a msg on qs.

Can I create the process1 by putting a XML msg with two fields and process 2 with xML msg with three fileds??

I checked the thinclient and the two processes have their own fields.

Ratan,

Do you think I will do fine here
_________________
Thanks

Koko
Back to top
View user's profile Send private message
Ratan
PostPosted: Wed May 04, 2005 11:23 am    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

Quote:
Can I create the process1 by putting a XML msg with two fields and process 2 with xML msg with three fileds??


Yes, As long as both your processes have same data structure with 3 fields.
_________________
-Ratan
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 » Process - Data structure associativity
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.