return onClick.toString();
}
public StringBuffer getActivityPropertyString(Activity activity, ProcessInstance instance, Map options) throws Exception{
SubProcessActivity subProcessActivity = (SubProcessActivity)activity;
StringBuffer sbActivityPropertyString = super.getActivityPropertyString(activity, instance, options);
if(!Activity.STATUS_READY.equals(instance.getStatus(""))){
Vector vSubProcessIds = subProcessActivity.getSubprocessIds(instance);
StringBuffer sbSubProcessIds = new StringBuffer();
for(int i=0; i<vSubProcessIds.size(); i++){
if( i > 0 ) sbSubProcessIds.append(";");
sbSubProcessIds.append((String)vSubProcessIds.get(i));
}
sbActivityPropertyString.append("subInstanceId=").append( sbSubProcessIds.toString() ).append(",");
}else{
sbActivityPropertyString.append("subDefinitionId=").append( subProcessActivity.getDefinitionIdOnly() ).append(",");
}
return sbActivityPropertyString;
}