12-06-2011 10:39 AM
<userTask id="voteTask" name="Vote to Promote" activiti:dueDate="${completionDate}" activiti:assignee="${assignee}" activiti:formKey="vote.form">
However, I was unable to display the contents of the form in the "Activiti Explorer". <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>
12-06-2011 01:50 PM
12-07-2011 01:01 AM
02-28-2012 11:19 AM
<activiti:formProperty id="postalCode" name="Cod Postal" type="postalCode"/>
I have an formProperty.xhtml where has defined this type:
<p:inputMask rendered="#{cc.attrs.formProperty.property.type.name == 'postalCode'}"
mask="99999-999" value="#{cc.attrs.formProperty.property.value}"
disabled="#{!cc.attrs.formProperty.property.writable}" />
And a extended class where override AbstractFormType methods
public class PostalCodeFormType extends AbstractFormType {
private static Logger log = Logger.getLogger(PostalCodeFormType.class);
public PostalCodeFormType() {
log.debug("PostalCode Property Type initialized");
}
@Override
public String getName() {
return "postalCode";
}
@Override
public Object convertFormValueToModelValue(String propertyValue) {
if (propertyValue==null || propertyValue.equals("")) {
return null;
}
return new Long(propertyValue);
}
@Override
public String convertModelValueToFormValue(Object modelValue) {
if (modelValue==null) {
return null;
}
return modelValue.toString();
}
@Override
public String toString() {
return getName();
}
}
In my ApplicationContext I have:
<property name="customFormTypes" >
<list>
<ref bean="postalCodeFormType"/>
</list>
</property>
It works fine!
<p:selectOneMenu rendered="#{cc.attrs.formProperty.property.type.name == 'enum'}" value="#{cc.attrs.formProperty.property.value}" disabled="#{!cc.attrs.formProperty.property.writable}">
<f:selectItems value="#{cc.attrs.formProperty.information}" />
</p:selectOneMenu>
in workflow:
<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>
It,s return null values….03-29-2012 01:35 PM
for(String key: values.keySet()) {
//if(value == values.get(key)){ -> wrong comparation
if(value.equals(values.get(key))){
return key;
}
}
So… it works
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.