ScriptPro Editor

This topic is for use by scriptwriters who are using ScriptPro Editor to create custom scripts for their agencies.

Agents can go to Using ScriptPro Scripts for more information about using custom or standard scripts within Travelport Smartpoint.

 

Complete a Flowchart or Algorithm

The second task in the planning phase of script writing is to complete a flowchart or algorithm.  A flowchart uses symbols to represent script action during execution.  An algorithm is a procedure or formula for solving a problem.  Both are used to concisely illustrate the sequence and progress of the script.  This topic provides examples of two different types of flowcharts (modular abstraction and flowchart) and an algorithm.  All three examples use the XX_AIR script.

Use a flowchart or algorithm during the planning stage of a script and as a reference throughout the script writing process.

Flowcharts and algorithms are used to:

  • Make it easier to track and explain the script to experts and novices

  • Obtain project buy-in from management

  • Size the job of writing the script

  • Delegate pieces of the project to others

  • Provide a map for writing the script

  • Test the process on paper prior to coding

Modular abstraction flowchart example

Below is an example of a completed Modular Abstraction Flowchart.  Flowchart headers are identified across the top.

Flowchart example

Below is an example of a completed flowchart.

Algorithm example

Below is an example of a completed algorithm.

Step

Action

1

Extract departure date, departure city, arrival city, time, car, hotel from dialog box1

2

Send availability format to host

3

Enter format

4

If user selects Car

  • Call XX_CAR1

5

If user selects Hotel

  • Call XX_HTL

6

Determine whether user wants to Return to home city. Continue to a new arrival city or Quit the script from dialog box2

  • If user selects Return

    • Reset variables

    • Go to beginning of script (step 1)

  • If user selects Continue

    • Reset variables

    • Go to beginning of script (step 1)

  • If user selects Quit

    • Clear variables

    • Script ends