[jboss-user] [JBoss jBPM] - does not create the instance

ricardomarques do-not-reply at jboss.com
Wed Jun 27 12:12:39 EDT 2007


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058285#4058285

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058285



More information about the jboss-user mailing list