licicin (41) [Avatar] Offline
#1
Created bpml20.xml diagram in Activiti designer and placed datePattern as suggested in
http://activiti.org/userguide/index.html#formProperties

<activiti:formProperty id="dateValue" name="First day of holiday (dd-MM-yyy)" type="date" expression="#{book.dateValue}" datePattern="dd-MM-yyyy hh:mm" required="true"></activiti:formProperty>

Attribute 'datePattern' is not allowed ...


Similar error for enum
Element 'activiti:formProperty' must have no character...

<activiti:formProperty id="enumValue" name="Enum Value" type="enum" expression="#{book.enumValue}" required="true">
<activiti:value id="1" name="One" />
<activiti:value id="2" name="Two" />
<activiti:value id="3" name="Three" />
</activiti:formProperty>
tijs.rademakers (494) [Avatar] Offline
#2
Re: datePattern in activiti:formProperty is not allowd
Hi,

Where do you get these errors? In the Activiti Explorer?

Best regards,

Tijs
licicin (41) [Avatar] Offline
#3
Re: datePattern in activiti:formProperty is not allowd
Yes, these errors come form Activiti Explorer,

Open bpmn20.xml file and place
<activiti:formProperty id="direction" type="enum">
<activiti:value id="left" name="Go Left" />
<activiti:value id="right" name="Go Right" />
<activiti:value id="up" name="Go Up" />
<activiti:value id="down" name="Go Down" />
</activiti:formProperty>

or

<activiti:formProperty id="startDate" name="First day of holiday (dd-MM-yyy)" value="${startDate}" datePattern="dd-MM-yyyy hh:mm" type="date" required="true" />

datePattern will be removed if you open and save activiti diagram.
tijs.rademakers (494) [Avatar] Offline
#4
Re: datePattern in activiti:formProperty is not allowd
Are you referring to the Activiti Designer or the Activiti Explorer? Because your comment about the datePattern seems to be about the Activiti Designer. The datePattern removal is a bug in the Designer. Please raise a JIRA issue for this. What's the problem with the enum example?

Best regards,

Tijs
licicin (41) [Avatar] Offline
#5
Re: datePattern in activiti:formProperty is not allowd
Sorry,

this is from Actitivi Designer

Activiti bpmn XML editor complains
Attribute 'datePattern' is not allowed ...
for
<activiti:formProperty id="dateValue" name="First day of holiday (dd-MM-yyy)" type="date" expression="#{book.dateValue}" datePattern="dd-MM-yyyy hh:mm" required="true"></activiti:formProperty>
tijs.rademakers (494) [Avatar] Offline
#6
Re: datePattern in activiti:formProperty is not allowd
Yes, okay that makes sense. The Designer doesn't have the updated XML schema definition of Activiti. If you can create a JIRA issue for the Activiti Designer I'll make sure this is implemented in the next version.

Best regards,

Tijs
licicin (41) [Avatar] Offline
#7
Re: datePattern in activiti:formProperty is not allowd