You can transition based on information stored in a table. To transition using this method, use a workflow execution step with an execution type of SQL.
When transitioning from a properly configured execution step (Execution Type = SQL Statement), transition based on a specific result. The possible results are defined in the workflow step source's validation. The values in this field are determined by a SQL query of a database table.
As with any execution step, configure this transition as an immediate or a manual step.