cancel
Showing results for 
Search instead for 
Did you mean: 

XML error datePattern and value

fg80
Champ in-the-making
Champ in-the-making
Hi,

I've installed the eclipse activity designer plugin (version 5.15…) and if open a sample process from the activity explorer (e.g. VacationRequest.bpmn20.xml / I've imported the web-explorer2 project into eclipse) i get the following xml validation errors:

cvc-complex-type.2.1: Element activity:formProperty must have no character or element information item [children], because the type's content type is empty

cvc-complex-type.3.2.2: Attribute datePattern is not allowed to appear in element activity:formProperty

cvc-complex-type.3.2.2: Attribute value is not allowed to appear in element activity:formProperty


The process xml is:

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

<definitions id="definitions"
             targetNamespace="http://activiti.org/bpmn20"
             xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xmlns:activiti="http://activiti.org/bpmn">
 
  <process id="vacationRequest" name="Vacation request">
 
    <startEvent id="request" activiti:initiator="employeeName">
      <extensionElements>
        <formProperty id="numberOfDays" name="Number of days" type="long" value="1" required="true"/>
        <activiti:formProperty id="startDate" name="First day of holiday (dd-MM-yyy)" datePattern="dd-MM-yyyy hh:mm" type="date" required="true" />
        <activiti:formProperty id="vacationMotivation" name="Motivation" type="string" />
      </extensionElements>
    </startEvent>


Is there a way to get rid of the xml errors? The process runs in activiti explorer without errors.

Many thanks
FG


1 REPLY 1

jbarrez
Star Contributor
Star Contributor
That depends on your Eclipse version… probably you'd need to install the xsd somewhere in Eclipse or disable validation
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.