[
https://issues.apache.org/jira/browse/OODT-139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996214#comment-12996214
]
Brian Foster commented on OODT-139:
-----------------------------------
*UPDATES TO ENDPOINTS MENTIONED ABOVE*
*Page of Workflows*
URL: http://localhost:8080/cas-webservices/wmgr/workflows.json?size=2
JSON:
{noformat}
{
"number": 1,
"size": 2,
"workflows": [
{
"alivetime": 20000,
"creationdate": "2011-02-17T18:27:50.288-08:00",
"currenttasks": [
"Test1Task",
"Test2Task"
],
"instanceid": "inst-0",
"workflowid": "TestWorkflow"
},
{
"alivetime": 20000,
"creationdate": "2011-02-17T18:27:50.288-08:00",
"currenttasks": [
"Test1Task",
"Test2Task"
],
"instanceid": "inst-1",
"workflowid": "TestWorkflow"
}
],
"hits": 100
}
{noformat}
*Get Workflow By InstanceId*
URL: http://localhost:8080/cas-webservices/wmgr/workflows/inst-1.json
JSON:
{noformat}
{
"completiondate": "2011-02-17T18:33:56.757-08:00",
"creationdate": "2011-02-17T18:33:56.757-08:00",
"executiondate": "2011-02-17T18:33:56.757-08:00",
"instanceid": "inst-1",
"postconditions": {
"completiondate": "2011-02-17T18:33:56.757-08:00",
"creationdate": "2011-02-17T18:33:56.757-08:00",
"executiondate": "2011-02-17T18:33:56.757-08:00",
"instanceid": "inst-1",
"priority": 5,
"readydate": "2011-02-17T18:33:56.757-08:00",
"state": {
"date": "2011-02-17T18:33:56.757-08:00",
"message": "This is a state's message",
"state": "Executing"
},
"timesblocked": 2,
"workflowid": "TestPostCondWorkflowId",
"workflowname": "TestPostCondWorkflowName"
},
"preconditions": {
"completiondate": "2011-02-17T18:33:56.757-08:00",
"creationdate": "2011-02-17T18:33:56.757-08:00",
"executiondate": "2011-02-17T18:33:56.757-08:00",
"instanceid": "inst-1",
"priority": 5,
"readydate": "2011-02-17T18:33:56.757-08:00",
"state": {
"date": "2011-02-17T18:33:56.757-08:00",
"message": "This is a state's message",
"state": "Executing"
},
"timesblocked": 2,
"workflowid": "TestPreCondWorkflowId",
"workflowname": "TestPreCondWorkflowName"
},
"priority": 5,
"readydate": "2011-02-17T18:33:56.757-08:00",
"state": {
"date": "2011-02-17T18:33:56.757-08:00",
"message": "This is a state's message",
"state": "Executing"
},
"subprocessors": [
{
"completiondate": "2011-02-17T18:33:56.757-08:00",
"creationdate": "2011-02-17T18:33:56.757-08:00",
"executiondate": "2011-02-17T18:33:56.757-08:00",
"instanceid": "inst-1",
"priority": 5,
"readydate": "2011-02-17T18:33:56.757-08:00",
"state": {
"date": "2011-02-17T18:33:56.757-08:00",
"message": "This is a state's message",
"state": "Executing"
},
"timesblocked": 2,
"workflowid": "TestSubProcWorkflowId",
"workflowname": "TestSubProcWorkflowName"
},
{
"completiondate": "2011-02-17T18:33:56.757-08:00",
"creationdate": "2011-02-17T18:33:56.757-08:00",
"executiondate": "2011-02-17T18:33:56.757-08:00",
"instanceid": "inst-1",
"priority": 5,
"readydate": "2011-02-17T18:33:56.757-08:00",
"state": {
"date": "2011-02-17T18:33:56.757-08:00",
"message": "This is a state's message",
"state": "Executing"
},
"timesblocked": 2,
"workflowid": "TestSubProcWorkflowId",
"workflowname": "TestSubProcWorkflowName"
}
],
"timesblocked": 2,
"workflowid": "TestWorkflowId",
"workflowname": "TestWorkflowName"
}
{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.Hart.021611.patch.txt,
> 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