Skip to content
Snippets Groups Projects

Draft: Update Actions per VF changes

Open Lynn Foster requested to merge actions into sprout
1 file
+ 46
11
Compare changes
  • Side-by-side
  • Inline
+ 46
11
@@ -12,28 +12,63 @@
##
"""
An action verb defining the kind of event, commitment, or intent.
It is recommended that the lowercase action verb should be used as the record ID
An action verb defining the kind of event, commitment, intent, claim, recipe flow.
It is recommended that the camelcase action verb should be used as the record ID
in order that references to `Action`s elsewhere in the system are easily readable.
"""
type Action {
id: ID!
"A unique verb which defines the action."
"A display label for the action."
label: String!
"The accounting effect of an economic event on a resource, increment, decrement, no effect, or decrement resource and increment 'to' resource."
resourceEffect: String! # "increment", "decrement", "noEffect", "decrementIncrement"
"The onhand effect of an economic event on a resource, increment, decrement, no effect, or decrement resource and increment 'to' resource."
onhandEffect: String! # "increment", "decrement", "noEffect", "decrementIncrement"
"The accounting effect of an economic event on a resource."
# "increment", "decrement", "decrementIncrement", "incrementTo", "notApplicable"
accountingEffect: String!
"The onhand effect of an economic event on a resource."
# "increment", "decrement", "decrementIncrement", "incrementTo", "notApplicable"
onhandEffect: String!
"The effect this event shold have on the current location of the resource."
# "new", "update", "updateTo", "notApplicable"
locationEffect: String!
"The effect this event should have for a resource contained in another."
# "update", "remove", "notApplicable"
containedEffect: String!
"The effect this event should have on the primary accountable agent on the resource."
# "new", "updateTo", "notApplicable"
accountableEffect: String!
"The effect the stage should have on the resource."
# "update", "notApplicable"
stageEffect: String!
"The effect the state should have on the resource."
# "update", "updateTo", "notApplicable"
stateEffect: String!
"Denotes if a process input or output, or not related to a process."
inputOutput: String # "input", "output", "notApplicable"
# "input", "output", "outputInput", "notApplicable"
inputOutput: String!
"The action that should be included on the other direction of the process, for example accept with modify."
pairsWith: String # "notApplicable", (any of the action labels)
# "pickup", "dropoff", "modify", "accept", "notApplicable"
pairsWith: String!
"Either only resourceQuantity or only effortQuantity or both make sense on an economic event."
# "resource", "effort", "both"
eventQuantity String!
"An event with this action generally should support the options to create a new resource or to increment an existing stock resource."
# "optional", "optionalTo", "notApplicable"
createResource String!
}
# Core VF action IDs & `resourceEffect`s:
# @see https://valueflo.ws/introduction/flows.html#actions
# Core VF actions:
# @see https://www.valueflo.ws/concepts/actions/.
type Query {
action(id: ID!): Action
Loading