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
  • 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 decided
      workflowDecisionCode - 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 decided
      workflowDecisionCode - the decision which is to be taken when the action is decided
    • getOmsWorkflowFacade

      protected OmsWorkflowFacade getOmsWorkflowFacade()