Flow flow = das.queryFlow(template.getFlowId());
if (flow == null) {
return "";
}
Action[] allActions = flow.queryRoleActions(roleId);
Set<FlowField> allRoleSet = new HashSet<FlowController.FlowField>();
for (Action action : allActions) {
if (action != null) {
allRoleSet.add(new FlowField(action.getId().getValue(), action.getName()));
}