SignalingApexProcessor Interface

Defines the context-driven orchestration logic based on procedure plan instance and contextual instance.

Namespace 

RevSignaling

Usage 

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.

The SignalingApexProcessor class includes these methods.

  • execute(var1)

    Executes the parameter that’s specified in the instance of a transaction request.

execute(var1) 

Executes the parameter that’s specified in the instance of a transaction request.

Signature 

public RevSignaling.TransactionResponse execute(RevSignaling.TransactionRequest var1)

Parameters 

var1

Type: RevSignaling.TransactionRequest

Instance of the TransactionRequest class containing the execution parameter.

Return Value 

Type: RevSignaling.TransactionResponse

Response from the orchestration.

SignalingApexProcessor Example Implementation 

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}