Hi,
I need to perform some business logic (calculations) on data stored in a database. I was looking at the doc and wondering about a good solution for this implementation : - Using pipelines to retrieve data from database, then use them in a Java processor (or maybe using directly jdbc in the java processor to avoid use of SQL processor?) - Using webservices Any advices or suggestions are welcome. Thanks. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
I think xslt may be a good candidate for business logic, and since you have the pipelines, you can take in steps that aggregate/select/sort -- no need to put all the logic in one script. Xslt 2.0 functions or even extension libraries are also available to you. Cheers, Hank Hank Ratzesberger http://nees.ucsb.edu/ Institute for Crustal Studies University of California, Santa Barbara ----- Original Message ----- From: "Kim-Vân Ho-Dac" <[hidden email]> To: <[hidden email]> Sent: Wednesday, July 25, 2007 10:02 AM Subject: [ops-users] business logic : Java processor vs webservices > Hi, > > I need to perform some business logic (calculations) on data stored in a > database. I was looking at the doc and wondering about a good solution > for this implementation : > > - Using pipelines to retrieve data from database, then use them in a > Java processor (or maybe using directly jdbc in the java processor to > avoid use of SQL processor?) > - Using webservices > > Any advices or suggestions are welcome. > > Thanks. > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Hi,
Xslt is great for templates and presentation, but I'm not sure it's the best solution for performing advanced business logic such as you could do with Java for example. It would be ok if I only needed to use XPath to grab a few elements and aggregate/select/sort, but here I need to perform reports and compute calculation on data. Cheers Hank Ratzesberger a écrit : > > I think xslt may be a good candidate for business logic, > and since you have the pipelines, you can take in steps > that aggregate/select/sort -- no need to put all the logic > in one script. > > Xslt 2.0 functions or even extension libraries are > also available to you. > > Cheers, > Hank > > Hank Ratzesberger > http://nees.ucsb.edu/ > Institute for Crustal Studies > University of California, Santa Barbara > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by hodack
Kim-Vân Ho-Dac wrote:
> Hi, > > I need to perform some business logic (calculations) on data stored in a > database. I was looking at the doc and wondering about a good solution > for this implementation : > > - Using pipelines to retrieve data from database, then use them in a > Java processor (or maybe using directly jdbc in the java processor to > avoid use of SQL processor?) > - Using webservices > > Any advices or suggestions are welcome. The web service approach (not necessarily SOAP by the way - you may just do REST / XML over HTTP) separates very cleanly the presentation from the rest of the system. It also allows you to implement that logic in any language you want. But it is also usually a little more work to implement such a service architecture. I don't think there is any harm using the Java processor. If you decide to migrate to using services later, and plan to implement them in Java, you would even be able to reuse most of the code. As mentioned, in simple cases, you can also use XSLT to implement logic. -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Hi list, I'm new to Orbeon and looking for a hint ...
I have a session instance : <xforms:instance id="session"> <session xmlns=""/> </xforms:instance> ... init on load <xforms:send ev:event="xforms-ready" submission="sessionGet"/> ... and then I would like to access the session instance using xsl (in the body part of my html page) : <xsl:if test="doc('instance-session')/info/user/role = ('ADMINISTRATEUR','AQUAREF','EXPERT')"> Any ideas ? Thanks a lot for your help. Francois -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
François
All your XSL statements are applied before your html page is transmitted to the client. In order to access session variables in XSL, you must provide them in the model attribute of your PFC: <page id="my-page" model="get-session-info.xpl" view="my-view.xsl"/> http://www.orbeon.com/ops/doc/reference-page-flow#page-model-page-view You obtain the session variables document with the scope-generator and you can aggregate it along with other inputs such as request headers (request generator): http://www.orbeon.com/ops/doc/processors-generators#scope-generator Or, your model can provide several user-defined inputs to xsl: http://www.orbeon.com/ops/doc/processors-xslt#user-defined To access your session variables from _XForms_, you can create an instance using XInclude or XSLT: http://www.orbeon.com/ops/doc/reference-xforms-ng#xforms-instance-initialization HTH, Hank Hank Ratzesberger http://nees.ucsb.edu/ Institute for Crustal Studies University of California, Santa Barbara ----- Original Message ----- From: "François-Xavier PRUNAYRE" <[hidden email]> To: <[hidden email]> Sent: Thursday, July 26, 2007 1:35 AM Subject: [ops-users] How to get an instance in xsl ? > Hi list, I'm new to Orbeon and looking for a hint ... > > I have a session instance : > <xforms:instance id="session"> > <session xmlns=""/> > </xforms:instance> > > ... init on load > <xforms:send ev:event="xforms-ready" submission="sessionGet"/> > > ... and then I would like to access the session instance using xsl (in the > body part of my html page) : > <xsl:if test="doc('instance-session')/info/user/role = > ('ADMINISTRATEUR','AQUAREF','EXPERT')"> > > Any ideas ? Thanks a lot for your help. > > Francois > > > > > > > > > > -------------------------------------------------------------------------------- > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |