Class OmsWorkflowController
java.lang.Object
de.hybris.platform.ordermanagementwebservices.controllers.OmsBaseController
de.hybris.platform.ordermanagementwebservices.controllers.workflow.OmsWorkflowController
@Controller
@RequestMapping("/workflows")
public class OmsWorkflowController
extends OmsBaseController
WebResource exposing
OmsWorkflowFacade
https://host:port/ordermanagementwebservices/workflows-
Field Summary
Fields inherited from class de.hybris.platform.ordermanagementwebservices.controllers.OmsBaseController
ADMIN_GROUP, CUSTOMER_SUPPORT_ADMINISTRATOR_GROUP, CUSTOMER_SUPPORT_AGENT_GROUP, CUSTOMER_SUPPORT_MANAGER_GROUP, dataMapper, DEFAULT_CURRENT_PAGE, DEFAULT_FIELD_SET, DEFAULT_PAGE_SIZE, DEFAULT_SORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecideWorkflowAction(@NotNull String workflowCode, @NotNull String workflowDecisionCode) Request to decide the workflow action belonging to the given workflow with the provided decision.voiddecideWorkflowActions(@NotNull WorkflowCodesListWsDto workflowCodesListWsDto, @NotNull String workflowDecisionCode, String fields) Request to decide the workflow actions belonging to the given list of workflows with the provided decision.protected OmsWorkflowFacadeRequest to get all active workflow actions assigned to the current userMethods inherited from class de.hybris.platform.ordermanagementwebservices.controllers.OmsBaseController
createPageable, validate
-
Constructor Details
-
OmsWorkflowController
public OmsWorkflowController()
-
-
Method Details
-
getWorkflowActions
@RequestMapping(value="/actions", method=GET) @ResponseBody @Secured("ROLE_ADMINGROUP") public WorkflowActionListWsDto getWorkflowActions()Request to get all active workflow actions assigned to the current user -
decideWorkflowAction
@RequestMapping(value="/{workflowCode}/{workflowDecisionCode}", method=POST, produces={"application/json","application/xml"}, consumes={"application/json","application/xml"}) @ResponseStatus(OK) @Secured("ROLE_ADMINGROUP") public void decideWorkflowAction(@PathVariable @NotNull @NotNull String workflowCode, @PathVariable @NotNull @NotNull String workflowDecisionCode) Request to decide the workflow action belonging to the given workflow with the provided decision.- Parameters:
workflowCode- the workflow which contains the action to be decidedworkflowDecisionCode- the decision which is to be taken when the action is decided
-
decideWorkflowActions
@RequestMapping(value="/decide-action/{workflowDecisionCode}", method=POST, produces={"application/json","application/xml"}, consumes={"application/json","application/xml"}) @ResponseStatus(OK) @Secured("ROLE_ADMINGROUP") public void decideWorkflowActions(@RequestBody @NotNull @NotNull WorkflowCodesListWsDto workflowCodesListWsDto, @PathVariable @NotNull @NotNull String workflowDecisionCode, @RequestParam(required=false,defaultValue="DEFAULT") String fields) Request to decide the workflow actions belonging to the given list of workflows with the provided decision.- Parameters:
workflowCodesListWsDto- the list of codes for workflows containing actions to be decidedworkflowDecisionCode- the decision which is to be taken when the action is decided
-
getOmsWorkflowFacade
-