5 Replies Latest reply on Jan 25, 2006 5:42 AM by Andy Morris

    Schema validation problem with JpdlXmlReader.readProcessDefi

    Andy Morris Newbie

      Can anyone help explain why this is happening:

      I have a process-definition XML file (validated using a 3rd party XML editor against the published XSD - http://jbpm.org/xsd/jpdl-3.0.xsd) which continues to fail during deployment:


      [deploypar] org.jbpm.jpdl.JpdlException: [[ERROR] process definition line 13: cvc-complex-type.3.2.2
      : Attribute 'end-tasks' is not allowed to appear in element 'task-node'.]
      [deploypar] at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:119)
      [deploypar] at org.jbpm.jpdl.par.JpdlArchiveParser.readFromArchive(JpdlArchiveParser.java:27)
      [deploypar] at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:46)
      [deploypar] at org.jbpm.graph.def.ProcessDefinition.parseParZipInputStream(ProcessDefinition.jav
      a:154)
      [deploypar] at org.jbpm.jpdl.par.ProcessArchiveDeployer.deployZipInputStream(ProcessArchiveDeplo
      yer.java:46)
      [deploypar] at org.jbpm.ant.DeployParTask.deploy(DeployParTask.java:69)
      [deploypar] at org.jbpm.ant.DeployParTask.execute(DeployParTask.java:57)
      [deploypar] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      [deploypar] at org.apache.tools.ant.Task.perform(Task.java:364)
      [deploypar] at org.apache.tools.ant.Target.execute(Target.java:341)
      [deploypar] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [deploypar] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      [deploypar] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      [deploypar] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:4
      0)
      [deploypar] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      [deploypar] at org.apache.tools.ant.Main.runBuild(Main.java:668)
      [deploypar] at org.apache.tools.ant.Main.startAnt(Main.java:187)
      [deploypar] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      [deploypar] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)


      The line it complains about is the task-node element below:


      <?xml version="1.0" encoding="UTF-8"?>

      <process-definition
      xmlns="http://jbpm.org/3/jpdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://jbpm.org/3/jpdl http://jbpm.org/xsd/jpdl-3.0.xsd"
      name="USER_KI_SHELF_LIFE">

      ...........

      <task-node name="createrevalidationtask" signal="unsynchronized" create-tasks="false" end-tasks="true">


      specifically it's the "end-tasks" attribute which it states is not allowed. If I remove this, the process-definition deploys correctly. If I try to use it, it fails during runtime validation as above. I can however see this as a valid attribute in the nominated Schema definition?

      I'm using JBpm 3.0.2.

      Anyone any thoughts?

      Cheers,

      Andy