In continuation of the conversation at issue #41
May be it possible to run Job only that satisfied condition. Due to in runtime, it may be not need to execute. The api can looks like:
class SupplierWorkflow < Gush::Workflow
def configure
run AskSupplierAboutAvailableAmount
run TryToOrderProducts, should(or condition): ->(previous_result, passed_params) { true }
end
end
All this questions about to adopt this gem for complex workflows, that I have in project, where they are not linear, and branching based on conditions or failures.
P.S.
When do jobs create? When method .start! on workflow ran all described jobs creates or after previous jobs executed, next creates and put to the queue?
In continuation of the conversation at issue #41
May be it possible to run Job only that satisfied condition. Due to in runtime, it may be not need to execute. The api can looks like:
All this questions about to adopt this gem for complex workflows, that I have in project, where they are not linear, and branching based on conditions or failures.
P.S.
When do jobs create? When method .start! on workflow ran all described jobs creates or after previous jobs executed, next creates and put to the queue?