* null simpleValue or complexValue to indicate which value type needs to
* be stored.
*/
private final void storeField(final ServiceTask task, final String key, final String simpleValue, final ComplexDataType complexValue) {
CustomProperty property = ExtensionUtil.getCustomProperty(task, key);
if (property == null) {
property = new CustomProperty();
task.getCustomProperties().add(property);
}
property.setId(ExtensionUtil.wrapCustomPropertyId(task, key));
property.setName(key);
if (simpleValue != null) {
property.setSimpleValue(simpleValue);
} else {
property.setComplexValue(complexValue);
}
}
public void run() {