3 Replies Latest reply on Jun 16, 2007 6:44 PM by aggtecnologia

    changes on @In injected properties with BUSINESS_PROCESS sco

    koenhandekyn

      i have just spend a long time debuging an issue with respect to updates on an object with business process scope that is injected with @In.

      the behaviour was that the updates where first made, but soon after "dissapeared".


      i discovered that adding an explicit @Out(scope = ScopeType.BUSINESS_PROCESS, required = false) sovles my issue.

      i do not fully understand what's happening but it probably relates to the proxies that get inserted and the @Out triggering a commit somewhere. (allthough i added the @Intercept(InterceptionType.NEVER) as mentioned in the reference manual)

      @In
      @Out(scope = ScopeType.BUSINESS_PROCESS, required = false)
      private Invoice invoice;


      hope this helps someone.