PrevTopNext

The Execution of Route Commands

  • Insert Route object and Token facts, defined as a "dedicated DSL phrase"
    [then][Ee]stablish set route=
          Route route = new Route( $def );
          insert( route );
          for( Object element: $elements )\{
              Token token = ((Element)element).makeTokenForRoute( route );
              insert( token );
          \}
    
  • DSLR rule for executing a route command:
    rule "establish route"
    when 
        there is a set route command
        and a matching route definition
    then
        establish set route
        discard the command
    end
    

PrevTopNext