[ 
https://issues.apache.org/jira/browse/OFBIZ-9897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Deepak Dixit updated OFBIZ-9897:
--------------------------------
    Attachment: OFBIZ-9897.patch

Here is the patch for this issue. 

> Add ability to disable entity eca rule 
> ---------------------------------------
>
>                 Key: OFBIZ-9897
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9897
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Deepak Dixit
>            Assignee: Deepak Dixit
>         Attachments: OFBIZ-9897.patch
>
>
> 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. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to