위치:
TestReserializeApex 클래스 만들기
통합 절차 예를 만들려면 먼저 호출하는 TestReserializeApex Apex 클래스를 만들어야 합니다.
- 설정에서 빠른 찾기 상자에 apex를 입력합니다.
- Apex 클래스를 클릭합니다.
-
새로 만들기를 클릭합니다.

-
Apex 클래스 탭에 다음 Apex 코드를 입력합니다.
@JsonAccess(serializable='always') global with sharing class TestReserializeApex implements Callable { public Object call(String action, Map<String, Object> args) { Map<String, Object> input = (Map<String, Object>)args.get('input'); Map<String, Object> output = (Map<String, Object>)args.get('output'); Map<String, Object> options = (Map<String, Object>)args.get('options'); return invokeMethod(action, input, output, options); } private Object invokeMethod(String methodName, Map<String,Object> input, Map<String,Object> output, Map<String,Object> options) { return output.put('result', new TestReserialize()); } @JsonAccess(serializable='always') global class TestReserialize { global String name = 'Dave Smith'; } }클래스 및 메서드에 대한 JsonAccess 주석도 사용하십시오.
- Save(저장)를 클릭합니다.
다음 작업: 원격 작업으로 통합 절차 만들기

