0 Replies Latest reply on Jul 15, 2009 4:53 AM by Adam Basori

    update entity inside business process

    Adam Basori Newbie

      Hi all,


      i have entity component which need to be updated inside business process. here is the code:




      //....
      @DataModel
      private List<Credit> creditList;
      @DataModelSelection
      @Out(required=false)
      private Credit C;
      @Out(required=false,scope=ScopeType.BUSINESS_PROCESS) 
      private Credit selC;
      //method for start process
      @End
      @CreateProcess(definition="ShortCredit")
      public void select(){  selC = C;  }
      //subsequent process 
      @StartTask
      @EndTask(transition="next")     
      public void saveInfo(){ 
      entityManager.merge( selC );
      }
      //....




      i trying to update value of selected credit inside business process, but it did'nt work. it seems that the injected component no longer binded to UI. i wonder why JSF UI can't update the value, meanwhile update process via method call is OK.


      can any one give some explanation? or further solution?


      thanks in advance.