Xellerate sample API for Task Assignment adapter

Can anyone share an example of Task Assignment API adapter (jar file) for Xellerate? Thank you.

Hi Maria,
1. When do I need to use Task assignment rule and when task assignment adapter?
Both are for the same purpose i.e., assigning a task/approval task to a person or group. I have never worked on task assignment rule but unless you have complicated logic for assigning a task you can always go ahead with task assignment rule.
2. Or do I need to use them together?
Either of them will suffice!
3. I put the adapter on the assignment tab and it says "Mapping incomplete" How do you map this adapter? (I have to pass user logon somehow)
When you add the adapter to the assignment tab, map button(below the assign button) which is deactivated by default will be activated, you can go ahead and map the variables there!
Hope this helps.
-Hrushi
Edited by: hrushi on Sep 6, 2010 7:24 PM

Similar Messages

  • Task Assignment Adapter

    What is the use of utility task in task assignment adapter?
    And what is return variable for key and return variable for key type in adapter variables for task assignment adapter?
    Thanks,
    Durgaprasad

    Utility Tasks
    Task Assignment Adapter:
    Metalink Note: 980372.1 & 1119497.1
    lmgtfy
    and I got:
    Sample
    -Bikash

  • Task Assignment Adapter Error

    Hi I have developed a task assignment adapter for approval.I am hardcoding the group name and then qurtying database to find the group.Then from the resultset I am getting the value of the group key.and then I m writing two tasks to get the key and the key type.
    I am getting the following error
    Running PUTGROUPINHASHMAP
    2008-09-05 12:09:48,640 INFO [STDOUT] Target Class = com.thortech.xl.util.adapters.tcUtilHashTableOperations
    2008-09-05 12:09:48,640 INFO [STDOUT] Running QUERYDATABASE
    2008-09-05 12:09:48,703 INFO [STDOUT] Running GETGROUPKEY
    2008-09-05 12:09:48,703 INFO [STDOUT] Running SETKEY
    2008-09-05 12:09:48,703 INFO [STDOUT] Target Class = com.thortech.xl.util.adapters.tcUtilStringOperations
    2008-09-05 12:09:48,734 ERROR [XELLERATE.DATABASE] select ugp_key from ugp where ugp_key =
    java.sql.SQLException: ORA-00936: missing expression
    But when I am hardcoding the group key then its working fine.
    I just dont know where the error is.
    Please help me regarding this.
    I think OIM is querying database but is not able to find the group,but the group which I putting in hashmap is present.

    I suppose I was not clear in my query.
    Actually I have a situation in which if a user logins and requests a resource then I get the above error and as a result of which the approval goes to the Xelsysadm and not the group that I have assigned.
    But when I login as Xelsysadm i.e system administrator and then if I request for a resource for any user by clicking the request menu item then the approval is working fine i.e it goes to the group that I have assigned.
    Please help me regarding this
    Edited by: jason_2007 on Sep 7, 2008 11:50 PM

  • How to get group key from a task assignment adapter

    Hi All,
    Senario:
    I have two groups, say G1 and G2.
    One Access policy, say P. (This access policy is associated with AD resource.)
    AD Resource Object R.
    I have defined an Approval process for Resource R.
    Access policy P is assigned to both Group G1 and G2.
    This Access Policy P is linked to Resource R
    According to above configuration,
    When I add User U1 to Group G1 ( or G2 ) through "Group Membership", Access Policy P is executed and the approval process which associate with the Resource R is executed.
    In my Approval process, I have a task assignment adapter.
    Within my adapter, I want to get the group key, which cause to fires this approval process. ( It may be G1's key or G2's key. )
    Could some one help me for this ?
    Regards,
    Thirlk
    Edited by: thirlk on Jun 28, 2009 10:55 PM

    See this thread
    Working on the same requirement.
    How to get the administrator group of a group from a approval process
    If you have any further question let me know.

  • OIM - Task Assignment Adapter - How to get the object instance key?

    Hello experts,
    I'm trying to use a task assignment adapter to assign an approval task dynamically. Basically, the user can request a resource like "CustomApp Profiles" and we create an object form to let them choose the profile that he needs. Each profile has an owner, which is populate in a Lookup (Owner is the code and Profile is the decode).
    So, in the approval task, I need to get the profile selected by user in the object form and search into the lookup who is the owner of that profile. But I don't know how can I get the object instance key using the parameters that can be mapped to a task assignment adapter.
    Looking into the OIM documents, I believe that the easier way is using the request key, because the REQ_KEY is a foreign key in OBI table.
    Did anyone knows how can I get the object instance key using the request key? Can I use some API or should I execute a SQL statement directly in OIM database?
    Best Regards,
    Nitto

    To retry a task that is in a rejected state, you use the SCH_KEY which is the task key.  In OIM, all rejected tasks are listed in the OTI table.  It contains all the important information about a rejected or pending task.
    You can use the APIs found in the tcProvisioningOperationsIntf class to retrieve open tasks.
    -Kevin

  • Task assignment adapter - dynamic route to either group or user

    I have configured an approval process in design console and I want to be able to dynamically route the approval request to either the target user manager OR a group. I have written logic/code to automatically determine what group or user to route the request to and also to set the key type to either user or group depending on my logic conditions.
    This code is executed in a task assignment adapter and set the values for the key type and key depending on the logic.
    i.e. the key type would be "user" and key would be the user key for the target user manager, if my logic determines it should be routed to a manager
    OR
    the key type would be "group" and key would be the group key for the approval group, if my logic determines it should be routed to a group
    HOWEVER MY PROBLEM is with assigning the adapter to a process task. I am thinking I would need to have two entries in the Assignment tab of the process task. The first entry has the default rule and I assigned the target type to "group" and include my adapter here.
    How do I go about assigning the second entry for target type "user"? Since "Default" is the only rule option and I am not able to use it twice.
    I tried to create a rule in the Rule Definition form and create a Task Assignment rule that might do something to check if a task is assigned to "user", so that I can have this as my second rule in the Assignment tab of the process task and if it is true, it would call my adapter that would return the key for the target user's manager.
    I DO NOT KNOW what conditions to set in the Rule Element window for the Task Assignment rule. Can someone tell me what to do here OR provide me with a better alternative.

    Thanks for all the responses. Approvals are now being routed correctly.
    I have a follow-up question though........ I created a process adapter to send notifications to either the target user manager or members of the group that is the approval is routed to.
    I have a notification process task as part of my approval process and in its Integration tab, I added my process adapter that sends notifications.
    The code for the adapter uses the same logic I described in my original question to determine if the approval is being routed to a user of group. If it is routed to a group, the notification adapter identifies members of the group and sends email to them, this part works fine.
    However the problem is when the logic determines it should be routed to the target user's manager. One of the variables of this notification process adapter is username of the target user. Using that username, my code determines who the manager, gets the manager's email address and sends the email. Problem with this is that when mapping variables for process adapters in the Integration tab, in the Map To field, it does not give you the option of mapping to Request Target User, which would have provided me with user attributes of the target user such as the user name. It provides option for the Requester, but my reality is that the Requester is not always the Target User.
    Any suggestions for fixing this would be greatly appreciated.

  • Approval request to dynamic user --- task assignment adapter

    Hi All,
    I have a requirement.
    1. User will be requesting for AD Group Memership.
    2. The approval request should go to the owner of the AD group. (AD Group owner will have an OIM Account)
    is it possible to add custom "Target Type" in "Assignment" tab of Approval task?
    Assistance appreciated.
    Thanks & Regards
    Inbaa.

    Hi Thanks for the info. I have tried the approach.
    Task Assignment adapter has two adapter variables - "Adapter Return value for key" ( Type - Object) and "Adapter Return value for key type" ( Type - Object)
    1. I have added a task which invokes my custom java class method -- getApprover() - returns approver Name (User Id) -- String format -> I have mapped the output to adapter variable "KEY"
    2. I have added another task which invokes my custom java class method -- getApproverType() - returns statuc string "User" -- String format -> I have mapped the output to adapter variable "TYPE"
    I have attached this adapter to approval process with the mapping
    Variable -Adapter Return value for key & Adapter Return value for key Type
    Map To - Task Information
    Qualifier - Note
    When I request for the resource , the task assignment adapter assigns the approval request to the USER itself instead of the approver.  Anything I am missing here??
    Thanks & Regards
    Inbaa

  • Task Assignment Adapter - Tools Reference guide

    Can anybody please tell me an example of how to create a Task Assignment Adapter? I have already gone throuh the Tools Reference Guide.
    I created one task assignment adapter in adapter factory and it provides by default with 2 variables
    Adapter Return value for key type
    Adapter return value for key
    Which type of task should i create within this adapter to map these 2 variables? Can anybody please provide some guidance/examples. I am getting Compilation errors and code_gen.errors if I just try to SET VARIABLEs to some 'null' literal value.
    Very appreciative.
    Thanks!

    Hi experts,
    Inspite of going through various threads related to task assignment adapters...i m unable to get how the adapter has to be created.
    i got to understand that based on task assigment rule evaluation...it will be assigned to certain user or group as defined in assignment tab of process defn
    but the first step to create the adapter and map the variables is unclear. the adapter has two default variables. how they have to be mapped. and what requires addition of new variables to it.
    for example if i have the case where users with certain last name , say last name ='John' will ve evaluated in task assigment rule. and in process defn, the task 'last name updated' has to be assigned to certain group say group1.
    so for users with last name 'john', if some modification is done in last name, last name updated task is fired and it will be assigned to group1. That means it has to be approved by member/members of group1 to be completed. I hope i m right upto this point.
    Now what does the task assignment adapter actually do.
    In assignment tab, it decides if the task is assigned to group/user. and the adapter decides to which user/group it is assigned.
    considering this example. please detail the steps for adapter creation and variables mapping

  • API for Task list create/change

    Hi,
    Is there any API for task list create/change (Transaction IA05/06)?
    Thanks
    Sanket Sethi

    That would be very useful to know for me too. So has anybody an idea?
    Greetings Philip

  • OIM 10g Task Assignment adapter

    Hi All,
    I have Task assignment adapter in place which assigns the task to the group in OIM - group decided on some condition.
    I want to bypass this task assignment if user's manager is the member of decided group. Is it possible?
    Any pointer would be a great help.
    Thanks,
    Pallavi

    Add a task say "Check Manager" which will check whether user's manager is part of that group or not. Based on that send some response YES or NO
    On YES, call "Approval" and attach task assignment adapter there.
    On NO, you can attach any task if you want or leave it as it is.
    Reference:
    http://rajivdewan.blogspot.com/2010/07/multilevel-approval-workflow-in-oracle.html

  • What are Task assignment adapter and Task Assignment Rule?

    What are Task assignment adapter and Task Assignment Rule?

    Task assignment adapter lets you return a value to the type and assignee values in the adapter. You can use these to dynamically assigned to users or groups.
    Task assignment rules let you specific the priority in which the assignment rules are done. If you go to any process task adapter and open it. Go to the assignemnt tab. Here is where you can specifiy your rules to create an order of determination. You can have multiple entries with rules determining organization and then have them assigned to appropriate groups in each assignemt rule entry. Or you can dynamically assign by using the default and a task assignment adapter to figure that out.
    -Kevin

  • OIM: what parameters for the task assignment adapter?

    Hi,
    following the tip here: Re: how to use adapter to assign task to a specific user
    I created a task assigment adapter and set the following by means of a simple java class:
    Adapter return value for key="myapprover2"
    Adapter return value for key type="User"
    myapprover2 is the login name of a user in OIM.
    It does not seam to work, because the approval task is assigned to the xelsysadm instead of myapprover2.
    What I else need to do to get it working?
    Thanks.

    The key needs to be the Users.Key value returned in a string format to the Object variable holding the task assignment key variable.
    -Kevin

  • Query for tasks assigned individually to all members of a user group

    I am looking for a query that will allow me to create a list view that will show all tasks assigned to the current user (in the Assigned To field), as well as to other members of the user group that the current user belongs to. The scenario is that we want
    a student to see tasks assigned to them, as well as to other students in the class. Each class is its own user group. I have seen a lot of examples where the filter shows tasks assigned to the current user and the current users group - that is NOT what I am
    looking for.
    For example - Todd (me), Fred and John are members of one user group. When I look at this class view, I should see tasks assigned to me, as well as those assigned directly to Fred and John.
    Does anyone have a CAML query for this? I am thinking it would need to include the SPGroup element. Thanks!

    Hi William,
    I've tried this, but it isn't working for me. Should I chnge the Smart Group, to an ordinary one?
    Thanks

  • Mail trigger for Task assigned in collaboration room

    Hi,
    When a task is assigned to an user, mail does not get triggered to the assignee, but triggers to only tracker.
    Is it possible to trigger mail for the assignee to?. Also is there any way to set alert mail for the tasks both for assignee and tracker?
    Regards,
    Sasikala

    Hi,
    I have similar requirement like this,
    In Restricted Room, User A request membership, After this owner get the notification mail for that request.
    is possible to send notification to User A by mail or in UWL notification?. how can we achieve this?
    Request Membership for Restricted Room is calling the below mentioned class,
    Name : RoomRequestMembershipCommand
    Value : com.sap.netweaver.coll.roomui.api.uicommands.UIRequestMembershipCommand (Class)
    From this class, i didnt understand how the mail (where the action is occuring) sends to the Room Owner.
    Room Owner getting the member request notification through mail, but Owner have to get the notification in Collaboration My tasks instead of getting notification through mail.  how can i achieve this?
    Thanks and Regards,
    Senthil

  • Which API for Additional Assignment Details?

    Hi All
    I have two segments for the Additional Assignment Details DFF, first 'Mobile Provided' and second 'Food Allowance'. For this i want to pass 'yes' or 'no' for the employees.
    Which API I can use for this?
    Regards
    Rahman

    Use the 'hr_assignment_api.update_emp_asg' API and pass the values for the DFF in the attributes depending on the attributes you choose while registering a DFF...
    Ex:
    p_ass_attribute1 => 'Mobile Provided',
    p_ass_attribute2 => 'Food Allowance'
    Best Regards
    Arun Kumar S.R
    Apps Associates

Maybe you are looking for

  • How can I have My applet work with the browser ??

    I created an applet but it giving an error when I try to put in a web browser package applet; //This Java Program determines the amount on maturity. import javax.swing.*; import java.awt.*; import java.awt.event.*; import static java.lang.Math.*; imp

  • Confirmed quantity in sales orders

    Hi experts, This is MTS scenario. When changing delivery date in orders, the confirmed quantity is affected accordingly. Why? ATP check does not activate in orders. Suppose confirmed quantity in orders should be always equal to order quantity. ps. Th

  • Re: Need help with escalated complaint - seeking return / refund

    I have purchased laptop a month back. Within 2 days of purchase simply by opening the flap, its plastic cracks. I have been chasing laptop lenovo for 1 month now. No replacement is happening for laptop. I have sent so many reminders. No one is doing

  • Bridge hangs on batch rename

    I would like to run Bridge CS5 to import images from CF cards (among other reasons, to eliminate the need for PhotoMechanic for importing) in the following way: 1. acquire images from multiple CF cards from multiple cameras using the yyyymmdd sequenc

  • Business  scenario regarding HR

    Dear friends Coul any1 of u get a clear business scenario regarding HR... with a clear process flow for it guys.. cheers sakthi