ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Need info on calling a java prog from an automatic activity

Post new topic  Reply to topic Goto page Previous  1, 2
 Need info on calling a java prog from an automatic activity « View previous topic :: View next topic » 
Author Message
raghav
PostPosted: Mon Jun 20, 2005 7:12 am    Post subject: Reply with quote

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
View user's profile Send private message
jmac
PostPosted: Mon Jun 20, 2005 7:19 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
hos
PostPosted: Tue Jun 21, 2005 1:02 am    Post subject: Reply with quote

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
View user's profile Send private message
raghav
PostPosted: Thu Jun 30, 2005 6:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
hos
PostPosted: Fri Jul 01, 2005 1:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Need info on calling a java prog from an automatic activity
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.