Disabling a resource account through workflow

Hi All,How to disable a resource account through a workflow?
[74 byte] By [idmmore] at [2007-11-26 11:44:58]
# 1

Something like this in your workflow

<Field name='waveset.disabled'>

<Expansion>

<s>true</s>

</Expansion>

</Field>

<FieldLoop for='name' in='waveset.accounts[*].name'>

<Field name='accounts[$(name)].disable'>

<Expansion>

<s>true</s>

</Expansion>

</Field>

<Field name='TraceExecution'>

<Expansion>

<block trace='true'>

<invoke name='println'>

<ref>java.System.out</ref>

<concat>

<s>ActSyncUserForm Processing Disable For: </s>

<ref>name</ref>

</concat>

</invoke>

</block>

</Expansion>

</Field>

<Field name='update.accounts[$(name)].disable'>

<Expansion>

<s>true</s>

</Expansion>

</Field>

</Field>

NullTerminator2 at 2007-7-7 11:54:01 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2

I think for disabling particular resource accounts rather than all..we can use this way

1. checkout view ( In this case use Disable)

2. select the particular resource accounts to be disabled using the format

set view.resourceAccounts.selectAll to false

View.resourceAccounts.currentResourceAccounts[SAP Portal].selected

to true

view.resourceAccounts.currentResourceAccounts[SAP Portal].disabled

to true

3. checkin view

idmmore at 2007-7-7 11:54:01 > top of Java-index,Web & Directory Servers,Directory Servers...