Giter Club home page Giter Club logo

vdzpeter / akeneo-rulesui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from basecom/akeneo-rulesui

0.0 1.0 0.0 26 KB

The rulesUI developed by basecom extends the Akeneo Enterprise Edition with a user interface for the rules engine. After installing the extension, you will be able to easily add, edit and delete rules directly in the akeneo backend.

Home Page: htttp://www.basecom.de/akeneo/rulesUI

License: MIT License

PHP 59.48% CSS 9.59% HTML 30.93%

akeneo-rulesui's Introduction

Akeneo rules engine graphical interface

Requirements

Akeneo PIM Enterprise Edition 1.6.~

Installation

Enable the bundle in the app/AppKernel.php file in the registerBundles() method:

    $bundles = [
        // ...
        new \Basecom\Bundle\RulesEngineBundle\BasecomRulesEngine(),
    ]

Enable the route in the 'app/routing.yml' file

    basecom_rules_routing:
        resource: "@BasecomRulesEngine/Resources/config/routing/rules.yml"

Clear you cache:

    php app/console cache:clear --env=prod
    rm -rf app/cache/* ./web/bundles/* ./web/css/* ./web/js/*
    app/console --env=prod pim:installer:assets
    app/console --env=prod cache:warmup

Documentation

  • OverwriteRuleController.php overwrites the standard Akeneo RuleController to extend the view with a edit button in the rule overview.

  • Operator Between and not Between is disabled

https://docs.akeneo.com/1.6/cookbook/rule/general_information_on_rule_format.html

Available Operators Conditions List

  • STARTS WITH
  • ENDS WITH
  • CONTAINS
  • DOES NOT CONTAIN
  • EMPTY
  • NOT EMPTY
  • EQUAL ( = )
  • NOT EQUAL ( != )
  • IN
  • NOT IN
  • UNCLASSIFIED
  • IN OR UNCLASSIFIED
  • IN CHILDREN
  • NOT IN CHILDREN
  • GREATER ( > )
  • GREATER OR EQUAL ( >= )
  • SMALLER ( < )
  • SMALLER OR EQUAL ( <= )

Operator

STARTS WITH

Requirements
  • Attribute (no Simple or Multliselect)
  • Locale (optional)
  • Scope (optional)
  • Value

Operator

ENDS WITH

Requirements
  • Attribute (no Simple or Multliselect)
  • Locale (optional)
  • Scope (optional)
  • Value

Operator

CONTAINS

Requirements
  • Attribute (no Simple or Multliselect)
  • Locale (optional)
  • Scope (optional)
  • Value

Operator

DOES NOT CONTAIN

Requirements
  • Attribute (no Simple or Multliselect)
  • Locale (optional)
  • Scope (optional)
  • Value

Operator

EMPTY

Requirements
  • Attribute, Family (family.code), Groups (groups.code)
  • Locale (optional)
  • Scope (optional)

Operator

NOT EMPTY

Requirements
  • Attribute, Family (family.code), Groups (groups.code)
  • Locale (optional)
  • Scope (optional)

Operator

EQUAL ( = )

Requirements
  • Attribute, created, updated, enabled, completeness
  • Value (dates format: yyyy-mm-dd) (enabled and yes/no format = true or false)
  • Locale (optional)
  • Scope (optional)
  • Unit (optional, only if a metric Attribute is selected)

Operator

NOT EQUAL ( != )

Requirements
  • Attribute (Number or Metric), created, updated, enabled, completeness
  • Value (created, updated dates format: yyyy-mm-dd)(enabled format = true or false)
  • Locale (optional)
  • Scope (optional)
  • Unit (optional, only if a metric Attribute is selected)

Operator

IN

Requirements
  • Simple, Multiselect Attribute, Category (categories.code), Family (family.code), Groups (groups.code)
  • Locale (optional)
  • Scope (optional)
  • One or more value

Operator

NOT IN

Requirements
  • Simple, Multiselect Attribute, Category (categories.code), Family (family.code), Groups (groups.code)
  • Locale (optional)
  • Scope (optional)
  • One or more value

Operator

UNCLASSIFIED

Requirements

Only available on Categories

  • Field = categories.code
  • No Attributes have to be selected

Operator

IN OR UNCLASSIFIED

Requirements

Only available on Categories

  • Field = categories.code
  • Category code

Operator

IN CHILDREN

Requirements

Only available on Categories

  • Field = categories.code
  • Category code

Operator

NOT IN CHILDREN

Requirements

Only available on Categories

  • Field = categories.code
  • Category code

Operator

GREATER ( > )

Requirements
  • Number, Price, Metric, Date Attribute, completeness
  • Value (dates format: yyyy-mm-dd)
  • Locale (optional)
  • Scope (optional)
  • Unit (optional, only if a metric Attribute is selected)

Operator

GREATER OR EQUAL ( >= )

Requirements
  • Number, Price, Metric, Date Attribute
  • Value (dates format: yyyy-mm-dd)
  • Locale (optional)
  • Scope (optional)
  • Unit (optional, only if a metric Attribute is selected)

Operator

SMALLER ( < )

Requirements
  • Number, Price, Metric, Date Attribute, completeness
  • Value (dates format: yyyy-mm-dd)
  • Locale (optional)
  • Scope (optional)
  • Unit (optional, only if a metric Attribute is selected)

Operator

SMALLER OR EQUAL ( <= )

Requirements
  • Number, Price, Metric, Date Attribute
  • Value (dates format: yyyy-mm-dd)
  • Locale (optional)
  • Scope (optional)
  • Unit (optional, only if a metric Attribute is selected)

Available Operators Actions List

  • add
  • set
  • copy
  • remove

Operator

add

Requirements
  • field: attribute code.
  • locale: local code for which value is assigned (optional).
  • scope: channel code for which value is assigned (optional).
  • values: attribute values to add.

Operator

set

Requirements
  • field: attribute code.
  • locale (optional)
  • scope (optional)
  • value: attribute value.

Operator

copy

Requirements
  • from_field: code of the attribute to be copied.
  • from_locale: locale code of the value to be copied (optional).
  • from_scope: channel code of the value to be copied (optional).
  • to_field: attribute code the value will be copied into.
  • to_locale: locale code the value will be copied into (optional).
  • to_scope: channel code the value will be copied into (optional).

Operator

remove

Requirements
  • field: attribute code.
  • locale: local code for which value is assigned (optional).
  • scope: channel code for which value is assigned (optional).
  • values: attribute values to remove.

akeneo-rulesui's People

Contributors

vdzpeter avatar basecom-de avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.