cancel
Showing results for 
Search instead for 
Did you mean: 

Problem parsing bpmx20.xml

fred170482
Champ in-the-making
Champ in-the-making
Hi

When i launch my bpm process, spring create the "processEngine" bean and activiti engine parse my bpm20.xml file. But i have an error during the parse:

28 janv. 2011 11:06:42 org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes
INFO: XMLSchema currently not supported as typeLanguage
28 janv. 2011 11:06:42 org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes
INFO: XPath currently not supported as expressionLanguage


These attributes are been added in my file by the sax parse og activiti enginer:


     SAXParser saxParser = parser.getSaxParser();
      if (schemaResource != null) {
        saxParser.setProperty(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA);
        saxParser.setProperty(JAXP_SCHEMA_SOURCE, schemaResource);
      }
      saxParser.parse(inputStream, new ParseHandler(this));



Somebody can be help me to resolve my problem???


spring context file:
   <bean id="dbaas.bpm.processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
      <property name="deploymentResources" value="classpath*:/activiti/*.bpmn20.xml" />
      <property name="databaseType" value="h2" />
      <property name="dataSource" ref="dbaas.bpm.dataSource" />
      <property name="transactionManager" ref="dbaas.bpm.transactionManager" />
      <property name="databaseSchemaUpdate" value="true" />
      <property name="jobExecutorActivate" value="false" />
   </bean>
   <bean id="dbaas.bpm.processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
      <property name="processEngineConfiguration" ref="dbaas.bpm.processEngineConfiguration" />
   </bean>



bpm20.xml:

<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:activiti="http://activiti.org/bpmn"
   targetNamespace="http://www.activiti.org/test">

   <process id="createDatabase" name="createDatabase">
      <startEvent id="startevent2" name="Start"></startEvent>

      <serviceTask id="servicetask6" name="SetStartMessage"
         activiti:expression="#{setMessageTask.execute(databaseId)}">
      </serviceTask>
      <sequenceFlow id="flow26" name="" sourceRef="startevent2"
         targetRef="servicetask6"></sequenceFlow>

      <serviceTask id="servicetask7" name="PushConfig"
         activiti:expression="#{pushConfigTask.execute(databaseId)}">
      </serviceTask>
      <sequenceFlow id="flow27" name="" sourceRef="servicetask6"
         targetRef="servicetask7"></sequenceFlow>

      <endEvent id="endevent2" name="End"></endEvent>
   </process>
</definitions>
2 REPLIES 2

jbarrez
Star Contributor
Star Contributor
This is not a problem, but just a warning that Activiti currently does not support Xpath as language.

hekl
Champ in-the-making
Champ in-the-making

I get these entries too.

Here's what I don't understand:

Why do I need a "warning" for something that is "not a problem"? Is that something that might BECOME a problem?