Transition

Constructor

Signature

constructor (
    action,
    targetStateName
)

Parameters

Name Description Type
action Action name. no spaces, only a-z, A-Z, 0-9, and _ string
targetStateName Target State name. begin with letter, no spaces, a-z, A-Z, 0-9, and _ string

Static Members

Methods

🦠 fromObject

Get a new Transition instance from an object representation.

Signature

Transition.fromObject(o)

Parameters

Name Description Type
o the plain object object

Returns

Description Type
the instance Transition

🦠 fromStruct

Get a new Transition instance from a struct representation.

Signature

Transition.fromStruct(struct)

Parameters

Name Description Type
struct the struct Array

Returns

Name Description Type
  the instance Transition

Instance Members

Properties

  • action
  • actionId
  • targetStateName
  • targetStateId

Methods

🦠 toObject

Get a plain object representation of this Transition instance.

Signature

instance.toObject()

Returns

Name Description Type
  the plain object object

🦠 toString

Get a string representation of this Transition instance.

Signature

instance.toString()

Returns

Name Description Type
  the JSON representation string

🦠 toStruct

Get a struct representation of this Transition instance.

Signature

instance.toStruct()

Returns

Description Type
the struct Array

🦠 clone

Clone this Transition instance.

Signature

instance.clone()

Returns

Description Type
the cloned instance Transition

🦠 isValid

Is this Transition instance valid?

Signature

instance.isValid()

Returns

Description Type
true if the instance is valid boolean