}
public static String getSelectedFormHtml(String formId, String primaryKey, AppDefinition appDef, WorkflowAssignment assignment, Boolean hideEmpty) {
String html = "";
AppService appService = (AppService) AppUtil.getApplicationContext().getBean("appService");
FormData formData = new FormData();
if (primaryKey != null && !primaryKey.isEmpty()) {
formData.setPrimaryKeyValue(primaryKey);
} else if (assignment != null) {
formData.setPrimaryKeyValue(appService.getOriginProcessId(assignment.getProcessId()));
}
if (assignment != null) {
formData.setProcessId(assignment.getProcessId());
}