@Listen("onClick=#btnSubmit")
public void onClickSubmit() {
if (validateForm()) {
Messagebox.show(getLabelCos("mesage_show_tuchoinhanhoso"),getLabelCos("mesage_show_xacnhan"),Messagebox.YES | Messagebox.NO,Messagebox.QUESTION,(EventListener<Event>) event ->
{
if (null != event.getName()) {
switch (event.getName()) {
case Messagebox.ON_YES:
Long sendUserId = (Long) arguments.get("currentUserId");
NodeToNode currentAction = (NodeToNode) arguments.get("currentAction");
String resultFlow = WorkflowAPI.getInstance().createProcessMultliFlow(
currentAction, sendUserId, files, txtNote.getValue(), null, null, null,
true);
if (resultFlow.isEmpty()) {
winRejectFile.detach();
showNotification(Constants.Notification.RESULT_SUCCESS,
Constants.Notification.INFO);
} else {
showNotification(resultFlow, Constants.Notification.ERROR);
}
refresh();
break;
case Messagebox.ON_NO:
break;
}
}
});
Em không hiểu cái mũi tên -> nó có ý nghĩa gì các bác ạ?
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?