|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Propagate to label from JavaCompute node |
« View previous topic :: View next topic » |
Author |
Message
|
aceninja |
Posted: Wed Feb 14, 2024 8:08 am Post subject: Propagate to label from JavaCompute node |
|
|
 Newbie
Joined: 09 Jan 2024 Posts: 4
|
Hello, using ACE12, i would like to do a 'PROPAGATE TO LABEL' to a label node from within a JavaCompute node. Is this possible?
Couldn't find any documentation about this. There are some very old threads about this but I'm sure they contain outdated information.
Would really appreciate any help, thanks! |
|
Back to top |
|
 |
mgk |
Posted: Thu Feb 15, 2024 2:02 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
|
Back to top |
|
 |
aceninja |
Posted: Thu Feb 15, 2024 5:11 am Post subject: |
|
|
 Newbie
Joined: 09 Jan 2024 Posts: 4
|
Thanks a lot mgk!
I didn't know it was that simple. My problem is solved using the following within the evaluate method of an MbJavaComputeNode:
Code: |
this.getRoute("Label_Name").propagate(outAssembly); |
Very much appreciate the quick response, thanks again!  |
|
Back to top |
|
 |
mgk |
Posted: Thu Feb 15, 2024 5:51 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
Hi aceninja
I glad this helped solve your problem.
However, I would recommend checking that the MbRoute object is not null before calling propagate() on it.
The label node may exist now in your flow, but if someone changed the label name in the future without changing your code or reused your code in a different flow that did not have the label node then you would get a null pointer exception rather than a more useful error message of your creation
Kind regards, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
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
|
|
|
|