I have this config (reducted) in app settings.
"registrations": [
{
"form": "chv_signal_reporting",
"events": [{
"name": "on_create",
"trigger": "add_case"
}],
"messages": [
{
"event_type": "report_accepted",
"bool_expr": "true",
"message": "<message>",
"recipient": "parent"
}
]
},
{
"form": "cha_signal_reporting_verification",
"events": [{
"name": "on_create",
"trigger": "add_case"
}],
"messages": [
{
"event_type": "report_accepted",
"bool_expr": "<condition>",
"message": "<message>",
"recipient": "parent"
}
]
},
{
"form": "cha_signal_verification",
"events": [{
"name": "on_create",
"trigger": "clear_schedule",
"params": "dummy"
}]
}
],
"accept_case_reports": [
{
"form": "cha_signal_verification",
"validations": {},
"messages": [
{
"event_type": "report_accepted",
"bool_expr": "<condition>",
"message": "<msg>",
"recipient": "parent"
}
]
}
],
"schedules": [
{
"name": "dummy",
"summary": "<txt>",
"description": "",
"start_from": "reported_date",
"start_mid_group": true,
"messages": [
{
"translation_key": "schedules.dummy.message",
"group": 1,
"offset": "52 weeks",
"send_day": "monday",
"send_time": "09:00",
"recipient": "reporting_unit"
}
]
}
]
Note that there is a dummy
schedule entry whose only purpose is to allow registering cha_signal_verification
in registrations
.
What I really wanted to do is to just accept cha_signal_verification
report as a case report linked to the case generated in chv_signal_reporting
’s registration and send an SMS notification.
If I omit the entry for cha_signal_verification
form in registrations, it’s accept_case_reports
config does not work and no SMS is sent.
Is this by design? It seems to me accepting a case report should be independent of a registration for a form.