[ 
https://issues.apache.org/jira/browse/OODT-139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995128#comment-12995128
 ] 

Brian Foster commented on OODT-139:
-----------------------------------

*Page through workflows endpoint:*
{noformat}
http://localhost:8080/cas-webservices/wengine/workflows[.xml | .json]
 - path params: none
 - query params: 
  |_ size : the page size
  |_ page : the page number
  |_ state : filter workflows to given state
  |_ category : filter workflows to given category
  |_ modelid : filter workflows to given model id
  |_ metadata : filter workflows to given metadata (format <key>:<val>; specify 
a list of values: metadata=key1:val1&metadata=key1:val2)
 - example:
  |_ url :
http://localhost:8080/cas-webservices/wengine/workflows.json?page=1&size=2&state=Executing&metadata=NominalDate:2008-01-20&metadata=NominalDate:2008-01-21&metadata=CollectionLabel:TestRun
  |_ json responce:
{
      "page": {
            "number": 1, 
            "size": 2, 
            "results": [
                  {
                        "map": {
                              "entries": [
                                    {
                                          "key": "ModelId", 
                                          "values": "TestWorkflow"
                                    }, 
                                    {
                                          "key": "State", 
                                          "values": "Executing"
                                    }, 
                                    {
                                          "key": "InstanceId", 
                                          "values": "inst-0"
                                    }, 
                                    {
                                          "key": "AliveTime", 
                                          "values": "20 hours"
                                    }, 
                                    {
                                          "key": "CreationDate", 
                                          "values": "2008-01-20T00:00:00.000Z"
                                    }, 
                                    {
                                          "key": "CurrentTasks", 
                                          "values": [
                                                "Test1Task", 
                                                "Test2Task"
                                          ]
                                    }
                              ]
                        }, 
                        "id": "inst-0"
                  }, 
                  {
                        "map": {
                              "entries": [
                                    {
                                          "key": "ModelId", 
                                          "values": "TestWorkflow"
                                    }, 
                                    {
                                          "key": "State", 
                                          "values": "Executing"
                                    }, 
                                    {
                                          "key": "InstanceId", 
                                          "values": "inst-1"
                                    }, 
                                    {
                                          "key": "AliveTime", 
                                          "values": "20 hours"
                                    }, 
                                    {
                                          "key": "CreationDate", 
                                          "values": "2008-01-20T00:00:00.000Z"
                                    }, 
                                    {
                                          "key": "CurrentTasks", 
                                          "values": [
                                                "Test1Task", 
                                                "Test2Task"
                                          ]
                                    }
                              ]
                        }, 
                        "id": "inst-1"
                  }
            ], 
            "hits": 100
      }
}

{noformat}

> PCS JAX-RS services
> -------------------
>
>                 Key: OODT-139
>                 URL: https://issues.apache.org/jira/browse/OODT-139
>             Project: OODT
>          Issue Type: New Feature
>          Components: pcs
>            Reporter: Chris A. Mattmann
>            Assignee: Chris A. Mattmann
>              Labels: jaxrs, jsr311, pcs
>             Fix For: 0.3
>
>         Attachments: OODT-139.Mattmann.021311.patch.txt, 
> OODT-139.Mattmann.021411.2.patch.txt, OODT-139.Mattmann.021411.patch.txt
>
>
> Now that the PCS core is contributed, it would be great to not just have 
> command line versions and APIs for tools like pcs_stat, pcstrace and pcs_ll. 
> We should expose them over JAX-RS so that webapps can easily take advantage 
> of PCS services.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to