Fixed updateObjectRoleMappings to use all workflows of the chain, not only the first one.