Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement StateManager (fixes #150) #153

Merged
merged 15 commits into from
Nov 14, 2017
Merged

Implement StateManager (fixes #150) #153

merged 15 commits into from
Nov 14, 2017

Conversation

jace
Copy link
Member

@jace jace commented Oct 30, 2017

No description provided.

@jace
Copy link
Member Author

jace commented Oct 30, 2017

The terms "state" and "status" appear interchangeable, but common usage shows a slight bias in meanings, which I used when deciding to call this StateProperty instead of StatusProperty:

  1. "State" indicates the state of an item in a process or workflow, without value judgement on the state. It typically indicates where the object is.
  2. "Status" indicates how the object is doing. Good, bad, ahead, lagging, etc.

As "state" is a fixed value while "status" is calculated, I've called this a "state property".

Update: It's now a "state manager".

@jace
Copy link
Member Author

jace commented Oct 31, 2017

StateProperty must support retrieval of the state label, perhaps with a .label attribute.

"""
self.states[name] = (value, validator, class_validator)

def transition(self, from_, to):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to mention from_? Would there be cases where from_ may not matter?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see it allows a list, so I suppose that helps.

@jace jace changed the title Implement StateProperty (fixes #150) Implement StateManager (fixes #150) Nov 10, 2017
@jace jace merged commit 533bc85 into master Nov 14, 2017
@jace jace deleted the issue-150-stateproperty branch November 14, 2017 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants