Skip to content

proposal: a create-from is guarded by the source's status - #64

Open
delchev wants to merge 1 commit into
mainfrom
propose/generates-from-status
Open

proposal: a create-from is guarded by the source's status#64
delchev wants to merge 1 commit into
mainfrom
propose/generates-from-status

Conversation

@delchev

@delchev delchev commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Proposal 0032-create-from-guarded-by-source-status.md. Implementation: eclipse-dirigible/dirigible#7068.

A generates create-from runs whenever it is invoked, as often as it is invoked. That is right for an action a user may repeat and wrong for the flow the construct exists for - minting a follow-up document from a source that can only produce one. A sourceStatus completion hook flips the source once the target exists, and the button goes on being offered on the flipped record: a second invoice for the same proforma, to the same customer, with nothing failing.

The hook already declares what "already done" looks like. Nothing consults it.

Proposes fromStatus: - the source statuses the action may run from - which is the from: of a transitions entry, spelled differently only because from: on a create-from already names the source entity. A create-from declaring sourceStatus and no fromStatus is guarded against exactly that status, so a model carrying this today is corrected without an authoring change.

Carries Specification text, Anchor and DSL index sections for the fold.

A generates create-from runs whenever it is invoked, as often as it is
invoked - so a sourceStatus completion hook flips the source and the button
goes on being offered on the flipped record, minting a second document from
a source that can produce only one.

Proposes fromStatus: on a create-from (the transitions from:, spelled
differently because from: already names the source entity), and derives the
implied guard from a declared sourceStatus so an existing model is corrected
without an authoring change.
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.

1 participant