0 Replies Latest reply on Nov 24, 2006 2:07 AM by judy taguinod

    couldn't parse process

    judy taguinod Newbie

       

      <process-definition name="submit timesheet">
       <start-state name="submit">
       <transition name="assignworkentry" to="assign TL approver for work and overtime entry" />
       </start-state>
       <task-node name="assign TL approver for work and overtime entry" create-tasks="false" signal="last-wait">
       <node-enter>
       <action class="workflow.CreateTasksForTeamLeads" />
       </node-enter>
       <task name="AssignTL" blocking="true">
       <event type="task-create">
       <action class="workflow.AssignTL" />
       </event>
       <variable name="empId" access="read" />
       <variable name="projCode" access="read" />
       <variable name="month" access="read" />
       <variable name="year" access="read" />
       </task>
       <transition to="TL work and overtime entry approval" />
       </task-node>
       <decision name="TL work and overtime entry approval">
       <handler class="workflow.WEAndOEDecisionHandler" />
       <transition name="approve" to="assign PM approver for entries" />
       <transition name="reject" to="submit" />
       </decision>
       <task-node name="assign PM approver for entries" create-tasks="false" signal="last-wait">
       <node-enter>
       <action class="workflow.CreateTasksForProjectManagers" />
       </node-enter>
       <task name="AssignPM" blocking="true">
       <event type="task-create">
       <action class="workflow.AssignPM" ></action>
       </event>
       <variable name="empId" access="read" />
       <variable name="projCode" access="read" />
       <variable name="month" access="read" />
       <variable name="year" access="read" />
       </task>
       <transition to="PM entry approval" />
       </task-node>
       <decision name="PM entry approval">
       <handler class="workflow.WEAndOEDecisionHandler" />
       <transition name="approve" to="end" />
       <transition name="reject" to="submit" />
       </decision>
       <end-state name="end" />
      
      </process-definition>
      
      


      im trying to deploy the process definition above but evrytime i build it i get an error.

      [deployjbpm] org.jbpm.jpdl.JpdlException: [[WARNING] warning: no swimlane or assignment specified for task '<task name="AssignTL" blocking="true">
      [deployjbpm] <event type="task-create">
      [deployjbpm] <action class="workflow.AssignTL"/>
      [deployjbpm] </event>
      [deployjbpm] <variable name="empId" access="read"/>
      [deployjbpm] <variable name="projCode" access="read"/>
      [deployjbpm] <variable name="month" access="read"/>
      [deployjbpm] <variable name="year" access="read"/>
      [deployjbpm] </task>', [WARNING] warning: no swimlane or assignment specified for task '<task name="AssignPM" blocking="true">
      [deployjbpm] <event type="task-create">
      [deployjbpm] <action class="workflow.AssignPM"/>
      [deployjbpm] </event>
      [deployjbpm] <variable name="empId" access="read"/>
      [deployjbpm] <variable name="projCode" access="read"/>
      [deployjbpm] <variable name="month" access="read"/>
      [deployjbpm] <variable name="year" access="read"/>
      [deployjbpm] </task>', [ERROR] couldn't parse process definition]
      [deployjbpm] at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:163)
      [deployjbpm] at org.jbpm.jpdl.par.JpdlArchiveParser.readFromArchive(JpdlArchiveParser.java:51)
      [deployjbpm] at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:81)
      [deployjbpm] at org.jbpm.graph.def.ProcessDefinition.parseParZipInputStream(ProcessDefinition.java:190)
      [deployjbpm] at org.jbpm.ant.DeployProcessTask.deploy(DeployProcessTask.java:97)
      [deployjbpm] at org.jbpm.ant.DeployProcessTask.execute(DeployProcessTask.java:63)
      [deployjbpm] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      [deployjbpm] at org.apache.tools.ant.Task.perform(Task.java:364)
      [deployjbpm] at org.apache.tools.ant.Target.execute(Target.java:341)
      [deployjbpm] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [deployjbpm] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      [deployjbpm] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      [deployjbpm] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      [deployjbpm] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
      [deployjbpm] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      [deployjbpm] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
      [deployjbpm] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
      
      BUILD FAILED
      


      help please... thanks