3 Replies Latest reply on Mar 27, 2009 1:18 PM by kukeltje.ronald.jbpm.org

    Start a task when created

    turpin_vincent
      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