{"id":4931,"date":"2014-05-24T23:47:45","date_gmt":"2014-05-24T18:17:45","guid":{"rendered":"http:\/\/erpschools.com\/?p=4931"},"modified":"2014-08-10T07:08:01","modified_gmt":"2014-08-10T07:08:01","slug":"oracle-workflow-ad-hoc-roles","status":"publish","type":"post","link":"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles","title":{"rendered":"Oracle workflow ad hoc roles"},"content":{"rendered":"<p>&#8212; Script to Create oracle workflow ad hoc roles<\/p>\n<p><code><br \/>\nDECLARE<br \/>\nlv_role varchar2(100) := 'ERPSCHOOLS_DEMO_ROLE';<br \/>\nlv_role_desc varchar2(100) := ' ERPSCHOOLS_DEMO_ROLE';<br \/>\nBEGIN<br \/>\nwf_directory.CreateAdHocRole(lv_role,<br \/>\nlv_role_desc,<br \/>\nNULL,<br \/>\nNULL,<br \/>\n'Role Demo for erpschool users',<br \/>\n'MAILHTML',<br \/>\n'NAME1 NAME2', --USER NAME SHOULD BE IN UPPER CASE<br \/>\nNULL,<br \/>\nNULL,<br \/>\n'ACTIVE',<br \/>\nNULL);<br \/>\ncommit;<br \/>\ndbms_output.put_line('Created Role' ||' '||lv_role);<br \/>\nEnd;<br \/>\n\/<br \/>\n<\/code><\/p>\n<p>&#8212; Script to Add user to already existing Adhoc Role<\/p>\n<p><code><br \/>\nDECLARE<br \/>\nv_role_name varchar2(100);<br \/>\nv_user_name varchar2(100);<br \/>\nBEGIN<br \/>\nv_role_name := 'ERPSCHOOLS_DEMO_ROLE';<br \/>\nv_user_name := 'NAME3'; --USER NAME SHOULD BE IN UPPER CASE<br \/>\nWF_DIRECTORY.AddUsersToAdHocRole(v_role_name, v_user_name); --USER NAMES SHOULD BE in CAPS<br \/>\ncommit;<br \/>\nEND;<br \/>\n\/<br \/>\n<\/code><\/p>\n<p>&#8212; Script to Remove user from existing Adhoc Role<\/p>\n<p><code><br \/>\nDECLARE<br \/>\nv_role_name varchar2(100);<br \/>\nv_user_name varchar2(100);<br \/>\nBEGIN<br \/>\nv_role_name := 'ERPSCHOOLS_DEMO_ROLE';<br \/>\nv_user_name := 'NAME3'; --USER NAME SHOULD BE IN UPPER CASE<br \/>\nWF_DIRECTORY.RemoveUsersFromAdHocRole(v_role_name, v_user_name); --USER NAMES in CAPS<br \/>\ncommit;<br \/>\nEND;<br \/>\n\/<br \/>\n<\/code><\/p>\n<p>&#8212; workflow ad hoc Role Tables<br \/>\n<code><br \/>\nselect * from WF_ROLES;<br \/>\nselect * from WF_USER_ROLES;<\/p>\n<p>select * from WF_LOCAL_ROLES;<\/p>\n<p>select * from WF_USER_ROLE_ASSIGNMENTS;<br \/>\n<\/code><\/p>\n<p>Incase of any issues with Roles try running the below concurrent programs.<\/p>\n<p>1. Workflow Directory Services user\/Role Validation<\/p>\n<p>2. Synchronize WF LOCAL tables<\/p>\n<p>&nbsp;<\/p>\n<p>We will be able to find the roles in &#8220;User Management&#8221; as shown in the below image.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4933\" src=\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/Roles_and_Role_Inheritance.png\" alt=\"workflow ad hoc roles\" width=\"1078\" height=\"455\" \/><\/p>\n<pre>Learn about Role management from \"User Management\" Responsibility here \r\n<a title=\"USER Management | Role Categories | Roles | Indirect Responsibilities\" href=\"http:\/\/erpschools.com\/articles\/sysadmin-and-aol\/user-management-role-categories-roles-indirect-responsibilities\" target=\"_blank\">http:\/\/erpschools.com\/articles\/sysadmin-and-aol\/user-management-role-categories-roles-indirect-responsibilities<\/a>\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&#8212; Script to Create oracle workflow ad hoc roles DECLARE lv_role varchar2(100) := &#8216;ERPSCHOOLS_DEMO_ROLE&#8217;; lv_role_desc varchar2(100) := &#8216; ERPSCHOOLS_DEMO_ROLE&#8217;; BEGIN wf_directory.CreateAdHocRole(lv_role, lv_role_desc, NULL, NULL, &#8216;Role Demo for erpschool users&#8217;, &#8216;MAILHTML&#8217;, &#8216;NAME1 NAME2&#8217;, &#8211;USER NAME SHOULD BE IN UPPER CASE NULL, NULL, &#8216;ACTIVE&#8217;, NULL); commit; dbms_output.put_line(&#8216;Created Role&#8217; ||&#8217; &#8216;||lv_role); End; \/ &#8212; Script to Add user [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4932,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[76],"tags":[257,258,259,260,534],"class_list":["post-4931","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-workflow-tools","tag-adhoc","tag-roles","tag-user-management","tag-wf_directory","tag-workflow"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>oracle workflow ad hoc roles<\/title>\n<meta name=\"description\" content=\"oracle workflow ad hoc roles using API. These roles can be created from user management responsibility too.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prudhvi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles#article\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles\"},\"author\":{\"name\":\"Prudhvi\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512\"},\"headline\":\"Oracle workflow ad hoc roles\",\"datePublished\":\"2014-05-24T18:17:45+00:00\",\"dateModified\":\"2014-08-10T07:08:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles\"},\"wordCount\":79,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\"},\"image\":{\"@id\":\"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles#primaryimage\"},\"thumbnailUrl\":\"\",\"keywords\":[\"adhoc\",\"roles\",\"user management\",\"WF_DIRECTORY\",\"workflow\"],\"articleSection\":[\"Workflow\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles\",\"url\":\"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles\",\"name\":\"oracle workflow ad hoc roles\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles#primaryimage\"},\"image\":{\"@id\":\"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles#primaryimage\"},\"thumbnailUrl\":\"\",\"datePublished\":\"2014-05-24T18:17:45+00:00\",\"dateModified\":\"2014-08-10T07:08:01+00:00\",\"description\":\"oracle workflow ad hoc roles using API. These roles can be created from user management responsibility too.\",\"breadcrumb\":{\"@id\":\"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles#primaryimage\",\"url\":\"\",\"contentUrl\":\"\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/erpschools.com\/erps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Oracle workflow ad hoc roles\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/erpschools.com\/erps\/#website\",\"url\":\"https:\/\/erpschools.com\/erps\/\",\"name\":\"erpSchools\",\"description\":\"Oracle Apps\",\"publisher\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/erpschools.com\/erps\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\",\"name\":\"erpSchools\",\"url\":\"https:\/\/erpschools.com\/erps\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png\",\"contentUrl\":\"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png\",\"width\":250,\"height\":60,\"caption\":\"erpSchools\"},\"image\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"http:\/\/facebook.com\/erpschools\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512\",\"name\":\"Prudhvi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/488cec3605845b95cb20e60c67a8f5c7e74b65a305525c8006315d524f120db9?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/488cec3605845b95cb20e60c67a8f5c7e74b65a305525c8006315d524f120db9?s=96&d=blank&r=g\",\"caption\":\"Prudhvi\"},\"sameAs\":[\"http:\/\/www.erpschools.com\"],\"url\":\"https:\/\/erpschools.com\/erps\/author\/prudhvi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"oracle workflow ad hoc roles","description":"oracle workflow ad hoc roles using API. These roles can be created from user management responsibility too.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles","twitter_misc":{"Written by":"Prudhvi","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles#article","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles"},"author":{"name":"Prudhvi","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512"},"headline":"Oracle workflow ad hoc roles","datePublished":"2014-05-24T18:17:45+00:00","dateModified":"2014-08-10T07:08:01+00:00","mainEntityOfPage":{"@id":"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles"},"wordCount":79,"commentCount":1,"publisher":{"@id":"https:\/\/erpschools.com\/erps\/#organization"},"image":{"@id":"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles#primaryimage"},"thumbnailUrl":"","keywords":["adhoc","roles","user management","WF_DIRECTORY","workflow"],"articleSection":["Workflow"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles#respond"]}]},{"@type":"WebPage","@id":"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles","url":"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles","name":"oracle workflow ad hoc roles","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/#website"},"primaryImageOfPage":{"@id":"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles#primaryimage"},"image":{"@id":"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles#primaryimage"},"thumbnailUrl":"","datePublished":"2014-05-24T18:17:45+00:00","dateModified":"2014-08-10T07:08:01+00:00","description":"oracle workflow ad hoc roles using API. These roles can be created from user management responsibility too.","breadcrumb":{"@id":"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/erpschools.com\/erps\/workflow-tools\/oracle-workflow-ad-hoc-roles#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/erpschools.com\/erps"},{"@type":"ListItem","position":2,"name":"Oracle workflow ad hoc roles"}]},{"@type":"WebSite","@id":"https:\/\/erpschools.com\/erps\/#website","url":"https:\/\/erpschools.com\/erps\/","name":"erpSchools","description":"Oracle Apps","publisher":{"@id":"https:\/\/erpschools.com\/erps\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/erpschools.com\/erps\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/erpschools.com\/erps\/#organization","name":"erpSchools","url":"https:\/\/erpschools.com\/erps\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/","url":"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png","contentUrl":"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png","width":250,"height":60,"caption":"erpSchools"},"image":{"@id":"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/facebook.com\/erpschools"]},{"@type":"Person","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512","name":"Prudhvi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/488cec3605845b95cb20e60c67a8f5c7e74b65a305525c8006315d524f120db9?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/488cec3605845b95cb20e60c67a8f5c7e74b65a305525c8006315d524f120db9?s=96&d=blank&r=g","caption":"Prudhvi"},"sameAs":["http:\/\/www.erpschools.com"],"url":"https:\/\/erpschools.com\/erps\/author\/prudhvi"}]}},"_links":{"self":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/4931","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/comments?post=4931"}],"version-history":[{"count":0,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/4931\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/media?parent=4931"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/categories?post=4931"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/tags?post=4931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}