Class DefaultBusinessSituationService
- All Implemented Interfaces:
BatchService<BusinessSituationServiceBatch>,BusinessSituationService
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 Business Accelerator Hub
Details:
| OData Service: | API_BUSINESS_SITUATION_SRV |
| API Version: | 1.0.0 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | Business Situation Integration(SAP_COM_0345) |
| Scope Items: | Situation Handling(31N) |
| Authentication Methods: | x509 |
| Business Object: | Business Situation |
-
Field Summary
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odata.services.BusinessSituationService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingBusinessSituationService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Deprecated.Deprecated.Fetch multipleSitnDataContextentities.Deprecated.Fetch multipleSitnInstanceentities.getSitnDataContextByKey(String sitnDataContextID) Deprecated.Fetch a singleSitnDataContextentity using key fields.getSitnInstanceByKey(String sitnInstanceID) Deprecated.Fetch a singleSitnInstanceentity using key fields.sendActionStatus(String sitnActionInstanceID, String sitnActionID, String sitnActionStatus, String sitnInstanceID, String sitnInstceTargetStatus) Deprecated.Creates a fluent helper for the SendActionStatus OData function import.withServicePath(String servicePath) Deprecated.Overrides the default service path and returns a new service instance with the specified service path.
-
Constructor Details
-
DefaultBusinessSituationService
public DefaultBusinessSituationService()Deprecated.Creates a service usingBusinessSituationService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
Deprecated.Description copied from interface:BusinessSituationServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfaceBusinessSituationService- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
batch
Deprecated.- Specified by:
batchin interfaceBatchService<BusinessSituationServiceBatch>
-
getAllSitnDataContext
Deprecated.Description copied from interface:BusinessSituationServiceFetch multipleSitnDataContextentities.- Specified by:
getAllSitnDataContextin interfaceBusinessSituationService- Returns:
- A fluent helper to fetch multiple
SitnDataContextentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getSitnDataContextByKey
Deprecated.Description copied from interface:BusinessSituationServiceFetch a singleSitnDataContextentity using key fields.- Specified by:
getSitnDataContextByKeyin interfaceBusinessSituationService- Parameters:
sitnDataContextID- Data Context IDConstraints: Not nullable, Maximum length: 32
- Returns:
- A fluent helper to fetch a single
SitnDataContextentity 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 theexecutemethod on the fluent helper object.
-
getAllSitnInstance
Deprecated.Description copied from interface:BusinessSituationServiceFetch multipleSitnInstanceentities.- Specified by:
getAllSitnInstancein interfaceBusinessSituationService- Returns:
- A fluent helper to fetch multiple
SitnInstanceentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getSitnInstanceByKey
Deprecated.Description copied from interface:BusinessSituationServiceFetch a singleSitnInstanceentity using key fields.- Specified by:
getSitnInstanceByKeyin interfaceBusinessSituationService- Parameters:
sitnInstanceID- Instance IDConstraints: Not nullable, Maximum length: 32
- Returns:
- A fluent helper to fetch a single
SitnInstanceentity 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 theexecutemethod on the fluent helper object.
-
sendActionStatus
@Nonnull public SendActionStatusFluentHelper sendActionStatus(@Nonnull String sitnActionInstanceID, @Nonnull String sitnActionID, @Nonnull String sitnActionStatus, @Nonnull String sitnInstanceID, @Nonnull String sitnInstceTargetStatus) Deprecated.Description copied from interface:BusinessSituationServiceCreates a fluent helper for the SendActionStatus OData function import.
- Specified by:
sendActionStatusin interfaceBusinessSituationService- Parameters:
sitnActionInstanceID- Unique action instance ID generated by the service clientConstraints: Not nullable, Maximum length: 36
Original parameter name from the Odata EDM: SitnActionInstanceID
sitnActionID- ActionID defined by situation template, NO_ACTION or UNKNOWNConstraints: Not nullable, Maximum length: 32
Original parameter name from the Odata EDM: SitnActionID
sitnActionStatus- Action status: SUCCESS or FAILUREConstraints: Not nullable, Maximum length: 7
Original parameter name from the Odata EDM: SitnActionStatus
sitnInstanceID- Situation instance ID for which the action was performedConstraints: Not nullable, Maximum length: 32
Original parameter name from the Odata EDM: SitnInstanceID
sitnInstceTargetStatus- Target instance status: OP(Open) RE(Resolved) UN(Unchanged)Constraints: Not nullable, Maximum length: 2
Original parameter name from the Odata EDM: SitnInstceTargetStatus
- Returns:
- A fluent helper object that will execute the SendActionStatus OData function import with the
provided parameters. To perform execution, call the
executemethod on the fluent helper object.
-