TestOptimal Tutorials

Create Model

Create Model

This tutorial will cover:

  • Create new model
  • Create and edit states
  • Create and edit transitions
  • Execute model

Create Model - New Model

  • Select "File / New Model" menu
  • New Model dialog is displayed
  • Enter Model Name
  • Select "SeqOut" plugin
  • Click "OK" button to create model.

press down arrow for feature details

Create Model - New Model

New model created, we are ready to create states & transitions:

Create Model - States

Create States:

  • Each model must have:
    • One Initial state
    • One or more Final states
  • Create first Initial state:
    • Right mouse click to open model context menu
    • Select "Add Initial State"
    • New state is created and placed on model canvas

press down arrow for feature details

Create Model - States

Edit State Properties:

  • State has properties including state name
  • New state is assigned a default name
  • Edit state property
    • Right mouse click on state header
    • Select State Property
    • Edit state name and enter description
    • Double click state header also opens State Property
  • Initial and Final are state properties too

press down arrow for feature details

Create Model - States

Quick way to rename a state:

  • Double click state name to enable edit box
  • Enter new state name in edit box
  • Press "Tab" key or click outside edit box

press down arrow for feature details

Create Model - States

Create Final state:

  • Create Final state the same way
  • Move state by dragging on its header
  • Delete state - click to select then press "Delete" key

Create Model - Transitions

Create Transition:

  • Transition
    • connects two states: source and target
    • is represented by a movable arrow
    • has a movable label

press down arrow for feature details

Create Model - Transitions

Create Transition:

  • To create a transition from InitState to FinalState:
    • Select Add Transition from InitState state context menu
    • Move mouse over FinalState and release mouse
  • Transition arrow consists of movable segments

press down arrow for feature details

Create Model - Transitions

Move Transition:

  • Re-route transition by dragging its segments
  • Trigger auto route when segment is dragged past state edge

press down arrow for feature details

Create Model - Transitions

Move Transition:

  • Move transition label by dragging its text
  • Transition label is positioned relative to source segment
  • Moving source segment also moves transition label

press down arrow for feature details

Create Model - Transitions

Edit Transition Properties:

  • Transition has properties including Transition Name
  • New transition is assigned a default name
  • To edit transition properties
    • Right mouse click on transition name
    • Select Transition Property
    • Edit Name and enter Description
    • Double click segment also opens Transition Property

press down arrow for feature details

Create Model - Transitions

Quick way to rename a transition:

  • Double click transition name to enable edit box
  • Enter new transition name in edit box
  • Press "Tab" key or click outside edit box

press down arrow for feature details

Create Model - Transitions

Quick way to create a transition connecting two states:

  • Start right-mouse drag from source state
  • Move mouse to target state
  • Release right-mouse button over target state

press down arrow for feature details

Create Model - Transitions

Create State and Transition Combo:

  • Create a state and a transition with one operation
  • Start right-mouse drag from exising state
  • Move mouse to target state
  • Release right-mouse button over model canvas

press down arrow for feature details

Create Model - Save Changes

Remember to Save Changes:

  • Model changes cached in Server
  • Click "File/Save" or to Save Changes to Disk

THE END

Visit other tutorials Here

© TestOptimal LLC.