hasNext

The Websocket message command hasNext is used to ask GraphWalker if there are any elements left to execute in the model. If all stop conditions for the current model are fulfilled, the response will return false for the hasNext property.

Request

{
  "command":"hasNext"
}

Response

If the request was successful “success” will be “true”.

{
  "success":true,
  "hasNext":<If there are more elements to be executed, true will be returned. Otherwise false>,
  "command":"hasNext"
}
Tags: