public interface BusinessSituationService extends BatchService<BusinessSituationServiceBatch>
This API is based on the OData protocol. It provides the situation instance and context data in the payload’s response. This includes the situation instance ID, situation creation time, situation status, situation type ID, situation template ID, situation anchor and trigger object key, anchor object, data context ID, data context, data context creation time, situation activity ID, and situation activity. The payload data can then be consumed, for example, by advanced analytics or automation. It also updates the situation action status for automation. .
Reference: SAP API Business Hub
OData Service: | API_BUSINESS_SITUATION_SRV |
API Version: | 1 |
Communication Scenario: | Business Situation Integration (SAP_COM_0345) |
Scope Items: | Situation Handling (31N) |
Authentication Methods: | Basic, x509 |
Business Object: | BusinessSituation |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SERVICE_PATH
If no other path was provided via the
withServicePath(String) method, this is the default service path
used to access the endpoint. |
Modifier and Type | Method and Description |
---|---|
SitnDataContextFluentHelper |
getAllSitnDataContext()
Fetch multiple
SitnDataContext entities. |
SitnInstanceFluentHelper |
getAllSitnInstance()
Fetch multiple
SitnInstance entities. |
SitnDataContextByKeyFluentHelper |
getSitnDataContextByKey(String sitnDataContextID)
Fetch a single
SitnDataContext entity using key fields. |
SitnInstanceByKeyFluentHelper |
getSitnInstanceByKey(String sitnInstanceID)
Fetch a single
SitnInstance entity using key fields. |
SendActionStatusFluentHelper |
sendActionStatus(String sitnActionInstanceID,
String sitnActionID,
String sitnActionStatus,
String sitnInstanceID,
String sitnInstceTargetStatus)
Creates a fluent helper for the SendActionStatus OData function import.
|
BusinessSituationService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
batch
static final String DEFAULT_SERVICE_PATH
withServicePath(String)
method, this is the default service path
used to access the endpoint.@Nonnull BusinessSituationService withServicePath(@Nonnull String servicePath)
servicePath
- Service path that will override the default.@Nonnull SitnDataContextFluentHelper getAllSitnDataContext()
SitnDataContext
entities.SitnDataContext
entities. This fluent helper allows methods which modify the underlying query to be
called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull SitnDataContextByKeyFluentHelper getSitnDataContextByKey(String sitnDataContextID)
SitnDataContext
entity using key fields.sitnDataContextID
- Data Context ID
Constraints: Not nullable, Maximum length: 32
SitnDataContext
entity using key fields. This fluent helper allows methods which modify the underlying
query to be called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull SitnInstanceFluentHelper getAllSitnInstance()
SitnInstance
entities.SitnInstance
entities. This fluent helper allows methods which modify the underlying query to be called before
executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull SitnInstanceByKeyFluentHelper getSitnInstanceByKey(String sitnInstanceID)
SitnInstance
entity using key fields.sitnInstanceID
- Instance ID
Constraints: Not nullable, Maximum length: 32
SitnInstance
entity using key fields. This fluent helper allows methods which modify the underlying query to be called
before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull SendActionStatusFluentHelper sendActionStatus(String sitnActionInstanceID, String sitnActionID, String sitnActionStatus, String sitnInstanceID, String sitnInstceTargetStatus)
Creates a fluent helper for the SendActionStatus OData function import.
sitnActionStatus
- Action status: SUCCESS or FAILURE
Constraints: Not nullable, Maximum length: 7
Original parameter name from the Odata EDM: SitnActionStatus
sitnActionInstanceID
- Unique action instance ID generated by the service client
Constraints: Not nullable, Maximum length: 36
Original parameter name from the Odata EDM: SitnActionInstanceID
sitnInstanceID
- Situation instance ID for which the action was performed
Constraints: Not nullable, Maximum length: 32
Original parameter name from the Odata EDM: SitnInstanceID
sitnActionID
- ActionID defined by situation template, NO_ACTION or UNKNOWN
Constraints: Not nullable, Maximum length: 32
Original parameter name from the Odata EDM: SitnActionID
sitnInstceTargetStatus
- Target instance status: OP(Open) RE(Resolved) UN(Unchanged)
Constraints: Not nullable, Maximum length: 2
Original parameter name from the Odata EDM: SitnInstceTargetStatus
execute
method on the fluent helper object.Copyright © 2020 SAP SE. All rights reserved.