From 30569f1651b7269fc4b173ebe26fa87fefbb6786 Mon Sep 17 00:00:00 2001 From: Adam Heath Date: Wed, 29 Jun 2011 22:11:38 +0000 Subject: [PATCH] FEATURE: Expose several of the internal variables thru bean accessors. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141279 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/ofbiz/entityext/eca/EntityEcaRule.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/framework/entityext/src/org/ofbiz/entityext/eca/EntityEcaRule.java b/framework/entityext/src/org/ofbiz/entityext/eca/EntityEcaRule.java index fa3a615970..5cb60071bd 100644 --- a/framework/entityext/src/org/ofbiz/entityext/eca/EntityEcaRule.java +++ b/framework/entityext/src/org/ofbiz/entityext/eca/EntityEcaRule.java @@ -86,6 +86,22 @@ public final class EntityEcaRule implements java.io.Serializable { } } + public String getEntityName() { + return this.entityName; + } + + public String getOperationName() { + return this.operationName; + } + + public String getEventName() { + return this.eventName; + } + + public boolean getRunOnError() { + return this.runOnError; + } + public void eval(String currentOperation, DispatchContext dctx, GenericEntity value, boolean isError, Set actionsRun) throws GenericEntityException { if (!enabled) { Debug.logInfo("Entity ECA [" + this.entityName + "] on [" + this.eventName + "] is disabled; not running.", module);