View Source Glific.State.Flow (Glific v5.1.6)

Manage flow state and allocation to ensure we only have one user modify a flow at a time

Link to this section Summary

Functions

Check if there is an available flow for this user

Link to this section Functions

@spec get_flow(map(), map()) :: {Glific.Flows.Flow.t(), map()}

Check if there is an available flow for this user

  • If available, return the available flow
  • If none available, return error message along with name of user currently using flow