Skip to content

passing parameters with triggers is not the same as action (but should be) #230

@rabbah

Description

@rabbah

Describe the bug

Create a trigger, and connect it to an echo action, then fire the trigger:

./bin/run rt:trigger:fire mytrigger --param name test

The echo action receives:

{
  "parameters": [
    {
      "key": "name",
      "value": "test"
    }
  ]
}

Retry with the wsk CLI and you get { "name": "test" }

To Reproduce
Steps to reproduce the behavior:

  1. Create trigger mytrigger, an echo action and a rule connecting the two
  2. Activate the trigger as show above
  3. Inspect the activation result for the echo action

Expected behavior
The parameters are sent as a JSON dictionary {"name":"test"} matching the wsk CLI.

Here is a potential patch to correct the issue https://github.com/adobe/aio-cli-plugin-runtime/compare/master...rabbah:trigger?expand=1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions