Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 59524 invoked from network); 3 Nov 2009 23:10:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Nov 2009 23:10:37 -0000 Received: (qmail 93249 invoked by uid 500); 3 Nov 2009 23:10:36 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 93137 invoked by uid 500); 3 Nov 2009 23:10:35 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 93127 invoked by uid 99); 3 Nov 2009 23:10:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Nov 2009 23:10:35 +0000 X-ASF-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE,MIME_HEADER_CTYPE_ONLY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mgainty@hotmail.com designates 65.55.116.93 as permitted sender) Received: from [65.55.116.93] (HELO blu0-omc3-s18.blu0.hotmail.com) (65.55.116.93) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Nov 2009 23:10:32 +0000 Received: from BLU142-W21 ([65.55.116.72]) by blu0-omc3-s18.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 3 Nov 2009 15:10:12 -0800 Message-ID: Content-Type: multipart/alternative; boundary="_e335600e-17d7-4085-940a-37f120d4f034_" X-Originating-IP: [71.184.166.105] From: Martin Gainty To: Subject: RE: Managing content in an SCXML file Date: Tue, 3 Nov 2009 18:10:11 -0500 Importance: Normal In-Reply-To: <00c901ca5cd4$34e6e610$9eb4b230$@nicolas@villefluide.fr> References: <4ADDCC4D.2080906@fit.fraunhofer.de> <4AE0030F.4020403@fit.fraunhofer.de> <6607495067508563865@unknownmsgid> X-OriginalArrivalTime: 03 Nov 2009 23:10:12.0011 (UTC) FILETIME=[CB7D8FB0:01CA5CDA] --_e335600e-17d7-4085-940a-37f120d4f034_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cedric a markup implies SGML..i assume this might be described as XSD or XML Schem= a Definition? Can you describe the events this state-machine model would support? can you describe the content each event would carry and or generate? Can you describe what would be contained in the header for each Event? Can you describe what the body would look like for each event? You might be able to implement a simple listener that listens on fixed host= /port and when message is received (EOT is achieved after receiving header = and body) you can hand the body of the message to device can you confine the size of the message?=20 if not you might want to implement a packet model to buffer the packets to = a known structure (as in some sort of linked-list)=20 until body EOT is achieved=20 sounds like a fun project! Bon Chance Martin Gainty=20 ______________________________________________=20 Note de d=E9ni et de confidentialit=E9 Ce message est confidentiel et peut =EAtre privil=E9gi=E9. Si vous n'=EAte= s pas le destinataire pr=E9vu=2C nous te demandons avec bont=E9 que pour sa= tisfaire informez l'exp=E9diteur. N'importe quelle diffusion non autoris=E9= e ou la copie de ceci est interdite. Ce message sert =E0 l'information seul= ement et n'aura pas n'importe quel effet l=E9galement obligatoire. =C9tant = donn=E9 que les email peuvent facilement =EAtre sujets =E0 la manipulation= =2C nous ne pouvons accepter aucune responsabilit=E9 pour le contenu fourni= . > From: cedric.nicolas@villefluide.fr > To: user@commons.apache.org > Subject: Managing content in an SCXML file > Date: Tue=2C 3 Nov 2009 23:23:01 +0100 >=20 > Dear Rahul and others=2C >=20 > I want to do a quite simple thing : having a state machine on a server > controlling user interface of mobile clients.=20 > The state machine would have a lot of states and complex stream=2C and fo= r > some specific states it will embedded a simple markup language content (e= .g. > an html subset) that will be delivered to the mobile client which when it > receives it=2C interpret and display it. >=20 > For example the server state machine would have "connect" state that will= be > triggered when the mobile is establishing a connection=2C and would react= by > giving to the mobile client the content to be displayed. An simple exampl= e > would be : >=20 > > > Welcome ! > > > > > > >=20 > In that case the content in tags will be retrieved by the Java > code on void connect() method=2C and sent to the device. Server will list= en to > device and when receiving a message like send_OK=2C trigger this to the s= tate > machine. >=20 > To summarize I want to emulate a tiny web server hosting some tiny pages > with a state machine. >=20 > I've gone through all the documentation of Commons Scxml=2C and didn't fi= nd an > easy way to do this. The possible ways I see are to use a data model=2C b= ut > using tags for setting my content seems to be quite heavy to wri= te > and don't know how to assign an XML tree to a data model node=2C and othe= r > possibility would be to use maybe custom actions=2C but how to describe i= n a > simple way my XML like-content ? >=20 > Do you have a suggestion to do this in an easy and readable way ? >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe=2C e-mail: user-unsubscribe@commons.apache.org > For additional commands=2C e-mail: user-help@commons.apache.org >=20 =20 _________________________________________________________________ Windows 7: Unclutter your desktop. http://go.microsoft.com/?linkid=3D9690331&ocid=3DPID24727::T:WLMTAGL:ON:WL:= en-US:WWL_WIN_evergreen:112009= --_e335600e-17d7-4085-940a-37f120d4f034_--