Resource Changes for Operation Flow
Use Cases
You want to initiate an operation flow (for example a job, workflow or automation) in a non-SAP automation engine from a monitoring event in SAP Cloud ALM. The operation flow will run problem remediation activities.
The External API Management service offers capabilities to integrate SAP Cloud ALM to external systems. Customers can define custom mappings for their preferred solutions.
Prerequisites
-
You have a non-SAP automation engine offering the following REST APIs:
-
A REST API to return a list of available jobs, workflows, or automation definitions
-
A REST API to initiate a new execution of a job, automation or workflow and return an execution identifier
-
A REST API to query the runtime status of the execution
-
-
Ideally, the automation engine supports context sensitive navigation to job, workflow, or automation executions.
Supported Events
-
OPERATIONFLOW.GETDEFINITIONS
-
OPERATIONFLOW.STARTED
-
OPERATIONFLOW.PING
Events for Operation Flow
-
Triggered automatically when one of the following situations occurs:
-
SAP Cloud ALM displays the list of the workflow definitions.
-
-
Triggered automatically when one of the following situations occurs:
-
An Operation Flow is started automatically for a monitoring or status event based on configured event actions.
-
An Operation Flow is started manually from the alert details.
-
-
Triggered to display the status of an operation flow execution from alert details.
Operation Flow Events and Response Payload
Resource Format
|
Attribute |
Description |
Example |
OPERATIONFLOW.STARTED |
OPERATIONFLOW.PING |
OPERATIONFLOW.GETDEFINITIONS |
|---|---|---|---|---|---|
|
automationId |
ID of the operation flow definition that should be triggered |
"21285" |
X |
||
|
timestamp |
Timestamp |
"2025-06-11T09:20:55.063807940Z" |
X |
X |
X |
|
externalResourceId |
External Resource ID (i.e. identifier of the operation flow execution returned by the OPERATIONFLOW.STARTED event) |
"454838" |
X |
||
|
id |
Event ID or event situation ID |
"37c9aaed-6b94-40b9-b029-ac5620e0f820" |
X |
||
|
serviceId |
Impacted components |
"326e7a12-f39f-4fb7-837f-134ae8c57938" |
X |
||
|
serviceType |
Type of service |
"SAP Business Suite 7" |
X |
||
|
serviceName |
Name of service |
"BIS800" |
X |
||
|
eventName |
Name of the event |
"Erroneous Message(IDOC) Detected(Single)" |
X |
||
|
eventType |
Type of the event |
"CALM.IM" |
X |
||
|
subject |
Subject of the event |
"BIS800" |
X |
||
|
rating |
Rating of the event |
"ERROR" |
X |
||
|
body |
Event-Situation situation body |
"Direction = OUTBOUND | Message ID = 0000000003635763 | Message Type = ORDERS | Receiver Partner Number = TS4CLNT001 | Receiver Port = A000000068 | Sender Partner Number = D800 | Sender Port = SAPBIS | Status = 02 | Status Text = Could not find code page for receiving system" |
X |
||
|
lmsLogonUrl |
LMS Logon URL |
"https://..." |
X |
||
|
lmsMainUrl |
LMS Main URL |
"https://..." |
X |
||
|
lmsGlobalAccountId |
LMS Global Account ID |
"<lms.properties.globalAccountId>" |
X |
||
|
eventDetailsTable |
Table with event details |
|
X |
||
|
lmsObjectType |
LMS Object Type |
"LogicalSystem" |
X |
||
|
lmsLocation |
LMS Location |
"" |
X |
||
|
lmsServiceTypeId |
LMS Service Type ID |
"SAP_BS" |
X |
||
|
eventState |
Event state |
"UPDATE" |
X |
||
|
lmsSystemSCPLandscapeID |
LMS System SCP Landscape ID |
"<lms.properties.systemSCPLandscapeID>" |
X |
||
|
lmsSubAccountId |
LMS Subaccount ID |
"" |
X |
||
|
lmsTenantId |
LMS Tenant ID |
"850769820" |
X |
||
|
lmsSystemNumber |
LMS System Number |
"850769820" |
X |
||
|
lmsDataCenter |
LMS Data Center |
"" |
X |
||
|
eventSubType |
Event sub-type |
"calm.im.bs.idoc.msg" |
X |
||
|
monUiLink |
Monitoring UI Link |
"<tags.monUiLink>" |
X |
||
|
lmsSystemType |
LMS System Type |
"ABAP" |
X |
||
|
lmsRole |
LMS Role |
"DEV" |
X |
||
|
lmsSubaccountName |
LMS Subaccount Name |
"<lms.properties.subaccountName>" |
X |
||
|
lmsServiceTypeLabel |
LMS Service Type Label |
"SAP Business Suite 7" |
X |
||
|
lmsLifecycleStatus |
LMS Lifecycle Status |
"<lms.properties.lifecycleStatus>" |
X |
Expected Response Payload per Event Type
|
Attributes |
Description |
Mandatory |
Example |
OPERATIONFLOW.STARTED |
OPERATIONFLOW.GETDEFINITIONS |
OPERATIONFLOW.PING |
Remarks |
|---|---|---|---|---|---|---|---|
|
externalResourceId |
Execution ID |
X |
453569 |
X |
X |
||
|
externalResourceStatus |
Status of the operation flow execution instances. 3 values are recognized: "STARTED", "FAILED" and "COMPLETED" |
X |
"STARTED" |
X |
X |
||
|
displayUrl |
Context sensitive navigation link to display the operation flow execution in the non-SAP automation engine. (Optional. Operations Automation can calculate the display URL from root URL and externalResourceId). |
X |
X |
||||
|
externalResourceStartedAt |
Operation flow start date |
X |
X |
||||
|
externalResourceStartedBy |
Operation flow start by user |
X |
X |
This field is considered as personal data and if a value is provided by the external system, it will be processed by SAP Cloud ALM. You can refer to DPP documentation. |
|||
|
externalResourceCompletedAt |
Operation flow instance completion date |
X |
|||||
|
definitions |
JSON array of definitions. Each item is a JSON object with the following properties:
|
X |
|
X |