@GET
@Produces(MediaType.APPLICATION_JSON)
@Path("/workflow")
public Workflows getWorkflows(@QueryParam("orderBy") String field, @DefaultValue(PostgresConnector.SORT_ASC) @QueryParam("sortDir") String sortDir,
@DefaultValue("0") @QueryParam("offset") int offset, @DefaultValue("-1") @QueryParam("limit") int limit) {
Workflows workflows = EMPTY_WORKFLOWS;
PostgresConnector conn = null;
try {
conn = getConnector();
if (field == null)
workflows = conn.fetchWorkflows();