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 » WebSphere Message Broker (ACE) Support » UDP in a Subflow

Post new topic  Reply to topic
 UDP in a Subflow « View previous topic :: View next topic » 
Author Message
Senthamizh
PostPosted: Thu Jul 12, 2012 5:17 am    Post subject: UDP in a Subflow Reply with quote

Apprentice

Joined: 21 Dec 2009
Posts: 47

Hi,

We have 2 common subflows for logging and exception handling in our project and we planned to do a small update on these 2.
Note :- exeception handling flow inturn uses the logging subflow.

We planned to make a configurable property for the validation as some users dont want to validate their messgae under some logging circumstances.

I tried to use the UDP(External Variable) concept to update the logger subflow. It worked fine after i promoted the value to the mainflow so that i could change it in the bar file.

But since the same subflow is used in the exceptionhandling subflow, when i promote the property 2 levels up, it puts 1 besides the propertyname.

for example my UDP is validate. I have the validate option for logger flow and validate1 for the exception handling flow.

Since its validate1, the flow is always saying , "User defined attribute must specify an initial value expression"in the exception subflow while getting deployed

Probably if i bring that logger subflow to the mainflow, it will be work fine, but i dont want to change the exisitng flow too much.
Back to top
View user's profile Send private message
kash3338
PostPosted: Sun Jul 15, 2012 10:25 pm    Post subject: Re: UDP in a Subflow Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

Senthamizh wrote:
But since the same subflow is used in the exceptionhandling subflow, when i promote the property 2 levels up, it puts 1 besides the propertyname.


Yes true, this will happen because UPD with same name is not allowed, just like when you use the same subflow in your main flow twice (1 is appended at the end for the duplicate).

Senthamizh wrote:

Since its validate1, the flow is always saying , "User defined attribute must specify an initial value expression"in the exception subflow while getting deployed.


NO, there should not be any error. This error is not because of validate1. Is this attribute mandatory and if so have you specified a value? When you have same UDP twice, a 1 suffix occurs for one of the value but this error does not occur while deploying.


Ideally what will happen is, if you have two UDP's os same subflow, say validate and validate1, the value of validate alone will be taken in the flows. So a better approach is to have two different UDP's to handle this scenario and handle the UDP value inside your subflows.
Back to top
View user's profile Send private message Send e-mail
cociu_2012
PostPosted: Mon Jul 16, 2012 4:00 am    Post subject: Re: UDP in a Subflow Reply with quote

Acolyte

Joined: 06 Jan 2012
Posts: 72

kash3338 wrote:
Senthamizh wrote:
But since the same subflow is used in the exceptionhandling subflow, when i promote the property 2 levels up, it puts 1 besides the propertyname.


Yes true, this will happen because UPD with same name is not allowed, just like when you use the same subflow in your main flow twice (1 is appended at the end for the duplicate).
your subflows.


The solution is really easy:
If you want to set a unique value to the UDP on the bar file, and get propagated to all sublows, when you promote it from different places, drag&drop onto the firs promoted.
For example: if you have an UDP called System, and you promote it from the first subflow, it will appear with the name System. When you promote it from the second sublow into the same, drag it over the first promoted one.
It will solve your problem.
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 » WebSphere Message Broker (ACE) Support » UDP in a Subflow
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.