OIM: Entity adapter task status

Hi there,
Is there a way to find out if a given entity task has completed on a given user and if so successfully or with errors/exceptions? I have attached an entity task to the user's post-insert list that calls on an entity adapter.
Thanks

I would suggest in your code put something like "EMAIL SEND STATUS|User Login|Success/Failure" as a System.out.println or even use proper logging and just to log.error for the Failure. If you have a try statement around your email, put the Success message after your email is successful and your failure message in the catch piece.
-Kevin

Similar Messages

  • Creating Stored Procedure Task - Adapter Factory, Entity Adapter

    Hi All,
    I am trying to create a Stored Procedure Task for an Entity Adapter within the OIM design console.  I can connect to the database (Connection Status = Connection Established), but the Schema and Procedure dropdown boxes remain empty so I am unable to select the stored procedure I am wanting to run.
    OIM version 11.1.2.0.7
    MS SQL Server 2008 R2
    sqljdbc4.jar
    I can connect and execute the stored procedure locally on the SQL server as the user I am connecting as from OIM and have also tried to connect as the SA user.
    Can anybody suggest anything I need to check or need to enable/modify to be able to see the stored procedure?

    I found this blurb with a quick google search:
    byte[] myByteArray = System.Text.Encoding.ASCII.GetBytes("a text string");
    string myString = System.Text.Encoding.ASCII.GetString(myByteArray );
    See if this helps to turn the byte array into a string.
    -Kevin

  • Running a query On OIM Database inside an adapter task

    Hi,
    How can I run a SQL query to get some value from OIM database table inside an adapter task? How do I get Db connection without using JDBC API inside adapter task?
    Thanks in advance

    create a variable in the adapter factory of type object , map to adapter references- > qualifier database reference.
    you can then use this variable, in your method signature where it requires a database instance. using this database instance you can run sql queries.
    if you need to run a stored procedure, then simply create an adapter -> Fucntional Task-> Stored procedure.

  • OIM 11g: Entity Adapter on custom field.

    Hello,
    I wrote a pre-insert, pre-update entity adapter for a custom form field (SJSDS connector). I defined a adapter variable of type string that will be
    resolved at runtime. I was hoping to map this variable to the "User Type" field on the User Definition.
    When I try to map this variable to the User Definition, the "User Type" field does not show in the list.
    The list is being filtered based on the type of field and "User Type" is of type List of Values.
    How can I get around this issue? The adapter factory does not allow me to set my variable to type List Of Values.
    Regards,
    Sunny

    Following are the the list of mappings. The ones wth similar names are easy to guess. Notice that USR_COUNTRY is missing in the list. I have requested Oracle to log a bug for this and for any other missing fields. If accepted this should be available in the next patch.
    (Mapping between user definition qualifiers on data object manager form and actual USR fields)
    === Process Definition ===
    Name -> pkg_name
    Type -> pkg_type
    === Object Definition ===
    Object Name -> obj_name
    Object Type -> obj_type
    Object Target Type -> obj_order_for
    === Organization Definition ===
    Organization Name -> act_name
    Organization ID -> act_key
    Organization Type -> act_cust_type
    Organization Status -> act_status
    Organization Parent ID -> parent_key
    + Organization UDFs
    === User Definition ===
    User Key -> usr_key
    Request Key -> req_key
    Identity -> usr_fss
    User Login -> usr_login
    Role -> usr_emp_type
    Password -> usr_password
    First Name -> usr_first_name
    Middle Initial -> usr_middle_name
    Last Name -> usr_last_name
    Disabled -> usr_disabled
    Type -> usr_type
    User Status -> usr_status
    Manager -> usr_manager_key
    Organization -> act_key
    Start Date -> usr_start_date
    End Date -> usr_end_date
    Provisioning Date -> usr_provisoning_date
    Deprovisioning Date -> usr_deprovisioning_date
    Provisioned Date -> usr_provisioned_date
    Deprovisioned Date -> usr_deprovisioned_date
    Email Address -> usr_email
    Email -> usr_email
    + User UDFs

  • OIM API - how do you get a tcUtilityFactory in an Entity Adapter?

    How does one get a tcUtilityFactory in an Entity Adapter? I thought I could map it as a parameter and pass it it as a Database Reference object, but when I go to the Mappings in Data Object Manager, the only possibilities for mappings are Entity Fields (USR_*)
    I know in a scheduled class you can do something like getDatabase(), does that exist if you extend a tcBaseEvent?

    First, I was able to resolve it by using getDatabase(), but to address what you guys are saying...
    Yes, I can create a a variable in my adapter of type Object and map it as you describe, that's all fine. But if my adapter is an Entity Adapter then, when you want to use it you have to:
    1. Go to Development Tools -> Business Rule Def -> Data Object Manager
    2. Lookup the Users form
    3. Assign the adapter to Pre-Insert (or whatever)
    4. MAP IT... this is where what i'm saying won't work... you cannot MAP to the variable you defined when you created the adapter. You have no choices there for Database References... the only choices you have are User fields.. look for yourselves.

  • What are the attributes available on Task Status Notification?

    Hi,
    I need to send the information below when a task is completed or rejected. So I would like to know if they are available. I think so because I've got them from Task Status Notification (OIM standard email definition). If not, what are the attributes available on Task Notification?
    <Tasks.Task Name> is <Task Details.Status>.
    <Task Details.Status>
    <Resource.Resource Name>
    Target User: <Users.First Name> <Users.Last Name> [<Users.User ID>]
    Assigned to: <Task Information.Assignee First Name> <Task Information.Assignee Last Name> [<Task Information.Assignee User ID>]
    Response Code : <Responses.Response>
    Response Description : <Responses.Description>
    Error Details : <Task Details.Reason>
    Thanks,
    Renato.
    Hi,
    I have implemented some java code to workaround the problem below... But I don't believe this does'n work in OIM :-):-):-):-) Please, tell me if you are using task status notification in OIM and if your email defintion has the variables below.
    Thanks,
    Hi,
    One of OIM email templates is Task Status Email Notification. I am trying to notify the user (Notification tab) using this template but it didn't work. Even when I set the Object Name and Process Name values for an email definition, it does not work.
    How have you implemented task status notification in your workflows? I think if this template exists in OIM, by default, so it is posible to have the information below during notifications.
    I think I'll have to call Oracle's Support.
    =======================================================
    Subject: Process task <Tasks.Task Name> is <Task Details.Status>.
    Body:
    The Process task <Tasks.Task Name> is <Task Details.Status>.
    The details of this process task are as follows:
    Process Task Name: <Tasks.Task Name>
    Process Task Status: <Task Details.Status>
    Resource Name: <Resource.Resource Name>
    Target User: <Users.First Name> <Users.Last Name> [<Users.User ID>]
    Assigned to: <Task Information.Assignee First Name> <Task Information.Assignee Last Name> [<Task Information.Assignee User ID>]
    Response Code : <Responses.Response>
    Response Description : <Responses.Description>
    Error Details : <Task Details.Reason>
    =======================================================
    As I've said, the e-mail was sent but in blank:
    The Process task is .
    The details of this process task are as follows:
    Process Task Name:
    Process Task Status:
    Resource Name:
    Target User: []
    Assigned to: []
    Response Code :
    Response Description :
    Error Details :
    Is it possible to have those fields available on notifications?
    Thanks,
    Edited by: Renato.Guimaraes on 23/10/2009 08:05
    Edited by: Renato.Guimaraes on 24/10/2009 15:57
    Edited by: Renato.Guimaraes on 26/10/2009 13:31
    I didn't get any answer until now.. Below it is what I've done.
    a) Create an entity adapter that is assigned to the post-update of the Specific Task Info data object.
    b) Select the task information searching by SCH_KEY, for example (I have to do more tests)
    SELECT
    sch.sch_key, sch.sch_status, sch.sch_note, mil.mil_key, rsc.rsc_data, rsc.rsc_desc
    FROM
    osi, sch, mil, rsc
    WHERE
    mil.mil_key = osi.mil_key and
    osi.sch_key = sch.sch_key and
    sch.sch_key = ? and
    rsc.rsc_key = osi.rsc_key
    c) Load the e-mail definition template and replaces the fields
    d) Sends the e-mail
    With that I solved another problem: I have to send an e-mail always the assignee adds a note to the task.
    Edited by: Renato.Guimaraes on 28/10/2009 08:51. How I did that
    Edited by: Renato.Guimaraes on 12/11/2009 12:19
    Edited by: Renato.Guimaraes on 13/11/2009 07:22 Changed the Thread Subject

    Hi Experts,
    I want to extend my doubt a little more.
    I have a requirment  as below.
    User will enter a range of Date say 01.06.2011 to 25.06.2011.
    I need to show him data in two columns one cloumn for the entered day range and second column for prevoius month date rangei.e(01.05.2011 to 25.05.2011)
    can i achive this without  using Customer Exit.
    Regards
    Laxman

  • Entity Adapter in infinite loop

    Hi,
    I have written code which takes userid as input and updates the user attribute using OIM API based an a criteria. I have attached this entity adapter on pre-update of the user form. The adapter is getting trigered but is going into infinite loop.
    Can anyone help me on how to avoid this ??
    Any help will be appreciated.

    Hi,
    I think don't need to update the user attribute using the OIM API. Assign the adapter return value to the UDF you want to update. So you dont have to use the API.
    When you use the API, the events are fired, so your code will go in a loop.
    If you have to update more than one field on the pre update, for example, I suggest you write an Event Handler. Below is a sample of an Event Handler code that I have assigned to the Specific Task Info dataobject:
    import com.thortech.xl.client.events.tcBaseEvent;
    public class EventHandlerSample extends tcBaseEvent {
         public NotifyTaskStatusChangedEvent(){
              this.setEventName("Event Handler Sample");
         @Override
         protected void implementation() throws Exception {
    String taskKey = this.getDataObject().getString("SCH_KEY");
         String newTaskStatus = this.getDataObject().getString("SCH_STATUS");
         String oldTaskStatus = this.getDataObject().getCurrentString("SCH_STATUS");
    System.out.println("Old Status: " + oldTaskStatus);
    System.out.println("New Status: " + newTaskStatus);
    if(this.getDataObject().isInserting()){
    if (this.getDataObject().isPostEvent(){
    //do something
    if (this.getDataObject().isPreEvent(){
    //do something
    }else if(this.getDataObject().isUpdating()){
    }else if (this.getDataObject().isDeleting()){
    Read the metalink Developing a Custom OIM Event Handler Using Eclipse [ID 604817.1]
    Renato.

  • Populate Lookup Using entity Adapter

    Hi,
    I need to populate(not pre-populating a lookup) a lookup code. This lookup code is attached to a lookup field in my child process form. I am thinking I have to create an entity adapter for the same. Am I correct? If yes then could someone please tell me where do I attach this adapter. I have tried attaching the adapter on the child form on pre-insert and pre-update. But the adapter gets triggered only when I already have selected a value from the lookup and click on Add. But I want the adapter to get triggered before I click on editing any field of the child form.
    Thanks,
    Supreetha

    Be clear in what you are trying to achieve.
    *1) I need to filter the data being presented in the lookup according to the organizations* -> This means the user who would be doing provisioning would be shown a list of departments (filtered) and it can select the one which is required.
    *2) I was hoping that I could achieve the same using the entity adapter* -> When you say entity adapter it means something automatic (like trigger on the provisioning task), it means that you just want to automatically populate the departments from the lookup based on the organization without letting the user who is provisioning select the departments manually.
    Both the above use-cases can be achieved easily:
    *1) Use dynamic look-up It would be lookup query with the where clause and you would pass the organization attribute in the clause. Look for similar threads or E-Business OOTB connector for more help*
    *2) Use OIM API's to fetch the departments you want to add & using a process task add these values to the child table of the user process form*

  • Is there a way to disable OIM entity adapters while doing batch upload ?

    Hi experts,
    I have an adpater to generate UserID from a sequence based on user-type for creation of OIM users thru web UI.
    I have attached this to Users form in data object manager.
    We also have a 3-step batch bulk procedure from CSV file which checks data enterd, generates pword email etc etc and builds CSV file with records to be inserted.
    In the 3rd step, scheduled task runs with CSV file as input and creates users in OIM DB.
    The problem is the entity adapters are also getting triggerd which generate another UserID for each user created.
    This leads to loss in sequence numbers.
    Is there any way of disabling this ?? We need to have both in place, but this conflict should not arise ..
    Please advice.
    Regards,
    Chetan

    Even if i check the value of that UDF and execute the code to generate UserID based on that value,the function still has to return a value right ??Attach entity adapter at Post Insert.
    Create UDF with Default value "CSV".
    Add one more parameter in your java class which is responsible for generating userid.
    You can directly map UDF with Class Parameter.
    if (UDF == CSV){
    Don't Generate
    else {
    Generate with your logic
    And if that function is getting called for every user record in the CSV file, then i cant return a dummy value for it as well .You can use update User API of tcUserOperations

  • Entity Adapter

    1) If a new record is added into a table in OIMDB, will the entity adapter detect this change and invoke the java code?
    2)Since user is not mapped to a profile directly, I guess we need to use an API to get the profile details of a particular user. Can anyone mention which API do I need to use to get the user profile?

    In OIM 10g, we have created a entity adapter which listens to USR_STATUS attribute of USR table.When the entity adapter is invoked we need to retrieve the USR_LOGONID of that user whose USR_STATUS has changed in OIMDB. Which api am I supposed to use to retrieve this USR_LOGONID attribute?? or is there any other alternative approach in entity adapter to retrive LOGONID for an user whose status changes and triggers the Entity Adapter?

  • Generate random User Alias - Entity adapter

    Hi,
    I am a newbie. Can anyone please help me in telling steps for creating an Entity Adapter which generate a random User Alias.
    TIA.
    Got few threads that tell about pre-populate adapter, none for entity adapter.

    Hi,
    Follow the below steps to create new entity adapter in OIM
    To add the new created event handler to OIM server, perform the following steps:
    1. Write a java code to perform the needed operation ("Generate random user alias" in your case).
    2. Copy the file to OIM_HOME\xellerate\EventHandlers
    3. Open Design Console and navigate to: Development Tools -> Business Rule Definition -> Event Handler Manager
    4. Create a new Event Handler and specify:
    Event Handler Name: +<give the class name of your code>+
    Package: +<give the package name of your code>+
    Pre-Insert: Checked (for this scenario)
    5. Save the event handler
    6. Navigate to Development Tools -> Business Rule Definition -> Data Object Manager
    7. Search for "Users" and add the event handler to the Pre-Insert list.
    8. Save.
    Regards,
    NS

  • OIM SPML provisioning task generic connector

    We need to know how could get a custom message response from generic connector. Right now we are using a message like:
    <addResponse status="Error">
    <psoID ID="150">
    <targetID ID="IDDESTINO"/>
    <containerID ID="ContainerID"/>
    </psoID>
    </addResponse>
    We want to process the message with different status code because with the generic connector always get success when we response with a good formed spml response. We have tryed changing the status to different codes without success.
    Is there some sample code or more information to this issue anywhere?
    Regards

    Hi,
    Thanks a lot for reply. For SPML through web service(custom), I am using Generic connector and when I am trying to create a user using this connector it is hiiting the web service with the request
    <addRequest xmlns="urn:oasis:names:tc:SPML:2:0" xmlns:dsml="urn:oasis:names:tc:DSML:2:0:core">
    <targetID ID="Target5"/>
    <containerID ID="1"/>
    <data>
    <dsml:attr name="objectclass">
    <dsml:value>userobject</dsml:value>
    </dsml:attr>
    <dsml:attr name="lastName">
    <dsml:value>sh</dsml:value>
    </dsml:attr>
    <dsml:attr name="firstName">
    <dsml:value>abc1</dsml:value>
    </dsml:attr>
    </data>
    </addRequest>
    Of course, I want to add more attibute in this one.....but I didnt find any way to add more attribute in this message...or no ways to modify this request.
    With above request it is hiiting the web service and from web service I am returing following reponse as byte array:
    <addResponse status="success">
    <psoID ID="ash">
    <targetID ID="Target5"/>
    <containerID ID="1"/>
    </psoID>
    </addResponse>
    but as the response it is giving following on OIM server window:
    Response: GCPROV.null
    Response Description: An unknown response was received
    Error Details
    Setting task status... "GCPROV.null" does not correspond to a known Response Code. Using "UNKNOWN".
    Can anyone pls help me to figure out this. Also how can I modify SPML message to send more info to the target.
    Thanks in advance

  • Task status  report in cProject 3.1

    Hi,
    I want to extract task status report from cProject 3.1.
    Report should contain task name, status, start date,end date , effort etc.
    Thanks in advance
    Shiv

    Hi,
    Activate the form DPR_TASK_HIER for a particular Project type in SPRO screen. Now keep the cursor on any task in cProjects & click on Print pushbutton, this will generate a PDF Report which will contain Task name, Constraint dates, actual dates, administration details etc. In order to add more data to the Report, goto transaction SAMRTFORMS & edit the form DPR_TASK_HIER.
    Hope this will help you.
    Regards,
    Sujay G

  • Remote Software Updates and Sending Task Status to User

    I am updating user's machines using ARD 3 with the unix command 'softwareupdate -i -a'. With some updates, a restart is required and ARD posts this within the task status column.
    I was wondering if there was a way to grab that task status of "restart needed" or "succeeded" and then send that to the user when the software update has completed.
    Any help would be appreciated.
    Thanks.

    System restart checkbox is used to control what happens outside of MW.
    If you have no MW and did not select to restart outside of MW then systems will reboot after installation completes (unless user overrides it and does it sooner). Keep in mind that the 90 minute and 15 minute restart countdowns will be displayed if user is
    logged in (unless you have changed the times) if user did not interact with any notifications to select other options like install and reboot ahead of time.
    If you have MW and did not select to restart outside of MW, then PC will not reboot until MW starts (unless user overrides it, of course).
    If you select to reboot outside of MW checkbox then PC will reboot after installation ends, no matter if MW is set or not.

  • Task status is not changed in UWL

    Task status is not changing when it is executed in UWL. the tasks comes from R/3 when a workflow is executed . SAP says realtime refresh not supportinng in current version of UWL. please let me know any workaround to solve this issue.
    Thanks ,
    Sarath

    Hi,
    Unfortuntely, there does not seem to be a 'working' workaround for the issue.
    This is resolved however in SAP Netweaver 7.0 EhP2 or 7.20 versions.
    Please see /thread/1564782 [original link is broken]
    Regards,
    Srikishan

Maybe you are looking for

  • Printing cards and labels on Photosmart C4580 printer

    I couldn't find my particular problem using the search so I'm hoping for some answers here. I have a Photosmart C4580 printer connected to a Toshiba laptop running Vista with all the current updates. My problem is that I can't seem to get it to print

  • Deployment  of Web application containing only Servlets

    I want to deploy my web application on Weblogic which contains only servlets           and html files.           All I know is that I have to write the DTD file. Once i am done with the DTD           file i do not how the further steps to deploy my w

  • I can't install Adobe Flash -installation keeps failing

    I run Windows Vista, and have been using Firefox as my browser (current version). In May some time Flash stopped working on Firefox. It works fine on IE8. I have uninstalled Flash and reinstalled it - successful on IE, and uninstalled Firefox and rei

  • Clusterware and third-party application

    Hi, I have a installation, where I have 2 servers for Oracle, connected to storage via SCSI, and 6 others servers for application servers (JBoss/WebLogic), not connected to this storage. All 8 machines have two network interface, so I can build publi

  • Embedding an Interview into a webpage

    We can embed the wizard within a page using an iFrame, but when we do this it keeps saying that "The interview session has expired.".  Can anyone assist in troubleshooting this issue?