updated README
This commit is contained in:
parent
60814532d5
commit
3d9b5ae9d1
|
@ -24,29 +24,36 @@ The "Catalogue Binding Plugin" requires a handler registered in the UCD so defin
|
||||||
"_configuration": {
|
"_configuration": {
|
||||||
"subscribeEvents": [
|
"subscribeEvents": [
|
||||||
{
|
{
|
||||||
"event": "{EVENT_NAME_1}"
|
"event": "{EVENT_1}",
|
||||||
|
"when": [
|
||||||
|
{
|
||||||
|
"target_phase": [
|
||||||
|
"{TARGET_PHASE}"
|
||||||
|
],
|
||||||
|
"last_invoked_step": "{LAST_INVOKED_STEP}"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"event": "{EVENT_NAME_2}"
|
"event": "{EVENT_2}"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"freemarker_template_host": {FREEMARKER_TEMPLATE_HOST}
|
"freemarker_template_host": "{FREEMARKER_TEMPLATE_HOST}",
|
||||||
"freemarker_template_path": {PATH_TO_FREEMARKER_TEMPLATE_NAME.ftl},
|
"freemarker_template_path": "{PATH_TO_FREEMARKER_TEMPLATE_NAME.ftl}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
where the supported events are:
|
where:
|
||||||
|
|
||||||
```
|
* `{EVENT_X}` (mandatory) - can be ```PROJECT_CREATED, PROJECT_UPDATED, PROJECT_DELETED, LIFECYCLE_STEP_PERFORMED```
|
||||||
"PROJECT_CREATED"
|
* `{TARGET_PHASE}` (optional) - can be: `DRAFT`, `Pending Approval`, `Published`, `Any`;
|
||||||
"PROJECT_UPDATED"
|
* `{LAST_INVOKED_STEP}` (optional) can be: `SUBMIT-FOR-REVIEW`, `APPROVE-SUBMITTED`, `REJECT-DRAFT`, `UNPUBLISH`;
|
||||||
"PROJECT_DELETED"
|
|
||||||
"LIFECYCLE_STEP_PERFORMED"
|
|
||||||
```
|
|
||||||
|
|
||||||
and `{FREEMARKER_TEMPLATE_HOST}` is the host where the FREEMARKER_TEMPLATE.ftl is located and the `{FREEMARKER_TEMPLATE_NAME.ftl}` is the (complete) path to the FREEMARKER_TEMPLATE.ftl file.
|
and `{FREEMARKER_TEMPLATE_HOST}` is the host where the FREEMARKER_TEMPLATE.ftl is located and the `{FREEMARKER_TEMPLATE_NAME.ftl}` is the (complete) path to the FREEMARKER_TEMPLATE.ftl file.
|
||||||
The template pointed by `{FREEMARKER_TEMPLATE_HOST}/{PATH_TO_FREEMARKER_TEMPLATE_NAME.ftl}` is applied to transform a Geoportal project to Catalogue Item object.
|
The template pointed by `{FREEMARKER_TEMPLATE_HOST}/{PATH_TO_FREEMARKER_TEMPLATE_NAME.ftl}` URL is applied to transform a Geoportal project to Catalogue Item object.
|
||||||
|
|
||||||
|
NB. The configuration must contain the `{TARGET_PHASE}` and `{LAST_INVOKED_STEP}` when the `{EVENT_X}` is equal to `LIFECYCLE_STEP_PERFORMED`
|
||||||
|
|
||||||
## Change log
|
## Change log
|
||||||
See [CHANGELOG.md](CHANGELOG.md).
|
See [CHANGELOG.md](CHANGELOG.md).
|
||||||
|
|
Loading…
Reference in New Issue