Purge ad hoc roles

Hi,
I know you can purge ad hoc roles by running WF_PURGE.adHocDirectory. Do you happen to know if there is a vanilla concurrent program for this? If not I guess I will have to create one that runs WF_PURGE.adHocDirectory correct? Any help would be appreciated! Thanks!

There is not a separate concurrent program, but when you run the normal purge program, it should purge expired adhoc roles as well.

Similar Messages

  • Ad hoc roles

    hi,
    how to create ad hoc roles in workflow.
    regards
    yesukannan

    There is not a separate concurrent program, but when you run the normal purge program, it should purge expired adhoc roles as well.

  • Remove Ad Hoc Role - Unexpired

    Dear All.
    I am stuck at removing unexpired ad hoc roles from wf directory. Althogh I knew wf_purge.directory() is able to remove all expired roles, my question is how to remove unexpired roles and also clear up wf_local directory. I tried wf_purge.AdHocDirectory() but with no luck. : (
    Please advise.
    Kun

    When we need to remove an ad-hoc role, we first set its expiration date to sysdate and then run WF_PURGE.adHocDirectory. Besides, the role cannot have any open notification assigned to it, or else it won't be removed.
    Regards,
    Daniel Viero.

  • ROLES IN WORKFLOW

    how to find the linkage between workflow, tasks with roles.
    In workflow, mostly all the tasks and workflow template are assigned to Roles. So, based on the roles assigned to users, The respective set of workflow are available to each users. so, how to find that each roles have set of workflows and tasks assigned to it?? is there any table or transactions for it. (for eg : like event linkage with tasks and workflows)

    Hi,
    One slight point that I'd make is to insert the word "can" - they can exist for a defined period of time, then they are removed from the tables using the purge program.
    Setting an expiration date is completely optional, so you can keep your ad-hoc roles for as long as you want to - I know a number of clients that choose never to purge their ad-hoc roles.
    As you say, though, if you need to notify someone who isn't in the directory service as standard, then you need an ad-hoc role.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Adhoc roles in workflow

    Can someone please tell me why we should create adhoc roles? I thought if the user has his fnduser name and an email address in fnd_user table, then he/she gets the notification.
    Thanks
    Jim

    Hi,
    One slight point that I'd make is to insert the word "can" - they can exist for a defined period of time, then they are removed from the tables using the purge program.
    Setting an expiration date is completely optional, so you can keep your ad-hoc roles for as long as you want to - I know a number of clients that choose never to purge their ad-hoc roles.
    As you say, though, if you need to notify someone who isn't in the directory service as standard, then you need an ad-hoc role.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Workflow Notifications not sending for AdHoc Role

    Hi,
    I am trying to send my workflow to multiple dynamic users, using the call createAdHocRole.
    Here is my code (I currently am using 2 user names for testing. This will be eventually be a variable) :
    +-- create role --+
    apps.wf_directory.createAdHocRole(v_role_name   -- role name
    +, v_role_name -- role display name+
    +, null -- language+
    +, null -- territory+
    +, null -- role description+
    +, null -- notification preference+
    +, 'JEHANSEN,DCDRIGGS' -- role users+
    +, null -- email addresses+
    +, null -- fax+
    +, 'ACTIVE' -- status+
    +, trunc(sysdate) + C_PURGE);+
    When I run the workflow, it runs with no errors, but I am not receiving any emails. I can view the workflow in the Status Monitor and I see the Notification being created and it shows my new role as the performer. Both usernames that I am using for the Role Users are setup as Users and Employees in the environment.
    I've queried the WF_USER_ROLES_ASSIGNMENTS table and I see my new role there, and both usernames are in the table. Both users are also in WF_USERS with email addresses, and also in WF_LOCAL_USER_ROLES. When I query WF_NOTIFICATIONS, I see the notification being created there, with a status of OPEN, receipient_role being my new role, mail_Status is blank, responder is blank, original_recipient is my new role, from_user is the supplier, and to_user is my role name .
    Can anyone see what I am missing? I thought if I create the role with a null email_address it then sends email to all users in that role? It probably doesn't matter, but these are being submitted upon the change of a PO in iSupplier (Oracle Apps).
    Thanks,
    Janel

    Hi,
    Once you have created the role, they can be referenced in your Workflow process in the same way as an other role. For example, create an ad-hoc role "MYTEST123" using the standard WF_DIRECTORY API. Then you can use this as the notification recipient in your process.
    If you are creating the roles dynamically within a process, then once the role has been created, set an item attribute (e.g. attribute NTF_RECIPIENT) to the name of the new adhoc role, and then have the notification recipient set to the value of the item attribute.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Role Notification only going to FIRST person in role

    Hey guys...
    We just created a new environment and migrated our entire application over to the new database. Now, when any notification is sent to a role, it is only going to the first person associated to that role, regardless of how many people are in that role. I did a query on WF_USER_ROLES and I see that there are indeed multiple people there. I verified that the role name is being properly populated in the attribute that I am calling. I also verified that the Expand Roles check box is activated on the notification message itself. The notification that is being received looks great, but its just not getting to all recipients. This was working fine in our development envirionment as of the same day we did the cutover.
    Has anyone run into this type of problem before and can anyone provide some insight on ideas to try? I am troubleshooting it all the way up to when the notification is kicked off and everything looks great. Any clues?????

    Yes...When I add a message and save, it correctly appears in the WF_MESSAGES table in the correct database, so I know that I am pointing to the right place.
    My problem doesnt seem to be with creating and populating the ad hoc role itself. I can query the role and see all of the people who are supposed to be there are indeed there. The problem is when the notification is processed, it is only recognizing the first person in the role and only sending notification to that person. For that first person, the notification is processing perfectly. It is just not sending the notification to the other people in the role. No errors are received.
    Any further suggestions would be greatly appreciated!!!!!!

  • Roles Creation

    Hi All,
    I am trying to retrieve the roles of A User programatically.
    I have used
    userInfoControl.getAvailableUserRoles(req)
    and also tried using the
    P13nResource resource = new HierarchyRoleResource(entAppName,webAppName,EntitlementConstants.P13N_ROLE_POLICY_POOL,"");
    Map m=Authorization.getRoles(resource,cxtHandler);
    I have entered some roles in teh Portal Admin consoles Visitor Entitlements and also in Admin Cosoles Security Realms.
    But I am not getting any roles at all when I run the weblogic workshop(9.2) except Anonymous Role.
    I really require this very urgently.I have been struggling on this but am not getting any output.
    I will really greatful if any one you explain me where I have gone wrong.
    Basically I just want to display all the roles that are in the console.
    Please give me an idea.
    Thanks.
    Edited by srilkrishna at 03/16/2007 8:15 AM

    The below is the API to create Adhoc role 'ABC'
    declare
    l_role_name varchar2(50):='ABC';
    l_role_display_name varchar2(50):='ABC';
    begin
    WF_DIRECTORY.CreateAdHocRole (
    role_name => l_role_name,
    role_display_name => l_role_display_name ,
    language => 'AMERICAN'     ,
    territory => 'AMERICA' ,
         email_address => '[email protected]',
         notification_preference => 'MAILHTML'
    commit;
    end;
    Please note that if you want the users under a role is to receive the email notification, set 'email_address' value to null and notification preference value
    to MAILHTML, MAILHTM2 ....etc
    The users should be set proper email address and notification preference value to MAILHTML, MAILHTM2 ....etc
    The following is the API to add users(TESTUSER1, TESTUSER2) to Ad-hoc role 'ABC'
    declare
    l_users varchar2(100):='TESTUSER1 TESTUSER2' ;
    begin
    WF_DIRECTORY.AddUsersToAdHocRole (
    role_name => 'ABC',
    role_users => l_users
    commit;
    end;
    The user names should be separated with space.

  • Adhoc role

    Hi, Is there an API to create ad-hoc roles?.
    Thanks
    Robert

    Yes - WF_DIRECTORY.CreateAdHocRole.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • WFNTF_ROLE : 3205: ' user1 , user2 ' is not a valid role or user name

    Hi
    I have a workflow, in which I pass the names of performers(people who should receive notification) at run time through an Item Attribute.
    I have created Ad-hoc role using wf_directory.CreateAdHocRole and assigned users to this role using wf_directory.AddUsersToAdHocRole.
    wf_directory.CreateAdHocRole( role_name => v_role_name
    ,role_display_name => v_role_display_name
    ,language => NULL
    ,territory => NULL
    ,role_description => 'ROLE DESC'
    ,notification_preference => 'MAILTEXT'
    ,role_users => v_Recipients -- Comma or space delimited list
    ,email_address => null
    ,fax => null
    ,status => 'ACTIVE'
    ,expiration_date => null
    ,parent_orig_system => null
    ,parent_orig_system_id => null
    ,owner_tag => null
    wf_directory.AddUsersToAdHocRole(role_name => v_role_name,
    role_users => v_Recipients);
    The v_Recipients is an item attribute ( Recipients) got using wf_engine.getitemattrtext. The performer for workflow is also specified as the item attribute Recipients.
    Now, my workflow runs fine when notification is being sent to one user.
    But, when I try to send it to 2 or more users (seperated by space or comma), I hit the error:-
    Failed Activity NOTIFICATION
    Activity Type Notice
    Error Name WFNTF_ROLE
    Error Message 3205: '<user1>,<user2>' is not a valid role or user name.
    Please note that I have also run "Synchronize WF LOCAL tables" Concurrent program. But, that also does not help.
    What am I missing?
    Thanks
    Ajay K. Garg

    Hi Matt
    Appreciate your patience.
    I am almost there, but not there yet. :(
    I made the following changes:-
    1. Created a new item attribute of type role called 'RECIPIENT_ROLE'.
    2. The performer for the notification is set as Item Attribute RECIPIENT_ROLE.
    3. In the code:-
    a) v_Recipients := wf_engine.getitemattrtext(itemtype => p_item_type,
    itemkey => p_item_key,
    aname => 'RECIPIENTS'
    b) wf_directory.CreateAdHocRole( role_name => v_role_name
    ,role_display_name => v_role_display_name
    ,language => NULL
    ,territory => NULL
    ,role_description => 'ROLE DESC'
    ,notification_preference => 'MAILTEXT'
    ,role_users => v_Recipients
    ,email_address => null
    ,fax => null
    ,status => 'ACTIVE'
    ,expiration_date => null
    ,parent_orig_system => null
    ,parent_orig_system_id => null
    ,owner_tag => null
    c) wf_engine.setitemattrtext(itemtype => p_item_type,
    itemkey => p_item_key,
    aname => 'RECIPIENT_ROLE',
    avalue => v_role_name
    Pl. note that v_role_name and v_role_display_name values are being set in the code before call to wf_directory.CreateAdHocRole.
    I am hitting the error:-
    Failed Activity NOTIFICATION
    Activity Type Notice
    Error Name WFENG_NOTIFICATION_PERFORMER
    Error Message 3120: Activity 'DISTLIST/188309' has no performer.
    Error Stack Wf_Engine_Util.Notification_Send(DISTLIST, 1965, 188309, DISTLIST:DIST_LIST_NOTIFCATION_MSG) Wf_Engine_Util.Notification(DISTLIST, 1965, 188309, RUN)
    At run time, I am passing the parameter RECIPIENTS as name of one apps user ( to whom I want to send notification), and not passing anything to RECIPIENT_ROLE.
    What mistake am I making?
    Thanks
    Ajay K. Garg

  • How to send notifications to multiple person with same role and with result

    How to send notifications to multiple people with resultout as approve/reject?
    We are looping the notification by attaching a cursor query to find the different emp nos to send for approval.
    I cannot associate a role because these emp nos are sub-set of a role which I have created and i am getting thru the cursor query.
    For FYI notification there is no problem, but for approval notification, I am not unable to send approval notifications to all the people.It stops at the first person in the loop.Pls suggest alternate way. Thanks in advance.

    Manju,
    I would use the cursor to populate the API for creating an ad-hoc role within the workflow process as a function. Then set your notification performer as the ad-hoc role.
    Here is an example function:
    create or replace procedure sample_emp_fill(itemtype in varchar2,
    itemkey in varchar2,
    actid in number,
    funcmode in varchar2,
    resultout in out varchar2) as
    cursor get_name is
    select ename from scott.emp where mgr = 7839 and empno != 7566;
    role_name varchar2(50);
    names varchar2(500);
    begin
    if (funcmode = 'RUN') then
    role_name := 'ad_hoc_role_'|| itemkey;
    for row in get_name loop
    names := names || row.ename || ' ';
    end loop;
    WF_DIRECTORY.CreateAdHocRole( role_name=>role_name,
    role_display_name=>role_name,
    language=>'AMERICAN',
    territory=>'AMERICA',
    role_description=>role_name,
    notification_preference=>'QUERY',
    role_users=>names,
    email_address=>' ',
    fax=>'',
    status=>'ACTIVE',
    expiration_date=>'');
    resultout := wf_engine.eng_completed||':'||wf_engine.eng_null;
    return;
    end if;
    end;

  • Notification with exapnd role check box - get feedback from all users

    Hi ,
    I have to implement the following Case :-
    Send a Notification to an AD hoc Role consisting of many users , wait for a Yes/No Result from each User and an additiona comment ,
    register the yes / no reply + coment  of each individual user on a follow up table .
    After all users have replied , Proceed to next activity where I'll check the results on the Follow up table .
    I Think this could be implemented using the Expand Role check box on the Notifification but I do not know how to exactly implemet it .
    Thanks
    Rafi Farchi

    Regarding long mp3 bookmarks. (my experience with 9780).
    I had the requirement that when playing long MP3s (audiobook/podcast) I don't loose my place within the MP3. I am able to update the list of MP3s without loosing my place in the currently playing one. I don't loose my place when connecting the BB to a PC with the USB cable and using USB synch to copy files to the SDCard.
    All of these are accomplished by playing MP3s via File Manager/Play Folder feature.
    If you use play lists or other methods directly through the BB media player, you will loose your place as soon as you switch off the BB, escape the player, or connect the USB cable.
    If instead you use the file browser to go to the folder with the MP3s you wish to play (I have all my podcasts in one folder that I update manually) and select "Play Folder" from the context menu, the media player will open.
    If you escape the media player that is opened as per above, the last point in the played MP3 is remembered. This even survives any synchronization I do to the folder via USB or a soft power reset (ALT CAPS DEL). It remembers the spot in multiple MP3s to boot.
    This is a great handy feature. I'm glad it works with the 9780/OS6.

  • Help needed in Workflow Email Notification

    Hi,
    I am new to workflow. I am creating a notification process in Oracle Apps 11i to send an email notification to users who registered for some training. Now how can I send an email notification to each user as the list of users can be huge i.e. > 200 . Do I need to loop through and send a notification to each user one by one or is there a way to achieve this by just sending one notification to all the users and if I send one notification to all the users how can I make sure when a user gets an email he/she don't see other users email addresses.
    Any help is appreciated.
    Thanks

    Thanks can you please tell me what will be the datatype of l_user_list.
    It's a VARCHAR2 list of users, separated by a space or comma.
    Now before creating AdHocUser do I need to check in WF_USERS table if the user with the same email address is already there then don't create that user and just add it to a l_user_list.
    Yes - you will need to have a user record first before you can add them to the role.
    If adding user to l_user_list how to make sure I am adding the right user to send notification to as there may be some other user with same name but different email that I don't want to send notification to. I only want to create a AdHocUser only if name and email address both are not already in the WF_USERS. e.g. lets say if there is a user John Doe with email [email protected] who previously attended some training. Now comes another user John Doe with email id [email protected] and is attending the current training. How do I make sure notification only goes [email protected] as he registered for this training not to [email protected] who previously attended some other training.
    How do you identify which user has registered for training - you could check email address, or use the Apps user name which is unique. Whatever you are using to determine who is registering, you will need to determine what the link is back to the user record in WF_USERS.
    Now as this procedure runs every 24 hrs then everytime it runs do I need to create a new AdHocRole and what should I name it as it can't be hardcoded. As I only want to send an email to the users registered in the current training how do I make sure notification does not go to some other user with the same name with different email who is not registered in the current training.
    If the job runs once every 24 hours, then you could use the same role each time, and clear out the users in the role before repopulating them. If not, when you create the new role (which is what I would do) every time the job runs, then store the name of the role in an item attribute, and then reference that in the notification so that the new role is notified each time. Don't forget to set an expiration date for your ad-hoc roles, though, and run a purge job periodically to get rid of the old roles that are no longer required.
    Also wf_directory.CreateAdHocUser and create a user list should be in a loop and create an adhoc role and notification will be outside the loop.
    What are drawbacks of if in a loop I just create a AdHocUser and then send notification one by one to each user rather than creating a role and in the end send one notification. Basically if there are 200 hundred users loop runs 200 times and each time notification goes.
    If you notify each individual user, then you will have a large number of notifications that are being sent - extra records in the WF_NOTIFICATIONS table, extra records on the queue which the mailer uses etc. etc. If you notify a role, then there is only one record to process.
    If it were me, I would build an ad-hoc role each time, and populate that role with the correct users, and notify the role. I would NOT be sending 200 separate notifications when one would suffice.
    HTH,
    Matt

  • Need to send some notifications by mail (not all notif)

    Hi!
    We run workflow embeded into EBS (11.5.10.2 4RUP). We have a custom workflow that uses Role (WF_LOCAL_ROLES) connected to employee register (ORIG_SYSTEM = 'PER' and orig_system_id = (person_id in per_all_people_f). we get the Role in the db package that starts the workflow and set it to the attribute Recipient.
    I assume there are standard notifications (WF) that are sent to these roles. the roles have a notification_preference = 'SUMMARY' because the administrators/user do not want the system to send many e-mails but a summary e-mail and the user should check theis notif in Applications.
    But... an here is the but....our specifc custom workflow creates a notification that we would like to send as an e-mail. what can we do?
    The mails should be sent specific to users/employees induvidually. I mean the e-mail is specicif constructed per employee, so it is not a good idea to create a Role that connect many users or something. Can we create new roles specific per user/employee with notification_preference = 'MAILHTML' (or other mail pref)??
    Would this work without intefiering with the other role. I need help to understand this functionality and how to get this to work. Thank you in advance!
    Regards,
    Patricia

    Hi,
    The only way that I can think of to do this would be to create an ad-hoc user at runtime which has an email preference set to MAILHTML (or any other preference that sends an email), and an email address set to the email address of the recipient. This would then send an email to the employee, and when the emails have been sent then you can purge the ad hoc directory so that you don't end up with lots of obsolete roles in the database.
    The downside of this is that there is no way for anyone to see the notification from within eBS. Because it isn't sent to the employee, it would not appear in their worklist, which may or may not be acceptable to the business. One possible workaround would be to create another ad-hoc role, and asssign both the employee user and the ad-hoc user to the role, and expand the role on the notification so that multiple copies are sent (one to each member of the role). If the notification requires a response, then you need to write a post notification function to deal with the possibility of multiple responses, which makes the solution more complex still.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://thoughts.workflowfaq.com ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • How to get the approver from a wf notification in case there are multiple approvers ?

    I created an ad hoc role to store mutliple approvers for a wf notification.
    My question is how to get the user_name of the first responder so I can stamp the record I need to update with it.
    I''m assuming it would be using wf_notifications.GetAttrText but I don't know what that attribute name would be.
    Please help.

    Hello,
    I think you can try with script to capture the duplicate booking on presave action. Just try to give a shot to this solution:
    http://aleemsheikh.wordpress.com/2011/08/08/warn-users-of-double-booking-in-sharepoint-calendar-in-real-time/
    http://social.msdn.microsoft.com/Forums/en-US/9a10a110-a18b-4b5b-a15f-b563322ca0a6/how-to-prevent-duplicate-calendar-list-items-sharepoint-2010
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

Maybe you are looking for

  • How can I tell if an arb is currently generating a waveform? (LabView 8.5)

    I have a VI which configures the load impedance of a 5421 arb card by changing the value of the property node "Load Impedance". This only works if the arb is not generating at the time of the call to the VI. I wish to be able to call the function whe

  • Importing Address Book from Microsoft Outlook Express 5 for Mac (v5.02)

    I just made the leap to a Mac Pro 8 Core from a 350MHz G3. I was running 10.3.9 on the G3, but I was still using the old Outlook mail program because I was comfortable with it. Now I can't figure out how to import the address book into Mail 3.3. I kn

  • HT1338 how to clean my mac?

    I would like to know how can l clean my macbook because it seems to be to slow? ls there an app to do it?

  • Edited acrobat ix pdf not readable in reader x

    I recently discovered that edits to PDF documents edited in Acrobat IX are not readable in Reader X and some other PDF readers. This is BAD.  Is there a setting that can fix this? The same document is readable in Google Chrome when I email it but whe

  • Cannot convert documents

    Cannot convert documents error: Multiple workflows cannot be active at the same time. Click OK to see the progress of the previously started workflow. Nothing happens when I hit ok. I have closed all files. I have removed reader and reinstalled it, I