Prevent Lighthouse account updates on UserView checkin
Hello!
I'm using a custom workflow to update some attributes on a resource account. The problem is the Lighthouse account also gets updated. In the user view, I set:
<set name='userView.update.selectAll'>
<s>false</s>
</set>
And also set all the userView.update.accounts[*].selected attributes to false (except for the one I am updatingm, which I set to true).
When I checkin the view and the Lighthouse account has anything to be updated, it is also updated.
The real problem is: I have some invalid attributes in the lighthouse accounts (say, auth questions), and when I try to change anything in a resource account, the update fails because the auth question is invalid. I want the update to ignore the lighthouse account and do the updates only in the resource accounts.
Any clues?
Thanks a lot!
Joao.
# 1
Hi,
Use target resource on which resource u want to update while getting user view.........
see below code....
<Action id='0'>
<expression>
<set name='options'>
<map>
<s>TargetResources</s>
<list>
<s>Resource1</s>
<s>Resource2</s>
</list>
</map>
</set>
</expression>
</Action>
<Action id='1' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='getView'/>
<Argument name='type' value='User'/>
<Argument name='options' value='$(options)'/>
<Argument name='id'>
<ref>accountId</ref>
</Argument>
<Return from='view' to='user'/>
</Action>
Thanx
Shant
Shanta at 2007-7-12 17:40:39 >

# 2
Thanks, Shant.
It worked partially. The other resource accounts are not being touched, not even fetched, and that is good. But the auth questions are still updated on checkin, as probably the rest of the LH account (haven't tested others specifically).
I think I'll change the approach and manipulate the checkin error instead of trying to avoid it.