Package com._1c.g5.v8.bm.integration
Interface IBmPlatformEditingContext
-
- All Known Subinterfaces:
IBmPlatformGlobalEditingContext
,IBmPlatformLocalEditingContext
public interface IBmPlatformEditingContext
The interface that represents the editing context. It is a high-level way to manipulateIBmTask
s.The editing context is managed by the
IBmModel
instance. Once the editing context is created by the manager, it can be used for executing user-definedIBmTask
s with a#execute(IBmTask)
.- See Also:
IBmPlatformTask
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
execute(String name, Object taskId, Object serviceId, IBmPlatformTask<T> task)
Executes the giventask
.
-
-
-
Method Detail
-
execute
<T> T execute(String name, Object taskId, Object serviceId, IBmPlatformTask<T> task)
Executes the given
task
.- If the task execution causes the transaction deadlock (throw
BmDeadlockDetectedException
), the transaction is rolled back, and the task executed again. - If after certain amount of retries the task still fails to execute without deadlock, an exception is thrown.
- If the task throws any exception other than
BmDeadlockDetectedException
it is re-thrown.
- Parameters:
name
- The localized name of the task to be displayed on the UI, in logs, etc. May not benull
.taskId
- The ID of the task. May benull
.serviceId
- The ID of the service that requested the task execution. May benull
.task
- The task to execute. May not benull
.- Returns:
- the result returned by
IBmPlatformTask.execute(IBmPlatformTransaction)
method.
- If the task execution causes the transaction deadlock (throw
-
-