CPC G06F 9/5005 (2013.01) [G06F 9/542 (2013.01); H04L 67/125 (2013.01)] | 24 Claims |
1. A method, performed by a Task Orchestration Module (TOM) of executing a task at least partially on a machine-to-machine (M2M) device, characterized by:
obtaining a task-ID identifying a task to be executed;
retrieving, from a service hosted at a task uniform resource locator (URL) a finite state machine (FSM) specification associated with the task, based on the task-ID; and
successively for each of a plurality of states in the FSM,
ascertaining one or more actions associated with the state, and events and conditions for all transitions out of the state;
determining that at least one action can be performed by the M2M device;
configuring a device management protocol client to observe and report the events and conditions;
commanding the device management protocol client to execute, on the M2M device, the action associated with the state;
monitoring the device management protocol client for occurrence of configured events or conditions;
deciding when an event is triggered; and
transitioning out of the current state in response to the FSM specification and the event trigger.
|