public interface DeviceTaskStatus extends DeviceExecStatus
DeviceExecStatus.getExecState()) is a summary of
all DeviceExecItem-s reported for this device. Partial executions - represented by each DeviceExecItem from the
contained list - are produced by different sub-executions from the Task-action groovy script:
method executions to Script Services may produce result report, each of which would be represented as DeviceExecItem.
closures executions produce separated DeviceExecItem items in the list.
one DeviceExecItem is always present for the execution/evaluation of the groovy script itself.DeviceExecStatus.State| Modifier and Type | Method and Description |
|---|---|
DeviceExecItem |
getExecItem(java.lang.String execItemId)
Returns partial execution report by id.
|
DeviceExecItem[] |
getExecItems()
Returns list of all partial execution reports for this device within the Task.
|
java.lang.String |
getTaskId()
Returns the id of Task when this
DeviceExecStatus is related to a Task,
(see methods Task#listInvolvedDevices(State) and RuleEngine#listTasksForDevice(String, String, State))
or null when this DeviceExecStatus is related to Rule,
(see methods Rule#listInvolvedDevices(State) and RuleEngine#listRulesForDevice(String, String, State)). |
void |
retry()
Retries the device execution within the Task.
|
cancel, getDeviceId, getDeviceType, getExecAction, getExecName, getExecState, getStateDescriptionjava.lang.String getTaskId()
DeviceExecStatus is related to a Task,
(see methods Task#listInvolvedDevices(State) and RuleEngine#listTasksForDevice(String, String, State))
or null when this DeviceExecStatus is related to Rule,
(see methods Rule#listInvolvedDevices(State) and RuleEngine#listRulesForDevice(String, String, State)).DeviceExecItem[] getExecItems()
DeviceExecItem getExecItem(java.lang.String execItemId)
execItemId - execution item id.void retry()
throws ManagementException
ManagementException - if system error occurs.Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.