# Context input/output
append = dump?indent=true

# Necessary plugins
[use]
plugin = basics
plugin = analytics
plugin = storage

# Environment variables
[env]
path = weekNumber
value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7))

# Flow configuration
[JSONParse]
separator = *

# On utilise [expand] pour travailler uniqument sur le champ value, sans toucher aux autres champs (si ils existent)
[expand]
path = value
size = 1
file = ./v1/combine.cfg

; Pour les documents sans résulat, on donne une valeur par défaut
[swing]
test = get('value.rdf$about').isEmpty()
[swing/assign]
path = value
value = fix('n/a')

