Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send fix events on a schedule #2815

Open
Xaelias opened this issue Jun 16, 2020 · 2 comments
Open

Send fix events on a schedule #2815

Xaelias opened this issue Jun 16, 2020 · 2 comments

Comments

@Xaelias
Copy link
Contributor

Xaelias commented Jun 16, 2020

Hi,
I'm probably just being stupid...

I have a bunch of post requests I have to make. It's a common URL, with the only variable being a case number.
The way I have it right now is I have multiple Post Agents setup. Each one with its configuration configured.

The better way would be to have one Post Agent, and use liquid templating to grab the case number from an incoming event.
And... that's where my stupidity takes over?
I don't seem to see a way (outside of a JS Agent I guess) to just send a list of events on a schedule?
Smth like:

[
 {
    "case_number": "abcd1234",
    "name": "name01"
  },
  {
    "case_number": "aaaa1111",
    "name": "name02"
  },
  [...]
]

Thanks

@dsander
Copy link
Collaborator

dsander commented Jun 18, 2020

Hi!

I think you are right, the JavaScriptAgent seems to be the only option at the moment. A ForEachAgent (which could use a better name) would be a nice addition here and it's only job would be to emit an Event for every element in the configured array. In addition to that we would probably also need to extend the ManualEventAgent and allow it to be run on a schedule.

@Xaelias
Copy link
Contributor Author

Xaelias commented Jun 19, 2020

Yup that's basically what I had in mind.
Either a dedicated agent with a json you can configure, or make the ManualEventAgent with a config you can persist, and make it able to trigger on a schedule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants