Hi Ravi,

Thanks for your response, however, your test case doesn't include the embedded 
schema definition, against which the validation seems to be failing:

E.g. (see the schema attributes in the process-definition node below)

anonymous wrote : 
  |      String procdef = "<?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='test'>"+
  | "<start-state name='start' />" +
  | "<task-node name='createrevalidationtask' signal='unsynchronized' 
create-tasks='false' end-tasks='true'/>"+
  | "<end-state name='done' />" +
  | "</process-definition>";
  | ProcessDefinition processDefinition = 
ProcessDefinition.parseXmlString(procdef);
  | 

Using the above example you will get the following exception:

anonymous wrote : 
  | org.jbpm.jpdl.JpdlException: [[ERROR] process definition line 1: 
cvc-complex-type.3.2.2: Attribute 'end-tasks' is not allowed to appear in 
element 'task-node'.]
  |     
org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:119)
  |     
org.jbpm.graph.def.ProcessDefinition.parseXmlString(ProcessDefinition.java:120)
  | 
  | 

Cheers,

Andy

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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to