2021-08-10 16:56:44 +02:00
|
|
|
directories:
|
|
|
|
- path: /tmp/foo
|
|
|
|
recursive: false
|
2021-08-10 18:31:29 +02:00
|
|
|
events: ["CLOSE_WRITE", "MOVED_TO"]
|
|
|
|
pollingInterval: 60
|
2021-08-10 16:56:44 +02:00
|
|
|
regex: "/[^\\.][^/]+.xml$"
|
|
|
|
actions:
|
2021-08-10 18:31:29 +02:00
|
|
|
- type: http
|
|
|
|
method: post
|
|
|
|
url: http://localhost:8080/api/v1/_/renz_einfo/xml
|
|
|
|
header:
|
|
|
|
Token: Ksi02vcaHHasd1sjYxiq4J
|
|
|
|
ContentType: application/xml
|
|
|
|
# content: PLAIN IS FILECONTENT
|
|
|
|
onError:
|
|
|
|
- type: move
|
2021-08-10 16:56:44 +02:00
|
|
|
to: /tmp/error/{{ filename }}
|
|
|
|
stop: true
|
|
|
|
|
2021-08-10 18:31:29 +02:00
|
|
|
onSuccess:
|
|
|
|
- type: delete
|
|
|
|
|
|
|
|
- path: /tmp/foo
|
|
|
|
recursive: false
|
|
|
|
events: ["CLOSE_WRITE", "MOVED_TO"]
|
|
|
|
regex: "/[^\\.][^/]+.(png|jpe?g|pdf)$"
|
|
|
|
actions:
|
|
|
|
- type: http
|
|
|
|
method: post
|
|
|
|
url: http://localhost:8080/api/v1/_/renz_einfo/operation-file
|
|
|
|
header:
|
|
|
|
Token: Ksi02vcaHHasd1sjYxiq4J
|
|
|
|
Content-Type: application/json
|
|
|
|
content: |
|
|
|
|
{
|
|
|
|
"filename": "{{ filename }}"
|
|
|
|
}
|
|
|
|
onError:
|
|
|
|
- type: move
|
2021-08-10 16:56:44 +02:00
|
|
|
to: /tmp/error/{{ filename }}
|
|
|
|
stop: true
|
|
|
|
|
2021-08-10 18:31:29 +02:00
|
|
|
- type: log
|