AnsweredAssumed Answered

Process freeze on Shell Task with Batch and Python

Question asked by naoki on Jun 22, 2015
Latest reply on Jul 7, 2015 by jbarrez
Hi all,

I'm researching to use external REST API and thought Shell Task with Python might be good solution.
If there's better way, please let me know.

I've read manual here:
http://www.activiti.org/userguide/#bpmnShellTask

Working sample found at:
https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/test/resources/org/activiti/examples/bpmn/shell/ShellTaskTest.testEchoShellWindows.bpmn20.xml

It works simple Windows command (ex. echo), but using Python freeze the process and browser.
It waits process done forever (or until timeout). Browser shows waiting icon and do not respond.

It works following:
OK: simple DOS command
OK: simple batch file
OK: batch file in batch file (note: don't use "call")

Followings are not working and cause freeze:
NG: python (even –version)
NG: batch file call python
NG: batch file call another batch file with "call"

I've tried "wait" option (default=true) as false. Then process comes back, but there's no result value evaluated. It's also critical.

If there's any workaround or better solution to use external REST API, please let me know.
Any advice is helpful.

Thank you,
Naoki

Outcomes