exalead:consobox
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| exalead:consobox [2021/02/11 20:39] – ↷ Page déplacée de windows:softs:exalead:consobox à exalead:consobox nicoanto | exalead:consobox [2022/02/02 14:30] (Version actuelle) – nicoanto | ||
|---|---|---|---|
| Ligne 33: | Ligne 33: | ||
| {{:: | {{:: | ||
| + | ===== Groovy Examples ===== | ||
| + | |||
| + | ==== Creation of Child Document ==== | ||
| + | |||
| + | < | ||
| + | process(" | ||
| + | log.info(" | ||
| + | String hpc_co_dc_type = it.metas.getValue(" | ||
| + | log.info " | ||
| + | String[] SDC_TYPE = it.directives.getValues(" | ||
| + | log.info " | ||
| + | String datamodel_class = it.directives.getValue(" | ||
| + | log.info " | ||
| + | child = createChildDocument( | ||
| + | it, // root | ||
| + | it.getUri()+' | ||
| + | " | ||
| + | ); | ||
| + | child.directives.datamodel_class = it.directives.getValue(" | ||
| + | child.withDirectives(" | ||
| + | child.metas.hierarchical_types = " | ||
| + | child.metas.hierarchical_types+=" | ||
| + | child.metas.hierarchical_types+=" | ||
| + | child.metas.hierarchical_types+=" | ||
| + | child.metas.id = it.metas.getValue(" | ||
| + | child.metas.url = " | ||
| + | child.metas.history_type = " | ||
| + | child.metas.parenttype = " | ||
| + | child.metas.type = " | ||
| + | child.metas.current = "In Work"; | ||
| + | child.metas.changes = " | ||
| + | yield child; | ||
| + | log.info " | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Changement du type à la transformation ===== | ||
| + | Pour faire cela, il faut : | ||
| + | * Ajouter un processeur ' | ||
| + | * Et ajouter un processeur ' | ||
exalead/consobox.1613075942.txt.gz · Dernière modification : (modification externe)
