cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Running shell script using Activiti explorer

rahuldahiya
Champ in-the-making
Champ in-the-making
Greetings!!

I've been trying to run a shell script using the Activiti Explorer. I am trying to create a simple model. In this model I start with "StartEvent", then add a script task to it and an "EndEvent" to complete the model. Under the script task I've set Script Format parameter as ShellScript, I've given it a name and in the "Script" parameter I have added a simple shell command "mkdir -p {dir}". When I save this model and deploy it , it gets competed successfully without errors but the shell command is not executed (as the directory doesnot gets created).
I've read about using service tasks but not sure how to execute shell script using it. Pointers or any help regarding this will be appretiated Smiley Happy.

Thanks,
Rahul

P.S - I am logging in using Kermit user and Activiti version is 5.18.0
3 REPLIES 3

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

have a look on the following test in activiti source
org.activiti.examples.bpmn.shell.ShellTaskTest

Regards
Martin

rahuldahiya
Champ in-the-making
Champ in-the-making
Hey Martin,

Thanks for replying.

I did look up to this test in the source. It is Java file. I am trying to create the workflow using the Activiti's User Interface in the browser and not through Java Api's.

I don't think I will need to use the Java API to create the workflow from the browser. I was hoping i could simply configure the scripts from the UI. Correct me if I am wrong.

Thanks,
–Rahul

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Rahul,

http://activiti.org/userguide/index.html#apiUnitTesting

activiti-explorer is only demo app to show activiti features.

Regards
Martin