Overview:
Employee Onboarding sample application is built using SAP Cloud Platform Workflow Service. This is an extension scenario to SuccessFactors Employee Onboarding process. We have developed this sample application using SAP Cloud Platform Workflow Service and Portal Service. This sample application is shipped as part of SAP Cloud Platform Web IDE.
Scenario Description:
When a candidate is recruited by a company after the interview process, the HR saves the new hire information (personal, job-related, employment-related, etc.) in SuccessFactors. The employee on-boarding extension scenario automate additional process steps to be performed by different users (hiring manager, buddy, etc.) to have a smooth onboarding experience to the new hire.
The scenario is described more in detail.
https://www.sap.com/germany/developer/blueprints/finder/automating-employee-onboarding.html
Import and Configure Sample Application
If you do not have a cloud platform account or not yet subscribed to Workflow service, please go through this blog and enable workflow service in your trial account.
https://blogs.sap.com/2017/07/14/getting-started-with-the-workflow-service-in-the-free-trial-account...
You will have to configure workflow service and assign roles to user for deploying and executing SAP Cloud Platform workflow service applications. Workflow service configuration and roles assignment are explained in the help portal.
https://help.sap.com/viewer/f85276c5069a429fa37d1cd352785c25/Cloud/en-US/3805ffa92af64eafb6ceff83716...
This Onboarding extension application is available as sample application in SAP Web IDE . You can import the sample application into your workspace, configure ,deploy and execute.
- Log On to Cloud Platform Cockpit and select Services and choose SAP Web IDE Full-Stack.

- Click on the tile SAP WebIDE Full-Stack and navigate to the overview page.

- Click on Go to Service will open the Web IDE.
- Enable Workflow Service feature if you are using workflow service for the first time in your account. Refer to the help portal to learn how to enable Workflow Service in SAP Web. portal.https://help.sap.com/viewer/f85276c5069a429fa37d1cd352785c25/Cloud/en-US/07adfa6d819a42e9966e63de1a6...
- From the options in the extreme left-bar, select </> to open the workspace in development perspective mode.
- Select Workspace and right-click and select option New -->Project from Sample Application

- Select āEmployee Onboarding Extension Workflowā application from list of available sample applications and click on āNextā button

- Accept SAP License Agreement by selecting Checkbox and click on āFinishā button.
- Employee Onboarding application will be imported into workspace and will look like as shown in screenshot below

- Workflow model 'onboard.workflow' is under 'workflows' folder; you can open it with 'Workflow Editor' to understand the workflow model for employee onboarding scenario. The onboarding extension Workflow model looks like

- This workflow is using SuccessFactors APIs to get employee details and his/her buddy list.
- If you do no have your own SuccessFactors tenant get a demo tenant from https://hcmcloudops.successfactors.com
- Create a destination from 'Connectivity->Destinations' in your cloud cockpit.

- You can get the SuccessFactors API URLs for different data centers from https://apps.support.sap.com/sap/support/knowledge/public/en/2215682
- Destination āSFSFā is used for the following service tasks
- āGet Employee Details from SuccessFactorsā
- āGet Buddy List from SFSFā.
- You would require to configure workflow service and assign roles to user for deploying and executing SAP Cloud Platform workflow service applications. Workflow service configuration and assigning roles are explained in help document at https://help.sap.com/viewer/f85276c5069a429fa37d1cd352785c25/Cloud/en-US/3805ffa92af64eafb6ceff83716...
- Deploy 'onboard.workflow' model which is under 'workflows' folder by right clicking onboard.workflow file and select 'Deploy->Deploy to SAP Cloud Platform Workflow'

- Deploy UI application by right clicking on 'sample.onboarding' project and selecting 'Deploy->Deploy to SAP Cloud Platform'

Executing Sample Application
Follow the steps below to execute employee onboarding sample application that you have deployed above.
- Goto Cloud Platform cockpit , select Services and search Workflow Services.

- Click on Workflow tile and navigate to Workflow Service overview page. Click Fiori Launchpad(Default Site)

if there are no FIORI tiles visible, click on the user icon and App Finder icon.

Select workflow catalog and choose 'My Inbox' , 'Monitor Workflows Workflow Definitions' and 'Monitor Workflows Workflow Instances'.

- Goto portal application and navigate to 'Monitor Workflows-> Workflow Definitions' tile.

- Select onboard workflow definition and click āStart New Instanceā button

- Default context for workflow model is pre-configured.
- Modify the value of āuserIdā with a valid user (Person Id) from your SuccessFacotrs tenant.
- Modify the values of buddyId and managerId with appropriate users Ids from your Cloud Platform Identity Provider Service.
- You could also use your own Cloud Plaform userId and buddyId and managerId while testing the scenario. Make sure both buddyId and managerId users have the WorkflowParticipant role assigned to them.
- Click Start New Instance button to create a new workflow instance.

- Click on 'Show Instances' button to see the newly created instance.

- Log out of My Inbox and Log on using the 'userid' assigned as buddyId in the previous step.
- Go back to portal home page and click on the tile My Inbox--> All Tasks. Refer documentation from the URL below to work with tasks in My Inboxhttps:help.sap.com/viewer/f85276c5069a429fa37d1cd352785c25/Cloud/en-US/84852a371a144aa1a6b03e1e8c60e...

- In this walkthrough, Carla Grant is the name of user id given while creating instance. This name may change based on the userId provided. Please note this in future steps.
Select the task āConfirm or Change Equipment for Carla Grantā.

- Workflow Application has assigned a list of equipment for employee, you can optionally add/remove equipment.
- Click on āConfirmā button to complete the task.
- Log out from My Inbox and Log on back with āmanagerIdā credentials that you have given while creating workflow instance.
- A task would have been assigned to the manager to āApprove Equipment for Carla Grantā,

- Click on āApproveā button to complete the task.
- Log out from My Inbox and Log on back with ābuddyIdā credentials that you have given while creating instance.
- You would see a new task to āAccept Workplace for Carla Grantā.

- Click on āAccept Workplaceā button to complete the task. Workflow is completed and the workflow instance will not be shown under āManage Workflows Workflow Instancesā
Complete version of this Employee Onboarding application for SuccessFactors extension scenario is available at public GitHub repository and you can find and download the same from
https://github.com/SAP/cloud-workflow-sfsf-ext
Please refer the SCN article how to integrate Onboarding extension workflow with SuccessFactors Intelligent services.
https://blogs.sap.com/2017/08/19/extend-successfactors-with-sap-cloud-platform-workflow-part-12/