You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm taking all value mapping information to send them like a csv with an iFlow and I notice there'snt an api/library/function to do that easly. I've workaround it directly in xslt with xml file downloaded from value mapping artifact, but it's an absurd way :)
We can use an API call without sourceValue (or a special character like asterisk or keyword 'all') to receive a list of [ {sourceAgency,key,value},... ]
I'm taking all value mapping information to send them like a csv with an iFlow and I notice there'snt an api/library/function to do that easly. I've workaround it directly in xslt with xml file downloaded from value mapping artifact, but it's an absurd way :)
We can use an API call without sourceValue (or a special character like asterisk or keyword 'all') to receive a list of [ {sourceAgency,key,value},... ]
example in xslt:
source data format (directly from value mapping artifact):
result:
I'd like to do the same in groovy with :
def value = valueMapApi.getMappedValue(mapping.sourceAgency, mapping.sourceIdentifier, mapping.sourceValue, mapping.targetAgency, mapping.targetIdentifier)
to
def values = valueMapApi.getMappedAllValues(MappingArtifactName,[sourceAgency[SourceIdentifier]])
[sourceAgency[SourceIdentifier]] are optionals.
values.each{
output += "${mapping.sourceAgency},${mapping.sourceValue},${mapping.targetValue}}"
}
The text was updated successfully, but these errors were encountered: