留言板

how to capture background task completion event

Brijesh Desai,修改在7 年前。

how to capture background task completion event

Junior Member 帖子: 55 加入日期: 14-10-22 最近的帖子
Hello all,

We are processing and exporting LAR programmatically of a site page when page is deleted through delete action hook class.

Because of making LAR of same page it makes user to wait as it is in process of generating LAR file which takes considerable time.
current code,
File file = LayoutLocalServiceUtil.exportLayoutsAsFile(groupId, privateLayout, layoutIds, parameterMap, null, null);

Above line we want to change it to exportLayoutsAsFileInBackground, so LAR processing will go in background.
After completion of Background process we need to capture by trigger or listener where we can get generated fileEntryId

Any pointers.

Kind regards,
Brijesh