Skip to content

_changeState() prohibits transition from Paused to Suspended  #111

@rapidddenis

Description

@rapidddenis

function _changeState(uint256 componentId, IComponent.ComponentState newState) internal {

suspend() / resume() and pause() / unpause() are similar functions triggered by instance operator and component owner respectively. But does they have the same priority? Currently, to suspend component, instance operator must wait for component owner to unpause it.
Ideally, for component to transition into Active state both actors must activate it (resume() and unpause()). While, for component to became inactive only one actor is enough with suspend() having priority over pause().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions