Last Build Date: Mon, 05 Dec 2016 17:43:32 +0000
Mon, 05 Dec 2016 17:43:00 +0000The latest Docker community image tags for 6.5.0.Final are now available on Docker Hub.
Fri, 11 Nov 2016 02:17:00 +0000Original Link : http://www.c2b2.co.uk/red_hat_brms_and_bpms_roadmap_presentationFeaturing Drools, jBPM, OptaPlanner, DashBuilder, UberFire and ErraiFor our second JBUG this November we’re delighted to welcome back Red Hat Platform Architect, Mark Proctor who will be part of a panel of speakers presenting roadmap talks on each component technology.We’re fortunate to have this opportunity for so many project leads to be in one room at the same time, and it’s a fantastic opportunity to come along and ask questions about the future plans for BRMS and BPMS.The talk will look at how the 7 series is shifting gears, presenting a vision for low-code application development in the cloud - with a much stronger focus on quality and maturity over previous releases.Key topics will include:The new Rich Client PlatformThe new BPMN2 DesignerNew Case Management and ModellingImproved Advanced Decision Tables and new Decision Model NotationImproved Forms and Page buildingFully integrated DashBuilder reportingNew OptaPlanner features & performance improvementsThere will be opportunities for questions and the chance to network with the team over a beer and slice of pizza.RegistrationAttendees must register at the Skills Matter website prior to the meet-up. Please – only register if you intend to come along. Follow this link to register: https://skillsmatter.com/meetups/8489-jboss-november-meetup.Agenda18:30 – 18:45 Meet up at Skills Matter with a beer at the bar18:45 – 19:45 Part One19:45 – 20:00 Refreshment break20:00 – 20:30 Part Two20:30 Pizza, beer and networkingSpeakersMark ProctorMark is a Red Hat Platform Architect and co-creator of the Drools project - the leading Java Open Source rules system. In 2005 Mark joined JBoss as lead of the Drools project. In 2006, when Red Hat acquired JBoss, Mark’s role evolved into his current position as platform architect for the Red Hat JBoss BRMS (Business Rules Management System) and BPMS (Business Process Management System) platforms - which incorporate the Drools and jBPM projects.Kris VerlaenenKris is the JBoss BPM project lead, and is interested in pretty much everything related to business process management. He is particularly fascinated by healthcare - an area that has already demonstrated the need for flexible business processes.Geoffrey De SmetGeoffrey is the founder and project lead of OptaPlanner (http://www.optaplanner.org), the leading open source constraint satisfaction solver in Java. He started coding Java in 1999, regularly participates in academic competitions, and enjoys assisting developers in optimizing challenging planning problems of real-world enterprises. He is also a contributor to a variety of other open source projects.Mauricio SalatinoMauricio Salatino is a Drools/jBPM Senior Software Engineer in Red Hat, and author of the jBPM5 and jBPM Developer Guide, and the Drools 6 Developer Guide. His main task right now is to develop the next generation cloud capability for the BRMS and BPMS platforms - which includes the Drools and jBPM technologies.Max BarkleyMax is a Software Engineer at Red Hat and the Errai project lead. Joining Red Hat as an intern in 2013, he took on his current role after graduating H.B.Sc. Mathematics from the University of Toronto in 2015. [...]
Mon, 31 Oct 2016 19:55:00 +0000The Decision Model and Notation (DMN) specification is a relatively new standard by OMG (Object Management Group) that aims to do for business rules and business decisions what BPMN (it's sibling specification) did for business processes: standardize the notation and execution semantics to enable both its use by business users, and the interchange of models between tools from different vendors.The Drools team has been actively following the specification and the direction it is taking. The team believes that, in accordance with its long time commitment to open standards, it is now time to support the specification and provide a compliant implementation for the benefit of its users.The specification defines among other things:an expression language called FEEL used to express constraints and decisionsa graphical language to model decision requirementsa metamodel and runtime semantics for decision modelsan XML-based interchange format for decision modelsAs part of the investigation, the Drools team implemented a PoC that is now public and available here. The PoC already covers:a complete, compliance level 3, FEEL language implementation.complete support for the XML-based interchange format for marshalling and unmarshalling.A partial implementation of the metamodel and runtime semantics We expect to have a complete runtime implementation released with Drools 7.0 (expected for Q1/2017).On a related note, this is also a great opportunity for community involvement. This being a standard implementation, and relatively isolated from other existing components, it is the perfect chance for any community member that wishes to get involved with Drools and open source development to get his/her hands dirty and help bring this specification to life. Contact me on the Drools mailing list or on IRC if you would like to help.We will publish over the next few weeks several blogs on this subject, with both general explanations about the specification and with details of our plans and our implementation. Bellow you can find a quick Q&A. Feel free to ask additional questions you might have about this subject on the mailing list.Happy Drooling!Questions & Answers1. What DMN version and what compliance level will Drools support?Drools is implementing DMN version 1.1 support at compliance level 3.2. Is DMN support integrated with the Drools platform?Yes, the DMN implementation leverages the whole Drools platform (including, among other things, the deployment model, infrastructure and tooling). DMN models are a first class citizen in the platform and an additional asset that can be included in kjars. DMN models will be supported in the kie-server and decision services exposed via the usual kie-server interfaces.3. Is Drools DMN integrated with jBPM BPMN?At the moment of this announcement, the integration is not implemented yet, but we expect it will be fully functional by the time Drools and jBPM 7.0 release (Q1 2017).4. Will FEEL be a supported dialect for DRL rules? At the moment this is not clear and requires additional research. While FEEL works well as part of the XML-based interchange format, its syntax (that supports spaces and special characters as part of identifiers) is ambiguous and cannot be easily embedded into another language like DRL. We will discuss this topic further in the upcoming months. [...]
Tue, 25 Oct 2016 21:33:00 +0000The latests and greatest Drools 6.5.0.Final release is now available for download.This is an incremental release on our previous build that focus on a few key improvements to round up the 6.x series.You can find more details, downloads and documentation here:Drools websiteDownloadsDocumentationRelease NotesRead below some of the highlights of the release.You can also check the new releases for:jBPMOptaplannerHappy drooling.What's new?Core EngineConfigurable ThreadFactory Some runtime environments (like for example Google App Engine) don't allow to directly create new Threads. For this reason it is now possible to plug your own ThreadFactory implementation by setting the system property drools.threadFactory with its class name.Use of any expressions as input for a query It is now possible to use as input argument for a query both the field of a fact as in:query contains(String $s, String $c) $s := String( this.contains( $c ) )endrule PersonNamesWithA when $p : Person() contains( $p.name, "a"; )thenend Update with modified properties Property reactivity has been introduced to avoid unwanted and useless (re)evaluations and allow the engine to react only to modification of properties actually constrained or bound inside of a given pattern. However this feature is automatically available only for modifications performed inside the consequence of a rule. Conversely a programmatic update is unaware of the object’s properties that have been changed, so it is unable of using this feature.To overcome this limitation it is now possible to optionally specify in an update statement the names of the properties that have been changed in the modified object as in the following example:Person me = new Person("me", 40);FactHandle meHandle = ksession.insert( me );me.setAge(41);me.setAddress("California Avenue");ksession.update( meHandle, me, "age", "address" ); Monitoring framework improvements A new type of MBean has been introduced in order to provide monitoring of the KieContainers, and the JMX MBeans hierarchical structure have been revisited to reflect the relationship with the related MBeans of the KieBases. The JMX objectnaming has been normalized to reflect the terminology used in the Kie API.A new type of MBean has been introduced in order to provide monitoring for Stateless KieSession, which was not available in previous releases. Drools WorkbenchGuided Rule Editor : Support formulae in composite field constraints Composite field constraints now support use of formulae. When adding constraints to a Pattern the "Multiple Field Constraint" selection ("All of (and)" and "Any of (or)") supports use of formulae in addition to expressions.Authoring - Project Editor - Reimport button The "Reimport" button invalidates all cached dependencies, in order to handle scenarios where a specific dependency was updated without having its version modified. [...]
Thu, 29 Sep 2016 11:49:00 +0000Another successful Google Summer of Code program took place this year. We worked together with Samuel Richardson from the USA to get the first integration between the Drools Engine and the popular game engine Minecraft. The scope of the project was to experiment how Drools can be used to declaratively define a game's logic. I initially thought about modelling point & click games such as Escape The Room, Monkey Island, Maniac Mansion, etc but after looking at how to work with Minecraft I've opened the concept to wider game definitions. We worked with Sam into creating a generic game engine that will take the Rules Definitions and drive the game (the Minecraft Mods) . Sam created a couple of Minecraft MODs that provides a scenario for the game which interacts and delegate to Drools the game's logic.You can find the work for the Drools Game Engine here: https://github.com/salaboy/drools-game-engineAnd the two mods projects here: https://github.com/youthfulIdealism/minecraft-horse-race-mod andhttps://github.com/youthfulIdealism/minecraft-capture-flag-modThese two games are using the rules described here:https://github.com/Salaboy/drools-game-engine/blob/master/drools-game-engine-capture-flag-kjar/src/main/resources/rules/game/game-rules.drland here:https://github.com/Salaboy/drools-game-engine/blob/master/drools-game-engine-horserace-kjar/src/main/resources/rules/game/gamerules.drlWe spent a lot of time in trying to get the separation right, so now you can consume the game server itself indepentendly of the UI. This opens up the doors so you can use the engine withoug Minecraft. For that reason we have created also a set of services that exposes the Game Engine via rest in case that you want to interact with it remotely.You can take a look at the main GameSession interface which is in charge of defining how to create new game sessions and enables the UI to register callbacks so actions can be executed when the logic of the game says so.https://github.com/Salaboy/drools-game-engine/blob/master/drools-game-engine-core-api/src/main/java/org/drools/game/core/api/GameSession.javaBecause of this separation you will see that each game has its own test suite where both, the Rules and the GameSession API is tested to make sure that new games can be created and the rules are behaving as expected.There is a lot of things to improve still, both in the Game Engine and in the MODs, so feel free to get in touch with us if you want to participate on the project. Hopefully we can build enough features to include it in the Drools Project. [...]
Wed, 17 Aug 2016 00:27:00 +0000BPMS and BRMS 6.x put in a lot of foundations, but the UI aspects fell short in a number of areas with regards to maturity and usability.In the last 4 years Red Hat has made considerable investment into the BPMS and BRMS space. Our engineering numbers have tripled, and so have our QE numbers. We also now have a number of User Experience and Design (UXD0 people, to improve our UI designs and usability.The result is we hope the 7x series will take our product to a whole new level, with a much stronger focus on maturity and usability, now with the talent and bandwidth to deliver.We had an internal review where we had to demonstrate how we were going to go about delivering a kick ass product in 7.0. I thought I would share, in this blog, what we produced, which is a roadmap document with a focus on UI Usability. The live version can be found at google docs, here - feel free to leave comments.Enjoy :)MarkBPMS and BRMS Platform Architect.Other Links:Drools 7.0 Happenings (Includes videos)Page and Form Builder Improvements (Video blog)Security Management (Detailed blog on 7.0 improvements)User and Group Management (Default blog on 7.0 improvements)--------About This DocumentThis document presents the 7.0 roadmap with an eye on usability, in terms of where, how and who for. It is an aggressive and optimistic plan for 7.0 and it is fully expected that some items or a percentage of some items will eventually be pushed to 7.1, to ensure we can deliver close to time. Longer term 7.1 and onward items are not discussed or presented in this document, although it does touch on some of the items which would be raised as a result of reading this document - such as the “What’s not being improved” (for 7.0) section.Wider field feedback remains limited, with a scarcity of specifics. This creates challenges in undertaking a more evidence based approach to planning, which can stand up strongly to scrutiny on all sides. However, engineering and UXD have been working with the field, primarily through Jim Tyrrell and Justin Holmes over the last year on this topic and this document represents the culmination of many discussions over the last year. As such it represents a good heuristic, based on the information and resources available to us at the time.Understanding Feedback from the FieldBroadly speaking, we have two types of customers:Those who want developers to use our product, often times embedded in their appsThose who want a cross-functional team to use our productGenerally speaking, we do quite well with customer 1, but we have a huge challenge with customer 2. The market has set a pretty clear expectation, on features and quality for targeted audiences, with IBM ODM and Pega’s BPM/Case Management. Almost every customer type 2 either has a significant deployment of these two competitors in place, or the decision maker has done significant work with these products in the past. Moreover, customer 2 is interested in larger, department or organization wide deployments. Customer 1 is usually interested on project level deployments.Customer 2 is primarily upset with our authoring experience, both in eclipse and in Business Central. It is uncommon that customer 1 or 2 is upset with missing features or functions from our runtime (especially now that 6.3 has been released with a solid execution server and management function), and when she is, our current process to resolve these gaps works well. Therefore, the field feedback in this document (and our current process) is focused on the authoring experience. This isn’t to say other elements of the product are perfect, but simply an acknowledgement that we have limited time and energy and that the authoring experience is the most important barrier to success with customer 2.The key issues that we have authoring side are fundamental (customer stories available here at request - some are a bit off color). Generally, these issues f[...]
Fri, 05 Aug 2016 23:54:00 +0000
Fri, 29 Jul 2016 06:58:00 +0000The jBPM 7 release will include an integrated security management solution to allow administrator users to manage the application’s users, groups and permissions using an intuitive and friendly user interface. Once released, users will be able to configure who can access the different resources and features available in the workbench.In that regards, a first implementation of the user & group management features was announced about 3 months ago (see the announcement here). This is the second article of this series and it describes what are permissions and how they extend the user and group management features in order to deliver a full security management solution. So before going further, let's introduce some concepts:Basic conceptsRoles vs GroupsUsers can be assigned with more than one role and/or group. It is always mandatory to assign at least one role to the user, otherwise he/she won’t be able to login.Roles are defined at application server level and they are defined as
Fri, 17 Jun 2016 18:04:00 +0000
Wed, 08 Jun 2016 14:15:00 +0000
Tue, 07 Jun 2016 23:29:00 +0000This year RuleML 2016 is hosted by Stony Brook University, New York USA. Decision Camp 2016 is co-locating at the same event. I'll be presenting at DecisionCamp and helping to chair the industrial track at RuleML. Looking forward to seeing everyone there and spending a week immersed in discussions on reasoning systems :)http://2016.ruleml.orghttp://2016.ruleml.org/decisioncampRuleML ScheduleDecision Camp Schedule(pasted below)July 6, 2016OMG DMN 1.2 RTF Meeting at DecisionCAMP 10:00 - 17:00 The Revision Task Force (RTF) for DMN 1.2 will be meeting in at the Stony Brook University, room NCS 220. The meeting is open only to members of the RTF, but others are welcome to meet members of the RTF at the DecisionCAMP on 7th and 8th. July 7, 2016StartEndTitleAuthors9:009:15Welcome and KickoffJacob Feldman9:1510:00Modeling Decision-Making Processes: Melding Process Models and Decision ModelsAlan Fish10:0010:15Coffee Break10:1510:50Oracle Decision Modeling ServiceGary Hallmark, Alvin To10:5011:25Decision Management at the Speed of EventsDaniel Selman11:2512:00Factors Affecting Rule PerformanceCharles Forgy 12:0012:35DMN: how to satisfy multiple objectives?Jan Vanthienen12:3514:00Lunch Break14:0015:00Natural Language Access to Data: It Needs Reasoning(RuleML Keynote)Richard Waldinger15:0015:35Welcome to Method for Parsing Regulations into DMNTom Debevoise, Will Thomas15:3516:10Using Machine Learning, Business Rules, and Optimization for Flash Sale PricingIgor Elbert, Jacob Feldman16:1016:25Coffee Break16:2517:00Improving BRMS Efficiency and Performance and Using Conflict ResolutionJames Owen, Charles Forgy17:00.18:00QnA Panel "DMN from OMG, Vendor, and Practitioner Perspectives"Moderated by Bruce Silver19:00-Joint DinnerJuly 8, 2016 StartEndTitleAuthors9:0010:00DMN as a Decision Modeling Language(RuleML Keynote)Bruce Silver10:0010:15Coffee Break10:1510:50Solving the "Last Mile" in model based developmentLarry Goldberg10:5011:25What-If Analyzer for DMN-based Decision Models(Challenge Demo)Jacob Feldman11:2512:00Advanced Decision Analytics via Deep Reasoning on Diverse Data: For Health Care and MoreBenjamin Grosof, Janine Bloomfield12:0012:35The Decision Boundary Map: An Interactive Visual Interface to Make Informed Decisions and Selections in the Presence of TradeoffsShenghui Cheng, Klaus Mueller12:3514:00Lunch Break15:1515:50Learning Rule Base Programming with Classic Computer GamesMark Proctor [...]
Wed, 01 Jun 2016 18:54:00 +0000
Fri, 27 May 2016 18:29:00 +0000
Fri, 13 May 2016 09:05:00 +0000Great news! Once again the amazing and flamboyant leaders of the Java User Group from Barcelona manage to put together their anual conference JBCNConf. And, of course, Drools & jBPM will be there. Take a look at their website for more information about the talks and speakers, and if you are close enough to Barcelona I hope to see you all there.This year I will be doing a Drools Workshop there (Thursday, first day of the conference), hoping to introduce people to Drools in a very hands on session. So if you are looking to start using Drools straight away, this is a great opportunity to do so. If you are a more advanced user and wants to bring your examples or issues to the workshop you are more than welcome. I will be sharing the projects that I will be using on the workshop a couple of weeks before the event so can take a look and bring more questions to the session. It is also probable that I will be bringing with me freshly printed copies of the new Mastering Drools book, so you might be able to get some copies for free :)Maciej Swiderski will be covering the jBPM and Knowledge Driven Microservices this year. I totally recommend this talk to anyone interested in how to improve your micro services by adopting tools to formalise and automate domain specific knowledge.Finally, this year Maciej and I will be given the closing talk of the conference titled : The Open Source Way were we will be sharing with the audience the main benefits of getting involved with the open source community & projects but most importantly we will be sharing how to do achieve that. If you are already an Open Source project contributor and you plan to attend to the conference, get in touch!Stay tuned for more news, and get in touch if you want to hang around with us before and after the conference! [...]
Mon, 09 May 2016 18:11:00 +0000The latest Docker community image tags for 6.4.0.Final are now available on Docker Hub.
Mon, 18 Apr 2016 15:50:00 +0000The latests and greatest Drools 6.4.0.Final release is now available for download.This is an incremental release on our previous build that brings several improvements in the core engine and the web workbench.You can find more details, downloads and documentation here:Drools websiteDownloadsDocumentationRelease NotesRead below some of the highlights of the release.You can also check the new releases for:jBPMOptaplannerHappy drooling.Drools WorkbenchNew look and feelThe general look and feel in the entire workbench has been updated to adopt PatternFly. The update brings a cleaner, lightweight and more consistent user experience throughout every screen. Allowing users focus on the data and the tasks by removing all unnecessary visual elements. Interactions and behaviour remain mostly unchanged, limiting the scope of this change to visual updates. Various UI improvementsIn addition to the PatternFly update described above which targeted the general look and feel, many individual components in the workbench have been improved to create a better user experience. This involved making sure the default size of modal popup windows is appropriate to fit the corresponding content, adjusting the size of text fields as well as aligning labels, and improving the resize behaviour of various components when used on smaller screens. New LocalesLocales ru (Russian) and zh_TW (Chineses Traditional) have now been added.New Decision Server Management UIThe KIE Execution Server Management UI has been completely redesigned to adjust to major improvements introduced recently. Besides the fact that new UI has been built from scratch and following best practices provided by PatternFly, the new interface expands previous features giving users more control of their servers.Core EngineBetter Java 8 compatibilityIt is now possible to use Java 8 syntax (lambdas and method references) in the Right Hand Side (then) part of a rule.More robust incremental compilationThe incremental compilation (dynamic rule-base update) had some relevant flaws when one or more rules with a subnetwork (rules with complex existential patterns) were involved, especially when the same subnetwork was shared among different rules. This issue required a partial rewriting of the existing incremental compilation algorithm, followed by a complete audit that has also been validated by brand new test suite made by more than 20,000 test cases only in this area.Improved multi-threading behaviourEngine's code dealing with multi-threading has been partially rewritten in order to remove a large number of synchronisation points and improve stability and predictability.OOPath improvementsOOPath has been introduced with Drools 6.3.0. In Drools 6.4.0 it has been enhanced to support a number of new features. [...]
Mon, 18 Apr 2016 13:21:00 +0000Oficial what? Long title for a quite small but useful contribution. Wildfly Swarm allows us to create rather small and self contained application including just what we need from the Wildfly Application Server. On this post we will be looking at the Drools Fraction provided to work with Wildfly Swarm. The main idea behind this fraction is to provide a quick way to bundle the Drools Server among with your own services inside a jar file that you can run anywhere.Microservices WorldNowadays, while micro services are a trending topic we need to make sure that we can bundle our services as decoupled from other software as possible. For such a task, we can use Wildfly Swarm that allows us to create our services using a set of fractions instead of a whole JEE container. It also saves us a lot of time by allowing us to run our application without the need of downloading or installing a JEE container. With Swarm we will be able to just run java -jar
Wed, 06 Apr 2016 18:17:00 +0000IntroductionThis article talks about a new feature that allows the administration of the application's users and groups using an intuitive and friendly user interface that comes integrated in both jBPM and Drools Workbenches.User and group managementBefore the installation, setup and usage of this feature, this article talks about some previous concepts that need to be completely understood for the further usage.So this article is split in those sections:Security management providers and capabilitiesInstallation and setupUsageNotes: This feature is included from version 6.4.0.Final.Sources available here.Security management providersA security environment is usually provided by the use of a realm. Realms are used to restrict the access for the different application's resources. So realms contains information about the users, groups, roles, permissions and and any other related information.In most of the typical scenarios the application's security is delegated to the container's security mechanism, which consumes a given realm at same time. It's important to consider that there exist several realm implementations, for example Wildfly provides a realm based on the application-users.properties/application-roles.properties files, Tomcat provides a realm based on the tomcat-users.xml file, etc. So keep in mind that there is no single security realm to rely on, it can be different in each installation.The jBPM and Drools workbenches are not an exception, they're build on top Uberfire framework (aka UF), which delegates the authorization and authentication to the underlying container's security environment as well, so the consumed realm is given by the concrete deployment configuration. Security management providersDue to the potential different security environments that have to be supported, the users and groups management provides a well defined management services API with some default built-in security management providers. A security management provider is the formal name given to a concrete user and group management service implementation for a given realm.At this moment, by default there are three security management providers available:Wildfly / EAP security management provider - Realms based on properties files. Tomcat security management provider - Realms based on XML files. Keycloak security management provider - For the administration of Keycloak based realms. This provider is included as technical preview for the next 7.0 series, currently in development.Keep updated on new security management providers on further releases. You can easily build and register your own security management provider if non of the defaults fits in your environment. Security management providers's capabilitiesEach security realm can provide support different operations. For example consider the use of a Wildfly's realm based on properties files, The contents for the applications-users.properties is like:admin=207b6e0cc556d7084b5e2db7d822555csalaboy=d4af256e7007fea2e581d539e05edd1bmaciej=3c8609f5e0c908a8c361ca633ed23844kris=0bfd0f47d4817f2557c91cbab38bb92dkaty=fd37b5d0b82ce027bfad677a54fbcceejohn=afda4373c6021f3f5841cd6c0a027244jack=984ba30e11dda7b9ed86ba7b73d01481director=6b7f87a92b62bedd0a5a94c98bd83e21user=c5568adea472163dfc00c19c6348a665guest=b5d048a237bfd2874b6928e1f37ee15ekiewb=78541b7b451d8012223f29ba5141bcc2kieserver=16c6511893651c9b4b57e0c027a96075As you can see, it's based on key-value pairs where the key is the username, and the value is the hashed value for the user's password. So[...]
Mon, 04 Apr 2016 09:02:00 +0000
Wed, 23 Mar 2016 22:20:00 +0000Packt Publishing has another great promotion going: 50% off on all Packt eBooks and Videos until April 30th.
Mon, 21 Mar 2016 18:21:00 +0000Hi everyone! On this blog post I wanted to cover a simple example showing how easy it is to scale our Drools Stateless services by using Openshift 3 (Docker and Kubernetes). I will be showing how we can scale our service by provisioning new instances on demand and how these instances are load balanced by Kubernetes using a round robin strategy.Our Drools Stateless ServiceFirst of all we need a stateless Kie Session to play around with. In these simple example I've created a food recommendation service to demonstrate what kind of scenarios you can build up using this approach. All the source code can be found inside the Drools Workshop repository hosted on github: https://github.com/Salaboy/drools-workshop/tree/master/drools-openshift-exampleIn this project you will find 4 modules:drools-food-model: our business model including the domain classes, such as Ingredient, Sandwich, Salad, etcdrools-food-kjar: our business knowledge, here we have our set of rules to describe how the food recommendations will be done.drools-food-services: using wildfly swarm I'm exposing a domain specific service encapsulating the rule engine. Here a set of rest services is exposed so our clients can interact.drools-controller: by using the Kubernetes Java API we can programatically provision new instances of our Food Recommendation Service on demand to the Openshift environment.Our unit of work will be the Drools-Food-Services project which expose the REST endpoints to interact with our stateless sessions.You can take a look at the service endpoint which is quite simple: https://github.com/Salaboy/drools-workshop/blob/master/drools-openshift-example/drools-food-services/src/main/java/org/drools/workshop/food/endpoint/api/FoodRecommendationService.javaAlso notice that there is another Service that gives us very basic information about where our Service is running: https://github.com/Salaboy/drools-workshop/blob/master/drools-openshift-example/drools-food-services/src/main/java/org/drools/workshop/food/endpoint/api/NodeStatsService.javaWe will call this service to know exactly which instance of the service is answering our clients later on.The rules for this example are simple and not doing much, if you are looking to learn Drools, I recommend you to create more meaning full rules and share it with me so we can improve the example ;) You can take a look at the rules here:https://github.com/Salaboy/drools-workshop/blob/master/drools-openshift-example/drools-food-kjar/src/main/resources/rules.drlAs you might expect: Sandwiches for boys and Salads for girls :)One last important thing about our service that is important for you to see is how the rules are being picked up by the Service Endpoint. I'm using the Drools CDI extension to @Inject a KieContainer which is resolved using the KIE-CI module, explained in some of my previous posts.https://github.com/Salaboy/drools-workshop/blob/master/drools-openshift-example/drools-food-services/src/main/java/org/drools/workshop/food/endpoint/impl/FoodRecommendationServiceImpl.java#L33We will bundle this project into a Docker Image that can be started as many times as we want/need. If you have a Docker client installed in your local environment you can start this food recommendation service by looking at the salaboy/drools-food-services image which is hosted in hub.docker.com/salaboyBy starting the Docker image without even knowing what is running inside we immediately notice the following advantages:We don't need to install Java or an[...]
Sat, 19 Mar 2016 21:19:00 +0000IntroductionSingle Sign On (SSO) and related token exchange mechanisms are becoming the most common scenario for the authentication and authorization in different environments on the web, specially when moving into the cloud.This article talks about the integration of Keycloak with jBPM or Drools applications in order to use all the features provided on Keycloak. Keycloak is an integrated SSO and IDM for browser applications and RESTful web services. Lean more about it in the Keycloak's home page.The result of the integration with Keycloak has lots of advantages such as:Provide an integrated SSO and IDM environment for different clients, including jBPM and Drools workbenchesSocial logins - use your Facebook, Google, Linkedin, etc accountsUser session managementAnd much more... Next sections cover the following integration points with Keycloak:Workbench authentication through a Keycloak serverIt basically consists of securing both web client and remote service clients through the Keycloak SSO. So either web interface or remote service consumers ( whether a user or a service ) will authenticate into trough KC. Execution server authentication through a Keycloak serverConsists of securing the remote services provided by the execution server (as it does not provides web interface). Any remote service consumer ( whether a user or a service ) will authenticate trough KC. Consuming remote servicesThis section describes how a third party clients can consume the remote service endpoints provided by both Workbench and Execution Server. ScenarioConsider the following diagram as the environment for this article's example:Example scenarioKeycloak is a standalone process that provides remote authentication, authorization and administration services that can be potentially consumed by one or more jBPM applications over the network.Consider these main steps for building this environment:Install and setup a Keycloak server Create and setup a Realm for this example - Configure realm's clients, users and roles Install and setup the SSO client adapter & jBPM applicationNotes: The resulting environment and the different configurations for this article are based on the jBPM (KIE) Workbench, but same ones can also be applied for the KIE Drools Workbench as well. This example uses latest 6.4.0.CR2 community release versionStep 1 - Install and setup a Keycloak serverKeycloak provides an extensive documentation and several articles about the installation on different environments. This section describes the minimal setup for being able to build the integrated environment for the example. Please refer to the Keycloak documentation if you need more information.Here are the steps for a minimal Keycloak installation and setup:Download latest version of Keycloak from the Downloads section. This example is based on Keycloak 1.9.0.Final. Unzip the downloaded distribution of Keycloak into a folder, let's refer it as $KC_HOME Run the KC server - This example is based on running both Keycloak and jBPM on same host. In order to avoid port conflicts you can use a port offset for the Keycloak's server as: $KC_HOME/bin/standalone.sh -Djboss.socket.binding.port-offset=100 Create a Keycloak's administration user - Execute the following command to create an admin user for this example: $KC_HOME/bin/add-user.sh -r master -u 'admin' -p 'admin'The Keycloak ad[...]
Sat, 13 Feb 2016 14:45:00 +0000Red Hat will be hosting a free webinar on Tuesday, Feb 23rd, on Decisions-as-a-Service with Drools/Red Hat BRMS.
Fri, 12 Feb 2016 10:31:00 +0000
Mon, 01 Feb 2016 18:01:00 +0000Packt Publishing has a great promotion going on right now. They are offering 50% off on all Packt eBooks and Videos until March 2nd.