根据最后修改时间查询流程类型数据

  • SDK调用
WorkflowDataClient client = new WorkflowDataClient();
client.setUrl(URL+"/data");
client.setLoginId(LOGINID);
client.setUserOrgId(USERORGID);
client.setSecretKey(SECRETKEY);
client.setTeamCode(TEAMCODE);
client.setNeedauthorization(NEEDAUTHORIZATION);
client.setAuthorizationName(AUTHORIZATIONNAME);
client.setAuthorizationKey(AUTHORIZATIONKEY);
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
String dstr="2019-08-28";
try{
    Date date = sdf.parse(dstr);
    int topSize = 100;
    ResultEntity<List<ApplicationType>> resultEntity = client.queryApplicationTypes(topSize,date);
    String result = JSONObject.fromObject(resultEntity, JsonHelper.getJsonConfig(WorkItem.class)).toString();
    System.out.println(result);
}catch (ParseException e){
    e.printStackTrace();
}
  • CURL 调用
curl -X GET "URL/data/queryApplicationTypes?lastUpdateTime=2019-11-03 22:22:22" -H "accept: application/json"
  • 响应示例
{
  "businessObject": [
    {
      "appType": "test001",
      "appTypeId": "f6f73cb6-142b-4148-b867-32df3cde6260",
      "appTypeName": "test12",
      "orderBy": 0,
      "remark": "",
      "status": "enable",
      "teamCode": "testfortrain"
    }
  ],
  "message": "成功",
  "statusCode": 200,
  "success": true
}