RockScript Documentation
Introduction Why and when How does it work Project status Getting started Command line interface Tutorial Language Script versioning License Roadmap Help Services HTTP service API Commands Deploy script Start script Queries Script execution Service SPI End function

End function

Ends a waiting function invocation in a script execution.


Here’s a endFunction example

> POST /command
  Content-Type: application/json
  { "endFunction" :
    { "scriptExecutionId" : "se1",
      "executionId" : "e46"
< HTTP/1.1 200 OK
  Access-Control-Allow-Origin: *
  { "id":"sv1",
    "scriptName":"Test script",
    "text":"var a\u003d0;",

Request properties

Property name Required? Type Description
scriptExecutionId Required String ID that identifies the script execution
executionId Required String ID that identifies the function invocation which is a position within the script execution
result Optional Any JSON value The return value coming out of the function invocation

Response properties

Property name Data type Description
scriptExecutionId String ID of the script execution