Skip to Content
Product Information
Author's profile photo Sai Harish Balantrapu

SAP Cloud Platform Enterprise Messaging as an eventbus for SuccessFactors

SuccessFactors allows you to simplify HR workflows with the capabilities of intelligent services. In this blog I would like to talk about integration of SuccessFactors intelligent services with SAP Cloud Platform Enterprise Messaging which would allow real time processing of events generated from HR workflows in a SuccessFactors system.

In the blog SAP Cloud Platform Enterprise Messaging – Making S/4HANA Event Notification Easy we have seen how you could integrate events generated from an S/4HANA system. Now let us continue from there and see how events generated from a SuccessFactors system could be integrated.

Assumption

You have followed the blog SAP Cloud Platform Enterprise Messaging – Making S/4HANA Event Notification Easy until Step 4 and created an Enterprise Messaging instance.

Step 5:

Logon to SuccessFactors Home Page and search for Integration and select Integration Center.

Step 6:

Click on the tile My Integrations.

Step 7:

Click Create Button to create a new integration between SuccessFactors and Enterprise Messaging.

 

Step 8:

Select More Integration Types.

 

Step 9:

Select the following
Trigger Type  Intelligent Services
Destination Type  REST
Source Type  SuccessFactors
Format  JSON

Click Create Button

 

Step 10:

A list of all the available Intelligent Service Events are displayed. But in this scenario let us look at “Emplyee Hire”.

 

Step 11:

  • The Employee Hire event information is displayed in the right-side panel and you could see the fields including a data preview.
  • Click Select Button.

Step 12:

Enter a Name and Description to the Integration and click Next

 

Step 13:

Click the + button and select Insert Sibling Element.

Step 14:

Select the newly added Element and enter the following.
Label: context

Step 15:

Select the Element “Context” and click the + button and select Add Child Element.

Step 16:

Select the newly added Element and enter the following.
Label: userId
Description: userid of the new hire.

Click the  button to do a mapping of userId.

Step 17:

Click Entity Tree View and Select User ID.

Step 18:

Click Change Association to “User ID”.

 

Step 19:

Select the context Element, click the + button and choose Add Child Element.

Step 20:

Enter the following.
Label: managerId
Description: Manager of the new Hire
Default Value: “Enter your cloud Platform user id”.

 

Step 21:

Select the Element “context” and click the + button and select Add Child Element.

 

Step 22:

Enter the following and clikc on Next.
Label: “buddyId”
Description: Assigned Buddy’s userId
Default Value: “Enter your cloud Platform user id”.

Step 23:

Expand Advanced Filters and enter the following.
Field: context/userId
Operation: is equal to
Value: cgrant1.

The filter value enable you to test the integration.

Click on Next.

Step 24:

In the destination settings click on oAuth configuration and enter

Configuration Name → <Any Name>

OAuth Type → OAuth 2.0

Grant credentials → Client_Credentials

Client ID, Client Secret and Token URL → <To be noted from the Enterprise Messaging service key>

Token Method → POST

Save the oAuth configuration

 

In the destination settings enter

Connection Name → <Any Name>

REST API URL → https://enterprise-messaging-pubsub.cfapps.eu10.hana.ondemand.com/messagingrest/v1/queues/<Queue Name>/messages

Click Next.

 

Step 25:

Click on “Run Now” to test the event generation.

Check whether the message has been published to the queue by consuming a message via Messaging REST

 

With this we are done and now you should be able to integrate SuccessFactors with SAP Cloud Platform Enterprise Messaging.

 

Assigned Tags

      8 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Joseph Sasikanth Reddy Byreddy
      Joseph Sasikanth Reddy Byreddy

      Hi,

      Thanks for the blog.Everything is working fine.

      But is there a way to automate the process instead of running the job every time a new employee is created?

       

      Regards,

      Joseph.

      Author's profile photo Sai Harish Balantrapu
      Sai Harish Balantrapu
      Blog Post Author

      Hi Joseph,

       

      In this blog we are only simulating the generation of events. The main objective is to show the integration with Enterprise Messaging. Once the integration is done, whenever the business transaction takes place an event gets generated. Hope this answers your query.

       

      Regards,

      Harish

      Author's profile photo Carlos Roggan
      Carlos Roggan

      Hi Sai Harish Balantrapu , good and well explained and easy to follow step-by-step description 😉 Want more of it 😉

      Author's profile photo Rintu Das
      Rintu Das

      Hi Harish

      Can we configure solace instead of SAP EM in the SAP SuccessFactors Integration Center -configuration (destination setting -->REST API URL *)

      I don't want to create event mesh from SAP EM to Solace ?

       

       

      thanks

      Author's profile photo Pradeep Panda
      Pradeep Panda

      Hi Rintu,

      What do you mean by solace ? Which product of Solace ? As such to be able to achieve event driven programming, you need to connect through Event Mesh.

      regards

      Pradeep

      Author's profile photo Rintu Das
      Rintu Das

      Hi Pradeep,

      Solace is a message broker -What is PubSub+ Cloud? (solace.com)  

      Just like AMQ,AWS SQS ,Rabbit MQ,with add on additional features.

      I was thinking is there anyway we can connect directly Solace Broker from SAP SF(Integration center/Intelligence Center) instead of SAP Event Mesh broker.

       

      thanks

       

       

      Thanks

       

       

       

       

      Author's profile photo Pradeep Panda
      Pradeep Panda

      Hi Rintu,

      We already have a service "SAP integration suite, advanced event mesh" on Solace pubsub+. But you need to use Event Mesh to connect with Success Factor.

       

      regards

      Pradeep

      Author's profile photo Rintu Das
      Rintu Das

      Thanks Pradeep for your quick response.

      Yes-SAP has recently released Advance Event Mesh.

      And we are trying to archive Event driven architecture -i.e extracting events from SAP (SuccessFactors/S4H/ECC) to SAP EM and then creating service mesh to Solace PubSub+ and making them available for consumers for consumptions.

       

      Thanks