0 Replies Latest reply on Jun 27, 2007 12:12 PM by Ricardo Marques

    does not create the instance

    Ricardo Marques Novice

      Hi i'm trying start a new process definition instance, but by something that i don't understand i can't. I get no output on deploy and on creating the new instance, i have'd checked the database, the instance isn't created.

      The process definition:

      <?xml version="1.0" encoding="UTF-8"?>
      
      <process-definition
       xmlns="urn:jbpm.org:jpdl-3.2" name="holiday request standart for ernie">
      
       <start-state name="enter request">
       <task name="request entry">
       <controller>
       <variable name="start date" access="read,write,required"></variable>
       <variable name="duration" access="read,write,required"></variable>
       </controller>
       <assignment expression="user(ernie)"></assignment>
       </task>
       <transition name="" to="evaluate request"></transition>
       </start-state>
       <end-state name="end"></end-state>
       <task-node name="evaluate request">
       <task name="entry evaluation">
       <controller>
       <variable name="start date" access="read"></variable>
       <variable name="duration" access="read"></variable>
       <variable name="info" access="read"></variable>
       <variable name="decision"></variable>
       </controller>
       <assignment expression="user(ernie)"></assignment>
       </task>
       <transition name="More info needed" to="give addition info"></transition>
       <transition name="approve/disapprove" to="end"></transition>
       </task-node>
       <task-node name="give addition info">
       <task name="additional info entry">
       <controller>
       <variable name="start date" access="read"></variable>
       <variable name="duration" access="read"></variable>
       <variable name="info"></variable>
       </controller>
       <assignment expression="user(ernie)"></assignment>
       </task>
       <transition name="" to="evaluate request"></transition>
       </task-node>
      
      </process-definition>
      


      I'm creating the instance with:

      cmd = new NewProcessInstanceCommand();
       cmd.setProcessId(Long.parseLong(pid));
       cmd.setActorId(userName);
       cmd.setCreateStartTask(true);
      
       getEjbClient().getCommandService().execute(cmd);
      


      thanks in advance