Dvare framework

A Lightweight Java business rule expression language.

Лицензия

Лицензия

Группа

Группа

org.dvare
Идентификатор

Идентификатор

dvare-framework
Последняя версия

Последняя версия

3.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Dvare framework
A Lightweight Java business rule expression language.
Система контроля версий

Система контроля версий

https://github.com/dvare/dvare-framework

Скачать dvare-framework

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.dvare/dvare-framework/ -->
<dependency>
    <groupId>org.dvare</groupId>
    <artifactId>dvare-framework</artifactId>
    <version>3.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.dvare/dvare-framework/
implementation 'org.dvare:dvare-framework:3.0'
// https://jarcasting.com/artifacts/org.dvare/dvare-framework/
implementation ("org.dvare:dvare-framework:3.0")
'org.dvare:dvare-framework:jar:3.0'
<dependency org="org.dvare" name="dvare-framework" rev="3.0">
  <artifact name="dvare-framework" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.dvare', module='dvare-framework', version='3.0')
)
libraryDependencies += "org.dvare" % "dvare-framework" % "3.0"
[org.dvare/dvare-framework "3.0"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.apache.commons : commons-lang3 jar 3.10
org.slf4j : slf4j-api jar 1.7.30

test (2)

Идентификатор библиотеки Тип Версия
org.slf4j : slf4j-log4j12 jar 1.7.30
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

Dvare Framework Build Status Codacy Badge Maven Central Javadocs Coverage Status

A Lightweight Java business rule expression language.

Example

public class ArithmeticOperationTest {
    
    public void testApp() throws ExpressionParseException, InterpretException {

        RuleConfiguration factory = new RuleConfiguration();
        String expr = "Variable5->substring(2,2)->toInteger() between [80,90] and" +
         " Variable5->substring(3,2)->toInteger() in [45,46]";
        Expression expression = factory.getParser().fromString(expr, ArithmeticOperation.class);
        RuleBinding rule = new RuleBinding(expression);
        ArithmeticOperation arithmeticOperation = new ArithmeticOperation();
        arithmeticOperation.setVariable5("D845");

        RuleEvaluator evaluator = factory.getEvaluator();
        boolean result = (Boolean) evaluator.evaluate(rule, arithmeticOperation);
        assertTrue(result);
    }
 }

Current version

  • The current stable version is 3.0
  • The current snapshot version is 3.1-SNAPSHOT

In order to use snapshot versions, you need to add the following maven repository in your pom.xml:

<repository>
    <id>ossrh</id>
    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>

Maven dependency:

<dependencies>
        <dependency>
            <groupId>org.dvare</groupId>
            <artifactId>dvare-framework</artifactId>
            <version>3.0</version>
        </dependency>         
</dependencies>

License

Dvare Framework is released under the MIT license.

The MIT License (MIT)

Copyright (c) 2016-2019 DVARE (Data Validation and Aggregation Rule Engine)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Sogiftware.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
org.dvare

DVARE

Lightweight business rule framework

Версии библиотеки

Версия
3.0
2.3
2.2
2.1
2.0
1.4
1.3
1.2
1.1
1.0