{
TaskRef selection = getSelection();
if(selection!=null)
{
TaskIdentityEvent payload = new TaskIdentityEvent(
null, selection
);
controller.handleEvent(
new Event(ReleaseTaskAction.ID, payload)
);
}
else
{
MessageBox.alert("Missing selection", "Please select a task");
}
}
}
)
);
skipBtn = new Button("Skip", new ClickHandler() {
public void onClick(ClickEvent clickEvent)
{
TaskRef selection = getSelection();
if(selection!=null && !selection.isBlocking())
{
controller.handleEvent(
new Event(
SkipTaskAction.ID,
new TaskIdentityEvent(appContext.getAuthentication().getUsername(), selection)
)
);
}
else
{