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<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 selectedWorkflowActionModelas done and move to the next step of the Task Assignment Workflow.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringCANCELLED_TASKS_MESSAGEprotected static java.lang.StringCANCELLED_TASKS_TITLEprotected static java.lang.StringNODE_SELECTEDprotected static java.lang.StringSOCKET_OUT_CONTEXTprotected static java.lang.StringSOCKET_OUT_DESELECT
-
Constructor Summary
Constructors Constructor Description DoneAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanPerform(com.hybris.cockpitng.actions.ActionContext<java.util.Collection<WorkflowActionModel>> actionContext)protected voiddisplayCancellationMessageBox(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 givenCollectionare cancelled.java.lang.StringgetConfirmationMessage(com.hybris.cockpitng.actions.ActionContext<java.util.Collection<WorkflowActionModel>> actionContext)protected DefaultWorkflowServicegetNewestWorkflowService()protected WorkflowProcessingServicegetWorkflowProcessingService()booleanneedsConfirmation(com.hybris.cockpitng.actions.ActionContext<java.util.Collection<WorkflowActionModel>> actionContext)com.hybris.cockpitng.actions.ActionResult<java.util.Collection<WorkflowActionModel>>perform(com.hybris.cockpitng.actions.ActionContext<java.util.Collection<WorkflowActionModel>> actionContext)
-
-
-
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
-
NODE_SELECTED
protected static final java.lang.String NODE_SELECTED
- 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
-
-
Method Detail
-
canPerform
public boolean canPerform(com.hybris.cockpitng.actions.ActionContext<java.util.Collection<WorkflowActionModel>> actionContext)
- Specified by:
canPerformin interfacecom.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:
getConfirmationMessagein interfacecom.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:
needsConfirmationin interfacecom.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:
performin interfacecom.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 givenCollectionare cancelled.- Parameters:
cancelledTasks- the cancelledCollectionactionContext- theActionContextwhich will be used to get labels to be displayed to the user
-
getWorkflowProcessingService
protected WorkflowProcessingService getWorkflowProcessingService()
-
getNewestWorkflowService
protected DefaultWorkflowService getNewestWorkflowService()
-
-