Learning Objective:
After completing this unit, you’ll be able to:
- Describe custom apex class.
- Comfortably use the apex class to implement the custom processing integration.
Introduction
To obtain more potential to enable the user to execute the business process by practicing an apex class through which SKYVVA pass data & message to the user after the user performs its own business logic already with data that SKYVVA passed, later user must update message status and return it to SKYVVA. The operation is at block 4 and here we add new operation types like Apex Class.
What is Operation type – Apex class?
In Apex, users can define top-level classes (also called outer classes) as well as inner classes, that is, a class defined within another class. You can only have inner classes one level deep.
public class myOuterClass {
// Additional myOuterClass code here
class myInnerClass {
// myInnerClass code here
}
}
Basic Processing Steps:
How to use the Apex Class, the process is given below:-
- Click on Setup, and in Quick Find box, write Apex Class.
- In the Apex class setup page, select “New”, as shown in the picture given below.
- Paste the given code in Apex class Body. The code for example is given below.
- Click Save, As shown in the picture given below.
The configuration on the interface
- Create an interface and choose an operation “Apex Class”.
- In the interface detail page, Enter your Apex class name in Operation Type Apex Class.
- Do mapping
- Push data Using Manual load
- Check message in message monitoring