cancel
Showing results for 
Search instead for 
Did you mean: 

Can Activiti manage shell scripts?

bill1
Champ in-the-making
Champ in-the-making
Hi,

My jobs are not written in java. They are a set of shells scripts/python scripts. Can Activiti manage these scripts?   Thanks !

I saw
<scriptTask id="theScriptTask" name="Execute script" scriptFormat="groovy">
  <script>
    sum = 0
    for ( i in inputArray ) {
      sum += i
    }
  </script>
</scriptTask>

But in case my script is not so simple. It is written in a file that exists somewhere in the file system. How do I reference it? Thanks !
2 REPLIES 2

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Not directly, but if you make a java delegate class that can call shell scripts it is doeable. Examples of java code that can call shell script can be found all over the internet

smirzai
Champ on-the-rise
Champ on-the-rise
Just for future probable readers. This feature is implemented as mentioned in  http://jira.codehaus.org/browse/ACT-461