11-10-2010 08:52 PM
ProcessDefinition pd; //get pd from somewhere
ProcessDefinitionEntity pde = (ProcessDefinitionEntity) pd;
DefaultStartFormHandler dsfh = (DefaultStartFormHandler) pde.getStartFormHandler();
if (dsfh != null) {
formKey = dsfh.getFormKey();
}
However the dsfh is always null.
ProcessDefinition pd; //get pd from somewhere
Object obj = formService.getRenderedStartForm(pd.getId());
if (obj != null) {
FormData fd = (FormData) obj;
System.out.println("fd key: " + fd.getFormKey());
}
However the obj is always null.
StartFormData sfd = formService.getStartFormData(pd.getId());
if (sfd != null) {
System.out.println("sfd is not null");
String formKey = sfd.getFormKey();
System.out.println("form key: " + formKey);
}
else {
System.out.println("sfd is null");
}
And I get the output "sfd is not null" but the formKey is still null.11-11-2010 02:56 AM
11-12-2010 03:32 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.