Fire up your applications with Jetfire
processing
// P O L L    W O R K F L O W
//===================================================================================
// Poll.txt
//===================================================================================
// Copyright (C) 2009 TrackerRealm Corporation
// This file is part of Jetfire.
// 
// Jetfire is open software: you can redistribute it and/or modify it under the terms of the 
// GNU Affero General Public License (AGPL) as published by the Free Software Foundation, versi
on 3 of the License.
// 
// Jetfire is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
// See the GNU Affero General Public License (AGPL) for more details.
// 
// You should have received a copy of the GNU Affero General Public License (AGPL) along with J
etfire.  
// If not, see http://www.gnu.org/licenses.
// REMOVAL OF THIS NOTICE IS VIOLATION OF THE COPYRIGHT.
//===================================================================================

namespace JetfireDemos
{
   // This workflow is a sample poll.
   public workflow PollSample : Quiz
   {
      public PollSample()
      {
         // Declare variables used at top
         QnA qna;
         List selection = new List();
         // Add Questions
         selection.Add("Vegetarian");
         selection.Add("Steak and Potatoes");
         selection.Add("Fish and Chips");
         selection.Add("Hamburger and Fries");
         qna = new QnA("Select your favorite food", selection, QnAInput.Selection) at root;
         QnAList.Add(qna);
         Subject = "Poll for favorite food";
      }
   }
}