Author |
Message
|
mrgate |
Posted: Thu Mar 29, 2007 7:02 am Post subject: message formats conversion |
|
|
 Centurion
Joined: 28 Feb 2007 Posts: 141 Location: India
|
hey,
I have created a message flow project where my project includes three message sets and one message flow.
whats the aim of my project is to convert from xml to cwf and propagate through from one terminal and then convert from cwf to tds and then propagate from another terminal and what is the problem is that i am using mqinput node,mqoutput node,compute node where the entire conversion can be made through one compute node. can any one give me the code. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 29, 2007 7:21 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
|
Back to top |
|
 |
mrgate |
Posted: Thu Mar 29, 2007 7:26 am Post subject: |
|
|
 Centurion
Joined: 28 Feb 2007 Posts: 141 Location: India
|
the difference between this one and previous one is that this one is converting from xml to cwf and the resultant cwf is converted to tds where as previous one is converted both tds and cwf from xml only |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 29, 2007 7:27 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
rock wrote: |
the difference between this one and previous one is that this one is converting from xml to cwf and the resultant cwf is converted to tds where as previous one is converted both tds and cwf from xml only |
Fair point.
Why not convert XML->TDS? Why the intermediate CWF step? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mrgate |
Posted: Thu Mar 29, 2007 7:33 am Post subject: |
|
|
 Centurion
Joined: 28 Feb 2007 Posts: 141 Location: India
|
i am asking whether it is possible or not. If possible then please give me the solution. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 29, 2007 7:52 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
rock wrote: |
i am asking whether it is possible or not. If possible then please give me the solution. |
Just trying to work out your requirements to determine if there's a better way of achieving the same end....
AFAIK you can only build a single output tree, so to produce two output formats you need to clear it with PROPAGATE or similar. To have an intermediate step such as you intimate, you'd need to build the CWF tree in memory (Environment??) and then migrate that to the output tree.
Never tried it though. I'd use 2 compute nodes (or go straight to TDS). _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kimbert |
Posted: Thu Mar 29, 2007 11:57 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
You can easily do what you require in a single Compute node. Use CREATE ...PARSE specifying 'MRM' as the domain and supplying different parameters for SET, TYPE and FORMAT on each call.
But Vitor is correct - we can only help when you describe your requirements. You are doing something very strange - nobody has ever asked for this before. There are two possible reasons
a) You have a very special set of requirements. If so, we ( IBM and the WMB development team ) would very much like to hear about them.
b) You have missed an easier way to do what you need. If so this is the perfect place to learn a better way. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 29, 2007 3:40 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You can create as many different parser trees in Environment as you want.
It is somewhat more difficult to serialize more than one parser tree through an Output node... but I can think of a couple of different ways to do it - so it's definitely possible.
In fact, if one really were feeling frisky, one could do everything one wanted to in a single custom Input node. Make that node as big and messy a pile of spagetti as one wanted.
But that wouldn't be the proper thing to do for an enterprise solution. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|