Asset Lifecycle
The transitional states that an asset can pass through in an Enterprise Store lifecycle, will vary based on the type of asset. The following diagram depicts the lifecycle corresponding to gadgets:
The following diagram depicts the sample lifecycle corresponding to sites:
In the ES lifecycle, the ES automatically executes a procedure named the "permission transition", whereby when an asset is moved from one state to another, the permissions associated with the asset too can be changed. As soon as an asset is created, it will be assigned to the Initial  state and will be automatically promoted to the Created state. While, the permission transitions that have been specified between the Initial and Created state will be automatically executed.
Permission Transition
The following table shows the permission transitions that take place when an asset moves from one state to other. The definitions of the registry resource permissions that are mentioned in the tables below are as follows:
- get :Â permission for asset retrieval
- add : permission for adding and updating
- delete  : permission for deleting an asset
- authorize  : permission for lifecycle state transition
- + Â : denotes whether to give the permission
- - Â :Â denotes whether to remove the permission
Sample lifecycle 1
Action | Initial State | New State | private_{author} | reviewer | Internal/everyone |
---|---|---|---|---|---|
Create | Initial | Created | +add | Â | -add |
Submit | Created | In-Review | -add | +add | Â |
Publish | In-Review | Published | +add | -add | Â |
Unpublish | Published | Unpublished | +add +authorize | Â | Â |
Publish | Unpublished | Publish | +add | Â | Â |
Sample lifecycle 2
Action | Initial State | New State | private_{author} | reviewer | Internal/everyone |
---|---|---|---|---|---|
Create | Initial | Created | +add | Â | -add |
Submit | Created | In-Review | -add | +add | Â |
Reject | In-Review | Rejected | +add | -add -authorize | Â |
Re-Submit | Rejected | In-Review | -add | +add | Â |
Approve | In-Review | Approved | +delete | -add | Â |
Publish | Approved | Published | -delete | Â | Â |
Unpublish | Published | Unpublished | +add | Â | Â |
Publish | Unpublished | Publish | +add +authorize | Â | Â |
Deprecate | Publish | Deprecated | +add +authorize | Â | Â |
Retire | Deprecated | Retired | +add | Â | Â |
Deprecate | Unpublished | Deprecated | +add +authorize | Â | Â |