Get Started with Revenue Management Developer Resources
Revenue Management Settings
ProcedurePlan Class
SignalingApexProcessor Interface
TransactionRequest Class
TransactionResponse Class
TransactionStatus Enum
Previous Versions
Defines the context-driven orchestration logic based on procedure plan instance and contextual instance.
Here’s a sample implementation of the SignalingApexProcessor interface.
1public class SignalingApexProcessorImpl implements RevSignaling.SignalingApexProcessor {
2
3 public RevSignaling.TransactionResponse execute(RevSignaling.TransactionRequest request) {
4 System.debug('Executing SampleValidClass...');
5 System.debug('Procedure Plan: ' + request.procedurePlanInstance);
6 System.debug('Context Instance: ' + request.ctxInstanceId);
7
8 // Add your logic here
9
10 // Return the response
11 RevSignaling.TransactionResponse response = new RevSignaling.TransactionResponse();
12 response.status = RevSignaling.TransactionStatus.SUCCESS;
13 response.message = 'Apex method was successfully executed!';
14 return response;
15 }
16}Refer to Customize Your Pricing Procedures With Apex Hooks for additional samples that cover unique pricing scenarios by implementing this interface.
SignalingApexProcessor Methods
The SignalingApexProcessor method executes the specified transaction request, which returns the corresponding response.
SignalingApexProcessor Example Implementation
Refer to the example implementation of the SignalingApexProcessor interface to define a context-driven orchestration logic.
The SignalingApexProcessor method executes the specified transaction request, which returns the corresponding response.
The SignalingApexProcessor class includes these methods.
Executes the parameter that’s specified in the instance of a transaction request.
Executes the parameter that’s specified in the instance of a transaction request.
public RevSignaling.TransactionResponse execute(RevSignaling.TransactionRequest var1)
var1
Type: RevSignaling.TransactionRequest
Instance of the TransactionRequest class containing the execution parameter.
Type: RevSignaling.TransactionResponse
Response from the orchestration.
Refer to the example implementation of the SignalingApexProcessor interface to define a context-driven orchestration logic.
This is an example implementation of the RevSignaling.SignalingApexProcessor interface.
1public class SignalingApexProcessorImpl implements RevSignaling.SignalingApexProcessor {
2
3 public RevSignaling.TransactionResponse execute(RevSignaling.TransactionRequest request) {
4 System.debug('Executing SampleValidClass...');
5 System.debug('Procedure Plan: ' + request.procedurePlanInstance);
6 System.debug('Context Instance: ' + request.ctxInstanceId);
7
8 // Add your logic here
9
10 // Return the response
11 RevSignaling.TransactionResponse response = new RevSignaling.TransactionResponse();
12 response.status = RevSignaling.TransactionStatus.SUCCESS;
13 response.message = 'Apex method was successfully executed!';
14 return response;
15 }
16}