use of org.activiti.explorer.ui.task.listener.ClaimTaskClickListener in project Activiti by Activiti.
the class TaskDetailPanel method initClaimButton.
protected void initClaimButton(HorizontalLayout layout) {
if (!isCurrentUserAssignee() && canUserClaimTask()) {
claimButton = new Button(i18nManager.getMessage(Messages.TASK_CLAIM));
claimButton.addListener(new ClaimTaskClickListener(task.getId(), taskService));
layout.addComponent(claimButton);
layout.setComponentAlignment(claimButton, Alignment.MIDDLE_LEFT);
}
}
Aggregations