.type(FORMTEMPLATE_FILE_EXTENSION)
.content(taskForm.getMetaOutput().getBytes("UTF-8"));
repository.createAsset(builder.getAsset());
Asset newFormAsset = repository.loadAssetFromPath(taskForm.getPkgName() + "/" + taskForm.getId()+"." + FORMTEMPLATE_FILE_EXTENSION);
String uniqueId = newFormAsset.getUniqueId();
if (Base64Backport.isBase64(uniqueId)) {
byte[] decoded = Base64.decodeBase64(uniqueId);
try {
uniqueId = new String(decoded, "UTF-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
}
retObj.put("ftluri", uniqueId);
// create the modeler form asset
repository.deleteAssetFromPath(taskForm.getPkgName() + "/" + taskForm.getId()+"." + FORMMODELER_FILE_EXTENSION);
AssetBuilder modelerBuilder = AssetBuilderFactory.getAssetBuilder(Asset.AssetType.Byte);
modelerBuilder.name(taskForm.getId())
.location(location)
.type(FORMMODELER_FILE_EXTENSION)
.content(taskForm.getModelerOutput().getBytes("UTF-8"));
repository.createAsset(modelerBuilder.getAsset());
Asset newModelerFormAsset = repository.loadAssetFromPath(taskForm.getPkgName() + "/" + taskForm.getId()+"." + FORMMODELER_FILE_EXTENSION);
String modelerUniqueId = newModelerFormAsset.getUniqueId();
if (Base64Backport.isBase64(modelerUniqueId)) {
byte[] decoded = Base64.decodeBase64(modelerUniqueId);
try {
modelerUniqueId = new String(decoded, "UTF-8");
} catch (UnsupportedEncodingException e) {