{"id":87,"date":"2010-11-19T12:45:23","date_gmt":"2010-11-19T12:45:23","guid":{"rendered":"http:\/\/www.alemdopeoplebooks.com.br\/site\/?p=87"},"modified":"2013-06-28T17:15:17","modified_gmt":"2013-06-28T17:15:17","slug":"criando-requisicoes-de-processos-via-peoplecode","status":"publish","type":"post","link":"https:\/\/www.alemdopeoplebooks.com.br\/site\/criando-requisicoes-de-processos-via-peoplecode\/","title":{"rendered":"Requisi\u00e7\u00f5es de Processos via PeopleCode"},"content":{"rendered":"<p>Umas das necessidades encontradas no nosso dia-a-dia \u00e9 o disparo de processos em p\u00e1ginas no PeopleSoft atrav\u00e9s de eventos ou bot\u00f5es, para\u00a0criar uma nova requisi\u00e7\u00e3o a ser processada pelo Process Scheduller utilize a fun\u00e7\u00e3o CreateProcessRequest conforme exemplo abaixo:<\/p>\n<p><span style=\"color: #008000;\"><strong>Rem Declara a Vari\u00e1vel do tipo Process Request;<br \/>\n<\/strong><\/span><span style=\"color: #0000ff;\">Local ProcessRequest<\/span> <span style=\"color: #000000;\">&amp;RQST<\/span>;<\/p>\n<p><span style=\"color: #008000;\"><strong>Rem Cria a Requisi\u00e7\u00e3o;<br \/>\n<\/strong><\/span><span style=\"color: #000000;\">&amp;RQST =<\/span> <span style=\"color: #0000ff;\">CreateProcessRequest<\/span><span style=\"color: #000000;\">();<\/span><\/p>\n<p><span style=\"color: #008000;\"><strong>Rem Informa o RunControl<span style=\"color: #000000;\">;<\/span><br \/>\n<\/strong><\/span><span style=\"color: #000000;\">&amp;RQST.RunControlID =<\/span> <span style=\"color: #ff0000;\">&#8220;1&#8221;<\/span><span style=\"color: #000000;\">;<\/span><\/p>\n<p><span style=\"color: #008000;\"><strong>Rem Nome do Processo a Ser Executado<span style=\"color: #000000;\">;<\/span><br \/>\n<\/strong><\/span><span style=\"color: #000000;\">&amp;RQST.ProcessName =<\/span> <span style=\"color: #ff0000;\">&#8220;NOME_PROCESSO&#8221;<\/span><span style=\"color: #000000;\">;<\/span><\/p>\n<p><strong><span style=\"color: #008000;\">Rem Nome do Servidor de execu\u00e7\u00e3o (Normalmente PSNT ou PSUNX)<span style=\"color: #000000;\">;<br \/>\n<\/span><\/span><\/strong><span style=\"color: #000000;\">&amp;RQST.RunLocation =<\/span> <span style=\"color: #ff0000;\">&#8220;PSUNX&#8221;<\/span><span style=\"color: #000000;\">;<\/span><\/p>\n<p><strong><span style=\"color: #008000;\">Rem Tipo do Processo (Application Engine, Crystal, COBOL SQL, SQR Process, &#8230;)<span style=\"color: #000000;\">;<\/span><br \/>\n<\/span><\/strong><span style=\"color: #000000;\">&amp;RQST.ProcessType =<\/span> <span style=\"color: #ff0000;\">&#8220;Application Engine&#8221;<\/span><span style=\"color: #000000;\">;<\/span><\/p>\n<p><strong><span style=\"color: #008000;\">Rem Destino de Saida (Janela, Web, Arquivo, &#8230;)<span style=\"color: #000000;\">;<br \/>\n<\/span><\/span><\/strong><span style=\"color: #000000;\">&amp;RQST.OutDestType = <\/span><span style=\"color: #ff0000;\">&#8220;Window&#8221;<\/span><span style=\"color: #000000;\">;<\/span><\/p>\n<p><strong><span style=\"color: #008000;\">Rem Formato de Sa\u00edda (PDF, Excel, TXT, &#8230;)<span style=\"color: #000000;\">;<\/span><br \/>\n<\/span><\/strong><span style=\"color: #000000;\">&amp;RQST.OutDestFormat = <\/span><span style=\"color: #ff0000;\">&#8220;PDF&#8221;<\/span><span style=\"color: #000000;\">;<\/span><\/p>\n<p><strong><span style=\"color: #008000;\">Rem Destino da Sa\u00edda<span style=\"color: #000000;\">;<br \/>\n<\/span><\/span><\/strong><span style=\"color: #000000;\">&amp;RQST.OutDest = &#8221; &#8220;;<\/span><\/p>\n<p><strong><span style=\"color: #008000;\">Rem Envia a Requisi\u00e7\u00e3o<span style=\"color: #000000;\">;<\/span><br \/>\n<\/span><\/strong><span style=\"color: #000000;\">&amp;RQST.Schedule();<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Umas das necessidades encontradas no nosso dia-a-dia \u00e9 o disparo de processos em p\u00e1ginas no PeopleSoft atrav\u00e9s de eventos ou<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[13,112,113,110,27],"class_list":["post-87","post","type-post","status-publish","format-standard","hentry","category-peoplecode","tag-oracle-peoplesoft","tag-peoplecode","tag-peoplesoft","tag-peopletools","tag-process-scheduller"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.alemdopeoplebooks.com.br\/site\/wp-json\/wp\/v2\/posts\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.alemdopeoplebooks.com.br\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.alemdopeoplebooks.com.br\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.alemdopeoplebooks.com.br\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.alemdopeoplebooks.com.br\/site\/wp-json\/wp\/v2\/comments?post=87"}],"version-history":[{"count":13,"href":"https:\/\/www.alemdopeoplebooks.com.br\/site\/wp-json\/wp\/v2\/posts\/87\/revisions"}],"predecessor-version":[{"id":89,"href":"https:\/\/www.alemdopeoplebooks.com.br\/site\/wp-json\/wp\/v2\/posts\/87\/revisions\/89"}],"wp:attachment":[{"href":"https:\/\/www.alemdopeoplebooks.com.br\/site\/wp-json\/wp\/v2\/media?parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.alemdopeoplebooks.com.br\/site\/wp-json\/wp\/v2\/categories?post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.alemdopeoplebooks.com.br\/site\/wp-json\/wp\/v2\/tags?post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}