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

    changes on @In injected properties with BUSINESS_PROCESS sco

    koen handekyn Newbie

      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.