Command Activities
Smart meter commands are managed by activities. Activities orchestrate one or more communications and execute any completion events associated with the command.
Key Algorithms
This section outlines some of the important algorithms executed as part of the command activity’s lifecycle.
Some algorithms are directly shared by multiple business objects and multiple lifecycle states. In other cases, unique algorithms will perform the same role across business objects. The following section refers to the algorithms generically.
| Lifecycle State | Algorithms |
|---|---|
|
Validate |
The Validate state is an opportunity to check whether the command should execute.
|
|
Validation Error |
If the Activity fails validation, it transitions to the Validation Error state. From this state the activity can be retried and create To Do entriesto notify users of the error.
|
|
Waiting For Effective Date |
Prior to sending the request to the head end system, the activity enters this state.
|
|
Connection Ready |
The Connection Ready state shows that the activity can be executed and creates the proper outbound communication business object. This state can be re-entered when there are multiple outbound communications that are required by the head end system’s API.
|
|
Communication In Progress |
This lifecycle state indicates that an outbound communication is in-progress.
|
|
Communication Error |
An error-handling lifecycle state to which the business object transitions when the communication encounters a problem. The algorithms are similar to those in the Validation Error state.
|
|
Retry |
The lifecycle state responsible for discarding existing outbound communications and transitioning the activity back to Connection Ready. |
|
Execute Completion Events |
This lifecycle state collates the information acquired by the communications and creates some result. For example, in a DeviceStatusCheck, the overall results are set.
|
|
Completion Event Error |
This is another error-handling state similar to the Validation Error and the Communication Error states. The algorithms are the same as in those states. |
|
Completed |
This is the final state representing a successful activity. Finishing tasks are performed and external requesters are notified. |
|
Discarded |
Similarly to the Completed state, the Discarded state finishes the activity and indicates an overall failure. External requesters are notified of the failure and other finishing tasks are performed. |
Parent topic: Overview