Author |
Message
|
Meow |
Posted: Tue Jan 20, 2004 3:37 pm Post subject: Am i getting the promote property right? |
|
|
 Voyager
Joined: 25 Jun 2003 Posts: 95
|
This is the scenario
I have 3 message flows
1) flow A
2) subflow A
3) subflow_subflow A
I am performing database operation in subflow_subflow A. I am promoting the data source property of the compute node.
In subflow A when i click on promote property on "subflow_subflow A1" node i see 2 properties
subflow_subflow A Data Source -- what does this mean?
Data source--- what does this property represent?
First question: Do i have to promote both the properties in this "subflow A"
I have promoted both the properties and in my "flow A" now again i see
subflow A data Source -- what does this mean?
Data source -- what does this property represent?
Do i need to promote both the properties in this flow also?
I promoted both and supplied the DSN name it worked fine. but when i do not promote either of those i am getting the error "Must Specify a valid Data source name".
Can some one tell me where i can find documentation for this promote property?
Please let me know what i am doing is correct or not?
Thanks,
meow |
|
Back to top |
|
 |
Meow |
Posted: Wed Jan 21, 2004 8:12 am Post subject: |
|
|
 Voyager
Joined: 25 Jun 2003 Posts: 95
|
Can some one please confirm what i am doing is correct?
Thanks,
Meow |
|
Back to top |
|
 |
CoolDude |
Posted: Wed Jan 21, 2004 3:39 pm Post subject: |
|
|
Apprentice
Joined: 17 Jan 2004 Posts: 39
|
Since you are promoting the data source name to flow A. you need to promote the data source property of subflow A also.
If you just have subflow A and subflow_subflow A then you dont have to promote the data source property of subflow A. _________________ Correct Me from Wrong . If i am correct Appreciate Me  |
|
Back to top |
|
 |
Meow |
Posted: Fri Jan 23, 2004 5:28 am Post subject: |
|
|
 Voyager
Joined: 25 Jun 2003 Posts: 95
|
Is that true? I still have problems with promote property.
any suggestions plz
Thanks,
meow |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Jan 23, 2004 6:06 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I'm having a little trouble understanding what the difference between subflow A and subflow_subflow A is.
So let me try a different example to try and explain how to use the promote property.
I create a message flow called "mySubFlow", that has an InputTerminal connected to a Compute connected to an OutputTerminal.
The compute node makes a database connection, and I've added a DataSource to the Input section on the Compute node.
I then click on the Compute node in the Designer window, and choose 'Promote Property'. I select from the left-hand side the DataSource property of the Compute node that I want to promote, and I give it a name "myDataSource".
I then create a new message flow, called "myMainFlow". I add and MQInput Node. Then I drag "mySubFlow" from the list of message flows onto the Designer window. This then creates an instance of the subflow in myMainFlow, with the generic subflow icon and an input and output terminal. I hook up the out terminal from the MQInput node to the input of the subflow node. I then select the subflow node in myMainFlow, and choose Properties. There will then be a property listed called 'myDataSource'. Fill this in with the name of the DataSource you want to use. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Meow |
Posted: Wed Jan 28, 2004 9:34 am Post subject: |
|
|
 Voyager
Joined: 25 Jun 2003 Posts: 95
|
Can you Tell me what to do in a scenario like
I have a subflowA same as what you have mentioned. (input terminal -> compute node -> output terminal). I am making the database transactions in the compute node. I have not added the Datasource name to the input pane of the compute node as i want to promote that to main message flow level. I promoted the datasource and renamed it as "subflowA Data Source".
I have another subflowB (input terminal -> subflowA -> Compute node -> Ouput terminal). Here is where my confusion started. when i right click on the subflowA node and choose promote properties, i see two things
1) subflowA Data source ( i know i have promoted this)
2) Data Source (what is this?????)
So what i did is like promoted both the properties and now the names are
SubflowA Data Source and subflowB Data Source
I have a main message flow MainflowC(input node -> subflowB -> output node). when i see the properties of this flow i see both the promoted properties and i supply the datasource name in both the properties and it works fine.
If i do not promote subflowB Data source i am not able to make it work.
So i am of the assumption what i am doing is correct?
can someone please confirm? Also i have noticed that promote property does not work in visual debugger mode.
thanks,
meow |
|
Back to top |
|
 |
|