Plugin : Scenario

Author:Rex.Rainbow

Download

Properties

Debug mode

  • Enable to show log.
    • Options : ["No","Yes"]

Time stamp

  • Time stamp type.
    • Options : ["Accumulation","Differential"]

Eval mode

  • Enable "Eval mode" for parameters. "Mem" feature only could be used in eval mode.
    • Options : ["No","Yes"]

Sync timescale

  • Sync to object's timescale.
    • Options : ["No","Yes"]

Mustache

  • Enable to process string by Mustache templating engine.
    • Options : ["No","Yes"]

Left delimiter

  • Left delimiter. Set "" to use default delimiter "{{"

Right delimiter

  • Right delimiter. Set "" to use default delimiter "}}"

Actions

0: Load

Action:Load commands

  • Load commands in csv or json format.
    • Commands ( string ) : Commands string
    • Format ( Combo ) : String format.
      • Options : ["csv","JSON"]

Action:Clean commands

  • Clean all commands.

Action:Append commands

  • Append commands in csv or json format.
    • Commands ( string ) : Commands string
    • Format ( Combo ) : String format.
      • Options : ["csv","JSON"]

Control

Action:Pause scenario

  • Pause scenario.

Action:Resume scenario

  • Resume scenario.

Action:Stop scenario

  • Stop scenario.

Flow control

Action:Start scenario

  • Start scenario.
    • Offset ( number ) : Time offset at start
    • Tag ( string ) : Tag in csv table. "" is start from 1st command.

Memory

Action:Set value

  • Set the value stored in memory.
    • Index ( number or string ) : Index of memory, can be number of string
    • Value ( number or string ) : Value of memory

Action:Load from JSON

  • Load memory from JSON string.
    • JSON string ( string ) : JSON string.

Mustache

Action:Set delimiters

  • Set delimiters .
    • Left delimiter ( string ) : Left delimiter. Set "" to use default delimiter "{{"
    • Right delimiter ( string ) : Right delimiter. Set "" to use default delimiter "}}"

Response - Wait

Action:Continue all

  • Continue scenario, response of wait command.

Action:Continue with key

  • Continue scenario, response of locked-wait command.
    • Key ( number or string ) : Key of locked-wait command

Setting

Action:Set time offset

  • Set time offset.
    • Offset ( number ) : Time offset at start

Setup

Action:Setup timeline

  • Setup timeline.
    • Timeline ( object ) : Timeline object to get timer

Action:Setup callback

  • Setup callback.
    • Callback ( Combo ) : Callback object.
      • Options : ["Official function","Rex function2"]

Expressions

Memory

Expression:Mem

  • Get the value from memory by index.
    • Index ( number or string ) : Index of memory, can be number of string

Expression:MEMToString

  • Transfer memory to JSON string.

Tag

Expression:LastTag

  • Get last tag.

Expression:PreviousTag

  • Get previous tag.

Expression:CurrentTag

  • Get current(last) tag.

Conditions

Control

Condition:On execution completed

  • Triggered when scenario executed completed.

Condition:Is running

  • Is scenario running.

Tag

Condition:On tag changed

  • Triggered when tag changed.

Condition:Is tag existed

  • Return true if tag is existed.
    • Tag ( string ) : Tag in csv table. "" is start from 1st command.

Wait

Condition:Is waiting any

  • Is scenario waiting for any signal.

Condition:Is waiting

  • Is scenario waiting for signal.
    • Key ( number or string ) : Key of locked-wait command

Condition:On waiting any start

  • Triggered when On waiting (for signal) start.

Condition:On waiting start

  • Triggered when On waiting (for signal) start.
    • Key ( number or string ) : Key of locked-wait command