View Source Glific.State (Glific v5.1.6)

Manage simulator and flows, managing state and allocation to ensure we can have multiple simulators and flow run at the same time

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Free the entity after holding an entity period is over

initializes the state for this organization if not already present

Release the entity associated with this user id. It is possible that there is no entity associated with this user

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

free_entity(state, atom, map)

View Source
@spec free_entity(map(), atom(), map()) :: map()

Free the entity after holding an entity period is over

Link to this function

get_state(state, organization_id)

View Source
@spec get_state(map(), non_neg_integer()) :: map()

initializes the state for this organization if not already present

Link to this function

release_entity(user, state, type)

View Source
@spec release_entity(Glific.Users.User.t(), map(), atom()) :: map()

Release the entity associated with this user id. It is possible that there is no entity associated with this user