How to prepopulate child process form in access policy

Hi,
I have different groups in access policy and corresponding to each group we have different roles. This group and role mapping is stored in a lookup.I have to fetch the value from the lookup to the process form child table according to the group assigned.
Please suggest how to do this.
Thanks in Advance.

I had similar requirement like yours in my previous project. Check the code below and modify the same to suit your requirement.
public void AddProcessChildData(long pKey, tcDataProvider tcdp, String lookupName, String Role, String childTableCoulmnName ) throws Exception {
          try {
               if(Role.trim().length()!=0)
               tcLookupOperationsIntf lookupIntf = (tcLookupOperationsIntf)tcUtilityFactory.getUtility (tcdp, "Thor.API.Operations.tcLookupOperationsIntf");
          tcFormInstanceOperationsIntf f = (tcFormInstanceOperationsIntf)tcUtilityFactory.getUtility(tcdp, "Thor.API.Operations.tcFormInstanceOperationsIntf");
          tcResultSet lookupRes = lookupIntf.getLookupValuesForEncoded(lookupName, Role);
          tcResultSet childFormDef = f.getChildFormDefinition(f.getProcessFormDefinitionKey(pKey),f.getProcessFormVersion(pKey));
          long childKey = childFormDef.getLongValue("Structure Utility.Child Tables.Child Key");
          logger.info("Child Key::"+childKey);
          Map attrChildData = new HashMap();
          logger.info("No of Rows::"+lookupRes.getRowCount());
          for(int i=0;i<lookupRes.getRowCount();i++)
               lookupRes.goToRow(i);
               String Decoded = lookupRes.getStringValue("Lookup Definition.Lookup Code Information.Decode").trim();
               logger.info("Decoded Value::"+Decoded);
               attrChildData .put(childTableCoulmnName,Decoded);
          f.addProcessFormChildData(childKey,pKey,attrChildData);
               else
                    logger.info("User does not have any role. Can not add Child Data");
          }catch (Exception e){
          e.printStackTrace();

Similar Messages

  • How to make a process form field non updatable in OIM 11G PS1

    Hello all - I have a filed in process form, which once filled should be not be updated. Could you please let me know how to achieve this?
    Should we create a process task, where in we can say 'updating this filed is not possible' ?
    I tried this. But OIM shows the filed with updated value but 'Resource History' shows status as Rejected.
    Please help. Thanks
    Manju

    The only way i would see this possible would be through an event handler if you can make it work for this form. On your pre-update, you would need to make sure to always return the original value back to the form so even if changed, it would change it back.
    -Kevin

  • How to get child process instance id from main process

    Hi All,
    I have a main process invoiking a child process 1 and child process 1 inturn calling child process 2.Is there any way to get the child process 2 instance id from main process or main process instance id from child process 2.. Using tree finder in BPEL Control i can find the direct sub process(child 1) instance id from the main process instance. Is it possible to trace Sub process 2 instance id without going for the instance detail of sub process 1.
    Thanks in advance
    ChitraDevi

    you could easily derive this from the bpel cube_instance table. using cikey and parent_id columns. you can use IInstanceMetaData javadoc, it has method called getParentId( ) to get the id. you can get the root id (instance-id of the main bpel process instance) using getRootId( ). you can checkout this blog.
    http://tech-sash.blogspot.com/2008/04/oracle-soa-suite-retrieving-process.html

  • How can i make a form in access into html format?

    I am trying to convert my form in access 2013 into into html format. When i try doing so it looks 100% different on the browser than it does in access. I tried doing the export command,
    and this is what happened. What can i do to make sure that it looks the exact same and will receive the data from the database? thank you for the help

    You can avoid the Ken Burns effect, but it would be a lot of work:
    See:  http://help.apple.com/imovie/ipad/2.0/index.html#knac3eec39c6
    If you don’t want the Ken Burns effect applied to a photo, set the image position and zoom level to be the same for the start and end points.
    Adjust the movement of photos with the Ken Burns effect
    iMovie applies the Ken Burns effect to the photos you add to your project. With this effect, the camera appears to sweep across and zoom in on the photo. If there are people in the photo, iMovie uses face detection to keep faces within the viewing area.
    You can adjust the Ken Burns effect so that the motion starts and ends on the parts of the image you specify.
    In the timeline, tap the photo you want to adjust.The Ken Burns effect controls appear in the lower-right corner of the image in the viewer.
    To set the way the photo is framed at the beginning, tap the Start button .
    Pinch to zoom in or out, then drag the image in the viewer to frame it the way you want.
    To set the way the photo is framed at the end, tap the End button .
    Pinch to zoom in or out, then drag the image in the viewer to frame it the way you want.
    To close the controls, tap the Ken Burns Effect button , or tap outside of the clip.
    If you don’t want the Ken Burns effect applied to a photo, set the image position and zoom level to be the same for the start and end points.

  • How to create a Payment Form for access to multiple secure zones

    I'm trying to create a Payment Form that allows the user to select from a dropdown of videos, each of which represents a secure zone page with an embedded video.
    What I can't figure out -- and tech chat can't help -- is how to redirect the user to the correct secure zone for the video they purchased.
    Videos are are streaming, vimeo embeds, not downloads.
    Anyone know how to do this? Can post link to test form if you need it.
    Thanks!
    jerry

    Hi,
    This can be done for already available list. Have a look at the following steps:
    Create an Empty SharePoint Project, then right click the project, add SharePoint “Layouts” Mapped Folder.
    Right click the project name, add New item Application Page, then add the custom code there.
    Under Features, add a feature, right click the added feature then add an event receiver, override the FeatureActivated method to set the new edit/new form as the default form.
    How to set new form as default form:
    SPList lstTest = web.Lists["Shared Documents"];
    string newUrl =
    string.Format("layouts/NewEditForm.aspx", web.ServerRelativeUrl, lstTest.RootFolder.Url);
    var form = web.GetFile(newUrl);
    if (form !=
    null && form.Exists)
     //string newFomrUrl = lstTest.DefaultEditFormUrl.Replace("EditForm.aspx", "docEditForm.aspx");
      lstTest.DefaultEditFormUrl = newUrl;
      lstTest.Update();
    For more information, see
    http://community.bamboosolutions.com/blogs/sharepoint-2010/archive/2011/05/12/sharepoint-2010-cookbook-how-to-create-a-customized-list-edit-form-for-development-in-visual-studio-2010.aspx
    To add a custom list form, the best way I think is using SharePoint Designer 2010, it’s very fast.
    Regards,
    Kelly Chen

  • How to maximize the opening form in Access 2010

    We have a number of Access 2000 front end apps which use the autoexec macro to maximize the main form. When we migrate them to 2010 the options have changed and maximize is no longer one of them. This makes a cluttered user screen with windows popping
    up in various locations as the user works with the app. I would also like to hide the database window from the user but for now just getting a clean screen with only a single form or report would be nice.PGordini

    You can use the DoCmd.Maximize Method to maximize the form:
    http://msdn.microsoft.com/en-us/library/ff195449.aspx
    BR
    Mads
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • How can i populate pdf form with access report data

    i am trying to make a report electronicly signable. my report is compiled weekly from an access database and i need a way to make it signable. if i can export records from access to an existing pdf would be great. or maybe there is a way to get a signature block put in on the fly? got any ideas?

    i am trying to make a report electronicly signable. my report is compiled weekly from an access database and i need a way to make it signable. if i can export records from access to an existing pdf would be great. or maybe there is a way to get a signature block put in on the fly? got any ideas?

  • How to delete selected records from process form child form

    Hi,
    I have one child table attached to process form which has 6 columns.
    I have added 3 rows to the child form . if i tried to remove any row from the form always the first record is removing even though it is not selected to remove. I have coded according to Re: Removing from Child Process Form
    Please help me
    thanks in advance

    Can you tell us the code you had written?
    Regards,
    A

  • Access Policy and Process Task

    Hi,
    I created "access policies" to provision resources when a user is associated with a role with the name of this resource.
    When I manually assign the role, the access policy works properly and the resource is provisioned.
    When the role is assigned through a process task, the access policy does not work properly and the resource is not created.
    Why this happens?
    How can I make the process task trigger the access policy when assign the role?
    TKS
    Edited by: raraujo on Oct 15, 2012 3:36 AM

    Better assign Role using group membership rule. Also, can you check if role is assigned using process task, is it getting assigned to user properly?
    Which OIM you are using? If it's 11.1.1.5 then apply BP03 patch or BP04 patch.
    regards,
    GP

  • Provisioing with Access Policy

    Hi All
    I have made one Access policy for Full-Time employees.
    I want that if admin creates a user who is Full-Time employee, it shouls automatically get provisioined with AD.
    I have made that Access Policy. But If Admin craetes one user who is Full-Time Employee then provisioing status goes into *"READY"* State.
    It stucks in Resource form.
    And in my resource form only one lookup field is there. And i have put Value already in that lookup.
    Could any one please tell me the solution for this.
    Thanks a lot!

    Hi
    I made access policy Without Approval.
    That extra field i.e. AD SERVER, I have already filled with ADITResource.
    Actually i have made one resource form, i'm giving value of AD Server from there & it is prepopulation in process form.
    But When user gp for provisioning then it stuck in Resource Form not in Process form. It shows status Ready.
    Is it possible to remove that Resource form from access policy, I think it may remove my problem ?
    But i don know how to remove resource form from Access Policy region.
    Please suggest.
    Thanks for these replies.

  • Disable AD account with access policy

    Hi all,
    how can I disable AD account with access policy (or create AD account in disabled state)
    Regards,
    Vladimir

    Dewan.Rajiv wrote:
    Access Polcies are just for triggering provisioning. You can custom AD connector or write your own to create user in disabled state using JNDI.Hi Dewan,
    I have to create a simple demo system, and I need a solution which is not too weird (that means use as little of disparate technologies as possible).
    I have two connected systems:
    1. HR system, which is a trusted source for user and organizational data.
    2. AD system, which is my provision destination.
    I want to comply to the following requirements:
    1. When a user is created in HR system, a new OIM account shall be created, and a new AD account shall or shall not (depending on HR data) be created in AD in disabled state
    2. When a user is marked as dismissed in HR system, the AD account if exists, shall be disabled and moved to some special place in AD tree.
    3. Same rules shall apply if the OIM account is created or marked as "Dismissed" manually by OIM administrator.
    I use OIM reconciliation to get source data and it is no problem for me to create any reconciliation event I need.
    I was considering creating Group->Access Policy->Resource chains, but Access Policy allows only to manage AD attributes, not account enable status.
    Or should I add some unmapped pseudo-attribute to AD connector and a task which will enable/disable AD account based on the value of this attribute?
    What other options do I have?
    Regards,
    Vladimir

  • How to Prepopulate check boxes in the process form

    Hi All,
    I need to prepopulate "Change Password at next login" in the AD Process Form. i.e. if some one select this check box in the user creation form and create a user, i need to prepopulate it in the AD process Form. Currently, it is not prepopulated. So, it is not updated on the Active Directory. I'm using AD Connector pack 9.1.1 .
    I need to prepopulate the "User must change the password at next logon" check box in the AD Process Form. I have done the prepopulate on text fields. They are working fine.
    But, stuck with this check box prepopulation.....
    Can anyone help me on this issue....
    Regards,
    Chaturanga
    Edited by: chaturanga on Sep 9, 2009 2:35 PM

    Even if you get the checkbox right it is not entirely clear that the connector will read the box correctly. It all depends on how the connector code was written.
    An alternative is to set the LDAP attribute through a custom connector. Email me if you want example code for this.
    Best regards
    -Martin

  • OIM API - How to get the values in the process form (both parent and child)

    Hi,
    I created an RO with a Process form (both Parent and Child).I created a unconditional process task which takes in the processinstance key and tried to retrieve the process form datas.When i tried to provison the resource,the process task is getting triggered and I could able to get the parent form data but not the child form data.
    Any idea why is this happening?.Is it mandatory to have the "Triggers" ON to get the Child Form data.?
    Thanks,

    try this
    tcResultSet childResults = formOper.getChildFormDefinition(
                             formOper.getProcessFormDefinitionKey(procInstanceKey),
                             formOper.getProcessFormVersion(procInstanceKey));
    This should work,
    Regards,
    Raghav

  • How to prepopulate value in process form

    Hi,
    I want to pre populate values in forms while updating the data.Test case provided below.
    1. create a user with five roles(all are lookup values) .
    2.While updting I want to see existing lookup values in process form.
    3.I can update it and save it.

    My requiremrnt is after creating user I have few field selected. While user is requesing for midifying resource , user want to see the selected values on the form.For the same I may need to customize existing jsp's.I want to know what is the process for achieving the same.

  • Prepopulate Child Form OIM 11

    Hi
    I need to create a adabpter for prepopulate to field from child form. I created a prepopulate adapter, but in child form don't worked because of Add of the form.
    Any idea how I can do this?
    TKS

    prepopulate adapter won't work with child table/form. if you have static data then populate those in the access policy and save it else write process task to populate child form using OIM API(tcFormInstanceOperationsIntf) and attach this task on the success response of create user task.

Maybe you are looking for

  • Compilation Error in stored Proc !! Please help

    Hi, This is my stored procedure , it is giving error at line 20 . The error description is : ERROR line 20, col 1, ending_line 20, ending_col 6, Found 'ELSEIF', CASE is expected CREATE OR REPLACE PROCEDURE proc_MDM_GetCountry_tst Exist IN INTEGER, Se

  • Http Internal Server Error - 500

    When using the http-dc library it some times generates a header that looks like: POST / HTTP/1A1 The 'A' appears as 'R' and 'i'....should this not be a dot '.'????? Also, each time this occurs the receiver decides there has been an Internal Server Er

  • MacBook Pro, Alesis Monitor One MK2 Speakers, now what?!?!

    OK, dumb question alert - I'm editing using Final Cut Pro on my MacBook and was told I should look into a pair of studio monitors.  Heard good things about the Alesis Monitor One MK2 speakers and decided to dive in.  I knew that I would need cables t

  • Creating a case-sensative partition

    Hello, I need to create a case-sensitive partition on my laptop so that I can check out source code using Subversion. One of my co-workers said that I should be able to use the Disk Utility to create a partition with Mac OS Extended (Journalled, Case

  • Slow Scrolling Due to Cache Indicators. When will this be fixed?

    Have you experienced slow/clunky scrolling when scrolling through layers in your timeline? This has been an issue for years now. When you grab the scroll bar and scroll it is fine, but using the mouse wheel or track-pad it results in painfully annoyi