Use new script introduced returns the states for the workflow chained to the portal type.

This commit is part of 0ee6eae7e03831c8ece304f977355192eec48b9e.

The script ERP5Site_getWorkflowStateItemList that receives the portal type and the state variable (simulation_state/validation_state) as parameters and it will returns the states for the workflow chained to the portal type