3 Replies Latest reply on Mar 27, 2009 1:18 PM by Ronald van Kuijk

    Start a task when created

    turpin vincent Newbie
      Hi

      I'm using seam 2.1.1

      I would like to know how i can start a task automatically when it's created, i try with:

              <task-node name="Saisie_materiel">
                <task name="RemplirMat">
                <event type="task-create">
                <action>Saisir_1.test</action>
                </event>
                      <assignment actor-id="#{actor.id}"/>
                </task>
                <transition to="join" name="toJoin2"></transition>
           </task-node>     

      but it dont seem to work

      in fact it work with

          @StartTask
          public void test(){}

      but i bont want to need a button to call the function test()

      if someone can tell me a better way to do that...

      thanks by advance

      Vincent turpin