Class DoneAction

  • All Implemented Interfaces:
    com.hybris.cockpitng.actions.CockpitAction<java.util.Collection<WorkflowActionModel>,​java.util.Collection<WorkflowActionModel>>, com.hybris.cockpitng.engine.ComponentWidgetAdapterAware

    public class DoneAction
    extends com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
    implements com.hybris.cockpitng.actions.CockpitAction<java.util.Collection<WorkflowActionModel>,​java.util.Collection<WorkflowActionModel>>
    Action to mark the selected WorkflowActionModel as done and move to the next step of the Task Assignment Workflow.
    • Field Detail

      • SOCKET_OUT_CONTEXT

        protected static final java.lang.String SOCKET_OUT_CONTEXT
        See Also:
        Constant Field Values
      • SOCKET_OUT_DESELECT

        protected static final java.lang.String SOCKET_OUT_DESELECT
        See Also:
        Constant Field Values
      • CANCELLED_TASKS_MESSAGE

        protected static final java.lang.String CANCELLED_TASKS_MESSAGE
        See Also:
        Constant Field Values
      • CANCELLED_TASKS_TITLE

        protected static final java.lang.String CANCELLED_TASKS_TITLE
        See Also:
        Constant Field Values
    • Constructor Detail

      • DoneAction

        public DoneAction()
    • Method Detail

      • canPerform

        public boolean canPerform​(com.hybris.cockpitng.actions.ActionContext<java.util.Collection<WorkflowActionModel>> actionContext)
        Specified by:
        canPerform in interface com.hybris.cockpitng.actions.CockpitAction<java.util.Collection<WorkflowActionModel>,​java.util.Collection<WorkflowActionModel>>
      • getConfirmationMessage

        public java.lang.String getConfirmationMessage​(com.hybris.cockpitng.actions.ActionContext<java.util.Collection<WorkflowActionModel>> actionContext)
        Specified by:
        getConfirmationMessage in interface com.hybris.cockpitng.actions.CockpitAction<java.util.Collection<WorkflowActionModel>,​java.util.Collection<WorkflowActionModel>>
      • needsConfirmation

        public boolean needsConfirmation​(com.hybris.cockpitng.actions.ActionContext<java.util.Collection<WorkflowActionModel>> actionContext)
        Specified by:
        needsConfirmation in interface com.hybris.cockpitng.actions.CockpitAction<java.util.Collection<WorkflowActionModel>,​java.util.Collection<WorkflowActionModel>>
      • perform

        public com.hybris.cockpitng.actions.ActionResult<java.util.Collection<WorkflowActionModel>> perform​(com.hybris.cockpitng.actions.ActionContext<java.util.Collection<WorkflowActionModel>> actionContext)
        Specified by:
        perform in interface com.hybris.cockpitng.actions.CockpitAction<java.util.Collection<WorkflowActionModel>,​java.util.Collection<WorkflowActionModel>>
      • displayCancellationMessageBox

        protected void displayCancellationMessageBox​(java.util.Collection<WorkflowActionModel> cancelledTasks,
                                                     com.hybris.cockpitng.actions.ActionContext<java.util.Collection<WorkflowActionModel>> actionContext)
        Displays a message box to notify the user that the given Collection are cancelled.
        Parameters:
        cancelledTasks - the cancelled Collection
        actionContext - the ActionContext which will be used to get labels to be displayed to the user