a note about removing the "consent" flow directory

Tom Zeller tzeller at dragonacea.biz
Mon Oct 20 19:39:18 EDT 2014


As a follow up to last Friday's dev call where we talked about making
the consent flows abstract and moving them to system/ in order to make
upgrades easier, I think I'm going to remove the "consent" directory
from the consent flows, so that the flow IDs will be

 post-authn/terms-of-use
 post-authn/attribute-release

instead of

 post-authn/consent/terms-of-use
 post-authn/consent/attribute-consent

Because, if we use abstract parent flows in system/ to keep bean class
names out of user space, the <bean-import
location="../../../system/flows/post-authn/terms-of-use/terms-of-use-abstract-beans.xml"
/> path will have one less leading "../".

I wasn't sure what I was doing when I created the "consent" directory
anyway. The nice thing is, in conf/ all that is needed for a
terms-of-use or attribute-release flow is an empty flow definition
file that references the parent and a message source properties file.
That leaves plenty of room for merges in the flow def file including
additional bean-imports, and we shouldn't have to fuss much with
upgrades, unless I'm missing something.

Because we're modeling and persisting consent as id+string+boolean,
where in the terms-of-use case the id and string value are derived
from a message source, it seems like we could support a variety of
consent use cases fairly easily.


More information about the dev mailing list