Just pushed the update to jsonlogic. Feel free to review if you are interested. I will just use this message to give a small overview of what it enables.
Test code is not as sexy as runtime code but it gives an idea of what it offers: https://github.com/apache/johnzon/blob/master/johnzon-jsonlogic/src/test/java/org/apache/johnzon/jsonlogic/JohnzonJsonLogicTest.java#L47 . An Operator (or AsyncOperator - both classes are the same, it is just about which method you implement as an user, the stage based one or the synchronous based one) can return a stage. Using applyStage method of the logic instance you get a promise instead of a synchronous call enabling to write asynchronous operators. We don't have recursive or async operator built-in but since you can register the ones you want as an user on logic instance it opens a lot of doors. Since modern framework are integrated with stage too, we can imagine returning such a call in a JAX-RS endpoint for example: https://github.com/apache/johnzon/blob/master/johnzon-jsonlogic/src/test/java/org/apache/johnzon/jsonlogic/JohnzonJsonLogicTest.java#L98 . We just created a composable command factory way more integrable and flexible than GraphQL ;). [/end of teasing ;)]. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance> Le mer. 16 déc. 2020 à 22:31, Jean-Louis Monteiro <jlmonte...@tomitribe.com> a écrit : > Hi, > > That sounds good to me. > > Thanks for the visibility > -- > Jean-Louis Monteiro > http://twitter.com/jlouismonteiro > http://www.tomitribe.com > > > On Wed, Dec 16, 2020 at 8:38 PM Romain Manni-Bucau <rmannibu...@gmail.com> > wrote: > > > Hi everyone, > > > > I will make johnzon-jsonlogic CompletionStage friendly in th coming days. > > High level it will enable to chian stages instead of current functions. > > To keep backward compat i am planning to add a CompletionStage apply > > method. > > > > I hope to be able to release it shortly after (hopefully end of week). > > > > Any blocker on your side? Anything else to await? Maybe the OSGi fix > > mentionned on 1.2.9 thread? > > >