Author |
Message
|
suraj |
Posted: Wed Mar 12, 2008 11:25 am Post subject: calling an external script from message flow |
|
|
Acolyte
Joined: 31 Jul 2007 Posts: 56
|
Hi...
I am working with WBIMB v6.1.
I want know whether there is a way to call a external script or say an .exe file from within a message flow. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Mar 12, 2008 11:39 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Yes.
By using Java mechanisms for launching external programs from within a Java Compute node.
Or by using MQ Triggering.
You really need to think about this about ten times before you actually do it, though. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
suraj |
Posted: Wed Mar 12, 2008 11:49 am Post subject: |
|
|
Acolyte
Joined: 31 Jul 2007 Posts: 56
|
I am doing this using javacompute node.
But is there no way one can do it using esql?
By using triggering, you mean that..put the message to a queue which triggers the script? |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Mar 12, 2008 12:04 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
suraj wrote: |
I am doing this using javacompute node. |
It's a really bad idea to do this at all.
suraj wrote: |
But is there no way one can do it using esql? |
Did you look for one? Did you find one?
No. ESQL can't do this.
suraj wrote: |
By using triggering, you mean that..put the message to a queue which triggers the script? |
I'm not sure what else "MQ Triggering" could mean.
It's a really bad idea to do this from within Broker! Unless there's a really good reason. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
suraj |
Posted: Wed Mar 12, 2008 1:32 pm Post subject: |
|
|
Acolyte
Joined: 31 Jul 2007 Posts: 56
|
hmm...
but it is very much required to call the script.
It is a part of my error handling flow, that is required to raise a remedy ticket, which is done by invoking a script. |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Wed Mar 12, 2008 1:50 pm Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
suraj wrote: |
hmm...
but it is very much required to call the script.
It is a part of my error handling flow, that is required to raise a remedy ticket, which is done by invoking a script. |
Is'nt it better to change you error handling flow.
I suggest in this error handling flow sending simple message to some queue.
Then you can write application which just reads messages from this queue and raise a remedy ticket. _________________ Marcin |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Mar 12, 2008 1:59 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
marcin.kasinski wrote: |
suraj wrote: |
hmm...
but it is very much required to call the script.
It is a part of my error handling flow, that is required to raise a remedy ticket, which is done by invoking a script. |
Is'nt it better to change you error handling flow.
I suggest in this error handling flow sending simple message to some queue.
Then you can write application which just reads messages from this queue and raise a remedy ticket. |
 _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
suraj |
Posted: Wed Mar 12, 2008 2:10 pm Post subject: |
|
|
Acolyte
Joined: 31 Jul 2007 Posts: 56
|
But that other application that reads the error message could be a java code as well right... So why cant we have it in the message flow itself?
I just want to know why is it bad to call the script from the message flow itself. Is there any particular reason? |
|
Back to top |
|
 |
|