We have a dynamic, schema independent workflow. In order to write our output properly to shapefiles, I need to make sure that the fields which are dates, are formatted in ISO Date (%Y-%m-%d) format.
The attached workspace uses a list searcher to find the first date attribute (I plan to turn it into a custom transformer to be able to loop so I can find all date attributes, but that's for later). With the listSearcher index I get the attribute name which is a date. The corresponding attribute name retrieved using a small piece of python, storing the name in an attribute named _dateAttribute.
This name is passed on onto another custom transformer. The custom transformer has a parameter which is using this name. This parameter is used by the DateFormatter to specify which attribute is a date field and thus which field it should format.
In stead of the attribute name however, the DateFormatter is trying to convert a field name @Value(_dateAttribute). Parallel to the dateformatter, I added an attributeCreator, which creates an arbitrary attribute with the value of the parameter. There, it shows the proper name of the attribute.
In conclusion: it seems like the DateFormatter is not reading the parameter properly, but I don't know why.