In a simple-method, I create a user and give that user a "vendor" role
with the createUserLogin and createPartyRole services.

I can 1) create a user  and 2) give a user the role of "vendor".  The
problem is I can't  create a user and give THAT user a vendor role in
a single method.

When I try, createPartyRole complains that the target "Person" doesn't
exist, because it has a foreign key constraint.  So I think the
createUserLogin hasn't completed.  So I need some kind of <sleep>
until the createUserLogin is done.  What do you suggest?

Thanks for all your help so far.  Patrick

Reply via email to