Schema Name: Activities.xsd
Target Namespace: http://rets.org/xsd/Activities/2007-08
Documentation:
This schema provides a general description for any grouping of activities, with dates, roles and a categorization.
Collapse XSD Schema Code:
<xs:schema	xmlns:xs="http://www.w3.org/2001/XMLSchema"
				xmlns:act="http://rets.org/xsd/Activities/2007-08"
				xmlns:commons="http://rets.org/xsd/RETSCommons/2007-08"
				targetNamespace="http://rets.org/xsd/Activities/2007-08"
				elementFormDefault="qualified"
				attributeFormDefault="unqualified">

	<!--
		(C)2007 National Association of REALTORS(R). All Rights Reserved

		Tab stops
		:set ts=3
		
		File History
		======================
		$Header: Activities.xsd, 36, 1/24/08 2:30:31 PM EST, Paul Stusiak$
		
		$Log:
		 36   055_RETS_Standard 1.35        1/24/08 2:30:31 PM EST Paul Stusiak
		      correct copyright notice language
		 35   055_RETS_Standard 1.34        10/8/07 4:22:10 PM EDT Paul Stusiak
		      Update version timestamp
		 34   055_RETS_Standard 1.33        10/2/07 3:19:22 PM EDT Gina Accawi
		      Create reusable type for systemId. Reference it where used. Ensure
		      there is a systemId on the primary single and optional on plural
		      version of resource payloads.
		 33   055_RETS_Standard 1.32        7/27/07 12:25:02 AM EDTPaul Stusiak
		      Fix bad date on version timestamp
		 32   055_RETS_Standard 1.31        7/27/07 12:00:36 AM EDTPaul Stusiak
		      update version timestamp
		 31   055_RETS_Standard 1.30        7/24/07 5:02:04 PM EDT Gina Accawi
		      Rename elements, attributes and types that were named "Type".
		 30   055_RETS_Standard 1.29        7/9/07 3:37:06 PM EDT  Paul Stusiak
		      Update versionTimestamp to 2007-07-09T19:21:00Z
		 29   055_RETS_Standard 1.28        7/6/07 5:29:41 PM EDT  Gina Accawi
		      Rename ids.
		 28   055_RETS_Standard 1.27        7/2/07 12:45:26 PM EDT Gina Accawi
		      Rename ResourceKey to be the actual ResourceNameKey.
		 27   055_RETS_Standard 1.26        6/29/07 3:34:37 PM EDT Gina Accawi
		      Add a key for the resource.
		 26   055_RETS_Standard 1.25        5/2/07 3:56:17 PM EDT  Paul Stusiak
		      fix location error, change type naming to resolve warning during code
		      generation
		 25   055_RETS_Standard 1.24        5/1/07 5:53:28 PM EDT  Paul Stusiak
		      Second fix for problem with target namespace.
		 24   055_RETS_Standard 1.23        5/1/07 5:36:21 PM EDT  Paul Stusiak
		      fix ns prefix -> xsd
		 23   055_RETS_Standard 1.22        5/1/07 4:25:29 PM EDT  Paul Stusiak
		      Update the version timestamp, make the schema relative again,
		      normalize the date related typing to use SecureDateTime and naming to
		      be of the form XXXDateTime
		 22   055_RETS_Standard 1.21        4/3/07 4:43:54 AM EDT  Paul Stusiak
		      change namespace to remote location (www.ftc2.com) for testing
		 21   055_RETS_Standard 1.20        4/2/07 2:26:52 PM EDT  Paul Stusiak
		      change namespace to match responding server and to use the URI
		      versioning suggested by both HP and XFront
		 20   055_RETS_Standard 1.19        3/30/07 9:20:18 PM EDT Paul Stusiak
		      Update of the versionTimestamp and the namespace (namespace to
		      200704). Change formating to a standard format
		 19   055_RETS_Standard 1.18        3/21/07 7:15:59 PM EDT Paul Stusiak
		      make schema more like documentation from the vocabulary
		 18   055_RETS_Standard 1.17        3/21/07 12:35:35 AM EDTPaul Stusiak
		      change namespace
		 17   055_RETS_Standard 1.16        3/20/07 8:07:38 PM EDT Gina Accawi
		      Modified to make attributes into child elements.
		 16   055_RETS_Standard 1.15        3/16/07 6:16:40 PM EDT Gina Accawi
		      Add example appinfo.
		 15   055_RETS_Standard 1.14        3/16/07 6:11:34 PM EDT Gina Accawi     
		 14   055_RETS_Standard 1.13        3/8/07 2:03:03 PM EST  Gina Accawi
		      Change root element from a global type reference to a local anonymous
		      definition. This will be the pattern for all container (root)
		      elements.
		 13   055_RETS_Standard 1.12        3/8/07 1:43:49 AM EST  Paul Stusiak
		      Added trial annotation for Gina's review, did clean up of document
		      formating style, changes Notes to Remarks and use the Remark type
		 12   055_RETS_Standard 1.11        3/7/07 5:10:15 PM EST  Gina Accawi
		      Utilize base secured types from commons rather than referencing the
		      ISG security attribute directly.
		 11   055_RETS_Standard 1.10        2/28/07 2:17:39 PM EST Paul Stusiak
		      add standard header and some comments
		 10   055_RETS_Standard 1.9         2/22/07 6:34:44 PM EST Gina Accawi
		      Remove all references to the schemaLocation as being
		      http://retsserver.realtors.org:8080/xsd/.  These references have been
		      changed to be relative path (as the current directory). Now,
		      regardless of where they are published, the referential internal
		      integrity will remain. The assumption is that these will all reside as
		       neighbors on the target distribution server.
		 9    055_RETS_Standard 1.8         12/20/06 3:31:04 PM ESTJeff Brush
		      added retsserver location back to imports;  renamed Prospect to
		      SavedQuery; changed ListingHistory to track only select fields
		      identified by workgroup;renamed Agency to Agents and fixed references
		      in other schemas;changed TotalSqFeet references to TotalArea; per 12/7
		       MLS payload workgroup meeting
		 8    055_RETS_Standard 1.7         12/2/06 4:12:44 AM EST Paul Stusiak
		      various mechanical fixes tho the schema and a re-direct from
		      retsserver.realtors.org to www.ftc2.com
		 7    055_RETS_Standard 1.6         11/28/06 4:41:32 AM ESTPaul Stusiak
		      updated version per meetings
		 6    055_RETS_Standard 1.5         10/13/06 10:45:17 AM EDTJeff Brush
		      Changes to schemas from 10/5 and 10/12 TMS workgroup meeting.
		 5    055_RETS_Standard 1.4         9/20/06 3:43:24 PM EDT Jeff Brush
		      chgd schemaLocation to point to http://retsserver.rets.org:8080/xsd/
		 4    055_RETS_Standard 1.3         4/7/06 10:36:38 PM EDT Jeff Brush
		      renamed version attribute to versionTimestamp for schema versioning
		 3    055_RETS_Standard 1.2         4/7/06 4:37:25 PM EDT  Jeff Brush
		      modified to have schema versioning as datetime, add year month to
		      namespaces, minor corrections
		 2    055_RETS_Standard 1.1         4/4/06 11:05:57 AM EDT Jeff Brush
		      Updated schemas.  All MLS schemas have extensibility points.  New
		      ObjectReferenceList.xsd
		 1    055_RETS_Standard 1.0         3/6/06 11:13:37 AM EST Paul Stusiak    
		$
	-->

	<xs:annotation>
		<xs:documentation>
			This schema provides a general description for any grouping of
			activities, with dates, roles and a categorization.
		</xs:documentation>
	</xs:annotation>

	<xs:import	namespace="http://rets.org/xsd/RETSCommons/2007-08"
					schemaLocation="../../../xsd/RETSCommons/2007-08/RETSCommons.xsd"/>

	<xs:complexType name="Category">
		<xs:annotation>
			<xs:documentation>
				Grouping of act:Type that the activity is part of.
			</xs:documentation>
			<xs:appinfo>
				ServiceOrder
			</xs:appinfo>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecureString"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType name="ActivityRemarks">
		<xs:annotation>
			<xs:documentation>
				Remarks associated with the activity.
			</xs:documentation>
			<xs:appinfo>
				Bill said he'd have the inspection done as soon as the
				appraiser was finished.
			</xs:appinfo>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecureRemark"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType name="CompletionRole">
		<xs:annotation>
			<xs:documentation>
				The information about the completion role entity.
			</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element	name="Person"
							type="commons:ContactablePerson"
							minOccurs="0"
							maxOccurs="unbounded"/>
			<xs:element name="Comments"
							type="commons:SecureRemark"
							minOccurs="0"
							maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>
						optional field to include remarks on the completion
						role entity. Intended for comments related to the
						activity-entity interaction.
					</xs:documentation>
					<xs:appinfo>
						Bill has a backlog and may be late.
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="CompletionRoles">
		<xs:sequence>
			<xs:element	name="CompletionRole"
							type="act:CompletionRole"
							minOccurs="0"
							maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="Dependency">
		<xs:sequence>
			<!-- +++ PS
				+++ does the dependency need an associated resource to
				connect the id?
			-->
			<xs:element name="Id"
							type="xs:string"
							minOccurs="1">
				<xs:annotation>
					<xs:documentation>
						The internal identifier for the associated
						transaction or other action that this activity
						depends.
					</xs:documentation>
					<xs:appinfo>
						RA66722343332
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="Description"
							type="xs:string"
							minOccurs="0">
				<xs:annotation>
					<xs:documentation>
						A description of the dependency.
					</xs:documentation>
					<xs:appinfo>
						Depends on the successful completion of the
						appraisal.
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="Activity">
		<xs:sequence>
			<xs:element name="ActivityKey"
							type="commons:resource-key"
							minOccurs="1"
							maxOccurs="1">
				<xs:annotation>
					<xs:documentation>
						This the is the keyfield for the resource.
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element	name="SystemId"
							type="xs:string"
							minOccurs="1">
				<xs:annotation>
					<!-- +++ PS
						+++ should we make this SystemGUId to indicate that
						it is the key?
					-->
					<xs:documentation>
						Required internal system identifier for the activity
						record for this system.
					</xs:documentation>
					<xs:appinfo>
						TA8779799003
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<!-- +++ PS
				+++ Are we missing a necessary connection between this
				activity and the listingGUId or listingId and the
				transactionGUId or transactionId? Both are in the
				Vocabulary document but are missing from this schema.
			-->
			<xs:element name="Name"
							type="xs:string"
							minOccurs="0">
				<xs:annotation>
					<xs:documentation>
						The descriptive name for the activity.
					</xs:documentation>
					<xs:appinfo>
						Smith Service Order for Appraisal
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element	name="Status"
							type="xs:NMTOKEN"
							minOccurs="1">
				<xs:annotation>
					<xs:documentation>
						State of the activity
					</xs:documentation>
					<xs:appinfo>
						Open
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element	name="Classification"
							type="xs:string"
							minOccurs="1">
				<xs:annotation>
					<xs:documentation>
						Classification of the activity.
					</xs:documentation>
					<xs:appinfo>
						Inspection
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element	name="Category"
							type="act:Category"
							minOccurs="0">
				<xs:annotation>
					<xs:appinfo>
						ServiceOrder
					</xs:appinfo>				
				</xs:annotation>
			</xs:element>
			<xs:element	name="PlannedStartDateTime"
							type="commons:SecureDateTime"
							minOccurs="0">
				<xs:annotation>
					<xs:appinfo>
						2007-02-05T11:00:00Z
					</xs:appinfo>
				</xs:annotation>
			</xs:element>	
			<xs:element	name="ActualStartDateTime"
							type="commons:SecureDateTime"
							minOccurs="0">
				<xs:annotation>
					<xs:appinfo>
						2007-02-05T11:00:00Z
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element	name="DueDateTime"
							type="commons:SecureDateTime"
							minOccurs="0">
				<xs:annotation>
					<xs:appinfo>
						2007-01-05T11:00:00Z
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element	name="CompletedDateTime"
							type="commons:SecureDateTime"
							minOccurs="0">
				<xs:annotation>
					<xs:appinfo>
						2007-02-05T11:00:00Z
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element	name="CompletionRoles"
							type="act:CompletionRoles"
							minOccurs="0"/>
			<xs:element	name="Note"
							type="commons:Remark"
							minOccurs="0">
				<xs:annotation>
					<xs:appinfo>
						Requires signing by the two parties.
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element name="Dependency"
							type="act:Dependency"
							minOccurs="0"/>
			<xs:any		namespace="##other"
							minOccurs="0"
							maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType	name="ActivitiesType">
		<xs:sequence>
			<xs:element	name="Activity"
				type="act:Activity"
				minOccurs="0"
				maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute	name="versionTimestamp"
							type="xs:dateTime"
							use="required"
							fixed="2007-10-08T16:27:23Z">
		</xs:attribute>
	</xs:complexType>

	<!-- Elements -->
	<xs:element	name="Activities" type="act:ActivitiesType"/>
</xs:schema>
Collapse ComplexTypes:
Collapse Elements: