8000 Rapid composite resource definition and implementation (using ResourceStub) · Issue #23 · oofp/Beseder · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Rapid composite resource definition and implementation (using ResourceStub) #23

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

Open
oofp opened this issue Jan 22, 2020 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@oofp
Copy link
Owner
oofp commented Jan 22, 2020
  1. List of resource states (this states are used as state tags)
  2. List of supported requests
  3. List of supported requests for every states
  4. Possible state transitions (optional)

This info is is used to derive "resource stub" resource which

  1. allow resource implementation to inform client about state transition. The IMPORTANT: state transition by resource implementation is three phase
    a) implementation asks to change
    b) change become visible to client (state change pending)
    c) state changed

After a) and up to c) resource implementation may get requests that were allowed for the previous state (race condition) In this case the state transition is rolled back and resource implementation need to handle new request while having option synchronously to set new state (Still need to think how). In this case resource transition happens along with state transition. Resource stub is state is changed. Request invoked is state of ResourceStub and implementation must reset invoked flag. So alternative approach (nice!) maybe to allow direct (synchronous) state change when handling the resource.

The implementation consists of the following flows (STransData)
a) initialization, that creates the resource from () to single resources set that contains at least ResourceStub
b) event handler (handling of requests (state changes of resource stub) and state changes from other resources)
c) cleanup script (from static state to ())

Transitions and request results will be derived from these three flows

TH will be employed.

@oofp oofp added the enhancement New feature or request label Jan 22, 2020
@oofp oofp self-assigned this Jan 22, 2020
@oofp oofp changed the title Express composite resource definition and implementation Rapid composite resource definition and implementation (using ResourceStub) Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant
0