The Item review workflow allows authors to collaborate on the review process by allowing the ability to transition Items through different workflow states. The status of the Items is automatically managed depending on the workflow state that Items are transitioned into. By default, Items are created with the unpublished status in the initial ("Draft") workflow state. The status is automatically set to published once the Item is transitioned to the final ("Approved") workflow state. The Item status is not visible in the list view when workflow is enabled, and instead Authors will see the workflow state of the Items.
Figure: Flow diagram for Learnosity's default workflow states
Any Item not assigned a workflow status will be shown as "Unassigned" (this name is available to change via label bundle), and authors can transition such Items to the initial ("Draft") workflow state.
Items can only be transitioned to available states, as show in the flow diagram above (labels shown). E.G if and Item is in the Draft state, it can be transitioned to only the Blocked or Review state.
Before configuring the workflow feature, you need to have one configured for your Item bank. This can be done by contacting your Learnosity support agent. Once set up, you need to configure the workflow feature through Author API initialization options.
When the workflow is set up for your Item bank, you will be provided with a reference string for the workflow, which you need to pass to Author API's init options.
You can also provide array options to the optional allowed_workflow_states array. This accepts the references which the user is able to see in the Item list (i.e. it is filtered) and defines which workflow states the user can transition Items from. If a user opens an Item in a state not in this array, they can still view and modify the Item, but they can not change its workflow state.
If this array is not provided, Author API will display all Items irrespective of their states (i.e. even those without states), and all Items, again irrespective of state, can be transitioned into another state.