|
![]() |
#1 |
Талантливый разгвоздяй
|
Посмотрите на статью на StackOverflow, нам помогла решить похожую проблему год назад:Can't catch exception inside AIF service
Цитата:
AIF has one big transaction somewhere deep in the core code and an own try catch.
So when you throw an error inside AIF sevice it is going to abort the outer transaction and go to staight to the AIF catch clause, skipping all others. That's why I couldn't catch it. Solution could be to commit AIF transaction, run your code and before return begin new transaction. Цитата:
//перед запуском операции закрывались все транзакциии
ttsLevel = appl.ttsLevel(); for (i = 1; i <= ttsLevel; i++) { ttsCommit; } //-->>... //здесь вызывалась бизнес-логика (у нас запускался сервис Аксапты) //--<< //после выполнения операции транзакции заново открывались for (i = 1; i <= ttsLevel; i++) { ttsBegin; } |
|
Теги |
aif, транзакции |
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|