AnsweredAssumed Answered

XML error datePattern and value

Question asked by fg80 on Feb 11, 2015
Latest reply on Feb 18, 2015 by jbarrez

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"
  <process id="vacationRequest" name="Vacation request">
    <startEvent id="request" activiti:initiator="employeeName">
        <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" />

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

Many thanks