João, we are just getting into Flex FDS (possibly with Reactor). I noticed
you posted this compiler a while back, do you still use it? Are the changes
to the Reactor core still current with the latest build of Reactor? Anything
else we need to be aware of?

Any help gratefully received.

Regards
Ian

________________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of João Fernandes
Sent: 15 May 2006 13:07
To: [email protected]
Subject: [Reactor For CF] FDS compiler (alpha, very alpha)

Hi guys, 

If anyone want to give a try to my (clumsy) FDS generator.

Install :
Backup your files before installing those I provide in the zip.
Copy the xsl files to  /reactor/xsl folder.
Copy the fdscompiler to /reactor/utils folder.

To generate it’s like Jared’s compiler (no way!!!)

What I did to some core Reactor files:
                Moved from to.project.xsl those properties to to.custom.xsl
because reactor will send/receive those when communicating with FDS.
                Added to to.custom.xsl to support hasOne and hasMany for
FDS, it’s just a property so it shouldn’t mess reactor.
                Added to gateway.custom.xsl a function to generate TO’s from
a result query, so it can be faster than getArray()[x]._getto().

What will it do?
                Generate the AS3 for each object in the xml file and map it
to your customTo (/mappingfolder/As/). 
                Generate the Assembler with fill,synch,get and count methods
(/mappingfolder/Assembler/).
1) The get method will populate the hasOne and hasMany for that record.
2) The assembler assumes that reactorFactory exists in
application.reactorFactory (where / how should I implement this?)
3) The fill method for now accepts 2 ways of filling, default is getall(),
if you want to test it you can use in AS:
    Mydestination.fill(myarraycollection,”byFields”,{myfield1: myvalue1 ,
myfield2: myvalue2})
 
                Generate the destinations (/mappingfolder/Destination/).

What it doesn’t do?
                Doesn’t validation on(yet) objects during
insert/update/delete.          
                Doesn’t generate a single destination file.
                
All feedback is welcome… 


João Fernandes
Dep. Informática - Área de Desenvolvimento
Cofina media

Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
Tel (+351) 213 185 200 . Fax (+351) 213 540 370
[EMAIL PROTECTED]






-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to