public static Map<String, String> getParentFormData(long processKey)
throws tcAPIException, tcInvalidLookupException, tcColumnNotFoundException, tcFormNotFoundException,
tcProcessNotFoundException, tcVersionNotFoundException, tcNotAtomicProcessException, LoginException {
String methodName = "getParentFormData";
System.out.println(CLASS_NAME + "/" + methodName + "; processKey = " + processKey);
tcFormInstanceOperationsIntf formInstOps = Platform.getService(tcFormInstanceOperationsIntf.class);
tcFormDefinitionOperationsIntf formDefOps = Platform.getService(tcFormDefinitionOperationsIntf.class);
tcResultSet tcresultset = formInstOps.getProcessFormData(processKey);
long l1 = formInstOps.getProcessFormDefinitionKey(processKey);
tcResultSet formFieldresultset = formDefOps.getFormFields(l1, formInstOps.getProcessFormVersion(processKey));
int formfieldCount = formFieldresultset.getRowCount();
Map<String, String> result = new HashMap<String, String>();
for (int j1 = 0; j1 < formfieldCount; j1++) {
formFieldresultset.goToRow(j1);
String s4 = formFieldresultset.getStringValue(Structure Utility.Additional Columns.Field Label);
String val = tcresultset
.getStringValue(formFieldresultset.getStringValue(Structure Utility.Additional Columns.Name));
result.put(s4, val);
}
System.out.println("Exiting from the method : " + methodName);
return result;
}
No comments:
Post a Comment