新規イベント用の新規クラスの登録
新規イベントを登録するには、新規クラスを登録して、ビジネスイベントのフレームワークを拡張する必要があります。この手順によって、新規クラスを登録することができます。すべてのビジネスイベントは、com.sap.isa.businessobject.businessevent を拡張したものです。コーディングは以下のような構文となります。

public class ZEvent extends BusinessEvent {
/**
* constructor
*/
public ZEvent(ZObject zObject) {
super(zObject);
}
}
新規イベント Request Help の場合、コーディングは以下のような構文になります。

public class RequestHelpEvent extends BusinessEvent {
private Shop shop;
private String helpType;
/**
* constructor
*/
public RequestHelpEvent(User user, Shop shop, String helpType) {
super(user);
this.shop = shop;
this.helpType = helpType;
}
/**
* Returns the property shop
*
* @return shop
*/
public Shop getShop() {
return this.shop;
}
/**
* Returns the property helpType
*
* @return helpType
*
*/
public String getHelpType() {
return this.helpType;
}
}
参照: