Access keys

FlowTreeNode

Kind of class: class
Inherits from: TreeNode < BaseTreeNode
Version: 20 July 2005
Author: Arthur Clemens
Classpath: data.tree.FlowTreeNode
File last modified: Wednesday, 27 July 2005, 00:09:41
FlowTreeNode is an instruction storage class used by FlowController.

This is a typical instruction line:
question2, label=This is question 2, text="Was Mick Jagger the lead singer of the Beatles?", type=condition, yes=trunk1end, no=screen5
FlowTreeNode lists a number of reserved instruction attributes:Other attributes can be used, with arbitrary names. For instance, you might want to use the attributes wrong and right:
question2, label=This is question 2, text="Was Mick Jagger the lead singer of the Beatles?", type=condition, wrong=trunk1end, right=screen5
The attribute values of these names can be retrieved with TreeNode.getValueForKey.

Summary

Constructor
Class properties
Class properties inherited from TreeNode
Class methods
Class methods inherited from TreeNode

Constructor

FlowTreeNode

function FlowTreeNode (
inName:String, inProperties:Object)
Creates a new FlowTreeNode.

Instance properties

await

await:String
(read)
The node's await attribute.

conditions

conditions:Array
(read)
The node's evaluate conditions attribute.

label

label:String
(read)
The node's label attribute.

method

method:String
(read)
The node's method attribute.

parameters

parameters:Array
(read)
The node's method parameters attribute.

text

text:String
(read)
The node's text attribute.

timeout

timeout:String
(read)
The node's timeout attribute.

type

type:String
(read)
The node's type attribute. Possible types:
  • condition
  • action
  • await
  • exit
See FlowController.run to see how FlowController deals with these types.

Instance methods