Versions Compared

Key

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

...

The pipeline can be specified in a JSON format which can be stored in a resource (see Resources). A sample is shown below:

Code Block
languagejs
themeEclipse
titleSample JSON Pipeline Configuration
{
  "reader": {
    "type": "SimpleReader",
    "splitRegex": "\r\n"
  },
  "stages": [
    { "type": "WhitespaceTokenizer" },
    { "type": "CharacterSplitter" },
    { "type": "com.accenture.saga.engine.stages.CaseAnalysisStage" },
    { 
      "type": "DictionaryTagger",
      "dictionary": "resources-provider:dictionary",
      "required":["TOKEN", "ALL_LOWER_CASE"]
    }
  ]
}

...