getTestRuntimeConfig

Helper for Configuration for the workflow runtime in an application. This allows one to specify a project property from the gradle build to choose a runtime. e.g. add -Pworkflow.runtime=conflate in your gradle build to build the conflate runtime into the application.

The com.squareup.workflow1.testing.WorkflowTestRuntime and com.squareup.workflow1.testing.RenderTester runtimes already call this utility. To honor this property from your own runtime call this function and pass the result to the call to renderWorkflowIn as the RuntimeConfig parameter.

Current options (can be combined with - characters, e.g. conflate-partial):

  • conflate Process all queued actions before passing rendering to the UI layer.

  • stateChange Only re-render when the state of some WorkflowNode has been changed by an action cascade.

  • partial Partial tree rendering, which only re-renders each Workflow node if: 1) its state changed; or 2) one of its descendant's state changed. (This option requires stateChange, and enables it as well.)

  • stable Enables stable event handlers (changes the default value of the remember parameter of RenderContext.eventHandler functions from false to true)