Author |
Message
|
fenway_frank |
Posted: Wed Sep 11, 2013 6:29 am Post subject: Startup/Bootstrap flow |
|
|
 Apprentice
Joined: 21 Oct 2011 Posts: 43 Location: Boston, MA USA
|
Hello..
I have a need to “pre-load” the global cache that comes with WMB with results from a Registry Lookup. Ideally, this flow would start processing immediately upon EG startup, akin to a bootstrap procedure.
I’m aware of the messageflow and application “start mode” options (maintained, manual, auto) but that only establishes the app/flow run state disposition and doesn't actually initiate the flow execution.
Therein lies my situation, i don’t want an input node to jump-start the flow and just want to simply wire the RegistryLookup node to a few compute nodes and read, interpret, and ultimately load the cache.
Have others had similar requirements? |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Sep 11, 2013 6:38 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
A Timernode can be made to run when the flow initially starts. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Sep 11, 2013 6:38 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
mqjeff |
Posted: Wed Sep 11, 2013 6:40 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You could write a Java User-Defined Node that would not require a real input, and would set a flag in the constructor, that determined whether it would propagate a message or not.
So the EG starts up, the Java class gets instantiated, the flag gets set to "true". The run method of the UDN gets called, it determines that the flag is "true", and propagates an empty BLOB message to the out terminal, and then sets the flag to false. |
|
Back to top |
|
 |
fenway_frank |
Posted: Wed Sep 11, 2013 7:32 am Post subject: |
|
|
 Apprentice
Joined: 21 Oct 2011 Posts: 43 Location: Boston, MA USA
|
thanks for the quick replies.
i did not consider timerNode but will give it a closer look. we've used JCN onInit() callback methods in the past but difference here is propagating an empty BLOB to out terminal. will try both suggestions. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Sep 11, 2013 8:01 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
fenway_frank wrote: |
we've used JCN onInit() callback methods in the past but difference here is propagating an empty BLOB to out terminal. |
Two differences.
I'm not talking about a JavaCompute node. I'm talking about a User Defined Node, that happens to be written in Java. |
|
Back to top |
|
 |
|