예제 #1
0
 public static String getCastomFieldValue(FormData formData, String fieldName) {
   List<FormProperty> formDataList = formData.getFormProperties();
   if (!formDataList.isEmpty()) {
     for (FormProperty prop : formDataList) {
       if (prop.getType() instanceof FormFileType && prop.getName().equalsIgnoreCase(fieldName)) {
         return prop.getValue() != null ? prop.getValue() : "";
       }
     }
   }
   return "";
 }
예제 #2
0
 /**
  * Получить имя поля
  *
  * @param formData
  * @return
  */
 public static List<String> getListCastomFieldName(FormData formData) {
   List<String> filedName = new ArrayList<String>();
   List<FormProperty> formDataList = formData.getFormProperties();
   if (!formDataList.isEmpty()) {
     for (FormProperty prop : formDataList) {
       if (prop.getType() instanceof FormFileType) {
         filedName.add(prop.getName());
       }
     }
   }
   return filedName;
 }
예제 #3
0
 /**
  * @param oFormData form data of process
  * @return variable ids with custom property type QueueDataFormType
  */
 public static List<String> getListField_QueueDataFormType(FormData oFormData) {
   List<String> asFieldID = new ArrayList<String>();
   List<FormProperty> aFormProperty = oFormData.getFormProperties();
   if (!aFormProperty.isEmpty()) {
     for (FormProperty oFormProperty : aFormProperty) {
       if (oFormProperty.getType() instanceof QueueDataFormType) {
         asFieldID.add(oFormProperty.getId());
       }
     }
   }
   return asFieldID;
 }