Fire up your applications with Jetfire
processing
// Q U I Z    S A M P L E    W O R K F L O W
//==============================================================================
// QuizSample.txt
//==============================================================================
// Copyright (C) 2008 TrackerRealm Corporation
// This file is part of Jetfire.
// 
// Jetfire is open software: you can redistribute it and/or modify it under the 
// GNU Affero General Public License (AGPL) as published by the Free Software Fo
// 
// Jetfire is distributed in the hope that it will be useful, but WITHOUT ANY WA
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICU
// See the GNU Affero General Public License (AGPL) for more details.
// 
// You should have received a copy of the GNU Affero General Public License (AGP
// If not, see http://www.gnu.org/licenses.
// REMOVAL OF THIS NOTICE IS VIOLATION OF THE COPYRIGHT.
//==============================================================================

namespace JetfireDemos
{
   // This workflow is a sample quiz.
   public workflow QuizSample : Quiz
   {
        public QuizSample()
        {
         // Declare variables used at top
         List selection = new List();
         string empty = "";
         // Add Questions
         QnA qna = new QnA("What is your name?", empty) at root;
         // Add the question to the QnAList (from base class)
         this.QnAList.Add(qna);
         qna = new QnA("Are you over 18?", false) at root;
         this.QnAList.Add(qna);
         selection.Add("18 - 25");
         selection.Add("26 - 35");
         selection.Add("36 - 45");
         selection.Add("over 45");
         qna = new QnA("Select an age category", selection, QnAInput.Selection) at roo
         this.QnAList.Add(qna);
         qna = new QnA("How often do you go dancing in a year?", 0.0) at root;
         this.QnAList.Add(qna);
         // Name of the quiz
         this.Subject = "Quiz Sample";
        }
    }
}