Per Account Workflow Example

Can anyone point me to or post an example of a complete per account workflow that is used to modify the attributes of each user. I'm looking for one or more good examples to answer a few basic questions. 1) Do I need to checkout a user view with a per account workflow or is this already done for me? 2) How exactly do I reference the attributes of each user in a per account workflow when I want to make a change to that attribute?
Any help appreciated, but I'm really look for complete code samples, and not just snippets.
Thanks,
Gary
UC Davis Vet Med Teaching Hospital

Hi,
I know it is virtually impossible to find anything in the forum now, so I'd like to point you to an old thread that might answer your question.
http://forums.sun.com/thread.jspa?threadID=5227870&messageID=9931369#9931369
Pauls code in the last post may be the answer to your problem. Still I keep my stance from my post in this thread - while it works it does not scale...
Regards,
Patrick

Similar Messages

  • Per account workflow not being executed

    I am trying to run a per account workflow,
    so that when a user in a Resouce(Authoritative source) gets deleted,
    during reconciliation the per account workflow should get executed there by disabling all the resource accounts for the user .
    I added the following workflow int the 'Per account workflow' tab of my reconciliation policy
    my reconciliation runs sucessfully however i do not see any changes in the users account , it seems the Workflow is not getting executed..
    The code for the workflow is as below
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE TaskDefinition PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <!--  MemberObjectGroups="#ID#Top" createDate="Fri Feb 24 18:31:31 PST 2006" id="#ID#BC7431C56D947D4E:194DF96:1099F0627CB:-7FFB" name="Custom Workflow" visibility="runschedule"-->
    <TaskDefinition id='#ID#BC7431C56D947D4E:194DF96:1099F0627CB:-7FFB' name='Custom Workflow' lock='Configurator#1141081471234' creator='Configurator' createDate='1140834691093' lastModifier='Configurator' lastModDate='1140843754062' lastMod='96' taskType='Workflow' executor='com.waveset.workflow.WorkflowExecutor' suspendable='true' syncControlAllowed='true' execMode='sync' execLimit='0' resultLimit='0' resultOption='delete' visibility='runschedule' progressInterval='0'>
      <Extension>
        <WFProcess name='Custom Workflow' maxSteps='0'>
          <Variable name='userName' input='true'/>
          <Variable name='accountId' input='true'/>
          <Variable name='loginApplication' input='true'/>
          <Variable name='resource' input='true'/>
          <Activity id='0' name='start'>
            <Transition to='Disable User'>
              <eq>
                <ref>initialSituation</ref>
                <s>AR_SITUATION_NAME_DELETED</s>
              </eq>
            </Transition>
            <WorkflowEditor x='56' y='225'/>
          </Activity>
          <Activity id='1' name='Disable User'>
            <Variable name='WF_ACTION_ERROR'/>
            <Variable name='user'/>
            <Action id='0'>
              <expression>
                <set name='user.resourceAccounts.selectAll'>
                  <Boolean>true</Boolean>
                </set>
              </expression>
              <Argument name='op' value='disableUser'/>
              <Argument name='accountId' value='$(accountId)'/>
              <Argument name='doWaveset' value='true'/>
            </Action>
            <Transition to='Clear Task Results'>
              <isnull>
                <ref>WF_ACTION_ERROR</ref>
              </isnull>
            </Transition>
            <Transition to='end'/>
            <WorkflowEditor x='362' y='23'/>
          </Activity>
          <Activity id='2' name='Clear Task Results'>
            <Action id='0' application='SET_RESULT_LIMIT'>
              <Argument name='limit' value='0'/>
            </Action>
            <Transition to='end'/>
            <WorkflowEditor x='373' y='224'/>
          </Activity>
          <Activity id='3' name='end'>
            <WorkflowEditor x='564' y='171'/>
          </Activity>
        </WFProcess>
      </Extension>
      <MemberObjectGroups>
        <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
      </MemberObjectGroups>
    </TaskDefinition>Can anyone help me with this?

    Hi,
    It could be that the workflow is being executed
    but it is not doing the correct thing.
    Why dont you load the workflow into the debugger,
    set a breakpoint on it and then run reconcilliation.
    That way you will know for sure if the workflow
    is being executed.
    John I

  • Per Account Workflow and parameters

    I added an attribute in the User Extended Attributes.xml called status
    In my per account workflow, I pass in this variable as
    <Variable name='status' input='true'/>
    But it does not pass in the value. Do you have any ideas?

    sorry. in the deployment tools document, there's a section about per account workflow. It specifies all the parameters that are passed into a per account WF.

  • Per Account WF issue in IDM6.0

    hi, I am implementing the following.
    1. load users from LDAP to IDM using Recon form
    2. create AD accts via perAcctWF.
    When the Recon is run the first time around, perAcctWF has no access to userName variable!!!. But If I the run the recon next time, I see the userName available for me to checkout a viea and create a AD acct. Is this normal behavior? Given that we have 70K users, running a recon twice is taking a lot of time.
    Here is the error when the first recon is run:
    An error occurred in the per-account workflow for account ucsbcampusid=578f245f-8750,dc=example,dc=com: com.waveset.util.WavesetException: Missing view id.
    The WF tries to checkout by passing userName as id . Since it is not available the first time around, I see the above error. But the second recon run goes smoothly.
    Venu Alla

    Hi Venu Alla,
    I've got here exactly the same problem as you described it. Could you figure out any solution?
    Best regards,
    Sebastian

  • Attachment downloads per account

    I maintain several account in Mail under Lion. I see on the General tab of Preferences how to specify a specific location to download all attachments, but what if I want to use separate folders to store attachments per mail account. I've tried to create a rule but don't see an obvious way to do it. Any suggestions, or plug-ins, that can accomplish this?
    Thanks!

    reconciliation really isn't meant for creating accounts on other systems.
    That's more of a function through active sync. depending on which version of idm you're using you can use the meta view functionality or just vanilla active sync.
    also - per account workflows are notorious for performance problems because I think they are called even if they dont need to be run.

  • Get IdM accountId in per-account reconciliation workflow

    I'd like to get IdM accountId in per-account reconciliation workflow. But $(accountId) just returns the resource's id, e.g. CN=ABC 001,OU=IT,DC=ABC,DC=COM. How can I get the IdM accountId, e.g. abc001, in the workflow, so that I can modify the user's view?

    Hi Anders,
    Yes this is a tricky one, here's some code to get the IdM accountId given the resource accountId, hope this helps.
    <Rule name='Find AccountId Given Resource ID and Identity'>
            <RuleArgument name='resourceIdentity'/>
            <RuleArgument name='resourceId'/>
            <rule name='RuleLibrary_UseCase2:Find AccountId Given Lighthouse Attr'>
              <argument name='attrName' value='resourceAccountIds'/>
              <argument name='attrValue'>
                <concat>
                  <ref>resourceIdentity</ref>
                  <s>@</s>
                  <ref>resourceId</ref>
                </concat>
              </argument>
              <argument name='comparison' value='equals'/>
            </rule>
          </Rule>
          <Rule name='Find AccountId Given Lighthouse Attr'>
            <RuleArgument name='attrName'/>
            <RuleArgument name='attrValue'/>
            <RuleArgument name='comparison'/>
            <block>
              <defvar name='queryOptions'>
                <new class='com.waveset.object.QueryOptions'/>
              </defvar>
              <invoke name='addOrderBy'>
                <ref>queryOptions</ref>
                <s>name</s>
              </invoke>
              <invoke name='setBuffered'>
                <ref>queryOptions</ref>
                <Boolean>true</Boolean>
              </invoke>
              <invoke name='setOnlyNames'>
                <ref>queryOptions</ref>
                <Boolean>true</Boolean>
              </invoke>
              <invoke name='addCondition'>
                <ref>queryOptions</ref>
                <new class='com.waveset.object.AttributeCondition'>
                  <ref>attrName</ref>
                  <cond>
                    <ref>comparison</ref>
                    <ref>comparison</ref>
                    <s>equals</s>
                  </cond>
                  <ref>attrValue</ref>
                </new>
              </invoke>
              <index i='0'>
                <invoke name='toList'>
                  <invoke name='listObjects'>
                    <invoke name='getLighthouseContext'>
                      <ref>WF_CONTEXT</ref>
                    </invoke>
                    <invoke name='findType' class='com.waveset.object.Type'>
                      <s>User</s>
                    </invoke>
                    <ref>queryOptions</ref>
                  </invoke>
                  <s>name</s>
                </invoke>
              </index>
            </block>
          </Rule>

  • How can I sync my various email accounts into an iCloud account.  Example.  I have an embarqmail.account.  How can I get it to sync with iPhone, iPad, iMac so that I don't have to read or review eMails on all 3 devices.  Thanks

    How can I sync my various email accounts into an iCloud account.  Example.  I have an embarqmail.account.  How can I get it to sync with iPhone, iPad, iMac so that I don't have to read or review eMails on all 3 devices.  Thanks

    You need OSX 10.7.2 or higher in order to access icloud.  The mobile me account is now defunct (it closed down more than a year ago).

  • Have 5 devices, only one apple ID, iCloud should be 5 gb per device not per account.

    Do I really have to create multible id's in order to be able to backup using iCloud. I have 2 iPad, 1 iPhone and 2 iPod and I still only get 5 gb of storage, but if I create a new account for each device I get 5 Gb each? Why?

    It's 5 GB per account, regardless of how many devices are connected to that account.  If you need more space, Apple provides the option to buy additional storage.  If you want each of your devices to sync the same email, contacts, calendars, reminders, notes, etc. then use just one account, otherwise get a different account for each device.

  • Set default "from" field in Mail per account?

    Is there any way I can set the default "from" field in Mail based on the account I'm sending from?
    I have two accounts defined: work and personal. Each account has 2 email addresses associated with it (as a comma-separated list in the "Email Address" field under "Account Information"). Let's call the email addresses work-A, work-B, personal-A, personal-B.
    In the Composing prefs I can either select ONE default email address to send ALL mail from, or I can select to send from "Account of Last Viewed Mailbox", in which case Mail will choose a work email address if I'm in a work mailbox and a personal email address if I'm in a personal mailbox.
    That second option is great, except I can't control which work email address it chooses - A or B. Changing the order of the email addresses in the Account Information->Email Address field has no effect - it consistently chooses the "wrong" one :-/
    Any way I can use "Account of Last Viewed Mailbox" and still set a default mail address per account?

    Since my last post, I found tried putting
    Preferences->Accounts->Email address to be my edu address
    would add my .edu address as one of my from choices
    Next, I sent myself a mail message, with following result:
    The .edu address is now rejected by the outgoing server with the message:
    Cannot send message using the server
    The sender address (my .edu address) was rejected by the server
    I had this working at some time, but not now. Help, please.

  • WorkFlow Example

    Hi,
    I want a step by step WorkFlow Example, any one can help me to know the WorkFlow how it works and how to do.
    Thanks & Regards,
    Ashok.

    Hi,
    Give me ur email id .I have a good step by step doc on workflow.
    <b>Alternatively refer this links.</b>
    <b>Workflows</b>
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://www.sapgenie.com/workflow/index.htm
    https://sapneth9.wdf.sap.corp/workflow
    http://help.sap.com/saphelp_webas620/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    <b>examples on WorkFlow</b>
    http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://web.mit.edu/sapr3/dev/newdevstand.html
    rgds,
    latheesh
    Message was edited by: Latheesh Kaduthara

  • Per account signature not switching in Mail

    Since upgrading to Mountain Lion the per account signature feature in Mail is not operating accurately.
    When I compose a new message a signature appears (signature A).  When I select a different account to send from in the FROM list the new signature (signature B) appears, but the one that was there originally no longer disappears (leaving me with signature A & B on the message).
    Thoughts?

    Monolith19,
    This happened to me, but I think I found a fix. I think the problem happens with signatures that were created in a prior version of Mail.
    Go to Mail > Preferences > Signatures, select the signature that isn't disappearing properly and copy/paste its contents into something like TextEdit so you have a backup.
    Delete the signature.
    Create a new signature with the name of your old signature. Paste the contents of your old signature into it.
    In the left panel, choose the mail account you want to use the signature with, and select your new signature from the Choose Signature popup list.
    That's it. Now it works as expected.
    Good luck,
    Dave

  • If i have more than one e-mail account, can i have different sound alerts per account?

    If I have more than one e-mail account, can I have different sound alets per account?

    No, sorry.

  • Leopard: Multiple IMAP-SSL Connections Per Account

    I run my own mail server that I access through Mac Mail via IMAP-SSL. I haven't had any trouble with it until I installed Leopard last night. The new version of Mail creates 4 connections to the IMAP daemon per account. I can trace each one in the mail server's log files so the count is accurate. Furthermore I know this was not a problem with the previous OS X as I had a max number of daemons per IP address in the mail server set to 14. WIth 4 accounts on my Mac Mail x 4 daemon connections per account = I needed to up the max number of daemons per IP address to 16 to get all my accounts active at once (which worked). While this may be a solution, Mail should only be logging in once per account not four times for each one.
    Has anyone else run into this problem? Is there a bug report that can be submitted?
    Kevin

    This forum is for troubleshooting Mail under Mac OS 10.4 Tiger, not Leopard. You'll probably want to post your question in the Leopard Mail discussions:
    http://discussions.apple.com/forum.jspa?forumID=1223

  • Require a Workflow Example

    Hi All,
    I'm looking for a workflow example, where the workflow calls a procedure that runs some queries on a table and returns the results in a workflow notification. Preferably a workflow already supplied by Oracle.
    i.e. what i am planning on doing is to create a workflow that queries the ap_credit_card_trxns_all table, and for any transactions that are not coded over a certain timeframe (i.e. 30 days), sends the card holder a workflow notification email, and in that email is a table of the outstanding transactions.
    I've been going through the workflows within Oracle but haven't found one that does something similiar to what i require.
    Cheers,
    RussH.

    Hi RussH,
    There are a number of ways to do this. The "easiest" is to create an Attribute (e.g. body_text) on the Workflow Item type e.g. a Document (LOB), and the create a process prior to the Notification that populates this with the content of the notification body. Then the Message on the Notification has just &body_text and you'll get what you want. Make sure you handle creating a lob not varchar2 or you may hit maximum lengths (32K). An example of this can be found in Release 11i AP Remittance Advice Email, package appewfpb.pls (AP_PAYMENT_EVENT_WF_PKG) and workflow "AP Remittance Advice" APPEWF. Note in R12 AP Remittance Advice has been replaced with BI Publisher based solution.
    Regards,
    Gareth
    http://garethroberts.blogspot.com

  • Setting/viewing icon picture per account

    I decided to give the new Lion version of iChat a try again (I've been using Adium).
    I've got about 6 different accounts (AIM, Yahoo, Jabber) I use, and it's important for me to separate my business avatar/icon (the company logo) from my personal one (my face).  I'm unclear if iChat maintains that separation, and if I change my user icon in iChat, what is an easy way to verify what it picks for each account?

    Hi,
    I do not have Lion yet.
    From what I have read in other threads you get a combined Buddy List and no obvious way to separate them out again.
    (I would check the General section of iChat Preferences as this is where Snow Leopard iChat 5 allowed the setting of one Status/Buddy Pic per account)
    I would also bring each Buddy List to the Front in turn and see if the Setting for the Buddy pic can be changed individually.
    EDIT.Tested with a Buddy  (Neither palce above works)
    iChat 5 does not allow separate Buddy pics either
    Status Messages seem to be different in iChat 5 (from iChat 4)
    10:02 PM      Tuesday; July 26, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

Maybe you are looking for

  • Organize Photos

    Hello everybody, My Macbook Pro is a little bit slow (since I updated to Mavericks....) so I searched what I can do to make it a bit faster... And while searching I thought I could also tidy up my Mac, even though this won't help a lot.. So I started

  • Mass change in pricing procedure

    Dear Gurus, I have received yesterday a new .xls file containing new prices for customers within different sales areas. This file contains price changes for more than 6000 customers. The fields on the Excel document seem to be a mix of MM and SD info

  • Reverse/Delete Down Payment Chain

    Hi, How do I delete/reverse a down payment chain associated with a vendor? The DPC was linked to a wrong PO and we need to delete the link between the PO and DPC as well. Thanks!

  • How to view Execution Plain stored in statspack repository?

    Hi everyone! I would like to know how see the execute plain of a query that is stored in statspack repository. My oracle is 8i (8.1.7). In the oracle 9i there is an script called SPREPSQL that recover it, but in the oracle 8i it does not exist. Any i

  • Setting the Font size.

    Hi, I am trying to print some text .. I am using the following code .. but I need to change the font size .. can some one tell me how this can be done .. AttributedString mStyledText = new AttributedString(printclient.notes); Point2D.Float pen = new