text: 
  prompt
  prompt &section.
  prompt &h1.Installing FSM sample instance
  
  define table_dir=&sample_dir.tables/
  define view_dir=&sample_dir.views/
  define type_dir=&sample_dir.types/
  define pkg_dir=&sample_dir.packages/
  define script_dir=&sample_dir.scripts/
  define msg_dir=&sample_dir.messages/&DEFAULT_LANGUAGE./
  
  define FSM_CLASS=REQ
  
  alter session set current_schema=&INSTALL_USER.;
  
  prompt &h2.Installing sample application
  prompt &h3.Remove existing installation
  @&sample_dir.clean_up_install.sql
  
  prompt &s1.Create FSM sample messages
  @&msg_dir.create_messages.sql
  
  prompt &h3.Create initial status, events and transitions
  @&script_dir.create_initial_data.sql
  
  prompt &h3.Re-Create Packages FSM_FEV and FSM_FST
  prompt &s1.Create package FSM_FEV
  begin
    fsm_admin_pkg.create_event_package;
  end;
  /
  
  prompt &s1.Create package FSM_FST
  begin
    fsm_admin_pkg.create_status_package;
  end;
  /
  
  prompt &h3.Create tables and initial data
  prompt &s1.Create table FSM_REQUEST_TYPES
  @&table_dir.fsm_request_types.tbl
  prompt &s1.Create table FSM_REQUESTORS
  @&table_dir.fsm_requestors.tbl
  prompt &s1.Create table FSM_REQUESTS
  @&table_dir.fsm_requests.tbl
  prompt &s1.Create table DEMO_USER
  @&table_dir.demo_user.tbl
  
  prompt &h3.Create Views
  prompt &s1.Create view FSM_REQ_OBJECT_VW
  @&view_dir.fsm_requests_vw.vw
  
  prompt &s1.Create view FSM_REQUEST_TYPES_VW
  @&view_dir.fsm_request_types_vw.vw
  
  prompt &h3.Create type declarations
  prompt &s1.Create type FSM_REQ_TYPE
  @&type_dir.fsm_req_type.tps
  show errors
  
  prompt &h3.Create package declarations
  prompt &s1.Create package FSM_REQ_PKG
  @&pkg_dir.fsm_req_pkg.pks
  show errors
  
  prompt &s1.Create package BL_REQUEST
  @&pkg_dir.bl_request.pks
  show errors
  
  prompt &h3.Create type bodies
  prompt &s1.Create type body FSM_REQ_TYPE
  @&type_dir.fsm_req_type.tpb
  show errors
  
  prompt &h3.Create package bodies
  prompt &s1.Create package body FSM_REQ_PKG
  @&pkg_dir.fsm_req_pkg.pkb
  show errors
  
  prompt &s1.Create package body BL_REQUEST
  @&pkg_dir.bl_request.pkb
  show errors
  