AnsweredAssumed Answered

Can't get taskid from ScriptTask (groovy)

Question asked by vala4i on Aug 26, 2014
Latest reply on Aug 27, 2014 by martin.grofcik
I want to call external script using ScriptTask step. External script after finish his job call REST API to complete task like this:
POST http://login:pass@host/activiti-rest/service/runtime/tasks/23045 body: '{"action":"complete"}'.

So to do it I need to know taskId. How can I get it in ScriptTask using groovy? I tried to call task.getId(), but got an exception in Activiti Explorer.
Thanks a lot for your help.