GR 11, 1 IOM material: Add a task to a resource object

Hello

I added a new process task to a resource object. The task name is "Change Unique value" on the Romania. I would like to add to this task to all users, where the receiver Office is "Enabled" or "configured".

I can't seem to find a 11g APIs that allow me to find all the resources provided to a user, then find all the tasks available and add it.

Can someone tell me please to the API that will allow me to add a task to a receiver Office?

Thank you.

tcProvisioningOperationsIntf.addProcessTaskInstance (long plTaskKey, long plOrcKey)

Run this query for the key to the task:

Select mil_key in mil where mil_name = "single value change.

Then run the query for the orc_key

Select oiu.orc_key
Ouedraogo, ost, obj, Olivier
where oiu.ost_key = ost.ost_key
and oiu.obi_key = obi.obi_key
and obi.obj_key = obj.obj_key
and obj.obj_name =: resourceName
and ost.ost_status in ('set aside', "Enabled"))

Then, copy the following code and put a separated by commas in the output of orc_key.

public void addProcessTask() {}
keys to long [] = new long [] {}<>
int counter = 0;
for (key: long key) {}
try {}
counter ++;
provIntf.addProcessTaskInstance (, key);
System.out.println (counter + "|" + keys.length);
} catch (Exception e) {}
System.out.println (e.getLocalizedMessage ());
System.out.println (e.getMessage ());
}
}
}

Check first with a user, and then run the rest. It uses the tcProvisioningOperationsIntf.

-Kevin

Tags: Fusion Middleware

Similar Questions

  • How to add DaqMX task to an existing project

    I use Measurment Studio 2010 with Visual Basic. I created a NI Daq Windows application with an element of task Daq to analog input.

    Now, I have to add additional DaqMX tasks (tasks in digital and Digital Out) to the existing Visual Basiic project.

    How can I do this?

    Thank you

    Mike

    Hello

    Here is a link that shows how to add a task to a .NET project

    http://digital.NI.com/public.nsf/allkb/290D84D10809D4C086256FF20076F8B8

    Curt

  • Unable to add scheduled tasks?

    Recently, when I add schedule task under the admin account, it fails and display the error message "Task Scheduler" a task or a folder with this name already exists", but it is false and I can't find anything for this new task under appendix.»

    Anyone have any suggestions on what evil is?
    Thanks in advance for your suggestions

    When I try now to approach, the problem disappeared,

    I would like to know on what the problem is with the update of the window.

    Do you have any suggestions?
    Thanks a lot for your suggestions :>

    Windows Update - Microsoft error

    Open a CMD prompt high
    Type the following and press ENTER: "fsutil resource setautoreset true c:\.
    Reset
    After restarting your machine, you should be able to create new tasks on demand now

  • IOM API to add fields Recon to resource object?

    In the console of design under the management of resources-> resources-> object reconciliation objects, I am able to add fields of reconciliation to a specific resource object. I would like to make using Java. After poking around the API of the IOM, I can't have this method. Is there an API of the IOM to add fields of reconciliation to a resource object?

    Here are my findings:
    In the class "tcObjectOperationsIntf", I see "getReconciliationFields(long plObjectKey)". It annoys me all the recognized fields for a specific resource object.
    In the class "tcFormDefinitionOperationsIntf", I see "addReconDataFlow (long plProcessKey, long plObjectKey, java.lang.String sourceKey, java.lang.String targetName, boolean isKeyField). This allows me to define a mapping between a label field as a process and a recognised field.

    You will either need to export the XML file, then edit it, then reimport or devote the time necessary to create once in the java client.

    -Kevin

  • Want to disable in IOM, but not in the target's resources

    Hello

    As part of the workflow of the exception we want to disable user in IOM but do not want to disable to target resources [AD, Notes and ACF2]
    Please let me know how we can control more to disable by default of the IOM that invokes the task of the target user Disable systems.

    Thank you

    Published by: without fear 6 on November 11, 2010 12:28 AM

    Go to RACF, process definition AD user, Notes, etc.

    The open user Disbale
    Remove the type of shutter inside (disable the Application *)

    Create a user task check
    Added a trigger Type to disable the Application Access etc.
    Plug your adapter that will check if you want to disable the user or not based on the checkbox in the user profile.
    Send the answer YES or NO
    If so, call turn off the task of the user of the AD Notes, RACF etc.

    For NO answer, do not call any task.

  • How can I add a game action on an object that contains the first click and read reversed to this object even a second click action?

    How can I add a game action on an object that contains the first click and read reversed to this object even a second click action?

    First create a symbol of the object.

    Then add the code in the event click on this symbol as below:

    Insert the code for the mouse, click here

    var bReverse = (sym.getVariable ("reverseDir")! = undefined)? (sym.getVariable ("reverseDir")): true;

    sym.setVariable ("reverseDir", bReverse)

    {if (bReverse)}

    sym.playReverse ();

    }

    else {}

    SYM. Play();

    }

    HTH,

    Vivekuma

  • Add quot &amp; custom property. data &amp; quot; object

    Hello. I'm trying to figure out how to add a custom property to the data object that does not exist in my event handler code. After the user clicks a button in a DataGrid itemRenderer, I have to add a property to the data object and then read this value in the call to the function ' override public function set data(); If the property doesn't exist, the column has a value set; Otherwise, it will be empty.

    What is the syntax for adding a custom property to the data object? Thank you.

    Thank you. The solution was to use in the button click event handler of the itemRenderer

    myDataGrid.selectedItem.UploadFileName = "someFile.jpg";

    You can then access that service data set overridden inside itemRenderer section, making sure to set the TextInput to void fi data. UploadFileName is undefined or null. This will prevent the recycled itemRenderers to setting other TextInput fields to the same value.

    Furthermore, the reason to use the vs "data" object selectedItem: data object is out of range.

  • GR 11, 1 IOM material: disability resources changes set to change

    Version: IOM 11 GR 1 material BP7

    Target system: Active Directory using Connector AD 11.1.1.5.0

    In my environment, I have a disabled user with an Active Directory resource. Whenever I have to make changes to resource the user AD, the status of this resource is changed to "Set up" even if the resource is always disabled on the target system. I know that when a resource is disabled, you cannot change the shape. I made the changes through the API or the button on the interface of the IOM (I have a process configuration 'Change Password' task so this password is pushed to resources of the AD user) password reset.

    I also installed a custom connector icf and it has the same behavior as above.

    I would like to know if anyone has come across this problem before or have any thoughts in this issue the debug.

    Check if the task that fires once resource mapping 'C' - implemented a disabled user That could be the reason!

  • IOM UI add a pop up?

    Hello everyone

    In the PS3 of the IOM, which component of data I see the popup object to add to the user interface? I have checked in the Web components and a few others, but was unable to find.

    Can someone tell me how to add a popup in IOM UI of a web composer?

    Thanking you

    Thanks Abhishek and SwatiP for the answers.

    But my solution was to export the sandbox and add element in the jsff page and when I imported, although it was not visible from the Source/Structure of the section Customize Web composer, the pop-up was flung after that I clicked on my link.

    So I think that the solution is to add a tag.

    Thank you

  • How to grant map to IOM CSF a scheduled task

    Hello

    I need to give a reference card for the store of credentials to the IOM a scheduled task. I was trying to grant access but no success yet.

    I tried to grant access to $OIM_HOME/server/plugins /- but still access denied.

    Could you please you shared your suggestions on this.

    Thank you

    Srikanth

    You can create a class to access your CSF and put it in a jar in your folder of $DOMAIN_HOME/lib. After that just create a system policy to allow this vial to read the key from your CS

  • Two operations are launched: getChildren () .add &amp; one task... the second is always the first :'(

    Hello

    First of all, I'm sorry but I speak very well English, I'm french. I come here to ask you for help. In fact, for two weeks I am trying to solve a problem. I have a controller that does a lot of operations. My goal is to show a progress meter during all database operations. So, I created a class with a method to do this. Below, you can see the code of a task that performs the database operations (he calls a method through its name, its class name and its parameters):

    task2 = new Task<Object>() {
                @Override
                protected Object call() throws Exception {
                    if (params != null) {
                        Object v = null;
                        try {
                            v = method.invoke(service, params.stream().toArray());
                        } catch (IllegalAccessException | IllegalArgumentException |
                                InvocationTargetException e) {
                            // TODO Auto-generated catch block
                            e.printStackTrace();
                        }
                        return v;
                    } else {
                        Object v = null;
                        try {
                            v = method.invoke(service);
                        } catch (IllegalAccessException | IllegalArgumentException |
                                InvocationTargetException e) {
                            // TODO Auto-generated catch block
                            e.printStackTrace();
                        }
                        return v;
                    }
                }
            };
    

    Then I get back an anchorpane that contains a progressindicator and I link them:

    spinner.getPi().visibleProperty().bind(task2.runningProperty());
    

    Before execution of the task, I put the anchorpane as a child of the main anchorpane (as reported as root):

     ap.getChildren().add(spinner);
    

    Finally, I start the task and I retrieve the value (the get() method which makes sure that all operations are completed before returning the value... In other cases, it does not...).

    new Thread(task2).start();
            try {
                val = task2.get();
            } catch (ExecutionException e1) {
                // TODO Auto-generated catch block
                e1.printStackTrace();
            }
            return val;
    

    However, I must still wait for the operations of the task in order to see the anchorpane that contains the spinner. The spinner does not appear (it appears when I remove the link) but I tested it with a few colors of background anchorpane. So, I would like to know if you have an idea how I might solve the problem. Is there a way to show the anchorpane before the launch of the task?

    I thank you for your help and have a nice day.

    Vincent.

    Salut / hello

    A task should not be launchedEA in the context of a thread, but as part of a Service (javafx.concurrent.Service). It is possible to be binder on the properties of the service and not those of the task (see title, message, forward and value).

    You'll find help in french as well as a FAQ on JavaFX, here and here.


    A task must be used in conjunction with a Service (javafx.concurrent.Service) and not with a wire. You can then link on the properties of the service instead of the task (see title, message, progress and value properties).

    spinner.getPi().setVisible(true);
    Service backgroundTask = new Service() {
    
        @Override
        public Task createTask() {
            return new Task() {
    
                @Override
                public Object call() {
                    if (params != null) {
                        Object v = method.invoke(service, params.stream().toArray());
                        return v;
                    }
                    Object v = method.invoke(service);
                    return v;
                }
            };
        }
    };
    backgroundTask.setOnSucceeded(workerStateEvent -> {
        spinner.getPi().setVisible(false);
        Object value = workerStateEvent.getSource().getValue();
        [...]
    });
    backgroundTask.setOnCanceled(workerStateEvent -> {
        spinner.getPi().setVisible(false);
    });
    backgroundTask.setOnSFailed(workerStateEvent -> {
        spinner.getPi().setVisible(false);
        Throwable error = workerStateEvent.getSource().getException();
        [...]
    });
    backgroundTask.start();
    		    
                
               
  • OIM 11 g: add process tasks continued to apply?

    Is it possible in OIM 11 g can result in a request for this process of 1 or more tasks are added to a process of an account?

    The scope of application of out-of-the-box seems to be very thorough attribute (Edit provisioned resource, Self change set) and I suppose we could add an attribute to trigger the execution of tasks to add, however, without going into details, we'd really just be able to add the process task with no updates in the form of process.

    A that anyone tried something like this?

    Of course you can.  Create a plugin on the status of the request:

    Request completed

    In your code, using benEntity.getEntityKey () you can get the "Users-object of the Instance to User.Key" value for the instance, the request is for.  Then search for existing instances of the user of this type of resource (findObjects) and match it to the "Users-object of the Instance to User.Key" value of the result set.  Then get the key of the process instance.  From there, you can use this code to get the details of the task:

    Map taskMap = new HashMap();

    String nom_de_tache = map.get('zoom') (resourceName);

    taskMap.put ("Definition.Tasks.Task process name", taskname);

    tcResultSet rs = taskOper.getTaskDetail (processInstanceKey, taskMap);

    long taskKey = rs.getLongValue ("process Definition.Tasks.Key");

    And finally this code to insert the task:

    provIntf.addProcessTaskInstance (taskKey, processInstanceKey);

    And done!

    -Kevin

  • Grant a role to a user using API in GR 11, 1 IOM material

    Friends,

    Could you please provide me with some snippet of code to configure a role to a user using API in IOM - R1?

    Thank you
    Vetri

    Try this code.

    public void GrantRole (String userLogin, String roleName) {}
    Try
    {
    Take string = getUserKey (userLogin);
    String roleKey = getRoleKey (roleName);

    RoleManager roleMgr = oimClient.getService (RoleManager.class);
    UserKeys value = new HashSet();
    userKeys.add (take);
    Result = roleMgr.grantRole (roleKey, userKeys) RoleManagerResult;
    System.out.println("Status:"+result.getStatus());)
    }
    catch (Exception e) {}
    e.printStackTrace ();
    }
    }

    public String getRoleKey (String roleName)
    {
    String roleKey = null;
    Try
    {
    RoleManager roleMgr = oimClient.getService (RoleManager.class);
    The list of roles = null;
    Criteria of SearchCriteria = null;

    criteria = new SearchCriteria (RoleManagerConstants.ROLE_NAME, roleName, SearchCriteria.Operator.EQUAL);

    roles = roleMgr.search (null, null, criteria,);
    roleKey = (String) roles.get (0) .getAttribute (RoleManagerConstants.ROLE_KEY);
    }
    catch (Exception e) {}
    e.printStackTrace ();
    }
    Return roleKey;
    }

    public String getUserKey (String userName) throws Exception
    {
    UserManager usrService = oimClient.getService (UserManager.class);
    User user = usrService.getDetails ("User Login", username, null);
    String = take user .getAttribute ("usr_key") m:System.NET.SocketAddress.ToString ();
    Return take;
    }

  • IOM 10 g Schduled task attribute length

    Hi all
    I want to put a long string into the attirbute to the scheduled task. But only a part of the chain can be saved and deletes it after that. Please let me know how I can increase the length of the attribute for the task attribtues sch.

    Thank you

    In the Pb of the IOM, increase the value of the length of the column of the following options

    table - TSA
    column - TSA_VALUE

    This column is that contains the values of all the attributes of scheduled task.

    It will be useful.

  • Add a task in Thunderbird

    Hello

    Adding to what a task seems very similar to adding an event except that I can't find my tasks anywhere after that I click on add and save. they do appear not in the calendar, or the column task in the right column of the Thunderbirds.

    pointers please?

    Thank you

    OK, there is a filter on and that's why I couldn't see the dates of the events

  • Maybe you are looking for