use of de.metas.process.RunOutOfTrx in project metasfresh-webui-api by metasfresh.
the class WEBUI_CreateRequest method doIt.
@Override
@RunOutOfTrx
protected String doIt() throws Exception {
final String tableName = getTableName();
if (I_C_BPartner.Table_Name.equals(tableName)) {
final I_C_BPartner bpartner = getRecord(I_C_BPartner.class);
createRequestFromBPartner(bpartner);
} else {
throw new IllegalStateException("Not supported: " + tableName);
}
return MSG_OK;
}
Aggregations