Skip to content

Websocket: visitedElements

Kristian Karl edited this page Sep 28, 2019 · 1 revision

VisitedElement

The message visitedElement is sent from GraphWalker whenever a getNext has happened. This message can be used to visualize the progress of the execution.

Message

{
  "elementId":"<The id of the element>",
  "visitedCount":<The number of times this element has been visited>,
  "stopConditionFulfillment":<A float between 0 and 1, meaning how close to fulfillment the stop condition of the execution is. 1 is complete fulfillment.>,
  "data":{
    "x":"1",
    "y":"2"
  },
  "modelId":"<The id of the model>",
  "totalCount":<Total number of elements visited>,
  "command":"visitedElement"
}
Clone this wiki locally