|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Reach Node properties from ESQL? |
« View previous topic :: View next topic » |
Author |
Message
|
K_A |
Posted: Fri Dec 03, 2004 7:42 am Post subject: Reach Node properties from ESQL? |
|
|
Apprentice
Joined: 10 Nov 2004 Posts: 32
|
Hi all
I want to develop a common subflow, to log things to a user database. There is a general log-table that I wish to maintain.
I want to make the subflow general in the way that a certain part of the content to be logged I want to have as a property on the subflow (e.g the developer of the main-flow should have to give the content as a property on the node).
How to do this? |
|
Back to top |
|
 |
martinrydman |
Posted: Sat Dec 04, 2004 9:20 am Post subject: |
|
|
 Centurion
Joined: 30 Jan 2004 Posts: 139 Location: Gothenburg, Sweden
|
Hi,
to the best of my knwledge, this isn't possible, although it'd be neat. I usually pass data to the subflow using the Environment tree. Not as transparent, but it gets the job done
/Martin |
|
Back to top |
|
 |
kirani |
Posted: Sun Dec 05, 2004 11:44 pm Post subject: Re: Reach Node properties from ESQL? |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
K_A wrote: |
I want to have as a property on the subflow (e.g the developer of the main-flow should have to give the content as a property on the node).
|
What property do you want to expose? Can you explain?
Not sure if promoting property on nodes within subflow would help you. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
K_A |
Posted: Thu Dec 09, 2004 1:21 am Post subject: Properties |
|
|
Apprentice
Joined: 10 Nov 2004 Posts: 32
|
I want to have a common subflow for Logging to a common log table (Oracle). This subflow contains a Database node. Also it contains some try-catch stuff to take care of db access errors.
Now, In various mainflows I would like to use this subflow to log things, but the content of the log varies with the main flows.
Example: The log table has the columns
- "Invoking main flow name"
- "Timestamp"
- "Log message"
The first main flow would invoke the subflow and try to "call the subflow" with flow name = "FLOW A", while the next Mainflow would like to "call the subflow" with flow name = "FLOW B". Similarly the "Log Message" could differ depending on main flow, for instance "Message received" and "message sent to queue xyz"
To maintain a good design I would like to have "Invoking Flow Name" and "Log Message" as Properties on the subflow, so that when I have dragged the subflow into the workspace of the main one I would then like ti right-click the Subflow icon, select Properties, and be able to enter the values for "Invokling main flow name and Log message.
If this is not possible I need to preceede every occurence of my log subflow with a compute node, where I set the values of the above in parameters under Environment (that's the best way I can find).
I think this is a clumsy solution and that's why I ask, is there a better way? |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|