Author |
Message
|
Surfer |
Posted: Thu May 12, 2005 4:46 pm Post subject: How to launch an xyz.bat batch from workflow activity ? |
|
|
 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 |
|
 |
elvis_gn |
Posted: Thu May 12, 2005 9:35 pm Post subject: |
|
|
 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 |
|
 |
Surfer |
Posted: Fri May 13, 2005 1:30 am Post subject: How to launch an xyz.bat batch from workflow activity ? |
|
|
 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 |
|
 |
elvis_gn |
Posted: Fri May 13, 2005 2:30 am Post subject: |
|
|
 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 |
|
 |
elvis_gn |
Posted: Fri May 13, 2005 4:16 am Post subject: |
|
|
 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 |
|
 |
Surfer |
Posted: Fri May 13, 2005 9:42 am Post subject: hi |
|
|
 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 |
|
 |
vennela |
Posted: Fri May 13, 2005 12:32 pm Post subject: |
|
|
 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 |
|
 |
Surfer |
Posted: Sun May 15, 2005 3:24 am Post subject: Hi all |
|
|
 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 |
|
 |
jmac |
Posted: Sun May 15, 2005 5:32 am Post subject: |
|
|
 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 |
|
 |
Surfer |
Posted: Sun May 15, 2005 7:36 am Post subject: Post subject: How to launch an xyz.bat batch from workflow a |
|
|
 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 |
|
 |
jmac |
Posted: Sun May 15, 2005 8:00 am Post subject: |
|
|
 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 |
|
 |
|