Creating multiple resource objects at once

Hi,
Business roles are multivalued attributes and in order for OIM to manage them, I am creating them as resources. These resources will have role id and role name as its fields. I have close to 50 biz roles in the system. Is there any way I can create them in bulk than having to create the resource obj, process defn. and process forms for each of them manually?
Thanks,
Supreetha

You can create one workflow and uniquely identity the objects names such as:
RO_NAME, PROV_PROC_DEF, APPR_PROC_DEF, UD_FORM and so on to identify all the objects. Export the workflow. Come up with either code, or some way to find and replace these values with your list of names for your other workflows. Then import the workflows.
You could try and come up with code that takes a template, and then generates a new xml file with a list of values.
-Kevin

Similar Messages

  • Creating Multiple Resource Objects for OOTB Connectors

    All,
    I am trying to create a second AD User resource object for the OOTB connector. I would like to think that the AD Connector (and all connectors, for that matter) was designed to handle the creation of multiple Resource Objects for the same Resource Types, but am I wrong? It doesn't seem like the OIM Connector can handle this easily.
    Has anyone created multiple resource objects for a connector? Is this a fairly simple task, or will it require a large effort? Is it even possible? Any pointers?
    Thanks!

    I will provide a little help with the duplication. I found the best way to do it is to import the original connector. Go through the different pieces making each one have a unique name, that is not part of any of the other piece names. You need to have unique names for the following:
    1. Resource Object
    2. Process Definition - Provisioning
    3. IT Resource
    4. Form - Process
    5. Scheduled Task
    After you import the connector, rename each of the following to something unique. I would also update your process form to have a default value of your IT Resource, as well as your scheduled task values to point to the new unique names. Export the 5 items, no dependecies. The adapters will all be the same. Use find and replace for the values and then import the new XML. If it works, duplicate the XML for each of the new workflows you want to create.
    -Kevin

  • Multiple resource objects provision issue in OIM10g

    Hi Team,
    We're facing an issue regarding multiple access policy trigger for a specific resource object in OIM.
    The scenario is whenever we try to process the enablement or creation of users through flat file recon, users are created / enabled with multiple resource objects in their resource profiles.
    When we checked in User Resource Access History report, we observe that the access policy has been triggering multiple times for these users resulting in users with multiple resource objects. Amongst these one shows provisioned/Enabled and the other shows provisioning/in some cases Provisioned/Enabled.
    Please advise as this has become an ongoing issue and also has led into data mess-up.
    Appreciate your help on this one..
    Regards,
    Sagar

    The terminology sounds a little confusing to me:
    If you mean you wanna create multiple IT Resources for a single IT Resource Instance so that the user can select the appropriate IT Resource during request creation -> All good upto here. But then since the Object/Request Form attached to a resource would be the same, so any user would always see the same form fields for creationg request.
    Example: Users creating request for Oracle Database Accounts but different server locations
    If it means you just need to create multiple Resource Objects then its a straighaway standard requirement and could be handled with normal Connector Development methodology.
    Example: Users creating requests for different resources like Oracle Database Accounts & Active Directory Accounts

  • Any clues on how to create a resource object to push a user object into res

    I am working on a situation where I have to push a user object via a resource object and not having assigned to the user (in other words not linked to the user).
    any ideas?
    My approach is some thing like this
    IN the "user" object I do set all the attributes required per the resource definition
    Here is the code snippet for resource object creation:
    <Action name='create services resource object' process='Provision'>
    <Argument name='op' value='createResourceObject'/>
    <Argument name='object' value='$(user)'/>
    <Argument name='objectType' value='user'/>
    <Argument name='resourceId' value='UnixUIDServices'/>
    </Action>

    I by no means want to sound belittling... so don't take me that way..
    You need to understand the basics of files, and networks. You can't check if a file exists on another machine if you don't have a network protocol to communicate with. The reason \\ works under windows is because you are using an invisible (to you) network protocol. You probably know it as windows sharing. If your file were not shared under it's own name, that method wouldn't work (I'm assuming your entire drive is shared without a password... a horrible security flaw...but one thing at a time)
    You can use FTP protocol to check if a file exists. You can either send the raw text FTP commands through a socket connection in java, or you can use a freely available FTP java API to make it a bit more simple. You could also write a small java server on the other machine, and have it tell you what you need to know with a socket connection. In this way, you have created your very own network protocol.

  • The Crystal Report Viewer is unable to create its resource objects

    Recently our Clients have updated to Windows 7 and IE8. we are having issues to view the Reports in Infoview.
    The web server operating server is Windows 2003, Crystal Reports XI Release 2  and BOE R2 SP2 is installed in it. Activex Viewer is downloading fine in client machine having Windows XP OS (IE Version is 7) but for the same url ActiveXViewer.cab is not getting downloaded in Windows 7 Enterprise (IE Version is 8). It throws the error u201CThe Crystal Report Viewer is unable to create its resource objects.u201D
    Does BOE R2 SP2 support on IE8?
    Thanks

    Tested Windows 7 And IE8 browser to view Reports in Infoview for different user preference setting.
    1.       Active X Viewer u2013 Fails to open in View Mode and errors out with message as u201CThe Crystal Report Viewer is unable to create its resource objectsu201D
    2.       DHTML Viewer u2013 Could able to open/export/print  the Report.
    3.       Advance DHTML Viewer  - Could able to open/export/print  the Report .
    4.       Java Viewer u2013 Could able to open/export/print  the Report, but noticed the fonts are overlapping.

  • "Crystal Report Viewer is unable to create its resource objects"

    I'm using Crystal Reports Server XI and getting the error/pop up box: "Crystal Report Viewer is unable to create its resource objects" when trying to view a report through the website.
    Any suggestions would be appreiciated. I'm very unfamiliar with Crystal Reports but it's fallen into my lap to install and suppor this application.
    I have tried changing some browser settings to allow ActiveX content and such but that hasn't seemed to help. I also tried downloading a particular 3 .dll's files to my desktop and registering them, as well as re-registering them on the server. They were CRVIEWER.dll, swebrs.dll, sviewhlp.dll.
    I'm using IE 7.0 and CR Server XI is installed in a Windows 2003 R2 SE server.  IIS seems to be setup OK.  I haven't changed any of the default installation settings that were configured during the installation on the virtual directory that was created.  I received no errors during the installation.  I'm also not seeing anything obvious pop up in the event logs.  I still have yet to do a log parser query looking for anything that says crystal reports.
    Thanks!
    Edited by: Wendy Beatty on Sep 23, 2008 9:50 PM

    Hi Wendy,
    This issue might be better addressed by our .NET development forum,  however,  some of the things that come to mind are:
    1.  As a test are you able download the Active X Viewer from the client machine by accessing it via a URL:
    http:// <yourserver>/crystalreportviewers/ActiveXControls/ActiveXViewer.cab
    Does it prompt you do download the .CAB file?
    2.  If you have more than one version of the Active X Viewer installed on the client machine,  go through this SAP Note (1215398) from the Service Market Place to remove it.
    3.  Check your browser settings (Tools|Security|Custom Level) to make sure Active Controls are set to at least prompt.
    4.  Confirm with your network administrator if there are group policies that restrict the installation of Active X Controls or if users do not have the rights to install.
    Regards,
    Wallie

  • Question about multiple resource objects using the same OID target account

    In Oracle Identity Manager 11g with OID connector as a target system.
    Is it possible to create multiple resources that use the same OID IT Resource. Each resource is responsible for provisioning certain OID attributes of the same OID account. For example 'OID User' would provision the basic account and a separate resource called 'Department1 User' would provision attributes not provisioned by OID User.

    Yes, definitely. Here is how it would work:
    - You would have to make sure that the resource OID User always gets provisioned first, so that the account exist when these additional attributes are being set for the user via the other resource Department1 User. You can do this with Resource Dependency in OIM.
    - Now for using the same IT Resource, just create the new form and in the IT Resource type form field, map the properties to the same IT Resource Definition, so when the Provisioning Process gets invoked it uses the same IT Resource instead.
    Thanks
    SRS

  • Error to uncheck  allow multiple resource object in design console

    Hi
    I need to uncheck the Allow multiple resource object in the Design Console, but operation generates an error and the change is not applied.
    DB read: select distinct ugp.ugp_key, ugp.ugp_name, ugp.ugp_display_name from ugp ugp, gpg gpg where ugp.ugp_key = gpg.ugp_key and ( gpg.gpg_ugp_key in (23) )
    [2013-03-21T06:24:27.516-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.PERFORMANCE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Query: DB: 0, LOAD: 0, TOTAL: 0
    [2013-03-21T06:24:27.516-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.DATABASE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] DB read: SELECT count(*) as count FROM oug WHERE obj_key=7 and ( ugp_key in (1,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23) ) and oug_write='1'
    [2013-03-21T06:24:27.517-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.PERFORMANCE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Query: DB: 0, LOAD: 0, TOTAL: 0
    [2013-03-21T06:24:27.517-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.DATABASE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] DB read: select evt.evt_key, evt.evt_name, evt.evt_package from dob dob, evt evt, dvt dvt where dob.dob_key=dvt.dob_key and dvt.evt_key=evt.evt_key and (dob.dob_name='com.thortech.xl.dataobj.tcOBJ' or dob.dob_name='com.thortech.xl.dataobj.tcTableDataObj' or dob.dob_name='com.thortech.xl.dataobj.tcDataObj' ) and dvt.dvt_pre_update_sequence>0 order by dvt.dvt_pre_update_sequence
    [2013-03-21T06:24:27.518-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.PERFORMANCE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Query: DB: 1, LOAD: 0, TOTAL: 1
    [2013-03-21T06:24:27.518-07:00] [oim_server1] [ERROR] [] [XELLERATE.SERVER] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Class/Method: tcDataObj/save Error :Data Update Failed
    [2013-03-21T06:24:27.518-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.DATABASE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] DB read: select err_key, err_code, err_desc, err_rowver, err_remedy, err_count, err_last_occurance, err_action, err_help_url, err_severity from err where err_code='DOBJ.UPDATE_FAILED'
    [2013-03-21T06:24:27.519-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.PERFORMANCE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Query: DB: 1, LOAD: 0, TOTAL: 1
    [2013-03-21T06:24:27.519-07:00] [oim_server1] [ERROR] [] [XELLERATE.DATABASE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Class/Method: tcDataBase/rollbackTransaction encounter some problems: Rollback Executed From[[
    java.lang.Exception: Rollback Executed From
    at com.thortech.xl.dataaccess.tcDataBase.rollbackTransaction(tcDataBase.java:578)
    at com.thortech.xl.dataobj.tcDataObj.rollback(tcDataObj.java:904)
    at com.thortech.xl.dataobj.tcDataObj.doRollback(tcDataObj.java:867)
    at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:538)
    at com.thortech.xl.dataobj.tcTableDataObj.save(tcTableDataObj.java:2906)

    After applying BP06, Allow Multiple Option Cannot Be Changed From True To False [ID 1556385.1]

  • Error in uncheck  allow multiple resource object in design console

    Hi
    I need to uncheck the Allow multiple resource object in the Design Console, but operation generates an error and the change is not applied.
    OIM Version will be 11gR1.
    DB read: select distinct ugp.ugp_key, ugp.ugp_name, ugp.ugp_display_name from ugp ugp, gpg gpg where ugp.ugp_key = gpg.ugp_key and ( gpg.gpg_ugp_key in (23) )
    [2013-03-21T06:24:27.516-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.PERFORMANCE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Query: DB: 0, LOAD: 0, TOTAL: 0
    [2013-03-21T06:24:27.516-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.DATABASE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] DB read: SELECT count(*) as count FROM oug WHERE obj_key=7 and ( ugp_key in (1,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23) ) and oug_write='1'
    [2013-03-21T06:24:27.517-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.PERFORMANCE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Query: DB: 0, LOAD: 0, TOTAL: 0
    [2013-03-21T06:24:27.517-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.DATABASE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] DB read: select evt.evt_key, evt.evt_name, evt.evt_package from dob dob, evt evt, dvt dvt where dob.dob_key=dvt.dob_key and dvt.evt_key=evt.evt_key and (dob.dob_name='com.thortech.xl.dataobj.tcOBJ' or dob.dob_name='com.thortech.xl.dataobj.tcTableDataObj' or dob.dob_name='com.thortech.xl.dataobj.tcDataObj' ) and dvt.dvt_pre_update_sequence>0 order by dvt.dvt_pre_update_sequence
    [2013-03-21T06:24:27.518-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.PERFORMANCE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Query: DB: 1, LOAD: 0, TOTAL: 1
    [2013-03-21T06:24:27.518-07:00] [oim_server1] [ERROR] [] [XELLERATE.SERVER] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Class/Method: tcDataObj/save Error :Data Update Failed
    [2013-03-21T06:24:27.518-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.DATABASE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] DB read: select err_key, err_code, err_desc, err_rowver, err_remedy, err_count, err_last_occurance, err_action, err_help_url, err_severity from err where err_code='DOBJ.UPDATE_FAILED'
    [2013-03-21T06:24:27.519-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.PERFORMANCE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Query: DB: 1, LOAD: 0, TOTAL: 1
    [2013-03-21T06:24:27.519-07:00] [oim_server1] [ERROR] [] [XELLERATE.DATABASE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Class/Method: tcDataBase/rollbackTransaction encounter some problems: Rollback Executed From[[
    java.lang.Exception: Rollback Executed From
    at com.thortech.xl.dataaccess.tcDataBase.rollbackTransaction(tcDataBase.java:578)
    at com.thortech.xl.dataobj.tcDataObj.rollback(tcDataObj.java:904)
    at com.thortech.xl.dataobj.tcDataObj.doRollback(tcDataObj.java:867)
    at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:538)
    at com.thortech.xl.dataobj.tcTableDataObj.save(tcTableDataObj.java:2906)

    After applying BP06, Allow Multiple Option Cannot Be Changed From True To False [ID 1556385.1]

  • Not able to see newly created dummy resource object in OIM admin console.

    Hi,
    Created a new IT resource type and IT resource.Next created a new resource object "ResourceABC" and provided Allow all and Self Request Allowed option. However, still am able to see the resource object "ResourceABC" in the list of resources(when user selects Provision resource template) during self service or request for others.
    Please let me anything I have missed during resource object creation. I guess issue is at the resource object level.
    Note: It is a dummy resource object.
    Thanks.

    I have selected the check box for Allow All and Self Request. With regard to assign the resource by going to each organization, I believe is to provision the resource to all users in under that organization. But I want end user to request for this resource with self service console for self/others. But resource is not showing up in the list of resources.
    Kindly help.
    Thanks.

  • Create multiple JLabel object

    hi i have create an application that load multiple image from file JLabel using the for loop beause everytime the for loop will create a new JLabel imageJLabel() therefore i would like to know is that anyway that i could create multiple object JLabel like this
    for(int i=0;i<count;i++)
    JLabel imageLabel + i = new JLabel();
    i hope to do it like this
    JLabel imageLabel1 = new JLabel();
    JLabel imageLabel2 = new JLabel();
    JLabel imageLabel3 = new JLabel();
    This is the code:
    try
    while(rs.next())
                        tName.addElement(rs.getString("Name"));
                        tGoals.addElement(rs.getString("Goals"));
                        count++;
    System.out.println("The numbers of records " + count);
    }catch(SQLException sqlex)
    System.out.println("Error....");
    howPicPanel.setLayout(new GridLayout(count,1,5,5));
    showRatePanel.setLayout(new GridLayout(count,1,5,5));
    for(i=0;i<count;i++)
         JLabel imageLabel = new JLabel();
    Icon teampic = new ImageIcon("image/image.gif");
    imageLabel.setIcon(teampic);
    imageLabel.setText(String.valueOf(tName.elementAt(i)));
    imageLabel.setToolTipText(String.valueOf(tName.elementAt(i)));
    showPicPanel.add(imageLabel);

    for(int i=0;i<count;i++)
    JLabel imageLabel + i = new JLabel();
    }Won't work, but this will:
    JLabel [] labels = new JLabel[count];
    for( int i=0; i<count; i++ )  {
      labels[i] = new JLabel();

  • Problem with Access Policies (create multiple resources)

    I'm having a problem with Access Policies:
    The first policy must create a resource.
    And the following policies should create childs on the resource.
    The problem here is that when policies will add the childs, the resource is not provisioned yet.
    And then each one will create a resource but i just want one resource with the childs.
    When the resource is already provisioned, the policies update this resource properly.
    How can I fix this?
    tks

    Ricardo,
    I had a similar problem. In a post-process handler I was managing the user membership in specific roles through the removeMemberUser and the addMemberUser of the tcGroupOperationsIntf class.
    The last parameter of this method was a boolean which, when true, would automatically trigger the access policies programmatically in the post-process.
    The problem is that there also is an OOTB event handler for triggering access policies, so I was basically triggering the access policies twice and duplicated resources were appearing.
    Hope this helps.
    Cheers

  • Creating multiple rectangle objects

    Hi all
    Just having a bit of trouble with a drawing applet i'm creating. At the moment i want the user to be able to click on the screen and the mouse presses and releases define the size of the rectangle. This isn't a problem its just that now i want them to be albe to add more shapes by clicking a new Shape button. at the min my code seems to get stuck in the while loop in the paint method i think, and then it says that the applet is disposed?
    Any ideas where i could be going wrong?
    Cheeers for any pointers
    Heres the code
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    import java.util.*;
    public class drawingApplet extends Applet
                           implements ActionListener, MouseListener
         private Button newShape = new Button("New");
         private Button button2D = new Button("2D");
         //arraylist for objects
         ArrayList shapesArray = new ArrayList();
              boolean drawObject = true; //Drawing Mode
         boolean moveObject = false;
              private Color color = Color.black;
         int x1,y1,x2,y2,x3,y3,x4,y4 = 0;
         int startX,startY,width,height = 0;
         Rectangle myRectangle = new Rectangle(startX,startY,width,height);
              public void init()
              Panel pEast = new Panel();
              pEast.setLayout(new GridLayout(7,1));
              pEast.add(newShape);
              pEast.add(button2D);
              setBackground(Color.gray);
              newShape.addActionListener(this);
              button2D.addActionListener(this);
              addMouseListener(this);
        public void paint(Graphics g)
              Graphics2D g2 = (Graphics2D)g;
              g2.setColor(color);
              //create Rectangle Object
              myRectangle = new Rectangle(50,50,50,50);
              shapesArray.add(myRectangle);
              Iterator it = shapesArray.iterator();
              while(it.hasNext())
                   //DRAW Object
                   if(drawObject == true){
                        g2.draw(myRectangle);
              }//--> End of While loop
         }     //--> End of Paint()
         //--> Start of actionPeformed()
        public void actionPerformed(ActionEvent a)
            if (a.getSource()== button2D){
                   drawObject = true;
                   moveObject = false;
              }else if(a.getSource()== newShape){
                   //add rectangle to arraylist
                   shapesArray.add(myRectangle);
            repaint();}
        }//--> End of actionPerformed()
        //--> Start of section dealing with Mouse Events
        public void mouseClicked(MouseEvent e)
        public void mouseEntered(MouseEvent e)
        public void mouseExited(MouseEvent e)
        public void mousePressed(MouseEvent e)
              x1 = e.getX();
              y1 = e.getY();
              if(myRectangle.contains(x1,y1)){
                   drawObject = false;
                   moveObject = true;
              }else{ //draw the object
                   drawObject = true;}
         }//--> End of mousePressed()
         public void mouseReleased(MouseEvent e)
              //get the positions of where the mouse was released
              x2 = e.getX();
              y2 = e.getY();
              if(drawObject == true){
                   if (x1 != x2 && y1 != y2){
                   //maths to work out where to draw the object
                   if(x1 < x2 && y1 < y2){//1
                        startX = x1;
                        startY = y1;
                        height = y2 - y1;
                        width = x2 - x1;}
                   else if (x1 > x2 && y1 > y2){//2
                        startX = x2;
                        startY = y2;
                        height = y1 - y2;
                        width = x1 - x2;}
                   else if (x1 > x2 && y1 < y2){//3
                        startX = x2;
                        startY = y1;
                        height = y2 - y1;
                        width = x1 - x2;
                   else if (x1 < x2 && y1 > y2){//4
                        startX = x1;
                        startY = y2;
                        height = y1 - y2;
                        width = x2 - x1;}
              }else if(moveObject == true){
                   if (x1 != x2 && y1 != y2){
                        startX = x2;
                        startY = y2;
                        width = myRectangle.width;
                        height = myRectangle.height;
              repaint();
         }//--> End of mouseReleased()
    }Also if anybody has some examples i could look at i would be very grateful. Cheers!!

    /*  <applet code="AddingRectangles" width="400" height="300"></applet>
    *  use: >appletviewer AddingRectangles.java
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class AddingRectangles extends Applet implements ActionListener, MouseListener
        private Button newShape = new Button("New");
        private Button button2D = new Button("2D");
        //arraylist for objects
        ArrayList shapesArray = new ArrayList();
        boolean drawObject = true; //Drawing Mode
        boolean moveObject = false;
        private Color color = Color.black;
        int x1,y1,x2,y2,x3,y3,x4,y4 = 0;
        int startX,startY,width,height = 0;
        Rectangle selectedRectangle;
        public void init()
            Panel pEast = new Panel();
            pEast.setLayout(new GridLayout(7,1));
            pEast.add(newShape);
            pEast.add(button2D);
    //        setBackground(Color.gray);
            newShape.addActionListener(this);
            button2D.addActionListener(this);
            addMouseListener(this);
        public void paint(Graphics g)
            Graphics2D g2 = (Graphics2D)g;
            g2.setColor(color);
            //create Rectangle Object
    //        myRectangle = new Rectangle(50,50,50,50);
    //        shapesArray.add(myRectangle);
            Iterator it = shapesArray.iterator();
            while(it.hasNext())
                g2.draw((Rectangle)it.next());
        } //--> End of Paint()
        //--> Start of actionPeformed()
        public void actionPerformed(ActionEvent a)
            if (a.getSource()== button2D){
                drawObject = true;
                moveObject = false;
            }else if(a.getSource()== newShape){
                //add rectangle to arraylist
    //            shapesArray.add(myRectangle);
            repaint();
        }//--> End of actionPerformed()
        //--> Start of section dealing with Mouse Events
        public void mouseClicked(MouseEvent e){}
        public void mouseEntered(MouseEvent e){}
        public void mouseExited(MouseEvent e){}
        public void mousePressed(MouseEvent e)
            x1 = e.getX();
            y1 = e.getY();
            selectedRectangle = null;
            Iterator it = shapesArray.iterator();
            Rectangle r;
            while(it.hasNext())
                r = (Rectangle)it.next();
                if(r.contains(x1,y1)){
                    drawObject = false;
                    moveObject = true;
                    selectedRectangle = r;
                    break;
            // no rectangle selected
            if(selectedRectangle == null)
                selectedRectangle = new Rectangle(x1, y1, 0, 0);
                drawObject = true;
        }//--> End of mousePressed()
        public void mouseReleased(MouseEvent e)
            //get the positions of where the mouse was released
            x2 = e.getX();
            y2 = e.getY();
            if(drawObject == true){
                if (x1 != x2 && y1 != y2){
                    //maths to work out where to draw the object
                    if(x1 < x2 && y1 < y2){//1
                        startX = x1;
                        startY = y1;
                        height = y2 - y1;
                        width = x2 - x1;
                    else if (x1 > x2 && y1 > y2){//2
                        startX = x2;
                        startY = y2;
                        height = y1 - y2;
                        width = x1 - x2;
                    else if (x1 > x2 && y1 < y2){//3
                        startX = x2;
                        startY = y1;
                        height = y2 - y1;
                        width = x1 - x2;
                else if (x1 < x2 && y1 > y2){//4
                    startX = x1;
                    startY = y2;
                    height = y1 - y2;
                    width = x2 - x1;
                if(Math.abs(x2 - x1) > 0 && Math.abs(y2 - y1) > 0)
                    shapesArray.add(new Rectangle(x1, y1, width, height));
            }else if(moveObject == true){
                if (x1 != x2 && y1 != y2){
                    startX = x2;
                    startY = y2;
                    width = selectedRectangle.width;
                    height = selectedRectangle.height;
            repaint();
        }//--> End of mouseReleased()
        public static void main(String[] args)
            Applet applet = new AddingRectangles();
            Frame f = new Frame("Adding Rectangle");
            f.addWindowListener(new WindowAdapter()
                public void windowClosing(WindowEvent e)
                    System.exit(0);
            f.add(applet);
            f.setSize(400,300);
            f.setLocation(200,200);
            applet.init();
            applet.start();
            f.setVisible(true);
    }

  • How to create multiple spool requests at once?

    We are setting up alarms in CCMS for when the spool is about to get full.
    I want to create several thousand spools automatically to try the alarm settings out and make sure that it works.
    This doesn't seem possible to do in SPAD, as only one spool is created, and the maximum to create at a time is 250.
    It also seems that it the minimum value that the system takes is 99.000 so I'm not able to lower this value to make an easier percentage alarm test.
    I would like to either fake the number of spools so that the alarm is triggered, or if anyone can explain how to create a job that increases the number of spoolrequests so that I can verify the alarm thersholds.
    Thanks
    Tomas

    Hi ..
    One thing you can do. Create two separate test program. In one program write simple one write statement and from another program submit the previous prog via job .
    do 1000 times.
    call function 'JOB_OPEN'
        exporting
          jobname          = l_name               "Job Name
        importing
          jobcount         = l_number             "Job Number
        exceptions
          cant_create_job  = 1
          invalid_job_data = 2
          jobname_missing  = 3
          others           = 4.
      if sy-subrc = 0.
      Submit the job in background
        submit z2nd_prog
        via job l_name number l_number and return.
        if sy-subrc = 0.
          call function 'JOB_CLOSE'
            exporting
              jobcount             = l_number
              jobname              = l_name
              strtimmed            = 'X'
            exceptions
              cant_start_immediate = 1
              invalid_startdate    = 2
              jobname_missing      = 3
              job_close_failed     = 4
              job_nosteps          = 5
              job_notex            = 6
              lock_failed          = 7
              others               = 8.
    enddo.

  • Instead of creating new resource, recon is updating the same resource object for a user

    Hi,
    I created a DB target recon in OIM 11g. I ran recon and it created resource object. Resource is visible in Accounts tab.Now, I added one more entry with different description in DB. I ran the recon again. This time, instead of creating new resource object, recon linked it the same user with same resource object.
    My requirement is to create as many resource object as there are entries in DB table. The recon should not link all DB entries with same resource object in IDM. For every entry in DB, recon should create that many resource objects in accounts tab of user.
    Please let me know how to achieve the same.
    Regards,
    Kalpana.

    Hint is : Verify Reconciliation Key field mapping in Process definition
    Thanks,
    Pallavi

Maybe you are looking for