AnsweredAssumed Answered

serviceTask, trying to parse class name programatically

Question asked by roadtripryan on Apr 29, 2014
Latest reply on Apr 30, 2014 by saig0
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") {

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.