[jboss-jira] [JBoss JIRA] (WFCORE-2786) Improve the composition operation output

Filippe Spolti (JIRA) issues at jboss.org
Tue May 9 19:34:00 EDT 2017


Filippe Spolti created WFCORE-2786:
--------------------------------------

             Summary: Improve the composition operation output
                 Key: WFCORE-2786
                 URL: https://issues.jboss.org/browse/WFCORE-2786
             Project: WildFly Core
          Issue Type: Enhancement
          Components: CLI
            Reporter: Filippe Spolti


When you perform a composite operations with many commands the output will be enumerated in steps, like: step-1, step-2, ..., step-N.

I am not sure, but looks like the step-X correspond to the order of the commands sent in the request payload, example:

Payload:
{quote}
{
    "address": [],
    "json.pretty": 1,
    "operation": "composite",
    "steps": [
        {
            "name": "server-state",
            "operation": "read-attribute"
        },
        {
            "address": {
                "deployment": "*"
            },
            "name": "status",
            "operation": "read-attribute"
        }
    ]
}
{quote}

Response:
{quote}
{
    "outcome": "success",
    "result": {
        "step-1": {
            "outcome": "success",
            "result": "running"
        },
        "step-2": {
            "outcome": "success",
            "result": []
        }
    }
}
{quote}


If you have something the dynamically builds the composite payload, it is very hard to identify the output corresponding to each command in the payload.

It will be great if we can add a extra field in the response or change the steps name to its operation name, for example:

{quote}
{
    "outcome": "success",
    "result": {
        "step-1": {
            "operation-name": "server-state",
            "outcome": "success",
            "result": "running"
        },
        "step-2": {
            "operation-name": "deployment-info",  
            "outcome": "success",
            "result": []
        }
    }
}
{quote}

Or

{quote}
{
    "outcome": "success",
    "result": {
        "server-state": {
            "outcome": "success",
            "result": "running"
        },
        "deployment-info": {
            "outcome": "success",
            "result": []
        }
    }
}
{quote}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list