Problem Running shell script using Activiti explorer

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2015 06:13 AM
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
.
Thanks,
Rahul
P.S - I am logging in using Kermit user and Activiti version is 5.18.0
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

Thanks,
Rahul
P.S - I am logging in using Kermit user and Activiti version is 5.18.0
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2015 02:35 AM
Hi,
have a look on the following test in activiti source
org.activiti.examples.bpmn.shell.ShellTaskTest
Regards
Martin
have a look on the following test in activiti source
org.activiti.examples.bpmn.shell.ShellTaskTest
Regards
Martin

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2015 05:28 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2015 12:59 AM
Hi Rahul,
http://activiti.org/userguide/index.html#apiUnitTesting
activiti-explorer is only demo app to show activiti features.
Regards
Martin
http://activiti.org/userguide/index.html#apiUnitTesting
activiti-explorer is only demo app to show activiti features.
Regards
Martin
