descr = getMessage(action.getLabel());
}
items.add(new Pair<String, Tuple>(
descr,
new Tuple(state.getDefinition().getProcessName(), state.getName(), action.getBpmName())
));
}
}
items = orderByFirst(items);
dialog.setAvailableItems(items);
dialog.setItems(from(getCurrentlySelectedActions()).select(new F<ProcessStateAction, Tuple>() {
@Override
public Tuple invoke(ProcessStateAction x) {
return new Tuple(x.getConfig().getDefinition().getProcessName(), x.getConfig().getName(), x.getBpmName());
}
}).toSet());
dialog.show(getApplication());
}