Showing posts with label PCS. Show all posts
Showing posts with label PCS. Show all posts

Sunday, 12 November 2017

Configuring Oracle PCS with Oracle IDCS

This post covers the steps required to configure Oracle PCS (Process Cloud Service) as and application (for SSO) in IDCS (Identity Cloud Service). So let us start,


Configuration in IDCS
  • Login to the IDCS console
  • Go to Applications tab and click on Add
  • Select App Catalog in the pop up
  • Search for Oracle  and select Oracle Cloud.
  • Enter basic details and select Oracle Process Cloud Service in the App links section
  • Enter identity domain, domain name and SSO domain name
    • Identity Domain: your identity domain you can find it in my services dashboard
    • Domain Name: You can find it from your cloud url Eg: XXX.oraclecloud.com
    • SSO Domain name: Same as domain name
  • SSO Configuration
    • Entity ID: “entityID” attribute value from the PCS metadata file
    • Signing Certificate: the Signing certificate downloaded from PCS SSO configuration
  • Download the Signing Certificate and Identity Provider Metadata from this page (which will be used in PCS sso configuration page)
  • Save the configuration and Activate it.
Configuration in PCS


  • Login to PCS cloud services dashboard
  • Click on Users on the top right side
  • Click on SSO Configuration tab and click on Configure SSO button
  • Select import identity provider metadata
  • Choose File and upload the identity provider metadata file (such as idcs_metadata.xml, the one downloaded in IDCS page).
  • Select HTTP POST as SSO protocol.
  • Select User’s Email Address as User Identifier.
  • Select the Name ID as the contained in field
  •  Save the details and you are ready to test it and enable the SSO

Wednesday, 6 January 2016

Invoking a REST service in Oracle BPM/PCS webform

One of the common requirement in oracle BPM/PCS webforms is to populate the dropdowns by calling a REST service. Below java script code shows populating the dropdown values by calling the REST service.

This code assumes the rest service returns list of items which is name/value pair.
/*member count, items*/
/*member id */
var x;
if (form.load)
{

   Status.value = 'No errors';
   try {
      var uri = "REST_SERVICE_URL";
      eval('x=' + http.get(uri));

      }  catch (e) {
        Status.value = 'got exception' + e ;
   }
   var lovArray = [];
   for (var i=0; i< x.items.length; i++)
   {
      lovArray[i]=x.items[i].name;

   }

   DepartmentsList.options = lovArray;

}

This code assumes the rest service returns just list of values which needs to be displayed in dropdown

/* member items, id */
if(DepartmentsList.value.length>0)
{
  
  try {

      var uri = 'REST_SERVICE_URL;
      eval('x=' + http.get(uri));

      }  catch (e) {
        Status.value =  uri + e;
   }
   approverList.options =x;

}