How to get bulk action to update resource

I have to update some users data in a particular resource. I'm attempting to add a location to their user object, the resource and their waveset info via a bulk action script (which I have very little experience with). Currently I have it set up so the bulk action starts in a form which calls a rule and then a workflow. I've been able to get it to update the user object and the waveset data, but I can't get it to write to the resource. (In this case the resource is a simulated resource - a file on the file system). I've tried everything I can think of but I'm missing some key piece in getting the resource updated. I may not need the rule, but I couldn't get the resource to update from my workflow, so I decided to try a rule. In any case, here's my form:
<Display class='EditForm' />
<Field name='context'>
     <Derivation>
          <invoke name='getLighthouseContext'>
               <ref>WF_CONTEXT</ref>
          </invoke>
     </Derivation>
</Field>
<Field name=':applicationName'>
                <Derivation>
          <s>FACILITIES</s>
     </Derivation>
</Field>
<Field name='accounts[FACILITIES].tempField'>
               <Derivation>                                   
          <rule name='v1_RULELIB_FACILITIES:writeMapToResource'>     
               <argument name='ctx' value='$(ctx)'/>
               <argument name='view' value='$(view)'/>
               <argument name='request' value='$(request)'/>
               <argument name='applicationName' value='$(applicationName)'/>                                                       </rule>                                   
     </Derivation>
</Field>
<Field name='viewOptions.Process'>
     <Expansion>
          <s>ABC_TSKDEF_Facilities_Add_Location</s>
     </Expansion>
</Field>
</Form>
. . .

and lastly, this is my task definition:
<TaskDefinition name='ABC_TSKDEF_Facilities_Add_Location'
     taskType='Workflow' executor='com.waveset.workflow.WorkflowExecutor'
     suspendable='true' syncControlAllowed='true' execMode='sync' execLimit='0'
     resultLimit='1' resultOption='delete' visibility='runschedule'
     progressInterval='0'>
<Extension>
     <WFProcess name='ABC_TSKDEF_Facilities_Add_Location' maxSteps='0'>
<Variable name='request'>
                    <Comments></Comments>
               </Variable>
<Variable name='user' input='true' />
          <Variable name='newLocation'>
               <s>Baltimore</s>
          </Variable>                    
          <Variable name='newTimeFrame'>
               <s>24 hours Mon-Sun</s>
          </Variable>          
          <Variable name='wtf'><s>also defined variables for newAccessLevel newEffectiveDate newEndDate and newJustification. For some reason the forum didn't like these and wouldn't let me save.</s></Variable>
          <Activity id='0' name='start'>
               <Transition to='Initialize' />
               <WorkflowEditor x='43' y='10' />
          </Activity>
<Activity id='1' name='Initialize'>
               <Action id='0' name='Set variables'>
                    <expression>
                         <block name='INIT' trace='true'>
                         </block>
                    </expression>
               </Action>
               <Transition to='Make Account Changes' />
               <WorkflowEditor x='105' y='10' />
          </Activity>
<Activity name='Make Account Changes'>     
               <Action id='1' name='update lh account'>
                    <expression>
                         <block trace='true'>
                              <cond>
                                   <not>
                                        <contains>
                                             <ref>user.waveset.resources</ref>
                                             <s>FACILITIES</s>
                                        </contains>
                                   </not>
                                   <append name='user.waveset.resources'>
                                        <s>FACILITIES</s>
                                   </append>
                              </cond>
                              <set>
                                   <concat>
                                        <s>user.accounts[FACILITIES].properties.locationMap[</s>
                                        <ref>newLocation</ref>
                                        <s>].timeFrame</s>
                                   </concat>
                                   <ref>newTimeFrame</ref>                                   
                              </set>
                              <set>
                                   <concat>
                                        <s>user.accounts[FACILITIES].properties.locationMap[</s>
                                        <ref>newLocation</ref>
                                        <s>].accessLevels</s>
                                   </concat>
                                   <list>
                                        <ref>newAccessLevel</ref>
                                   </list>                                   
                              </set>                                                       
                              <set>
                                   <concat>
                                        <s>user.accounts[FACILITIES].properties.locationMap[</s>
                                        <ref>newLocation</ref>
                                        <s>].effectiveDate</s>
                                   </concat>
                                   <ref>newEffectiveDate</ref>                                   
                              </set>                              
                              <set>
                                   <concat>
                                        <s>user.accounts[FACILITIES].properties.locationMap[</s>
                                        <ref>newLocation</ref>
                                        <s>].endDate</s>
                                   </concat>
                                   <ref>newEndDate</ref>                                   
                              </set>                                                                 
                              <set>
                                   <s>user.accounts[FACILITIES].properties.justification</s>
                                   <ref>newJustification</ref>
                              </set>
                              <set>
                                   <s>user.accounts[FACILITIES].justification</s>
                                   <ref>newJustification</ref>
                              </set>                         
                         </block>
                    </expression>
               </Action>
               <Transition to='Error'>
                    <eq>
                         <ref>WF_ACTION_ERROR</ref>
                         <s>true</s>
                    </eq>
               </Transition>
               <Transition to='Provision' />
          </Activity>
          <Activity id='5' name='Provision' audit='true'>
               <Comments>Perform the standard Lighthouse reProvisioning process.</Comments>
               <Action id='0' process='Provision'>
                    <Argument name='op' value='reProvision' />
               </Action>
               <Transition to='Clean up' />
          </Activity>
          <Activity id='9' name='Error'>
               <Action id='0' name='Audit Data Validation'>
                    <Argument name='auditError'>
                         <concat>
                              <s>Data Validation Error for </s>
                              <ref>accountId</ref>
                              <s>. </s>
                              <s>Invalid attributes:</s>
                              <ref>user.dataValidationError</ref>
                         </concat>
                    </Argument>
                    <Argument name='auditAction' value='Create' />
                    <Argument name='generateAuditRule'
                         value='v1_RULELIB_Common:getDataValidationAuditParams' />
                    <SubProcess>
                         <ref>sysConfig.PROCESS_AUDIT</ref>
                    </SubProcess>
               </Action>
               <Action id='1' name='Set Notify Params'>
                    <expression>
                         <block>
                              <set name='errorHandle.placeOnQueue'>
                                   <s>false</s>
                              </set>
                              <set name='errorHandle.errorMessage'>
                                   <ref>user.dataValidationError</ref>
                              </set>
                              <set name='errorHandle.generateEmailRule'>
                                   <s>v1_RULELIB_Common_EmailGeneration:getEmail_ASErrorHandleNotifyAdmins</s>
                              </set>
                         </block>
                    </expression>
               </Action>
               <Action id='2' name='Call Error Handle'>
                    <Argument name='errorHandle' value='$(errorHandle)' />
                    <SubProcess>
                         <ref>sysConfig.PROCESS_ERROR_HANDLE</ref>
                    </SubProcess>
               </Action>
               <Transition to='Clean up' />
               <WorkflowEditor x='292' y='10' />
          </Activity>
          <Activity id='10' name='Clean up'>
               <Action id='0' name='Clean Up Variables'>
                    <expression>
                         <block>
                              <set name='sysConfig' />
                              <set name='errorHandle' />
                              <set name='enduserId' />
                              <set name='lhUser' />
                         </block>
                    </expression>
               </Action>
               <Transition to='end' />
               <WorkflowEditor x='437' y='10' />
          </Activity>
          <Activity id='11' name='end'>
               <WorkflowEditor x='609' y='10' />
          </Activity>
          </WFProcess>
     </Extension>
     . . . Any ideas? Pointers? Suggestions? I can't find any information on how to write to the resource. What is it that triggers that to happen? What do I need to add to my rule, task definition or form to get that to update? Any ideas are much appreciated!
Edited by: user12836258 on Sep 7, 2011 9:15 AM
Edited by: user12836258 on Sep 7, 2011 9:16 AM
Edited by: user12836258 on Sep 7, 2011 9:17 AM
Edited by: user12836258 on Sep 7, 2011 9:17 AM
Edited by: user12836258 on Sep 7, 2011 9:18 AM
Edited by: user12836258 on Sep 7, 2011 9:21 AM
Edited by: user12836258 on Sep 7, 2011 9:24 AM
Edited by: user12836258 on Sep 7, 2011 9:25 AM
Edited by: user12836258 on Sep 7, 2011 9:25 AM
Edited by: user12836258 on Sep 7, 2011 9:26 AM
Edited by: user12836258 on Sep 7, 2011 9:27 AM

Similar Messages

  • How to get stylesheet object from JAVA RESOURCE stored in DB

    Hi,
    I stored a xslt file in the database and have a JAVA RESOURCE file now. How can i get a stylesheet object from this resource file?
    I took the following class to get an impression how to get the contents of the resource but -although the name of the resource was spelled correctly- i got a file not found exception.
    Whats wrong?
    public class PrintRessource {
    public static void print (String p_ressource){
    try {
    Class c = PrintRessource.class;
    System.out.println(c.toString());
    InputStream file = c.getResourceAsStream(p_ressource);
    if (file == null)
    throw new FileNotFoundException("XSLT file not in DB");
    byte[] buffer = new byte[4096];
    int bytes_read;
    while ((bytes_read = file.read(buffer)) != -1)
    System.out.println(new String(buffer, 0 , buffer.length));
    catch (Exception exp) {
    System.out.println(exp);
    Thanks

    The code works as is. I just forgot to add the slash in front of the Resource file name.

  • TS1702 When I try to update two certain apps in the App Store, I get a message that says 'cannot connect to iTunes store'. Any idea how to get these apps to update?

    When I try to update two certain apps in the App Store, I get a message that says 'cannot connect to iTunes store'. Any idea how to get these apps to update?

    Check that the apps are still available in the store

  • HT5422 How to get an better screen-update? The view on the remote Mac is nearly static.

    How to get an better screen-update? The view on the remote Mac is nearly static.

    You can try reducing the bit depth of the screen image  via the slider in the upper-right of the Control window. If that doesn't help, you may just not have a sufficiently fast network connection to correctly handle the data transfer necessary. This is often the case if you're connecting across the Internet. What is your network speed between the administration system and the client?
    Regards.

  • Bulk Action- for update accountId in IDM

    what command will need to use for updating the user accountId in idm .
    Actually my requirement is to update new accountId in IDM , LDAP and AD resources.
    1) Command :
    command,user,waveset.resources,accounts[LDAP].accountId,accounts[AD].sAMAccountName
    update,test1,|Merge|LDAP|AD,John1,John1
    Above command will update LDAP and AD user accountId in resources successfully.
    2) Command :
    a) command,user,waveset.resources,global.accountId,accounts[LDAP].accountId,accounts[AD].sAMAccountName
    update,test1,|Merge|LDAP|AD,John1,John1,John1
    b) command,accountId,global.accountId
    Update,test1,John1
    c) command,accountId,waveset.resources,accounts[Lighthouse].accountId
    update,test1,|Merge|Lighthouse,John1
    Above all the command should update the user accountId in IDM , LDAP, AD , but got failed with error ,
    error :
    com.waveset.exception.ItemNotFound: Item User:test1 was not found in the repository
    what's the Bulk Action command should be used to update the user accountId in IDM
    please reply :

    what command will need to use for updating the user accountId in idm .
    Actually my requirement is to update new accountId in IDM , LDAP and AD resources.
    1) Command :
    command,user,waveset.resources,accounts[LDAP].accountId,accounts[AD].sAMAccountName
    update,test1,|Merge|LDAP|AD,John1,John1
    Above command will update LDAP and AD user accountId in resources successfully.
    2) Command :
    a) command,user,waveset.resources,global.accountId,accounts[LDAP].accountId,accounts[AD].sAMAccountName
    update,test1,|Merge|LDAP|AD,John1,John1,John1
    b) command,accountId,global.accountId
    Update,test1,John1
    c) command,accountId,waveset.resources,accounts[Lighthouse].accountId
    update,test1,|Merge|Lighthouse,John1
    Above all the command should update the user accountId in IDM , LDAP, AD , but got failed with error ,
    error :
    com.waveset.exception.ItemNotFound: Item User:test1 was not found in the repository
    what's the Bulk Action command should be used to update the user accountId in IDM
    please reply :

  • How to get my custom controller updated with the global custom controller?

    Hi all,
    I'm new to CRM Web UI and need some advice from the expert. Currently I'm working on component ICCMP_BT_DATES and noticed something weird with this component. When this component is first launch it display the dates of a service ticket correctly. However when I navigate to another screen, save a new ticket and back, the dates are not reflected. When I went in and debug the component, I noticed that the context is still tied to the previous ticket. I think the custom controller is not updated with the latest from the global custom controller.
    My question is how do I get my custom controller updated with the latest.
    Regards,
    Ricky

    You have to bind your custom controllers context node to the event NEW_FOCUS of the collection wrapper on the global custom controller.
    Best place to do this might be the CONNECT_NODES of the context of your custom controller.
    Get the global CuCo with GET_CUSTOM_CONTROLLER() and then the appropriate context node. Now:
    SET HANDLER yourMethod for lr_global_cuco->typed_context->thecontextnode->collection_wrapper activation iv_activate.
    Of course you have to implement a method similar to ON_NEW_FOCUS as it is on many other nodes.
    cheers Carsten

  • How to get MPSB05-13 Security Updater?

    Hi all,
    Could you tell me how to get that "MPSB05-13 Cumulative
    Security Updater for JRun 4.0 server" is posted on December 15,
    2005?
    When go to
    http://www.adobe.com/devnet/security/security_zone/mpsb05-13.html
    for this patach, read the instruction and find the following:
    Solution
    1. Stop JRun.
    2. Download and install the JRun 4.0 Updater 6 release.
    3. Start JRun
    When click that "JRun 4.0 Updater 6 release" link that
    redirect me to the JRun 4 Updater webpage for update 6. However, in
    "Updater 6" webpage there is no post date and in "Updater 6 release
    note" therer is posted on July 29, 2005. So confuse at all.
    By the way, I know how to check JRun 4 version, but I don't
    know how to check which security patch is installed in JRun 4. Such
    this "MPSB05-13 Cumulative Security Updater for JRun 4.0 server"
    have no build number. Even though I can install it, how do I know
    if I really install it in JRun 4 without any indicator, such as
    build number. Please help.
    Thanks a lot.
    Dickson

    Thanks, yes, I saw that option. What I wonder though is how did this application get started up? I cannot find it in any of the usual startup places. I work with Windows machines as well as OS X and Linux and there are a whole world of mechanisms to get applications going at startup, some of which are fiendishly tricky to identify. Outside of the Unix startup mechanism that Apple employs to get OS X cranked up, there are the system and user Library/Startupitems and then the list of items in the user account. I did not find this Adobe updater in any of those. So how does it get launched?

  • How to Get Contribute CS4 to Update Available Styles when CSS is Updated

    I am using a style sheet on my website.  I recently updated the style sheet, adding a new style, in Dreamweaver.  When I go into Contribute, the style is not showing up. 
    How can I force Contribute to get the updated data from the latest version of the CSS?
    I have about 8 people using Contribute to edit a site and I desperately need them to be able to see the new styles.
    Thank you in advance.
    Mary Beth

    Hi,
              The CSS you are defining are CSS classes right, not the ID? That is, in your CSS file, you are defining the new styles using the '.' symbol. If so, then can you ask your users to refresh the web page they want to edit (browse to the web page, right click to bring up the context menu and click Refresh menu item).
    Now, they can edit the web page, and the new styles would be displayed in the Styles menu. If that did not resolve the issue, can you ask them to recreate the connection to the website (remove the website connection and creating it again), or, quit and launch Contribute and click Connect button to connect to the website.
              If the new style is defined using '#' symbol, I don't think Contribute will display these styles.
    Hope this helps.

  • How to get notification of ios update

    Hi everyone
    I'm an Apple newbie, having bought an iPad Mini a few weeks ago, and I'm still trying to understand some of iOS's quirks. Latest puzzle concerns updates to iOS, grateful if someone can advise how this is supposed to happen.
    So I saw an article on the BBC News website saying there was an important security update. Looked at the iPad home screen - nothing there. Looked in the Notification Centre, nothing there. Drilled down into Settings>General>Updates, and there it was, so I installed it and I'm now up to 7.0.6. But I really don't want to have to go into this every couple of weeks just to see whether there's an update, I expect the device to notify me somehow. So my questions are:
    1. I really want this to work like Windows Update, ie downloading and installing in the background. Can iOS be set to do this, if so how ?
    2. If that really isn't possible, then I want to get a notification that an update is available. How can I get a message either in the Notification Centre or on the home screen to tell me ? NB I've seen references in other posts to getting a little red "badge" on the Settings icon, but I emphasise that I didn't get that. I know what it ought to look like because I've seen similar badges on the App Store icon, but I did not get that on the Settings icon. Do I have to turn that feature on in some way, if so how ?
    Thanks in advance.

    Thanks King_Penguin, that's very helpful. Didn't know it had to be connected to power to even get a notification, that could well be why I didn't get the badge. Odd though; I can understand needing power in order to install an update (in fact I recall getting a prompt to do just that when I updated), but not just to discover whether an update is available. Have some helpful points on me !

  • How to get contacts back after update

    help i have updated my partners phone 3gs from ios 3 to ios 6 how do i get conacts back onto the phone

    The iphone is designed to be synced with a cloud service or your computer regularly.
    If you have failed to do this, then they are very likely gone.
    You can try restoring from backup, but that is not guaranteeed to help

  • How-to get transformations from transfer/update rules

    Hi all,
    we did an upgrade to BI 7.0 frm BW 3.5, how shall we get the new things like transformations,DTP for tha already existing cubes/ODS. is there any procedure to convert transfer and update rules to transformation.
    Thanks all,
    Regards

    Migration - Yu may wish to read below steps
    Transformation Rules
    automatic mapping without the use of an Infosource.
    steps are listed below.
    On the InfoSource Tab (Note- Ensure DataSource and Infosource have not been migrated)
    1. Right Click > Additional Functions > Create Transfer Rules
    2. Activate Transfer Rules
    3. Right Click > Additional Functions > Transformation erzeugen
    On the DataSource Tab
    4. Create Transformation (Map to DSO, should map automatically)
    5. Migrate DataSource
    6. Create InfoPackage
    7. Create DTP
    Assessing Migration Scenario's
    Transformation Rules
    Strategy toward new and 3.x datasource / infosource
    Re: Few questions on BC activation..
    Replicate NEW/3.x datasource - Methodology
    Replicate NEW/3.x datasource - Change back to 3.x datasource Methodology
    Re: Datasource Identification
    Hope it Helps
    Chetan
    @CP..

  • How to get the hierarchy in update rules

    i want to update the material hierarchy to the open hub data file
    i create a update rule(transformation)
    and i want to get the node name at the last level of the hierarchy tree above the material level
    how can i do this?

    no
    for example
    now we have maintain the hierarchy of material like this:
    026(level 1)
    -026/100(level 2)
    -026/200(level 2)
         |-026/20010(level 3)
         |---800501234(level 4)
    in this hierarchy tree,the material 800501234 is in the level 4
    and i want to get the last level hierarchy node above the material
    for 800501234,the hierarchy node is 026/20010
    so
    i want to export the data like this:
    hierarchy id      |        material
    026/20010        |        800501234
    how can i do this?
    Edited by: Yang Zelphar on Mar 25, 2009 5:03 AM
    Edited by: Yang Zelphar on Mar 25, 2009 5:04 AM

  • How to get the coupons browser update to quit? keeps coming back

    I keep having a Coupon Browser Update box appear at the top of every website I visit. I have checked the box that I do not want this but it keeps coming back. How do I get rid of it? Who puts this idiot stuff on your browser?

    Click here and follow the instructions.
    (60210)

  • How to get ready status of any resource aavailability.

    Hi all,
    While allocating the resources if I need a specific resource to allocate. How I can check the availabilty of that resource in  before doing hard allocation.
    What sort of settings are required to do for cost / revenue rates if the same resource is working on diff projects.
    Regards,
    Pramod

    Hi pramod,
    In cprojects front end we have resource staffing tab through which you can search resources. Based on your search you will get a list of resource available for staffing, with details like available capacity and other requirement capacity. Then based on available capacity you can hard book the resource.
    If you need more details regarding resource available capacity you can activate distribution function in SPRO while creating role type. This will help you in getting the resource availability based on month wise distribution.
    Cost / Revenue rates are maintained only one place in cprojects. Cost / revenue rates can be assigned in three places based on
    Task
    Role
    Business partner assigned as a resource
    If it is useful award points
    Regards,
    Sreeram

  • How to get rid of Adobe update icon?

    I have a failed update (program is already updated, the Adobe updater downloaded the update again, and put an icon in the lower right... Win7 computer)
    Since the update of course will not install, the stupid icon won't go away
    Anyone know how I can get rid of the icon?

    This may help with WinMessingWithYourComputer
    KILL Windows Messenger
    http://support.microsoft.com/kb/302089
    Also
    http://support.microsoft.com/kb/332003/
    This article describes how to prevent Windows Messenger from running. By default, Windows XP Professional and Windows XP Home Edition install Windows Messenger. The user interface does not let you remove or uninstall Windows Messenger.
    When you install Windows XP Service Pack 1 (SP1), Windows adds a new feature that is named "Set Program Access and Defaults" to the Add or Remove Programs tool in Control Panel. You can use this feature to remove Windows Messenger from the Start menu, from the desktop, or from other locations. For additional information, click the following article number to view the article in the Microsoft Knowledge Base: 332003  (http://support.microsoft.com/kb/332003/ ) How to change your default programs and to enable or remove access to Microsoft Windows and non-Microsoft programs
    Windows Messenger 4.0 or later versions on a Windows XP Professional-based computer
    Use the Group Policy (gpedit.msc) snap-in to turn on the Do not allow Windows Messenger to be run option.
    Notes
    ·         To use the Group Policy snap-in, you must be logged on to the computer using an account that has administrator permissions.
    ·         This method prevents programs that use the Messenger APIs from using Windows Messenger. Microsoft Outlook 2002, Microsoft Outlook Express 6, and the Remote Assistance feature in Windows XP are examples of programs that use these APIs and that depend on Windows Messenger.
    To turn on the Do not allow Windows Messenger to be run option, follow these steps:
    1.     Click Start, click Run, type gpedit.msc, and then click OK.
    2.     In Group Policy, expand Local Computer Policy, expand Computer Configuration, expand Administrative Templates, expand Windows Components, and then expand Windows Messenger.
    3.     Double-click Do not allow Windows Messenger to be run, and then click Enabled.
    4.     Click OK.
    5.     On the File menu, click Exit to quit the Group Policy snap-in.
    If you use Outlook Express - To prevent Windows Messenger from starting automatically, follow these steps:
    Outlook Express
    1.     On the Tools menu, click Options, and then click the General tab.
    2.     Click to clear the Automatically log on to Windows Messenger check box, and then click OK

Maybe you are looking for

  • ORA-00955 reports when I try to "create global temporary table" in windows

    Hi, When I try to run the sql in my oracle 9i server which is installed in a windows2000 machine, Create global temporary table test ...; For the first time, I can create table successfully. But I cannot access this table any more: drop table test; d

  • VERY strange lag on a Dell Optiplex 760

    I thought it would be a good idea to keep a 16GB flash drive on my keychain that booted Arch so I could work on HW for college in a consistent OS!  Everything is working great so far, but I ran into a very strange problem with a Dell Optiplex 760.  D

  • [JS] CS3 pageRange conversions & validation

    Hi there Is there an easy way to convert page range string to absolute page numbers (especially when it contains characters or Roman numerals). We use a custom rubber stamp on the back of our draft pages during the proofing process. I'd like to creat

  • T40/Vista: Fn+F5 can't turn Wifi On/Of

    After upgrading to Vista on my T40 (2373-92G) I can't turn the wireless antenna on/of with the Fn-F5 keys. It only toggles the Blutooth on/off. How can I restore this function? /Jan

  • Where is the data held in Max 3.0

    Hi, Not sure if this right place to post this but as MAX 3.0 was installed with labVIEW 7.0.....here goes.. With Max 2.0, the data assoicated for GPIB, VISA and IVI was held in two places, IVI.INI and VISACONF.INI. Now Max 3.0 arrives, so where has t