2 Replies Latest reply on Jul 5, 2007 1:42 PM by gavin.king

    Seam 2.0 beat few questions

    kruno

      First could someone please explain why there is no more annotation @Rollback(ifOutcome..)
      and if I am relaying on seam managed transactions, and Flush=MANUAL, em.flush() for commit.
      How can I rollback transaction even after em.flush() but before thread exits method:
      Example:

      @Rollback(ifOutcome="NOT")
      public String save(Entity entity){
       kontrol(entity);
       if(!error){
       em.persist(entity);
       em.flush();
       }
      .....
       doSomeThingElse();
      ...
       if(error) return "NOT"
      {
      



      2. I know there was some talk about adding default option in configuration files flush=MANUAL, so one does not need to specify it every time. Is it going to happened? I would like it very much :)

      3. And perhaps a small request if it is not too much trouble.
      In pageflows it would be great if one could send component from conversation as a parameter when invoking expression.
      some thing like this:
      <decision name="action_1" expression="#{sfsb.save(entity)}">
       <transition name="OK" to="katalog"/>
       <transition name="NOT" to="katalog"/>
       </decision>
      

      Kruno


        • 1. Re: Seam 2.0 beat few questions
          kruno

          Small mistake it suppose to be : Seam 2.0 beta few questions?

          And one more question is there a way to start conversation from s:link with option flush=MANUAL?

          • 2. Re: Seam 2.0 beat few questions
            gavin.king

             

            First could someone please explain why there is no more annotation @Rollback(ifOutcome..)


            I eventually decided it's a misuses of annotations.

            Use Transaction.instance().setRollbackOnly(), much clearer.

            I know there was some talk about adding default option in configuration files flush=MANUAL, so one does not need to specify it every time. Is it going to happened? I would like it very much :)


            There is nothing in JIRA.

            In pageflows it would be great if one could send component from conversation as a parameter when invoking expression.


            Yes, this will be possible in the next release, the support is already there in jBPM for us to plug in jboss-el.

            is there a way to start conversation from s:link with option flush=MANUAL?


            Not yet.