Technical Articles
Consume Live Process Package in Process Flexibility Cockpit
SAP Workflow Management is a key service in SAP Digital Process Automation portfolio. It enables enterprise to digitize workflows, automate and extend business processes, manage decisions, gain end-to-end visibility and configure process variants in a no-code environment.
SAP delivers many Live Process Content package on SAP API Business Hub. These content cover some typical scenarios, Capital Expenditure Approval, Purchase Requisition Approval in ERP, etc. A content package combined Workflow, Decisions Process Visibility and related documentations, which enable customer go live the feature faster and reduce IT cost efficiently.
Process Flexibility Cockpit enable business process experts to discover, import, configure and consume live process content. The sample capital expenditure process automates CAPEX request approvals as a end-to-end scenario step by step.
Prerequisites
- Set Up Workflow Management in Cloud Cockpit
After enable Workflow Management portfolio. Ensure your BTP user can access the WorkflowManagementSaaS successfully.
Configure SAP Workflow Management Destinations
Import Package Destination
Configure the WM_CF_SPACE_PROVIDER destination that enables you to import packages. This destination is used to import live process packages from SAP API Business Hub. You should setup the password in destination page. If this destination not created yet, you need create it manually as follows.
Login your BTP user, navigate to your subaccount. In the navigation pane, choose Connectivity > Destinations
Create a new destination
Parameter | Value |
---|---|
Name | WM_CF_SPACE_PROVIDER |
Type | HTTP |
Description | Live Package Import destination |
URL | https://deploy-service.cfapps.cn40.platform.sapcloud.cn/api/v1/spaces/<spaceid> |
Proxy Type | Internet |
Authentication | Basic Authentication |
User | Your BTP user who has Space Developer role |
Password | Related BTP user’s password |
Business Rules Destination
Configure the destination for business rules capability to enable start conditions on process variants.
Navigate to your subaccount. In the navigation pane, choose Connectivity > Destinations
Provide the following details:
Ensure the name in WM_BUSINESSRULES. Regarding the URL, copy the rule_runtime_url from the service key and paste it in the URL field and add /rules-service. The URL format is as shown: <rule_runtime_url>/rules-service
Parameter | Value |
---|---|
Name | WM_BUSINESSRULES |
Type | HTTP |
Description | Business Rules destination |
URL | https://bpmruleruntime.rule.cn40.apps.platform.sapcloud.cn/rules-service |
Proxy Type | Internet |
Authentication | OAuth2ClientCredentials |
Client ID | Copy the value from the clientid field of service key |
Client Secret | Copy the value from the clientsecret field of service key |
Token Service URL | Copy the value from the url field of service key and add /oauth/token to the URL. The URL format is as shown: https://<subaccount>.authentication.cn40.platform.sapcloud.cn/oauth/token |
Notes:
If this E2E process executing fail on the CFO approval step and read error like “TypeError: Cannot read property “push” from undefined in <eval> at line number 32″, you can duplicate the destination and name in BUSINESS_RULES. After that, Re-activate the Decision, and then execute the process again.
Import the sample capital expenditure package
Launch Workflow Management SaaS
Configure a Process Variant
Click the new step Approval, navigate to Step Properties view on the right pane. Rename the step to CFO Approval, switch to Details view, rename the Name in CFO, Approval Step to CFO.
Save the changes, Activate the variant.
Go back to Process Variants main view, the new variant High Value Investment has already Activated.
Configure the Decisions
Configure Visibility Scenarios
Test Workflow Process
Launch Workflow Management SaaS, and then open tile Monitor Workflows.
Select High Value Investment from Workflow Definitions list.
Select Start New Instance, and then input the json context, Start New Instance and Close.
JSON context as follows:
{ "RequestId": "IAP-2020-180", "Title": "App Creation", "Requester": { "FirstName": "John", "LastName": "Doe", "Email": "John.Doe@example.com", "UserId": "jdoe", "Comments": "Please Approve" }, "Investment": { "TotalCost": 50000, "Type": "Software", "CAPEX": 10000, "OPEX": 2000, "ROI": 5, "IRR": 5, "Country": "Germany", "BusinessUnit": "Purchasing", "Description": "Provide a fresh experience for our customers by providing new apps for our services" }, "Sustainability": { "EnergyEfficiency": 10, "CO2Efficiency": 20, "EnergyCostSavings": 15, "WaterSavings": 10 } }
Check Visibility Scenarios
Resources
Sample Capital Expenditure Approval Process
Discover and Import Packages
Hi Arvin,
Great blog !
Thanks for the detailed explanation of the steps.
While creating a process variant I am getting an error ' Unable to perform this operation due to missing permission. Contact your administrator '
Can you please let me know which authorization(roles) might be missing and how can I check that ?
Thanks & Regards,
Prasanth P
Process variant error
Hi Prasanth,
Suppose you don't have the developer permission, please check your Workflow management role collections setup. Ensure you have 'WorkflowManagementDeveloper' and 'WorkflowManagementBusinessExpert' assigned. This is my role collection configuration for your reference.
Regards,
Arvin
Hi Arvin,
thanks for your reply.
I have added the missing roles accordingly , but still I am facing the same error.
Can you please let me know if there are any other necessary roles ?
Please find the screenshot of the roles for my account.
Regards,
Prasanth P
Hi Prasanth,
You can try to assign Content Agent Service entitlement on your subaccount. You cannot make any edit action on the content if you haven't nominate related entitlement.
Regards,
Arvin
Hi Arvin,
Under entitlements , the "Content Agent Service entitlement" is already available for my subaccount.
Do I need to modify anything here ?
Please find the screenshot.
Regards,
Prasanth P
Hi Arvin Wu
Is there anyway to solve this error ?
I have the above mentioned roles assigned to my user which has 'Default identity provider' . Should they be assigned to 'Custom IAS tenant' as well ?
hi Archana Shukla
can you please suggest ?
Thanks & regards,
Prasanth P
Facing the same issue...have all the above roles and entitlements as described by Arvin
I'm also in the same way, facing the same issue... Could anyone resolved it?
I'm also facing authorization issue, having the error message "Unable to perform this operation due to missing permission. Contact your administrator." Could you please advice? All the above role collections and entitlement have been assigned in BTP subaccount. Thank you.