Class OmsWorkflowController


  • @Controller
    @RequestMapping("/workflows")
    public class OmsWorkflowController
    extends OmsBaseController
    WebResource exposing OmsWorkflowFacade https://host:port/ordermanagementwebservices/workflows
    • Constructor Detail

      • OmsWorkflowController

        public OmsWorkflowController()
    • Method Detail

      • 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 java.lang.String workflowCode,
                                         @PathVariable @NotNull
                                         @NotNull java.lang.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 java.lang.String workflowDecisionCode,
                                          @RequestParam(required=false,defaultValue="DEFAULT")
                                          java.lang.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