|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
Need info on calling a java prog from an automatic activity |
« View previous topic :: View next topic » |
Author |
Message
|
raghav |
Posted: Mon Jun 20, 2005 7:12 am Post subject: |
|
|
Novice
Joined: 15 Apr 2005 Posts: 24
|
Actually when the activity was automatic, work item / process instance was getting teminated
And now when I had changed the activity from automatic to manual, state of the work item is in Ready. |
|
Back to top |
|
 |
jmac |
Posted: Mon Jun 20, 2005 7:19 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
What you are saying makes perfect sense.
Have you considered that the Automatic activity is ending and that is why the Instance goes away? _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
hos |
Posted: Tue Jun 21, 2005 1:02 am Post subject: |
|
|
Chevalier
Joined: 03 Feb 2002 Posts: 470
|
That's exactly the case. Independant from the fact that the script file exits with an error (e.g. authorzation failure). |
|
Back to top |
|
 |
raghav |
Posted: Thu Jun 30, 2005 6:43 pm Post subject: |
|
|
Novice
Joined: 15 Apr 2005 Posts: 24
|
Sorry for responding late. Please verify my understanding:
For an Automatic activity, irrespective of whether the script file (.sh file) has executed completely or not, the control comes out...and the activity is completed.
If so, I have a question here:
I presume that _RC='0' if the activity gets completed successfully and _RC <> '0' if the activity is not completed successfully.
If we have set an "Exit Condition" for the Automatic activity as "_RC=0", then would the control come out of the activity if _RC<>0(with the process instance getting terminated)..?
How do we actually control the automatic activity such that we determine whether the script/program is getting executed successfully OR not..? |
|
Back to top |
|
 |
hos |
Posted: Fri Jul 01, 2005 1:16 am Post subject: |
|
|
Chevalier
Joined: 03 Feb 2002 Posts: 470
|
Your actiivity implementation can set a container variable and you can use this variable in your exit condition. For instance instead of using the predefined variable _RC in your exit condition, just initialize your own container variable 'SUCCESS' with 'NO' and set it to 'YES' in your application. |
|
Back to top |
|
 |
|
|
|
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
|
|
|
|