private void confirmAndForceAction(final Long actionId) {
        /* Display the confirmation */
        final ConfirmationDialog confirmDialog = new ConfirmationDialog(
                i18n.getMessage("caption.force.action.confirmbox"), i18n.getMessage("message.force.action.confirm"),
                i18n.getMessage(UIMessageIdProvider.BUTTON_OK), i18n.getMessage(UIMessageIdProvider.BUTTON_CANCEL),
                ok -> {
                    if (!ok) {
                        return;
                    }
                    deploymentManagement.forceTargetAction(actionId);
                    populateAndUpdateTargetDetails(selectedTarget);
                    notification.displaySuccess(i18n.getMessage("message.force.action.success"));
                }, UIComponentIdProvider.CONFIRMATION_POPUP_ID);
        UI.getCurrent().addWindow(confirmDialog.getWindow());

        confirmDialog.getWindow().bringToFront();
    }
private void confirmAndForceAction ( final Long actionId ) { final ConfirmationDialog confirmDialog = new ConfirmationDialog ( i18n . getMessage ( "caption.force.action.confirmbox" ) , i18n . getMessage ( "message.force.action.confirm" ) , i18n . getMessage ( UIMessageIdProvider . BUTTON_OK ) , i18n . getMessage ( UIMessageIdProvider . BUTTON_CANCEL ) , ok -> { if ( ! ok ) { return ; } deploymentManagement . forceTargetAction ( actionId ) ; populateAndUpdateTargetDetails ( selectedTarget ) ; notification . displaySuccess ( i18n . getMessage ( "message.force.action.success" ) ) ; } , UIComponentIdProvider . CONFIRMATION_POPUP_ID ) ; UI . getCurrent ( ) . addWindow ( confirmDialog . getWindow ( ) ) ; confirmDialog . getWindow ( ) . bringToFront ( ) ; }
Show confirmation window and if ok then only, force the action.

@param actionId
as Id if the action needs to be forced.