-
Notifications
You must be signed in to change notification settings - Fork 1
(E) BatchActivity
Roguyt edited this page Nov 7, 2016
·
3 revisions
#WIP
#BatchActivity
This typical type of Batch Activity select all the data at once, and divide them in differents packets for each BS.
##Definition of the class
export default class BA_XXX extends BatchActivity<T, BS_XXX>
##Methods required to define
###selectData
public selectData(callback : {([]): void}, params?: any) : void
callback
: Return a callback with one paramater, the list of elements.
params
Parameter set at the launch of the batch (json of the Chain Batch)
###splitData
public splitData(datas: Array<T>) : Array<Array<T>
data
Data recovered by selectData
Return : List of packet (a.k.a the list of elements).
###createBatchSession
public createBatchSession(): U;
Return : The class of the Batch Session U (BS_XXX
).