AnsweredAssumed Answered

What is the best way to call REST API from Activiti? Can I use JavaScript's URL redirection?

Question asked by bingw on Apr 30, 2014
Latest reply on Jul 14, 2015 by jbarrez
I am relatively new to Activiti. My question has to be one of the common ones (but I haven't found an answer by Googling):

What is the best way to REST API from Activiti? I chose to use JavaScript's URL redirection logic:
    <scriptTask id="call_remote_biit" name="Trigger Biit Calc" activiti:autoStoreVariables="false">
      <script>window.location.href = "http://remote_rest_call/?key=val";</script>
    </scriptTask>

FYI - I don't need to get the return code from the remote service. All I want to do is to trigger some event which will be tracked separately.

Is this the way to do it or there is better?

Thanks!


Bing

Outcomes