I'm building a UI for starting a process. I parse the process definition to know what metadata each step will need. I can't figure out how to get the class name for a service task programatically:
for (PvmActivity activity : processDefinition.getActivities()) {
String type = (String) activity.getProperty("type");
if (type == "userTask") {
….
} else if (type == "serviceTask") {
System.out.println(activity.getProperty("activiti:class"));
}
}
Any idea of how to get the serviceTask class name from the process definition? Depending on the service class, I will prompt the user for different metadata to add to the process variables.
Thanks,
Ryan