Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Go to Workflow API for a detailed view of the different requests

Easy Heading Free
navigationTitleOn this Page
navigationExpandOptionexpand-all-by-default

Adding a Publisher 


The following steps will create a new workflow and then add a single Elasticsearch Publisher (In Progress) to the onPublish event.

Step 1. Add a new Workflow

Request


Saga_json
TitlePOST /aspire/_api/workflows?type=connector
{
    "description": "ES Workflow"
}


Response

Saga_json
{
    "workflow": [
        {
            "id": "9bdf3efb-c266-46ac-ab59-eb8eda87d9e9",
            "type": "connector",
            "description": "Test Workflow",
            "checksum": "e143d076aab367368474087d6ebf1d90377405b7c8ab227f5cb835380e6ccc4f",
            "templates": {
                "template": [
                    {
                        "id": "add-static-acl",
                        "type": "script",
                        "description": "Add static ACLs",
                        "ruleDescription": "Static ACL: Domain:\"${domain}\" Name:\"${name}\" Type:\"${entity}\" Access:\"${access}\"",
                        ...
                    },
                   ...
                ]
            },
            "events": {
                "event": [
                    {
                        "id": "onScan"
                    },
                    {
                        "id": "onAddUpdate"
                    },
                    {
                        "id": "onDelete"
                    },
                    {
                        "id": "onPublish"
                    },
                    {
                        "id": "onError"
                    },
                    {
                        "id": "onIdentity"
                    },
                    {
                        "id": "onIdentityError"
                    }
                ]
            }
        }
    ]
}