コンテンツエリア開始

Function documentation 新規イベント用の新規クラスの登録  Locate the document in its SAP Library structure

用途

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

Syntax

public class ZEvent extends BusinessEvent {

/**

* constructor

*/

public ZEvent(ZObject zObject) {

super(zObject);

}

}

アクティビティ

新規イベント Request Help の場合、コーディングは以下のような構文になります。

Syntax

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;

}

}

 

参照:

イベントの登録

 

 

コンテンツエリア終了