Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-9897

Add ability to disable entity eca rule

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Done
    • None
    • 17.12.01
    • None
    • None

    Description

      We have enabled flag in EntityEcaRule class, if its set false then entity eca rule will not be execute.
      But there is not way to disable entity eca.

      We can add enabled flag in Entity ECA definition to disable the existing entity eca rule.

      • Add new attribute on entity eca tag named enabled
      • Default value will be true for this.
      • If user want to disable existing OOTB entity eca rule, then user can define same rule in custom component and set the enabled=false

      Also as per current flow if same seca rule is define more then once, system will execute all the rule, ideally it should not execute same rule (same rule, condition and action) if its defined more than one.

      Also need to ovride hasCode, equals and toString method for EntityEcaRule class file.

      Attachments

        1. OFBIZ-9897.patch
          11 kB
          Deepak Dixit
        2. OFBIZ-9897.patch
          5 kB
          Deepak Dixit

        Activity

          People

            deepak Deepak Dixit
            deepak Deepak Dixit
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: