I want to add Attribute to process-definition.xml ,
 like this 

<variable name="schemeConofirm" access="read,write" 
mapped-name="schemeConofirm" display-type="radio">
and i add Attribute  in jpdl3.0.xsd and jpdl3.1.xsd 
<xs:element name="variable">
    <xs:complexType>
      <xs:sequence>
        <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded" />
      </xs:sequence>
      <xs:attribute name="name" type="xs:string" use="required"/>
      <xs:attribute name="access" type="xs:string" default="read,write"/>
      <xs:attribute name="mapped-name" type="xs:string" />
      <xs:attribute name="display-type" type="xs:string" default="text"/>
    </xs:complexType>
  </xs:element>

but i get some error like this,
org.jbpm.jpdl.JpdlException: [[ERROR] line 26: cvc-complex-type.3.2.2: 
Attribute 'display-type' is not allowed to appear in element 'variable'., 
[ERROR] line 28: cvc-complex-type.3.2.2: Attribute 'display-type' is not 
allowed to appear in element 'variable'., [ERROR] line 48: 
cvc-complex-type.3.2.2: Attribute 'display-type' is not allowed to appear in 
element 'variable'., [ERROR] line 60: cvc-complex-type.3.2.2: Attribute 
'display-type' is not allowed to appear in element 'variable'., [ERROR] line 
62: cvc-complex-type.3.2.2: Attribute 'display-type' is not allowed to appear 
in element 'variable'., [ERROR] line 66: cvc-complex-type.3.2.2: Attribute 
'display-type' is not allowed to appear in element 'variable'., [ERROR] line 
77: cvc-complex-type.3.2.2: Attribute 'display-type' is not allowed to appear 
in element 'variable'., [ERROR] line 79: cvc-complex-type.3.2.2: Attribute 
'display-type' is not allowed to appear in element 'variable'., [ERROR] line 
83: cvc-complex-type.3.2.2!
 : Attribute 'display-type' is not allowed to appear in element 'variable'., 
[ERROR] line 85: cvc-complex-type.3.2.2: Attribute 'display-type' is not 
allowed to appear in element 'variable'.]
        at 
org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:163)
        at 
org.jbpm.jpdl.par.JpdlArchiveParser.readFromArchive(JpdlArchiveParser.java:53)
        at 
org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:81)
        at 
org.jbpm.graph.def.ProcessDefinition.parseParZipInputStream(ProcessDefinition.java:190)
        at 
org.jbpm.webapp.servlet.UploadServlet.doDeployment(UploadServlet.java:92)
        at 
org.jbpm.webapp.servlet.UploadServlet.handleRequest(UploadServlet.java:81)
        at org.jbpm.webapp.servlet.UploadServlet.service(UploadServlet.java:50)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at 
org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:56)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
please help me!

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

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

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to