Class CreateConsignmentMovedToCSTicketAction
- java.lang.Object
-
- de.hybris.platform.processengine.action.AbstractAction<ConsignmentProcessModel>
-
- de.hybris.platform.acceleratorservices.order.actions.CreateConsignmentMovedToCSTicketAction
-
- All Implemented Interfaces:
Action<ConsignmentProcessModel>
public class CreateConsignmentMovedToCSTicketAction extends AbstractAction<ConsignmentProcessModel>
Creates a ticket for customers services saying that pickup order has not been collected for specific amount of time.
-
-
Field Summary
Fields Modifier and Type Field Description protected TicketBusinessService
ticketBusinessService
-
Fields inherited from class de.hybris.platform.processengine.action.AbstractAction
modelService, processParameterHelper
-
Fields inherited from interface de.hybris.platform.processengine.spring.Action
ERROR_RETURN_CODE, RETRY_RETURN_CODE
-
-
Constructor Summary
Constructors Constructor Description CreateConsignmentMovedToCSTicketAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CsTicketModel
createTicket(java.lang.String subject, java.lang.String description, AbstractOrderModel order, CsTicketCategory category, CsTicketPriority priority)
java.lang.String
execute(ConsignmentProcessModel process)
Executes thisAction
's business logic working on the givenBusinessProcessModel
.protected TicketBusinessService
getTicketBusinessService()
java.util.Set<java.lang.String>
getTransitions()
Accesses all possible return codes of thisAction
.void
setTicketBusinessService(TicketBusinessService ticketBusinessService)
-
Methods inherited from class de.hybris.platform.processengine.action.AbstractAction
createTransitions, getModelService, getProcessParameterHelper, getProcessParameterValue, refresh, save, setModelService, setOrderStatus, setProcessParameterHelper
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.processengine.spring.Action
getCurrentActionDefinitionContext
-
-
-
-
Field Detail
-
ticketBusinessService
protected TicketBusinessService ticketBusinessService
-
-
Method Detail
-
execute
public java.lang.String execute(ConsignmentProcessModel process) throws RetryLaterException, java.lang.Exception
Description copied from interface:Action
Executes thisAction
's business logic working on the givenBusinessProcessModel
.- Parameters:
process
- The process context to work on.- Returns:
- the return code as stated in the process definition. This code is used by the process engine to determine the next actions.
- Throws:
java.lang.Exception
RetryLaterException
-
getTransitions
public java.util.Set<java.lang.String> getTransitions()
Description copied from interface:Action
Accesses all possible return codes of thisAction
. This method is used by the process engine to validate a process definition. Furthermore it can be used by (graphical) editors to access all return codes which have to mapped in transitions.- Returns:
- all possible return codes of this
Action
-
createTicket
protected CsTicketModel createTicket(java.lang.String subject, java.lang.String description, AbstractOrderModel order, CsTicketCategory category, CsTicketPriority priority)
-
getTicketBusinessService
protected TicketBusinessService getTicketBusinessService()
-
setTicketBusinessService
public void setTicketBusinessService(TicketBusinessService ticketBusinessService)
-
-