SAP Cloud ALM API & Integration: Several extensions of SAP Cloud ALM with SAP BTP (Part 4): Approve Requirements with Workflow Engine (SAP Build Process Automation)
2023-12-7 22:55:31 Author: blogs.sap.com(查看原文) 阅读量:7 收藏

This blog is the fourth part of this series of blogs: link to Introduction

Objective

Request a requirement approval. The end-user receives a notification in his inbox (SAP Build Process Automation) and can choose to accept or reject the new requirement. The requirement satus (SAP Cloud ALM) is updated accordingly to the user decision.

All integration scenarios of SAP Cloud ALM are based on the public APIs listed in the SAP Business Accelerator Hub.

An integration example

A SAP Partner informed a customer about a new content (see Part 3: Use a mobile application (SAP Build Apps, SAP Cloud ALM) to trigger a requirement approval.) by triggering a workflow. The customer project manager is notified in his inbox about the new requirement to approve. Using a form he can accept or reject this requirement. The status is updated in the SAP Cloud ALM customer tenant.

The involved components

  • Approve Requirements with Workflow Engine
    • SAP Build Process Automation
    • SAP Cloud ALM

SAP Build Process Automation

SAP Build Process Automation combines workflow management, RPA functionality, decision management, process visibility, and embedded AI capabilities into one intuitive low-code experience. Read the solution in detail.

Procedure Overview

  • Create a SAP Build Process Automation action to update the requirement in SAP Cloud ALM using Rest API integration.
  • Create a SAP Build Process Automation business process to receive the triggering call from the mobile application (see blog 3) and organise the process flow.

Important Information

The goal of this blog is not to give you a step by step guide on how to create a SAP Build Process Automation workflow. You can follow this learning page for that.

The goal of this blog is to highlight the integration capabilities.

Create a SAP Build Process Automation action

In the SAP Build lobby, create a new SAP Build Process Automation action.

Choose SAP Business Accelerator Hub as source, then SAP Cloud ALM tasks:

Select the patch action:

Adjust the parameters and body like this:

    • id is the requirement ID.
    • X-Calm-Notification is set to true to allow the task/requirement update
    • approvalState is set to READY_4_APPR

Create a SAP Build Process Automation business process

In the SAP Build lobby, create a new SAP Build Process Automation automated process – business process.

This is how the workflow looks like:

The trigger is the integration point with the SAP Build App (see Part 3: Use a mobile application (SAP Build Apps, SAP Cloud ALM) to trigger a requirement approval.) This is the way te receive the parameters (requirement ID and title).

Then a form is used to show the requirements to the end-user and ask for its approval.

Input%20parameter%20of%20the%20form

Input parameter of the form

Form%20edition

Form edition

If the requirement is approved the previously created action is ran with the requirement ID as input parameter. The requirement is updated on the SAP Cloud ALM Customer tenant.

Results

From an end-user point of view, the form is sent in the user inbox:

The project manager can easily approve or reject the new requirement without accessing SAP Cloud ALM. The status is updated in SAP Cloud ALM and triggers other things which will be detailed in the next part.

Thanks for reading.

SAP Cloud ALM API & Integration blogs:


文章来源: https://blogs.sap.com/2023/12/07/sap-cloud-alm-api-integration-several-extensions-of-sap-cloud-alm-with-sap-btp-part-4-approve-requirements-with-workflow-engine-sap-build-process-automation/
如有侵权请联系:admin#unsafe.sh