workflow-swift icon indicating copy to clipboard operation
workflow-swift copied to clipboard

[WIP] Expose Workflow value to `apply` (backward compatible)

Open square-tomb opened this issue 2 years ago • 0 comments

Trying out exposing a workflow: WorkflowType parameter to the action apply method via an alternative action protocol, WorkflowActionCore.

Actions that don't need the workflow parameter may continue to conform to WorkflowAction, so this change is backward-compatible with existing clients of Workflow.

We might be able to do this more cleanly in API-breaking change. I'll try that out in a separate PR.

Related discussions

To do

  • [ ] How is a WorkflowType value supplied to apply in the context of an action test?
    • [ ] In Kotlin, action tests pass Props to applyTo (e.g.)
  • [ ] Demo using this in Register
  • [ ] Update inline documentation
  • [ ] Update samples & tutorials
  • [ ] Update Xcode templates in Tooling/Templates

square-tomb avatar Dec 15 '23 16:12 square-tomb