June 20, 2002
Time to start writing about
Time to start writing about the Groove Tour. This may be interesting to people who want to build with the Groove EIS; also more generally to provoke thoughts about distributed, coordinated applications. I'll start here; if there's more you want to know about what or why or how, then please ask. [Aside: this is unstructured train-of-thought doc. I already have some internal-use developer doc, and this is different. If there's a good way to convert train-of-thought into structured documentation without breaking its readability whilst in progress, I'd be interested to find it. Documentation has two time-and-space domains: "in progress" (linear time, nonlinear content) and "wrapped" (linear content, nonlinear time). Meanwhile I'll just dive in and say things as they occur to me.] The aim of the tour framework is to make a little, generic, "conversation engine" inside Groove. The first application of this is a self-paced guided tour of Groove. You begin with some slideware, introducing Groove Workspace. Then an instant message arrives from a co-worker (a bot). You reply to the message, and wind up inviting this "person" into your shared space. Then you add some tools, and hold (primitive) conversations using those tools (and chat). To implement this, there's a very loosely-coupled pair of state machines: one at the client, and one at the bot. Each state machine runs a script, through which interesting events are processed. Most of the events are transparent across the network connection, so that the bot sees what's happening to the client (at some level), and the client sees events which originated at the bot, too. There's some optimisation to keep the chatter down: "timer" events aren't disseminated, nor are windowing events at the client, nor are instant-message events (although that's mostly to protect privacy, rather than to reduce chatter). There's a hard-wired restriction right now that the tour involves just two participants: one user, and one bot; there's not good reason for that, and it's not a big deal to remove later. The other aim of the tour framework is that the state-machine's scripts be editable by a non-developer. That's a hard aim to meet, since I don't really know what a non-developer is. In this application it means: you don't need to know much about programming. You still need to grok the hard bit, though: coordinating actions at two locations, using separate (and loosely-coupled) scripts, to achieve some didactic purpose. To see how that works, here's an example of the script code. (This is XML and JavaScript. Maybe a better format would have been better. I don't know.) In the client script: <t:Stage Name="*"> In the bot script: <t:Stage Name="TourComplete"> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
vcard
archives: January 2005 December 2004 November 2004 October 2004 September 2004 August 2004 July 2004 June 2004 May 2004 April 2004 March 2004 February 2004 January 2004 December 2003 November 2003 October 2003 September 2003 August 2003 July 2003 June 2003 May 2003 April 2003 March 2003 February 2003 January 2003 December 2002 November 2002 October 2002 September 2002 August 2002 July 2002 June 2002 May 2002 April 2002 March 2002 February 2002 January 2002 December 2001 November 2001 October 2001 September 2001 August 2001 July 2001 June 2001 see also: {groove: [ ray, matt, paresh, mike, jeff, john ], other: [ /* more blogroll to follow */ ] } The views expressed on this weblog are mine alone and do not necessarily reflect the views of my employer. RSS 2.0 RSS 1.0 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||