xtendm3-sdk.0.18.3.source-code.MICallerAPI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xtendm3-sdk Show documentation
Show all versions of xtendm3-sdk Show documentation
XtendM3 SDK for developing XtendM3 Extensions locally
The newest version!
import groovy.lang.Closure;
import java.util.Map;
/**
* API for MI calls
*
* @since API Version 0.1.0
*/
public interface MICallerAPI {
/**
* Performs MI transaction, if an error occurs the callback will receive a map with keys 'error', 'errorMsid' and 'errorMessage'
*
* @param program Program name
* @param transaction Transaction name
* @param callback Callback function
* @since API Version 0.1.0
*/
void call(String program, String transaction, Closure> callback);
/**
* Performs MI transaction for the given parameters map, if an error occurs the callback will receive a map with keys 'error', 'errorMsid' and 'errorMessage'
*
* @param program Program name
* @param transaction Transaction name
* @param parameters Parameter map
* @param callback Callback function
* @since API Version 0.1.0
*/
void call(String program, String transaction, Map parameters, Closure> callback);
/**
* Sets the max amount of responses to receive when calling a list transaction
*
* @param maxRecords Max records
* @since API Version 0.14.0
*/
void setListMaxRecords(int maxRecords);
/**
* Sets the date format. Available formats: YMD8, YMD6, MDY6, DMY6, YWD5
*
* @param dateSep Date separator
* @param dateForm Date format
*/
void setDateFormat(char dateSep, String dateForm);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy