public interface ScriptEngineCallback
ScriptService.init(ScriptEngineCallback)
to provide them callback interface to push back results for asynchronous executions an to get additional context information whenever its needed.| Modifier and Type | Method and Description |
|---|---|
AsyncResult |
getAsyncResult(java.lang.String id)
Restores
AsyncResult object by given id. |
ExecutionContext |
getExecutionContext()
Retrieves addition execution context information by the System.
|
AsyncResult getAsyncResult(java.lang.String id)
AsyncResult object by given id.
AsyncResult-s are used by asynchronous Script Service methods whenever they wish to complete
the real action execution asynchronously in background, see ScriptService.
AsyncResult objects have id-s, see AsyncResult.getId() allowing the Script Service
to not keep temporarily the AsyncResult object until execution is complete, but to restore the objects via
the system callback.id - id of the AsyncResult object.AsyncResult object.ExecutionContext getExecutionContext()
ScriptService), the ExecutionContext may provide information
on which concreted managed device the script (producing the method call) is executed.Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.