}
public static int getNumberOfInProgressUsers(Context c, int wfiID) throws SQLException {
TableRowIterator tri = DatabaseManager.queryTable(c,"cwf_in_progress_user",
"SELECT * FROM cwf_in_progress_user WHERE workflowitem_id="+wfiID+" AND finished= '0'");
return tri.toList().size();
}
public static int getNumberOfFinishedUsers(Context c, int wfiID) throws SQLException {
TableRowIterator tri = DatabaseManager.queryTable(c,"cwf_in_progress_user",
"SELECT * FROM cwf_in_progress_user WHERE workflowitem_id="+wfiID+" AND finished= '1'");