Platform SDK: Team Productivity Update |
A Team Workspace application's Instantiation URL returns an XML stream to the Team Productivity Update. This XML stream specifies URLs that support each of the interfaces that define the Team Productivity Update capabilities: Launch, Summary, Search, Offline, and Delete. The Instantiation URL returns URLs only for the interfaces the application actually supports. At this time, the document review application supports only Launch.
The Instantiation URL sets the Team Application values in script. It concatenates the values held in WebServerName and WebVirtualDirectoryName into an HTTP address. Since the document review application supports only the LaunchURL interface, it sets all of the Team Application interfaces to this value, with the exception of DeleteURL.
' Set the XML TeamApp values LaunchURL = "http://" & WebServerName & "/" & WebVirtualDirectoryName SummaryURL = LaunchURL SearchAppURL = LaunchURL OfflineURL = LaunchURL DeleteURL = ""
Then the Instantiation URL packages the Team Application values so that they can be returned to the Team Productivity Update as an XML stream.
' Set the XML Return values ResultCode = 0 ResultDescription = "Default Result String" %> <?xml version="1.0"?> <TeamApp> <URLs> <Launch><%= LaunchURL %></Launch> <Summary><%= SummaryURL %></Summary> <Search><%= SearchAppURL %></Search> <Offline><%= OfflineURL %></Offline > <Delete><%= DeleteURL %></Delete > </URLs> <Result> <Code><%= ResultCode %></Code> <Description><%= ResultDescription %></Description> </Result> </TeamApp>
At this time, the XML also returns result codes to indicate the successful instantiation of the application or the error that occurred. For more information, see Result Codes and Error Handling.