Fire up your applications with Jetfire
RSS
Jetfire Wiki


Quick Search
»
Advanced Search »

Table of Contents [Hide/Show]


Jetfire Code: Formal Workflow

The Jetfire Code Class for a Formal Workflow is shown below in the box. This class is used to model what characteristics are used in formal project-style workflows.

// F O R M A L     W O R K F L O W
//===================================================================================
// FormalWorkflow.txt
//===================================================================================
// Copyright (C) 2007 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 General Public License as published by the Free Software Foundation,
// version 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 General Public License for more details.
// 
// You should have received a copy of the GNU General Public License along with Jetfire.
// If not, see http://www.gnu.org/licenses.
// REMOVAL OF THIS NOTICE IS VIOLATION OF THE COPYRIGHT.
//===================================================================================
// DisplayName = "Formal Workflow";
// ToolTip = "This is a formal workflow that may be used as the basic of project-style
// workflows.";
//
namespace JetfireApps
{
	// A project-style workflow
	public workflow FormalWorkflow
	{
		
		// C O N S T R U C T O R
		public FormalWorkflow()
		{
			Notes = new List();
			Tags = new List();
			StartDateTime = DateTime.Today;
			EndDateTime = DateTime.Today;
			Duration = TimeSpan.Zero;
			ShowTimeAs = ShowTimeAs.Busy;
			TypeOfWork = TypeOfWork.Meeting;
			Notes.Subject = "Notes List";
			Tags.Subject = "Tags List";
			ChildWorkflows.Subject = "Child Workflows List";
			ParentWorkflows.Subject = "Parent Workflows List";
		}
		// P R O P E R T I E S
		public Contact Prime
		{
			get;
			set;
		}
		public Contact Manager
		{
			get;
			set;
		}
		public Contact Customer
		{
			get;
			set;
		}
		public Location Location
		{
			get;
			set;
		}
		public Contact Worker
		{
			get;
			set;
		}
		public DateTime StartDateTime
		{
			get;
			set;
		}
		public DateTime EndDateTime
		{
			get;
			set;
		}
		public TimeSpan Duration
		{
			get;
			set;
		}
		public ShowTimeAs ShowTimeAs
		{
			get;
			set;
		}
		public TypeOfWork TypeOfWork
		{
			get;
			set;
		}
		public List Notes
		{
			get;
			private set;
		}
		public List Tags
		{
			get;
			private set;
		}
		public string Comment
		{
			get;
			set;
		}
		// S T A T E    M E T H O D S
		// C O M M A N D S
		// O T H E R   M E T H O D S
		public Note Add_Note()
		{
			Note note = new Note();
			Notes.Add(note);
			return note;
		}
	}
}

See Also

Jetfire Code Library
Jetfire Code Application Library

ScrewTurn Wiki version 3.0.4.560. Some of the icons created by FamFamFam.