<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Rule on Micha Kops&#39; Tech Notes</title>
    <link>https://www.hascode.com/tags/rule/</link>
    <description>Recent content in Rule on Micha Kops&#39; Tech Notes</description>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>Copyright © 2010 - 2025 Micha Kops. #e9d956c0c0154a221ad83c925346a8fa0e72f866</copyright>
    <lastBuildDate>Tue, 27 Feb 2018 00:00:00 +0100</lastBuildDate>
    <atom:link href="https://www.hascode.com/tags/rule/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Implementing, Testing and Running Procedures for Neo4j</title>
      <link>https://www.hascode.com/implementing-testing-and-running-procedures-for-neo4j/</link>
      <pubDate>Tue, 27 Feb 2018 00:00:00 +0100</pubDate>
      <guid>https://www.hascode.com/implementing-testing-and-running-procedures-for-neo4j/</guid>
      <description>&lt;div id=&#34;preamble&#34;&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;A lot of features are already included in the Neo4j graph database system but sometimes we want to extends its capabilities and implement functions and procedures by ourselves that we may reuse.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In the following tutorial I will demonstrate how to implement a procedure for Neo4j, how to write and run tests using JUnit and an embedded graph database and last but not least how to setup Neo4j with Docker and our stored procedure installed in no time.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>Snippet: Integrating the Drools Business Rules Management System in 5 Minutes</title>
      <link>https://www.hascode.com/snippet-integrating-the-drools-business-rules-management-system-in-5-minutes/</link>
      <pubDate>Thu, 30 Mar 2017 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/snippet-integrating-the-drools-business-rules-management-system-in-5-minutes/</guid>
      <description>&lt;div id=&#34;preamble&#34;&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Drools is a slim Business Rules Management System (BRMS) solution with different integrations and tools available.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In the following short snippet I’d like to demonstrate how to integrate a simple rule engine into an application using this library.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;imageblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;img src=&#34;example-drools-app-in-eclipse-ide-1024x792.png&#34; alt=&#34;example drools app in eclipse ide 1024x792&#34;/&gt;
&lt;/div&gt;
&lt;div class=&#34;title&#34;&gt;Figure 1. Drools Example running in Eclipse IDE&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_dependencies&#34;&gt;Dependencies&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Using &lt;a href=&#34;https://gradle.org/&#34;&gt;Gradle&lt;/a&gt; here we only need to add one dependency for &lt;em&gt;drools-compiler&lt;/em&gt; to our project’s &lt;em&gt;build.gradle&lt;/em&gt;. In addition, we’re adding a task to execute our application.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>Ordering your JUnit Rules using a RuleChain</title>
      <link>https://www.hascode.com/ordering-your-junit-rules-using-a-rulechain/</link>
      <pubDate>Tue, 21 Feb 2012 00:00:00 +0100</pubDate>
      <guid>https://www.hascode.com/ordering-your-junit-rules-using-a-rulechain/</guid>
      <description>&lt;div id=&#34;preamble&#34;&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;JUnit Rules are a handy solution if one needs to alter test methods or wants to share common functionality between several test cases. JUnit 4.10 introduced a new class to order several rules according to our needs using a so called rule-chain.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In the following example, we’re going to create a simple custom rule and afterwards bind several instances of it in a specified order to a test method.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_adding_junit&#34;&gt;Adding JUnit&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Just one Maven dependency needed here – JUnit 4.10&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
  </channel>
</rss>
