About This Recipe
To use the recipe, you must install the recipe and configure the connection within the recipe. Subsequently, you can activate the integration flows of the recipe. Using the recipe, you can:
- Perform a specific arithmetic operation (such as, addition, subtraction, multiplication, and division) on the input data using a Switch action. To enable you to perform these operations, a JavaScript library (Oracle-Library-Calculator) is included in the recipe.
- Perform a division operation on the input data, and catch or handle faults encountered during the operation.
Integration | Description |
---|---|
SOAP Library Calculator Switch |
Performs any arithmetic operation (addition, subtraction, multiplication, and division) on the input data. As input to the integration, you must provide two input values and specify the necessary value for the Switch action, indicating which operation to perform. The integration returns the output of the specified operation as the response. Example Input Payload:
Example Output Payload:
|
SOAP Library Division Calculator |
Performs the division operation on the input data. As input to the integration, you must specify the dividend as the first input and the divisor as the second input. The integration returns the output of the operation as the response. Example Input Payload:
Example Output Payload:
|
SOAP Library Global FaultHandler |
Performs the division operation on the input data, and uses a predefined, global fault handler to catch errors during the operation. For example, when the input for the divisor is zero, the operation results in a fault. Using a global fault handler, the integration flow returns the fault details as a response. As input to the recipe, you must specify the dividend as the first input and the divisor as the second input. The integration returns the output of the operation or fault details as the response. Example Input Payload:
Example Output Payload:
|
SOAP Library Div Inscope FaultHandler |
Performs the division operation on the input data, and uses an in-scope fault handler to catch and handle errors during the operation. For example, when the input for the divisor is zero, the operation results in a fault. The in-scope fault handler in the integration flow handles the fault by interchanging the values of the divisor and the dividend. The integration flow then completes the division operation successfully and returns the result as a response. As input to the integration, you must specify the dividend as the first input and the divisor as the second input. The integration returns the output of the operation or the output of the modified operation (in case the operators are interchanged due to a fault) as the response. Example Input Payload:
Example Output Payload:
|