Uploaded image for project: 'Webservices REST Module'
  1. Webservices REST Module
  2. RESTWS-764

Refactor TaskAction Resource to take in a Task Definition uuid in addition to name

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Code Review (Initial)
    • Priority: Should
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Complexity:
      Undetermined

      Description

      When POSTing  to the TaskAction Resource  https://github.com/openmrs/openmrs-module-webservices.rest/blob/master/omod-1.8/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/resource/openmrs1_8/TaskActionResource1_8.java ,

      the request body is currently posted with a task definition name as

       { "action": "runtask",
       "tasks": ["TaskDefinition_name "] 
      } 

      ,Refactor the resource so that ,the  request can also  be posted with a task definition uuid

       { "action": "runtask", 
      "tasks": ["TaskDefinition_uuid"]
       } 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gcliff CLIFF GITA
              Reporter:
              mozzy Moses Mutesasira
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated: