Table of Contents

Search

  1. Preface
  2. Introduction to Business Entity Services
  3. EJB Business Entity Service Calls
  4. REST Business Entity Service Calls
  5. REST APIs for Data Director
  6. SOAP Business Entity Service Calls
  7. Cross-reference Records and BVT Calculations Services
  8. Supporting Corporate Linkage Service
  9. External Calls to Cleanse, Analyze, and Transform Data
  10. Appendix A: Using REST APIs to Add Records
  11. Appendix B: Using REST APIs to Upload Files
  12. Appendix C: Using REST APIs to Manage Reports

Process Method Parameters

Process Method Parameters

When you implement the business logic for an external call, you can use process method parameters.
Use the following parameters in a custom logic Java interface:
helperContext
Defines the helper execution context that the Service Data Objects (SDO) operation requires.
inputSdo
Specifies the Service Data Object that represents the business entity, including parent and child records.
inParams
Specifies input properties from the previous request and directly depends on the defined service phase within the external call. The inParams parameter can also include the outParams parameters from a previous call.
For example, validateOnly is an input property, that indicates to perform validation at a parent record, child record, or business entity level.
The validateOnly property can have the following values:
  • true. Performs validation for a parent or child record. For example, you can specify this property to validate 10 telephone numbers individually.
  • null or false. Performs validation at a business entity level. For example, you can specify this property to perform validation for the business entity when a user saves the record.
Another example is the servicePhase property that specifies the name of the external call.
outParams
Adds or overwrites the supported inputSdo and the inParams parameters. For example, an external call that includes the Merge_CO_Before_Everything event might update the keysAndOverrides parameter to add more business entity keys or remove keys for a merge.
In the return value, when there is a data change in the inputSdo, the external call returns one of the following values:
  • null. When there is no data change in the inputSdo parameter.
  • The modified inputSdo parameter. When there is a data change in the inputSdo parameter and you want to reflect the change in the business entity.
The following sample code shows a custom logic java interface that includes the process method parameters:
public class ValidateOrgWriteBeforeEverything implements CustomLogic { @Override public DataObject process(HelperContext helperContext, DataObject inputSdo, Map<String, Object> inParams, Map<String, Object> outParams) throws StepException { // your implementation return null; //or return inputSdo; } }

0 COMMENTS

We’d like to hear from you!