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 » How to launch an xyz.bat batch from workflow activity ?

Post new topic  Reply to topic
 How to launch an xyz.bat batch from workflow activity ? « View previous topic :: View next topic » 
Author Message
Surfer
PostPosted: Thu May 12, 2005 4:46 pm    Post subject: How to launch an xyz.bat batch from workflow activity ? Reply with quote

Apprentice

Joined: 14 Jun 2002
Posts: 31

I made an automatic activity to launch an an xyz.bat from an activity but it doesnt work.
What should I do to make it run ?
Thank you in advance.
Back to top
View user's profile Send private message Send e-mail
elvis_gn
PostPosted: Thu May 12, 2005 9:35 pm    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Check if u have set the following:

1. Program can run unattended.

2. Check if the Path and file name is correct and the batch file exists in ur bin( if not bin, give the directory)

3. For testing let the program run in the foreground ( a black box will pop up everytime)

4. The user who owns the automatic activity should be logged into the workflow when the activity arrives, else it will remain in Ready state and not run automatically.

Hope it helps.
Back to top
View user's profile Send private message Send e-mail
Surfer
PostPosted: Fri May 13, 2005 1:30 am    Post subject: How to launch an xyz.bat batch from workflow activity ? Reply with quote

Apprentice

Joined: 14 Jun 2002
Posts: 31

Thank you for your response, I really appreciate.
I did that but and it doesnt work. The batch file is only calling "wordpad.exe" program and everything is specified. I tryed at first with only the correct path, and then put all of them in the bin directory.
Is there any other way to do it ?
Thank you in advance.
Back to top
View user's profile Send private message Send e-mail
elvis_gn
PostPosted: Fri May 13, 2005 2:30 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

I dont understand what u mean by "The batch file is only calling "wordpad.exe" program".....R u trying to call a wordpad from the batch file in ur workflow activity ??? If u r, then it is working....

Or let me suppose that u are able to call wordpad.exe and not *.batch files from the workflow activity....am i right ???

If ur wordpad is opening then i guess ur settings are right....

Confirm this and meanwhile i'll try it myself
Back to top
View user's profile Send private message Send e-mail
elvis_gn
PostPosted: Fri May 13, 2005 4:16 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Ok i tried it and it works for me.

Give the directory and the file name in the "Path and File name"

example=> D:/IBM/Workflow/test.bat

Leave the command line parameters empty.

I hope u have set is as an automatic start in the Program activity properties.

In the bat file set the path to ur java application or wordpad or whatever.

example =>
cd\
D:
javac testProgram.java
java testProgram


Try it out. It should work. If it dosen't i dont mind checking out ur fdl.
Back to top
View user's profile Send private message Send e-mail
Surfer
PostPosted: Fri May 13, 2005 9:42 am    Post subject: hi Reply with quote

Apprentice

Joined: 14 Jun 2002
Posts: 31

Hi,
thank you for your reponse.
But whenever thes activity before this one that is automatic(having the bat file as program) is finished, it says that the automatic activity is disabled.
PLease help.
Thank you
Back to top
View user's profile Send private message Send e-mail
vennela
PostPosted: Fri May 13, 2005 12:32 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

elvis_gn wrote:

4. The user who owns the automatic activity should be logged into the workflow when the activity arrives, else it will remain in Ready state and not run automatically.

Hope it helps.


This is not completely true.
You can run the PEA for that user and the automatic activity will start fine.
I think what elvis_gn means is that you should log in to the standard fat client.

@khandah

the problem is not clear enough. If you can explain the flow and the activities involved then it would be better.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Surfer
PostPosted: Sun May 15, 2005 3:24 am    Post subject: Hi all Reply with quote

Apprentice

Joined: 14 Jun 2002
Posts: 31

I followed what you said .
But I think I did something wrong. When I stopped workflow client and restarted it again and it works.
Thank you all of you.
Back to top
View user's profile Send private message Send e-mail
jmac
PostPosted: Sun May 15, 2005 5:32 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

The symptom you report usually means that the PEA was stopped. Did you close the PEA window somehow?
_________________
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
Surfer
PostPosted: Sun May 15, 2005 7:36 am    Post subject: Post subject: How to launch an xyz.bat batch from workflow a Reply with quote

Apprentice

Joined: 14 Jun 2002
Posts: 31

Yes I closed it.
When it runs a dow windows is opened showing messages (system.out) then I closed it.

Regards.
Back to top
View user's profile Send private message Send e-mail
jmac
PostPosted: Sun May 15, 2005 8:00 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

If you close the PEA window, you will no longer get activities automatically started until you restart the PEA... easiest way to do that is to close, and reopen the client
_________________
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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » How to launch an xyz.bat batch from workflow 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.