Note: This may fall under the purview of #2
I was wondering if there is an established convention regarding specifying which attributes in the schema are required for the initial Organizer invocation versus those that are added to the schema later while the organized Interactors are running.
E.g.,
class SomeOrganizer
include Interactor
include Interactor::Schema
schema
:initial_value,
:_new_value_from_operation,
:_different_value_we_need_later,
:_end_result
organize(FirstEvent, SecondEvent, ThirdEvent, Finish)
end
class SecondEvent
include Interactor
def call
context.new_value_from_operation = calculate_new_value
end
end
The _attribute_name approach is just an example approach.
Do you have ideas around conventions for indicating which schema attributes are for SomeOrganizer.call(initial_value: some_value) vs one being added later on, e.g., SecondEvent.call(context) adding new_value_from_operation to the context?
Note: This may fall under the purview of #2
I was wondering if there is an established convention regarding specifying which attributes in the schema are required for the initial
Organizerinvocation versus those that are added to the schema later while the organizedInteractors are running.E.g.,
The
_attribute_nameapproach is just an example approach.Do you have ideas around conventions for indicating which schema attributes are for
SomeOrganizer.call(initial_value: some_value)vs one being added later on, e.g.,SecondEvent.call(context)addingnew_value_from_operationto thecontext?