Assiging task to specific user in a role

Hi,
I want to assign a task to a specific user in a specific role. However, it seems
that using wlpi I can assign tasks either to a user or to a role !!!
Is there a way where I can assign a task to user in a role e.g. assign task1 to
user John in a Manager role....as user may be having multiple roles in the system..
Regards,
Vinkal

Hi Vinkal,
Could you pls tell me how to do this in wli 8.1 sp2 if you have any idea?
Regards
Sai
"Vinkal Kumar" <[email protected]> wrote:
>
Hi,
I want to assign a task to a specific user in a specific role. However,
it seems
that using wlpi I can assign tasks either to a user or to a role !!!
Is there a way where I can assign a task to user in a role e.g. assign
task1 to
user John in a Manager role....as user may be having multiple roles in
the system..
Regards,
Vinkal

Similar Messages

  • Getting tasks for all users in a role

    Hi,
    We need to get all users in a Role, and out of those, find out which one has the least tasks in their UWL using a WebService. Saw some example codes and here's my attempt at it. Doesn't quite work, I'm getting the Logged in users context or session doesn't exist Exception. Any help on this will be GREATLY appreciated.
    public class LeastTasksBean implements LeastTasksLocal {
         public String getUserLeastTasks( String sRole )
              try{
                   Map<String, String> users = new HashMap<String, String>();
                   Map<String, String> tasks = new HashMap<String, String>();
                   final int sessionIdleTimeout = 60;
                   String Users[] = UMFactory.getRoleFactory().getUsersOfRole( sRole, true );
                   if( Users != null ){
                        for( int i = 0; i < Users.length; i ++ ){
                             UWLContext  uwlContext      = new UWLContext();
                             IUWLService uwlService      = findService();
                             uwlContext.setAllowBackEndConnections( true );
                             IUser uwlContextUser        = UMFactory.getUserFactory().getUser( Users[0] );
                             uwlContext.setUser            ( uwlContextUser );
                             Locale loc                  = new Locale( "ES" );
                             uwlContext.setLocale          ( loc );
                             HttpServletRequest request  = getHttpRequest();
                             uwlContext.setOriginRequest   ( request );
                             IUWLSession session         = uwlService.beginSession( uwlContext, sessionIdleTimeout );
                             uwlContext.setSession         ( session );
                             IUWLItemManager itemManager = uwlService.getItemManager( uwlContext );
                             QueryResult result          = itemManager.getItems( uwlContext, null, null );
                             users.put( String.valueOf( i ), uwlContext.getUserName() );
                             tasks.put( String.valueOf( i ), String.valueOf( result.getItems().size() ) );
                             uwlService.endSession( uwlContext );
                        int userTasks = 0;
                        int leastTasks = Integer.valueOf( tasks.get( 0 ) );
                        int userKey = 0;
                        for( int i = 0; i < Users.length; i ++ ){
                             userTasks = Integer.valueOf( tasks.get( Integer.toString( i ) ) );
                             if( userTasks < leastTasks ){
                                  leastTasks = userTasks;
                                  userKey = i;
                        return users.get( Integer.toString( userKey ) );
                   else{
                        return "No users exist for this role";
              //Exception Handling
         private IUWLService findService() throws NamingException
              Properties properties = new Properties();
              properties.put( InitialContext.INITIAL_CONTEXT_FACTORY, "com.sapportals.portal.prt.registry.PortalRegistryFactory" ); 
              InitialContext ctx = new InitialContext( propiedades ); 
              IUWLService uwlService = ( IUWLService ) ctx.lookup( IUWLService.ALIAS_KEY );
              return uwlService;
         private HttpServletRequest getHttpRequest() throws Exception
              Properties properties = new Properties();
              properties.put( "domain", "true" );
              ApplicationWebServiceContext wsContext =
                   (ApplicationWebServiceContext) new InitialContext( propiedades ).lookup( "/wsContext/" + ApplicationWebServiceContext.APPLICATION_WSCONTEXT );
              HttpServletRequest request = wsContext.getHttpServletRequest();
              return request; 

    Hi David,
    I have a similar requirement on our project. I need to get a count of pending workitems for all user but I'm getting similar message when I try to access UWL context of any other user.
    Did you find any solution for this? Is it possible to get the workitems for all users using webservice or wendynpro?
    I would appreciate if you can provide some inputs on this.
    Thank you in advance.
    Regards,
    Seema Rane

  • Assign task to specific user

    Hi,
    I was wondering how do I assign a task to users by following these criteria:
    - Users belonging to a specific group
    - Specific user

    Hi
    To assign to a particular participant, you can do the following:
    part = participant.find(name :participantName)
         participant.next = part

  • WF to HR - One task to Specific User.

    I am developing some workflows for the HR module, which was set up a table that selects those responsible for tasks RH_CENTRAL, RH_LOCAL and BP
    Whereas to send a WorkFlow for the portal it appears in the Business Workplace 2 tasks equal responsibility, one that he takes the action and another just to view.
    I'm putting the task as a Task General on TASK's, because those responsible need to be selecting this table.
    I can not enter a User, position, unit or function sets in the task, because in this company, those responsible are moved frequently
    What do I need: To make only one task is presented only to the official who was selected in the table, without which other people receive the same task.
    Is there any way I can do that?
    Thanks

    Hi,
    You should assign only 1 agent to the task. Please chek workflow container -> task container binding in your workflow template.
    Regards,
    Masa

  • Getting UWL task count for all users in a role.

    Hi.
    I recently posted a question regarding a very similar issue, but I haven't got any response yet. I think my question might have been somewhat poorly phrased, so I will try to do better at explaining what we need.
    We have a number of processes, most of which need to be dynamically assigned to a user when created. The way we want to assign those tasks is by executing a WebService which would receive a role name and get all the users for that role. Then, using the UWL API, it would check how many tasks each of the users have in their UWL, and return the UserID for whoever has the least tasks. I haven't been able to get this to work. I keep getting Logged in users context or session doesn't exist Exception.
    Please, any help on this will be greatly appreciated.
    Currently working with SAP NWDS 7.1 SP05 PAT0005

    Hi,
    Thank you for your response, however, that's not what I need.
    For you and anyone esle who might find this extra info useful...
    I know how to get a user's role(s), and how to get the users in a role.
    I also know how to assign a task to a specific user dynamically.
    Using the UWL API, I know how to get the tasks (or items) in a user's UWL from a WD application, I need to do that from a WebService and using pretty much the same code, with the necessary adjustments, I can't get it to work.
    Furthermore, I'm able to get the UWL tasks for ONE user, that user being the one I log into the application with. For example, if I write code to get the tasks for user testUser1, I need to log in with testUser1 to get it to work, if I log in with any different user or make it a non-authenticated application, it won't work.
    Again, help on this is much needed and will be appreciated.

  • Assign Task to a specific user based on the value of DDL from the form

    Hello,
    Can any one please advise me on how to assign a task to a specific user based on the value of the drop down list from the form. E.g. user fills the form and before they submit the form they have to select one of the name from the drop down list so the form can go to that person for approval.
    Thanks in advance,
    Han

    I got it works now by using the xpath expression (in workbench) to assign to the selected user from the DDL in the form.

  • Assigning Users to a Role in a BPM Task

    Hi,
    Is it necessary to have User Admin access to add Users to a Role in a BPM Task ?
    Is there any work around to it ?
    Regards,
    Utsav

    Hi Utsav,
    Yes you require User Admin role to search and add UME Users.
    A workaround can be using the 'Use an Expression' :
    User: getPrincipalByUniqueName(string uniqeName,"user")
    Role: getPrincipalByUniqueName(string uniqeName,"role")
    Regards,
    Unni

  • Extract the userID that set a role for a specific user

    Hi all @SAP Forums,
    I'm going to write a simple report to extract some information about users and role assignments in the system I'm working on.
    The requirements is quite simple; for every user in the USR02 table, I have to extract some info about the roles the user has.
    In order to do so, it's quite straightforward to find roles for a particular user looking into the AGR_USERS table, but ... I'd like to know if there's a way to find the user who set the role assignment for that specific user; the problem is that I cannot find that information in any AGR* tables, so I start to think it's not a stored information I can retrieve in any way.
    Any hints/suggests you can give me? Thanks in advance.

    Hello muthu,
    useful link to refer to when I'll need to extract a full username (first and surname) for a userId. But the question, forgive me if I've been not-so clear, was different.
    A (key) user, say A123456, sets a role for another user (A00000) in SRM... let's suppose now A00000 becomes a buyer. I'd like to know if there's a way, starting from the user A00000, to understand WHO had given him his role (in this case, A123456) and WHEN... I can see the CHANGE_DAT field in AGR_USERS about the "when"... where can I (if I can, obviously) find WHO set the role for A00000 ?
    Thanks again, sorry if I've been not that clear in explaining

  • Creating a domain with the access to specific user

    Hi,
    I tried creating a custom domain(soaAdmin) in BPEL with access to user. I could create new user ,new customdoaminadmin role and attach this role to new user.
    Problem is when we try to attach this role or user to new custom domain using JAZN tool command its not working.Following is the full description regarding this.
    Configuring Roles and Users for a File-Based Security Provider(from em help)
    If you are using a file-based security provider, you configure users and roles as follows:
    Navigate to the OC4J Home Page for the OC4J Instance.
    Click Administration to display the Administration page.
    Click the Go to Task icon in the Security Providers row of the Administration Task table.
    Enterprise Manager displays the Security Providers page.
    To configure roles and users for the default application, click Instance Level Security.
    OR
    To configure roles and users for a specific application, scroll to the Application Level Security section of the page and click the edit icon for a selected application that uses a file-based security provider.
    Enterprise Manager displays the Security Provider page.
    Click Realms to display the Realms page.
    The Realms page includes a table containing the defined realms for the selected security provider. The table contains a column that shows the number of users and roles defined for each realm.
    To configure the users for a realm, click the number in the Users column.
    OR
    To configure the roles for a realm, click the number in the Roles column.
    now if we see in setup of em we are able to see new user(soaAdmin) assigned to roles(BPMsoaAdminDomainAdmin,BPMCustomDomainAdmin).means we have user and role in realm.
    if we run the following jazn tool command to attach this user to custom domain(soaAdmin) it is not able recognize shell.
    java -Xbootclasspath/a:/home/oc4j/bpel/lib/orabpel-boot.jar -jar jazn.jar
    -shell -grantperm jazn.com -user soaAdmin com.collaxa.security.DomainPermission
    soaAdmin all
    or
    java -Xbootclasspath/a:/home/oc4j/bpel/lib/orabpel-boot.jar -jar jazn.jar
    -shell -grantperm jazn.com -role BPMsoaAdminDomainAdmin
    com.collaxa.security.DomainPermission soaAdmin all
    so we changed that command as follows and run in the j2ee home it is displaying that permission class is not found.
    java -classpath F:\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-boot.jar -jar jazn.jar -grantperm jazn.com -user soaAdmin com.collaxa.security.DomainPermission soaAdmin all
    as result of this we are not able to login to custom domain BPEL console with new user (attched error screen when we try to login).
    sources of information:
    http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28982/security.htm#sthref186
    How to create custom OID user/group to access new custom BPEL domain? from meta link
    Oracle Enterprise Manager Online Help .
    Could you please help me in this.
    Regards,
    Dhanumjay

    Hi,
    have you read
    Re: User access to only one domain

  • OIM - Email notification to a specific user based on a dynamic rule

    Hello, After creation of account in a particular target resource I need to send an email to a specific user based on the location of the user (e.g area admin).
    In the notification tab of process tasks, I see only "Assignee", "Requestor", "User", "User Manager"? How can I achive the above specified requirement?
    Before posting this question, I tried to search the forum for any previous posts related to this. But I couldn't find any. May be I was not searching with right key words.
    Any help is appreciated. Thanks in advance.

    You'll need to custom code an adapter to send the email, then you can send to any user you want. Create a new task and trigger it off the completion response code. You can use the following apis:
    tcEmailNotificationUtil sendMail = new tcEmailNotificationUtil(ioDatabase);
    sendMail.setBody("Type your body here or use a string variable");
    sendMail.setSubject("Type your subject here or use a string variable");
    sendMail.setFromAddress("[email protected]");
    sendMail.sendEmail("[email protected]");
    Just populate the above pieces with the information needed.
    -Kevin

  • How to block the status mail for an inbound Idoc to a specific user

    Hi,
    I have to stop sending the error status mail to a specific user depenidng on Partner Type. This will trigger when an inbound Idoc contains status error(message type INVOIC &ORDRSP).This user needs other mails which are getting triggered with the same Idoc for the same partner. Basically, the requirement is to block only the status mail for that user. The statndard task for this is TS70008125 and it uses the agent determination rule 30000001 (Idoc Administrator).in WE46, this task is assigned to process code EDIR. I have copied the task to a custom task and changed the agent determination rule. I would like to know how will I configure this task so that this custom task will trigger for the status error, without altering other workflows for the same message type & the partner type. Or is there any other way to block the mail?
    Thanks,
    Santosh

    Hi,
    I have done the required coding to exclude the specific agent from the rule,copied the task and its ready. My question is how do I map this custom task to a particular partner type, for the message type INVOIC in WE20? (The message type used for the inbound Idoc is INVOIC). I checked the Partner profile in WE20. Most of the process code is using function module as the processing type.
    Thanks,
    Santosh

  • Why Case-Sensitive while assigning tasks to other users??

    I am trying to assign a task to another user through AdminUI.
    While searching for users, I am supposed to provide case-sensitive search text to find actual users.
    In previous installations it is not a problem. i.e only in production it happens.
    Is there any place to modify this settings?
    Please see the attached screenshot of the page.
    Thanks,
    Nith

    Raghu,
    thanks for the reply, you are right as per the audit .But suppose if it is for 200 users ,creating 200 CUP requests will be impractical right.
    there should be some solution for this , because there will be many situations practically where we have to assign roles to N number of users.
    Is this possible in GRC 10 ? any idea ?
    Regards,
    Jaags

  • Report to see user type and roles assigned to users in EP?

    Hi,
    a) Is there any reporting mechanism in EP? Any specific report which throws up user types and roles assigned to the users? There is an option of 'Export' in the user management role but unfortunately it does not give information on User Type.
    b) If  the group is assigned a role, How can we see ( in any report) the roles assigned to a group? In the 'export' option of the 'User Management' this information does not come.

    By default Portal UME comes along with the installation of portal.
    Sometimes we may integrate external users using LDAP. At that time users come from ABAP stack or some active directories.  But you can also create users in the portal UME.  The purpose of using LDAP is to maintain the users centrally rather than creating again in portal.
    You can check them in user administration->identity management and search for the users.
    THere you can see some users will be from UME and some from LDAP.
    User Admin tool is nothing but User Administration only.
    Raghu

  • Performance tab not working in Enterprise Manager for user with dba role

    Database: 11g2
    New to Oracle. Don't want share SYS user account among dbas. Tried to create user with dba role to perform all tasks.
    1. Removed DBMS_JOB, DBMS_LOB, UTL_FILE, UTL_HTTP, UTL_SMTP, and UTL_TCP from PUBLIC
    2. Created user dbauser1 with dba role
    3. Log in as dbauser1 in Enterprise Manager
    After click Performance tab, it just went straight to "Database Login" page. No error message.
    Any suggestions or advice will be appreciated.
    piaoma

    Hi Gourav,
    This is the wsdl url:
    http://hostname:8000/sap/bc/srt/wsdl/bndg_E04711310A0E55F1A0E3005056B03D6F/wsdl11/allinone/ws_policy/document?sap-client=450
    Kind Regards,
    Richard

  • Video Phone only works when specific user initiates connection

    Hi,
    I have an application based on the Cirrus Video phone demo as presented here:
    http://labs.adobe.com/technologies/cirrus/samples/
    In general, this works fine, but for one specific user with whom I test, I have the following issue:
    When I initate the call, we are paired together by Cirrus, but his video/audio does not transmit to me. He can however see and hear me just fine.
    When he initaites the call, everything works fine.
    I'm concerned that this is an issue re. NAT/Firewall setup on standard home broadband connections, in that UDP is allowed through his firewall when the firewall sees that the connection has been initiated by him.
    I'm a web developer, rather than a Flash developer, and I'm just looking for a few leads so that I can investigate this.
    G

    My application works as follows:
    User1 (me) askes User2 (friend) if they would like to speak via AJAX text chat system
    When User2 confirms that they would like to do this:
    User1 browser loads Flash app
    Flash app connects and obtains session key from cirrus
    Flash app writes that session key to database
    User2 browser loads Flash app
    Flash app checks DB to see if session key exists
    If not, it waits, and check again in 10 secs
    When session key is finally found, Flash app connects to cirrus
    Cirrus now exchanges network data between clients, and P2P connection is established
    Call is placed from User2 to User1
    User1 answers
    Video and audio transmission starts from User1, and is received by User2
    No Video and audio transmission is received by User1 from User2 (text chat over Cirrus is however possible)
    All of this works in the majority of cases with other users, and when the roles are reversed, it also works.
    The only time it doesn't work, it when I try to call my friend.
    The behaviour described above can be seen in both my app, and the sample provided by Adobe at:
    http://labs.adobe.com/technologies/cirrus/samples/
    I hear what you are saying about RTMFP, but it really doesn't look like a coding problem, unless that problem also exists in the Adobe demo.

Maybe you are looking for

  • How do I open PC iCloud apps in a different browser?

    On my computer, if I go to Start > All Programs > iCloud, I have all of the iCloud apps listed there (Mail, Contacts, Calendars, etc.) and I didn't even know these existed until I started randomly browsing through my files.  When I click on one, it t

  • How do I use lightroom with a Canon EOS 7d mark ii

    I use Lightroom for everything and love it.  It is fantastic with all of my Canon cameras.   However, I just bought the new Canon 7D mark ii and Lightroom doesn't read the raw files.   I don't see Adobe having any updates for the new Raw file.   In t

  • Bug #81169 - Div bkgrnd color (of 1st div w/ content) not honored if cfdocument/pdf written to disk

    Bug for: Div background color (of 1st div w/ content) is not honored when cfdocument/pdf is written directly to disk. ================== Steps to reproduce ================== Run the following code with (and without) the cfdocument 'name' attribute. 

  • Srvctl start listener -n rac1 gives CRS-1028 and CRS-0223

    Boot up 2 linux 10.2.0.1.0 RAC nodes. everything starts except listeners srvctl start listener -n rac1 or srvctl start listener -n rac2 gives CRS-1028 CRS-0223 However, if you start listeners manually, using lsnrctl start listener_rac1 or lsnrctl sta

  • System Pref. is accidentally deleted

    I accidentally draged my system preferances folder to the trash and later emptied the trash bin. I now have the system pref. icon in my dock with a question mark overlapping it and it will not open. Is there any way to restore the system pref. folder