Uploaded image for project: 'Spring XD'
  1. Spring XD
  2. XD-1876

Create test that uses #jsonPath with the filter module

    Details

    • Type: Story
    • Status: Done
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 1.1 M1
    • Component/s: None
    • Labels:
      None

      Description

      The script tests does the following.

      # Filter for good and bad
      create_stream 'httpfilter' "http | good: filter --expression=#jsonPath(payload,'\$.entities.hashtags[*].text').contains('good') \
      | aftergood: filter --expression=true \
      | bad: filter --expression=#jsonPath(payload,'\$.entities.hashtags[*].text').contains('bad') \
      | goodandbad: splitter --expression=#jsonPath(payload,'$.id') \
      | file --dir=$TEST_DIR" 'true'
      

        Attachments

          Activity

            People

            • Assignee:
              grenfro Glenn Renfro
              Reporter:
              mark.pollack Mark Pollack
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: