Skip to Content

Run the Employee Onboarding Sample Scenario

test
0 %
Run the Employee Onboarding Sample Scenario
Details
// Explore More Tutorials

Run the Employee Onboarding Sample Scenario

09/27/2019

Now that all the components of your workflow are set up and the business rules are integrated, run your workflow.

You will learn

  • How to start the workflow from Monitor Workflow application
  • How to track and view workflow progress from Process Visibility Workspace

Step 1: Set up sample events for workflow
  1. Download the events EmployeeOnboardingEvents.json file from here.

  2. In the SAP Fiori launchpad, open the Event Acquisition application.

    You would have gotten the launchpad link in the last step of the setup tutorial. The link would be like:

    https://trial-userid-dev-bpmservicesflp-approuter.cfapps.eu10.hana.ondemand.com/cp.portal/site#Shell-home

    Import Events
  3. To import the sample events from the downloaded events file, choose Import.

    Import Events
  4. Browse to the downloaded events file location, select the file and click Import

    Import Events
  5. Once the events are imported successfully, choose Filter and enter onboard as Process Definition ID to see all the imported events.

    See EventsSee Events

    All the sample events are displayed.
    See Events

Log on to answer question
Step 2: Process the Employee Onboarding events
  1. In the SAP Fiori launchpad, choose the Monitor Scenarios tile.

    Open Monitor Scenario1
  2. Select Employee Onboarding scenario and click Process Data.

    Process Events Data
  3. Refresh to see the processing details.

    View Processed Data
Log on to answer question
Step 3: View the process visibility workspace
  1. In the SAP Fiori launchpad, choose the Process Workspace tile.

    View Scenario1
  2. Click Employee Onboarding scenario to open the process workspace.

    Open Scenario
  3. The process visibility workspace for Employee Onboarding workflow is displayed.

    View Scenario2
Log on to answer question
Step 4: Execute the workflow sample application
  1. In the SAP Fiori launchpad, open the Monitor Workflow - Workflow Definitions tile to see all deployed workflow definitions.

    Open Monitor Workflows
  2. Select the onboard workflow, and choose Start New Instance.

  3. The start context is already filled. Choose Start New Instance.

    Start context will be filled as you have defined the same in workflow properties while enhancing sample workflow application from Web IDE. This start context is valid only if you have configured SuccessFactors system.

    If you have not configured SuccessFactors destination in setup tutorial, then replace the default context with the following code. This is the sample employee information as fetched from SuccessFactors. Make sure you enter your SAP Cloud Platform trial user email ID as buddyId and managerId in the end.

      {
      "empData": {
        "d": {
          "results": [
            {
              "zipCode": "94404",
              "lastName": "Grant",
              "country": "United States",
              "hireDate": "/Date(978307200000)/",
              "reloLocation": null,
              "city": "San Mateo",
              "jobTitle": "General Manager, Industries",
              "jobCode": "Vice President, Sales (VP-SALES)",
              "title": "VP, Sales",
              "userId": "cgrant1",
              "division": "Industries (IND)",
              "defaultFullName": "Carla Grant",
              "firstName": "Carla",
              "empInfo": {
                "__metadata": {
                  "type": "SFOData.EmpEmployment"
                },
                "jobInfoNav": {
                  "results": [
                    {
                      "isFulltimeEmployee": true,
                      "businessUnit": "ACE_IND",
                      "costCenter": "30001",
                      "jobTitle": "VP, Sales",
                      "countryOfCompany": "USA",
                      "jobCode": "VP-SALES",
                      "managerId": "athompson1",
                      "division": "IND",
                      "company": "ACE_USA",
                      "position": "VP_SALES",
                      "department": "SALES",
                      "startDate": "/Date(1343606400000)/"
                    }
                  ]
                }
              },
              "reloWilling": null,
              "addressLine1": "1500 Fashion Island Blvd",
              "location": "San Mateo (US_SFO)",
              "department": "Sales (SALES)",
              "keyPosition": false
            }
          ]
        },
        "team": {
          "d": {
            "directReports": {
              "results": [
                {
                  "__metadata": {
                    "type": "SFOData.User"
                  },
                  "userId": "dsharp1"
                },
                {
                  "__metadata": {
                    "type": "SFOData.User"
                  },
                  "userId": "cgrant1"
                },
                {
                  "__metadata": {
                    "type": "SFOData.User"
                  },
                  "userId": "sthomas1"
                }
              ]
            }
          }
        },
        "buddies": "dsharp1,cgrant1,sthomas1"
      },
      "managerId": "your trial email id",
      "buddyId": "your trial email id",
      "userId": "cgrant1"
    }
    
    Start New Instance
  4. Choose Show Instances to see all workflow instances of the onboard workflow definition.

    View Details of Instance
  5. Go back to the SAP Fiori launchpad homepage. The My Inbox tile shows one open task.

    Open Task in My Inbox
  6. Open the My Inbox to display the Confirm or Change Equipment workflow task.

    • You can add new equipment, by choosing the + button.

    • To complete the task, choose Confirm. The task then disappears from the list.
      Confirm Task

Log on to answer question
Step 5: View process visibility workspace
  1. In the SAP Fiori launchpad, open Monitor Scenarios application, click Process Data and Refresh to see the new batch of processed events.

    New Workflow Event Processed

    In productive scenarios, you can switch on the Schedule Job so that the events will be automatically processed at an interval of 5 minutes.

  2. Go back to SAP Fiori launchpad, choose the Process Workspace tile and open Employee Onboarding scenario.

    You will notice the Open Instances number has changed which means the workflow instance has been processed and its progress can be tracked from this process visibility workspace.

    Process Workspace
Log on to answer question
Step 6: Continue with the workflow execution
  1. Go back to My Inbox application, execute the Approve Equipment task:

    • If you have assigned the the same user for buddyId and managerId, refresh the My Inbox tile to see the Approve Equipment task.

    • If you have used two different users, log off and log on using the manager user ID. Then access the My Inbox tile.

    • If you do not see the task then refresh the tasks list.

    The Approve Equipment task shows the equipment configured by the buddy. As the manager you can either approve or reject the proposed equipment for the new hire. To complete the task, choose Approve.

    Approve Equipment
  2. Refresh the tasks list and execute the Accept Workplace task:

    • If you have assigned the the same user for buddyId and managerId, refresh the My Inbox tile to see the Accept Workplace task.

    • If you have used two different users, log off and log on using the buddy user ID. Then access the My Inbox tile.

    As the buddy choose Accept to complete the task. The workflow status is set to Completed.

    Accept Equipment
  3. In the SAP Fiori launchpad, open the Monitor Workflow - Workflow Instances tile, choose the filter button, add the Completed status.

    View Completed Workflow Instance

    Now, you see the completed workflow instance. You can choose to see the Execution Log.

    View Details Completed Instance
There are some standard actions available on this task. What are they?
×
Step 7: View the process visibility workspace for completed workflow
  1. In the SAP Fiori launchpad, choose Monitor Scenarios and the process the new set of events.

    See Processed data
  2. Choose the Process Workspace tile and open Employee Onboarding scenario.

    You will see that the Completed Instances and Cycle Time numbers have changed.

    View Scenario4
Which among these applications are used to view process visiblity events?
×

Next Steps

Back to top