As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<userTask id="voteTask" name="Vote to Promote" activiti:dueDate="${completionDate}" activiti:assignee="${assignee}" activiti:formKey="vote.form">
<h1>Please vote to Promote this Build</h1> <p> <h2>Build Details</h2> <table> <tr> <td>Build Number: </td> <td>${buildNumber}</td> </tr> <tr> <td>Repository Location: </td> <td>${codeBase}</td> </tr> <tr> <td>Integration Server URL: </td> <td>${integrationServerUrl}</td> </tr> <tr> <td>Trial Username/Password: </td> <td>admin/admin</td> </tr> </table> </p> <p> Do you approve this? <select name="promoteBuild"> <option value="yes">Yes</option> <option value="no">No</option> </select> </p>
<br><activiti:formProperty id="postalCode" name="Cod Postal" type="postalCode"/><br>
<br><p:inputMask rendered="#{cc.attrs.formProperty.property.type.name == 'postalCode'}"<br> mask="99999-999" value="#{cc.attrs.formProperty.property.value}"<br> disabled="#{!cc.attrs.formProperty.property.writable}" /><br>
<br>public class PostalCodeFormType extends AbstractFormType {<br>private static Logger log = Logger.getLogger(PostalCodeFormType.class);<br><br> public PostalCodeFormType() {<br> log.debug("PostalCode Property Type initialized");<br> }<br> <br> @Override<br> public String getName() {<br> return "postalCode";<br> }<br><br> @Override<br> public Object convertFormValueToModelValue(String propertyValue) {<br> if (propertyValue==null || propertyValue.equals("")) {<br> return null;<br> }<br> return new Long(propertyValue);<br> }<br><br> @Override<br> public String convertModelValueToFormValue(Object modelValue) {<br> if (modelValue==null) {<br> return null;<br> }<br> return modelValue.toString();<br> }<br><br> @Override<br> public String toString() {<br> return getName();<br> }<br>}<br>
<br><property name="customFormTypes" ><br> <list><br> <ref bean="postalCodeFormType"/><br> </list><br></property><br>
<br><p:selectOneMenu rendered="#{cc.attrs.formProperty.property.type.name == 'enum'}" value="#{cc.attrs.formProperty.property.value}" disabled="#{!cc.attrs.formProperty.property.writable}"><br> <f:selectItems value="#{cc.attrs.formProperty.information}" /><br> </p:selectOneMenu><br>
<br><activiti:formProperty id="direction" type="enum"><br> <activiti:value id="left" name="Go Left" /><br> <activiti:value id="right" name="Go Right" /><br> <activiti:value id="up" name="Go Up" /><br> <activiti:value id="down" name="Go Down" /><br> </activiti:formProperty><br>
<br>for(String key: values.keySet()) {<br> //if(value == values.get(key)){ -> wrong comparation<br> if(value.equals(values.get(key))){<br> return key;<br> }<br> }<br>