StoredID/persistentID only when used?
John Morrison
john.morrison at uadm.uu.se
Tue Sep 20 06:33:10 EDT 2016
On Tue, 2016-09-20 at 10:12 +0100, Rod Widdowson wrote:
> > Seeing how this half works, what am I doing wrong?
>
> I think that you condition isn’t attached to the correct place.
>
> The dependencies are resolved before the resolver is invoked so the dependency of eduPersonTargetedID is invoked. Which is to say that the condition is about the plugin (DataConnector, Attribute Resolver) _not_ about its conditions.
>
> The dependency of 'eduPersonTargetedID' is 'StoredId' and that does all the work (including writing to the DB).
>
> Then 'eduPersonTargetedID' is invoked and the predicate says "return with no further action". But by that time the 'StoreId' has beaten on your DataBase.
>
> If you can, try making the 'StoredId' (which after all is the think you want to supress working) conditional. You then don't need to do anything to 'eduPersonTargetedID' - it will see that it has no input and bail (potentially with a warning - so maybe you do need the condition).
>
> /Rod
>
Bang on Rod!
Cheers, I was looking at it the wrong way..... I did look for any
conditions to be used with StoredID, but found no documentation for it.
Hence, thinking I was still in the right place (attribute definition)
for activating it :/
//John
More information about the users
mailing list