Workflow engine

54 views
Skip to first unread message

Belkar, Praveen

unread,
Feb 18, 2016, 7:15:26 AM2/18/16
to camunda...@googlegroups.com

Hi,

 

We have a following requirement – for which we are evaluating Camunda for feasibility.

 

We have following requirement:

 

The user should be able to customize the tasks in the workflow. The tasks can be Groovy or Javascript. These Groovy/Javascript can be placed outside the war and not necessarily within the classpath. The script can also be read dynamically from the outside REST api.

 

How to achieve this please let me know.

 

Regards,

Praveen

Philipp Ossler

unread,
Feb 22, 2016, 10:23:50 AM2/22/16
to camunda BPM platform contributors, Praveen...@emc.com
Hi Praveen,

you can use a ScriptTask to execute a script in a process [1]. You can either set a static script in the process or specify the path of the script [2]. Note that the script must be on deployment or in the classpath. So you cannot load it dynamic from an external source by default.   

But you can create your own service task to load and execute the script. You can use the class ScriptTaskActivityBehavior as blueprint.

As a workaround, you can store the script in a process variable and evaluate this variable in the script task.

Please be aware of possible security issues.

Greetings,
Philipp


Reply all
Reply to author
Forward
0 new messages