1 Reply Latest reply on Feb 9, 2006 10:03 AM by kaobiore

    jbpm-3.1-beta2 - Node with async=true - Can't deploy using a

    kaobiore Newbie

      Hi!

      Mmmh ... I have some problems to deploy a process with ant if async=true is used in a node.

      processdefinition.xml

       <node name="Send Email" async="true">
       <action class='my.process.action.SendEmail'></action>
       <transition name="to Finished" to="Finished"></transition>
       </node>
      


      build.xml
       <target name="deploy.mysql.par" depends="clean, build.processes, declare.jbpm.tasks" description="deploys the process-dfinition">
       <deployprocess cfg="${basedir}/src/config.files/hibernate.cfg.xml"
       properties="${basedir}/src/resources/mysql/create.db.hibernate.properties">
       <fileset dir="build" includes="*.par" />
       </deployprocess>
       </target>
      


      ==> ERROR:
      [deployprocess] 17:32:44,201 [main] DEBUG NodeTypes : node 'page' will not be available. class 'org.jboss.seam.jbpm.Page' couldn't be loaded
      [deployprocess] 17:32:44,201 [main] DEBUG JbpmContext : closing JbpmContext
      [deployprocess] org.jbpm.jpdl.JpdlException: [[ERROR] line 63: cvc-complex-type.3.2.2: Attribute 'async' is not allowed to appear in element 'node'.]
      [deployprocess] at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:163)
      [deployprocess] at org.jbpm.jpdl.par.JpdlArchiveParser.readFromArchive(JpdlArchiveParser.java:47)
      [deployprocess] at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:81)
      [deployprocess] at org.jbpm.graph.def.ProcessDefinition.parseParZipInputStream(ProcessDefinition.java:189)
      [deployprocess] at org.jbpm.ant.DeployProcessTask.deploy(DeployProcessTask.java:98)
      [deployprocess] at org.jbpm.ant.DeployProcessTask.execute(DeployProcessTask.java:83)
      [deployprocess] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      [deployprocess] at org.apache.tools.ant.Task.perform(Task.java:364)
      [deployprocess] at org.apache.tools.ant.Target.execute(Target.java:341)
      [deployprocess] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [deployprocess] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      [deployprocess] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      [deployprocess] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      [deployprocess] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
      [deployprocess] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      [deployprocess] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
      [deployprocess] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
      
      BUILD FAILED
      C:\Workspace\process_add_new_customer\build.xml:60: couldn't deploy process archives : [[ERROR] line 63: cvc-complex-type.3.2.2: Attribute 'async' is not allowed to appear in element 'node'.]
      


      What am I doing wrong? Any suggestions?

      Thanks for advice.

      Greetz
      k