Enabling Resource Domino gateway
Hi All,
I am not able to enable the lotus notes account, I successfuuly disabled a user on lotus notes by keeping the user on the specific deny group, but while enabling I am not able to get that specific deny group. Anybody have idea of how to retrieve the deny group. I am uding the following code.<Action id='0' name='get Deny Group'>
<expression>
<set name='userDenygroup'>
<invoke name='getList'>
<invoke name='getView'>
<invoke name='getSession' class='com.waveset.session.SessionFactory'>
<invoke name='getSubject'>
<ref>WF_CONTEXT</ref>
</invoke>
<s>Admin</s>
<s>Administrator Interface</s>
</invoke>
<map>
<s>TargetResources</s>
<list>
<s>NotesHTTP-ServerLogin</s>
</list>
</map>
</invoke>
<s>accounts[NotesHTTP-ServerLogin].DenyGroups</s>
</invoke>
</set>
</expression>
</Action>
any ideas please..
Thanks in advance
# 1
you should be able to get it from the DenyGroups attribute on the Notes resource. If you look at the user view under accounts and the Notes resource, you will see the DenyGroups attribute. I assume you would reference it as user.accounts[NotesResourceName].DenyGroups. Here's a trace that worked for me just now. Terminations 2006 - E is the name of the denygroup that the workflow found.
<set name='testdeny'>
<ref>user.accounts[Lotus Notes test].DenyGroups</ref> --> Terminations 2006 - E
</set> --> null
# 2
Bonus question - If anyone knows how to set the resource name using a variable, please let me know.
For example, this does NOT work:
<set name='view.resourceAccounts.currentResourceAccounts[$(LotusName)].attributes.De nyGroups'>
<list>
<rule name='Rule-Notes-DenyGroup'/>
</list>
</set>
I don't want resource names hard coded in my workflow. I know I saw this in a training document or somewhere, but I've been beating my head against the wall trying to find/figure it out.
# 3
This would work
<block>
<set name='attrname'>
<concat>
<s>view.resourceAccounts.currentResourceAccounts[</s>
<ref>LotusName</ref>
<s>].attributes.DenyGroups</s>
</concat>
</set>
<set>
<ref>attrname</ref>
<list>
<rule name='Rule-Notes-DenyGroup'/>
</list>
</set>
</block>