Class DoneAction
java.lang.Object
com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
de.hybris.platform.warehousingbackoffice.actions.done.DoneAction
- All Implemented Interfaces:
com.hybris.cockpitng.actions.CockpitAction<Collection<WorkflowActionModel>,,Collection<WorkflowActionModel>> com.hybris.cockpitng.engine.ComponentWidgetAdapterAware
public class DoneAction
extends com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
implements com.hybris.cockpitng.actions.CockpitAction<Collection<WorkflowActionModel>,Collection<WorkflowActionModel>>
Action to mark the selected
WorkflowActionModel as done and move to the next step of the Task Assignment Workflow.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPerform(com.hybris.cockpitng.actions.ActionContext<Collection<WorkflowActionModel>> actionContext) protected voiddisplayCancellationMessageBox(Collection<WorkflowActionModel> cancelledTasks, com.hybris.cockpitng.actions.ActionContext<Collection<WorkflowActionModel>> actionContext) Displays a message box to notify the user that the givenCollection<WorkflowActionModel>are cancelled.getConfirmationMessage(com.hybris.cockpitng.actions.ActionContext<Collection<WorkflowActionModel>> actionContext) protected DefaultWorkflowServiceprotected WorkflowProcessingServicebooleanneedsConfirmation(com.hybris.cockpitng.actions.ActionContext<Collection<WorkflowActionModel>> actionContext) com.hybris.cockpitng.actions.ActionResult<Collection<WorkflowActionModel>>perform(com.hybris.cockpitng.actions.ActionContext<Collection<WorkflowActionModel>> actionContext) Methods inherited from class com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
addSocketInputEventListener, getComponentID, handleSocketInputEvent, initialize, initializeDefaultEventListeners, registerStubInstance, sendOutput, setComponentID, unregisterStubInstance
-
Field Details
-
SOCKET_OUT_CONTEXT
- See Also:
-
SOCKET_OUT_DESELECT
- See Also:
-
NODE_SELECTED
- See Also:
-
CANCELLED_TASKS_MESSAGE
- See Also:
-
CANCELLED_TASKS_TITLE
- See Also:
-
-
Constructor Details
-
DoneAction
public DoneAction()
-
-
Method Details
-
canPerform
public boolean canPerform(com.hybris.cockpitng.actions.ActionContext<Collection<WorkflowActionModel>> actionContext) - Specified by:
canPerformin interfacecom.hybris.cockpitng.actions.CockpitAction<Collection<WorkflowActionModel>,Collection<WorkflowActionModel>>
-
getConfirmationMessage
public String getConfirmationMessage(com.hybris.cockpitng.actions.ActionContext<Collection<WorkflowActionModel>> actionContext) - Specified by:
getConfirmationMessagein interfacecom.hybris.cockpitng.actions.CockpitAction<Collection<WorkflowActionModel>,Collection<WorkflowActionModel>>
-
needsConfirmation
public boolean needsConfirmation(com.hybris.cockpitng.actions.ActionContext<Collection<WorkflowActionModel>> actionContext) - Specified by:
needsConfirmationin interfacecom.hybris.cockpitng.actions.CockpitAction<Collection<WorkflowActionModel>,Collection<WorkflowActionModel>>
-
perform
public com.hybris.cockpitng.actions.ActionResult<Collection<WorkflowActionModel>> perform(com.hybris.cockpitng.actions.ActionContext<Collection<WorkflowActionModel>> actionContext) - Specified by:
performin interfacecom.hybris.cockpitng.actions.CockpitAction<Collection<WorkflowActionModel>,Collection<WorkflowActionModel>>
-
displayCancellationMessageBox
protected void displayCancellationMessageBox(Collection<WorkflowActionModel> cancelledTasks, com.hybris.cockpitng.actions.ActionContext<Collection<WorkflowActionModel>> actionContext) Displays a message box to notify the user that the givenCollection<WorkflowActionModel>are cancelled.- Parameters:
cancelledTasks- the cancelledCollection<WorkflowActionModel>actionContext- theActionContextwhich will be used to get labels to be displayed to the user
-
getWorkflowProcessingService
-
getNewestWorkflowService
-