PluginManager pluginManager = (PluginManager) appContext.getBean("pluginManager");
String properties = participant.getPluginProperties();
String participantId = participant.getParticipantId();
try {
AppDefinition appDef = AppUtil.getCurrentAppDefinition();
ParticipantPlugin plugin = (ParticipantPlugin) pluginManager.getPlugin(participant.getValue());
Map propertyMap = AppPluginUtil.getDefaultProperties((Plugin)plugin, properties, appDef);
propertyMap.put("pluginManager", pluginManager);
WorkflowActivity activity = workflowManager.getActivityById(activityId);
propertyMap.put("workflowActivity", activity);
Collection<String> pluginResult = plugin.getActivityAssignments(propertyMap);
if (pluginResult != null && pluginResult.size() > 0) {
resultList.addAll(pluginResult);
}
} catch (Exception ex) {
addAuditTrail(WorkflowUtil.class.getName(), "getAssignmentUsers", "Error executing plugin [pluginName=" + participant.getValue() + ", participantId=" + participantId + ", processId=" + processId + ", version=" + version + ", activityId=" + activityId + "]");