Important

Saga-Parser for Saga version 1.3.1+ only works with Aspire5

If using Aspire4 then you'll need Saga-Parser for Saga version 1.3.0.5-SNAPSHOT which is the latest one.


Step-by-step guide

Step 1. Download Saga Parser

  1. Go to https://repository.searchtechnologies.com/artifactory/public/com/accenture/saga/binaries/1.3.0.5-SNAPSHOT/
  2. Download Saga_Aspire.zip
  3. Extract the Files

Step 2. Copy the .jar files  to Aspire

  1. Copy bundles folder from the extracted files from Saga_Aspire.zip.
  2. Paste the bundles folder to aspire 4 parent directory 
  3. Verify if app-saga-parser and aspire-saga-parser are properly copied to Aspire 4  {AspireParentDIR}\bundles\aspire

       

Step 3. Configure the settings.xml of Aspire 4

  1. Go to {AspireParentDIR}\config
  2. Open settings.xml
  3. Add Saga Parser bundle inside "repositories"

<bundleVersions>

         <bundle artifactId="app-saga-parser" groupId="com.accenture.aspire" version ="{Saga_Parser_Version}">

         <bundle artifactId="aspire-saga-parser" groupId="com.accenture.aspire" version ="{Saga_Parser_Version}">

</bundleVersions>


Step 4. Add Saga Config in Aspire 4

  1. Create config.json

    config.json
    {
      "config": {
        "libraryJars": ["./lib"],
        "tagManager": {
          "resource": "saga-provider:saga_tags"
        },
        "pipelineManager": {
          "resource": "saga-provider:saga_pipelines"
        },
        "providers": [
          {
            "name": "filesystem-provider",
            "type": "FileSystem",
            "baseDir": "./config"
          },
          {
            "name": "saga-provider",
            "type": "Elastic",
            "nodeUrls": ["http://localhost:9200"],
            "timestamp": "updatedAt",
            "authentication": "none",
            "indexName": "saga",
            "exclude": [
              "updatedAt",
              "createdAt"
            ],
            "maxResults": 2000000
          }
        ]
      }
    }
  2. Paste the created config.json file to {AspireParentDIR}\config\saga
  3. Make sure that the info in config.json is correct.


Step 5. Run Aspire 4


Step 6. Add Saga Parser to your workflow

  1. You'll need to add a custom application from the menu in the workflow screen.  You'll need to provide the GroupId, ArtifactId and version of the app-saga-parser.


Step 7. Configure Saga Parser on Aspire

       


      Config Path : Location of the config.json downloaded earlier

      Tags: The tag name the we wanted to use

      FLAGS: The Name of the Flags that you wanted to use


Step 8. Save the configuration