visitedElement

The message visitedElement is sent from GraphWalker whenever a getNext has happened. The use case for this message is perhaps if you want 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"
}
Tags: