1. OFBiz
  2. OFBIZ-3847

Entity ECAs not triggered correctly when using Delegator.storeAll() method


    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Release Branch 10.04
    • Fix Version/s: Upcoming Branch
    • Component/s: framework
    • Labels:
    • Sprint:
      Bug Crush Event - 21/2/2015


      The conditions don't work when updating (not creating) entities using the Delegator.storeAll() method. E.g. the following condition does not work:

      <eca entity="Product" operation="create-store" event="return">
              <condition field-name="autoCreateKeywords" operator="not-equals" value="N"/>
              <action service="indexProductKeywords" mode="sync" value-attr="productInstance"/>

      The indexProductKeywords service is called anyway when the product is updated and the autoCreateKeywords was "N" and stays "N". It works correctly for newly created products.

      The problem is in the method GenericDelegator.storeAll(), where unchanged field values are not passed down to the store() method. The store method calls the ECA engine, which does not receive the unchanged values at all and thus cannot evaluate the EECA conditions correctly.


        Jacques Le Roux made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s Upcoming Branch [ 12329183 ]
        Assignee Jacques Le Roux [ jacques.le.roux ]
        Resolution Fixed [ 1 ]
        Jacques Le Roux made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Jacques Le Roux made changes -
        Sharan Foga made changes -
        Rank Ranked higher
        Sharan Foga made changes -
        Rank Ranked higher
        Sharan Foga made changes -
        Rank Ranked higher
        Sharan Foga made changes -
        Sprint Bug Crush Event - 21/2/2015 [ 91 ]
        Anne Jessel made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Anne Jessel made changes -
        Martin Kreidenweis made changes -
        Field Original Value New Value
        Attachment GenericDelegator.java.diff [ 12448711 ]
        Martin Kreidenweis created issue -


          • Assignee:
            Jacques Le Roux
            Martin Kreidenweis
          • Votes:
            0 Vote for this issue
            3 Start watching this issue


            • Created: