<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      釘釘開發(fā)之根據(jù)流程碼processCode獲取流程表單schema

      一、環(huán)境:

      1、釘釘oa審批流程中,已有“出差審批”流程,流程碼為:PROC-48E207E5-EB8B-457C-BC3D-86CD5E5A50B3

      2、開發(fā)環(huán)境:IDEA

      二、代碼

      1、獲取token

      package sfccl.api;
      import com.aliyun.dingtalkoauth2_1_0.models.GetAccessTokenResponse;
      import com.aliyun.tea.TeaException;
      
      public class Mytoken {
      //    public static String accessToken;
          String AppKey = "ding**********kkq5";
          String AppSecret = "ZM1iVltcUHlS_***********************_plbobp";
          String accessToken = "";
      
          public static com.aliyun.dingtalkoauth2_1_0.Client createClient() throws Exception {
              com.aliyun.teaopenapi.models.Config config = new com.aliyun.teaopenapi.models.Config();
              config.protocol = "https";
              config.regionId = "central";
              return new com.aliyun.dingtalkoauth2_1_0.Client(config);
          }
      
          public String accessToken() throws Exception {
              //java.util.List<String> args = java.util.Arrays.asList(args_);
              com.aliyun.dingtalkoauth2_1_0.Client client = Mytoken.createClient();
              com.aliyun.dingtalkoauth2_1_0.models.GetAccessTokenRequest getAccessTokenRequest = new com.aliyun.dingtalkoauth2_1_0.models.GetAccessTokenRequest()
                      .setAppKey(AppKey)
                      .setAppSecret(AppSecret);
              try {
                  GetAccessTokenResponse tokenResponse = client.getAccessToken(getAccessTokenRequest);
      //            System.out.println(tokenResponse.body);
      //            System.out.println(tokenResponse.getHeaders());
      //            System.out.println(tokenResponse.getBody());
                  System.out.println(tokenResponse.getBody().accessToken);
                  System.out.println(tokenResponse.getBody().expireIn);
                  accessToken = tokenResponse.getBody().accessToken;
              } catch (TeaException err) {
                  if (!com.aliyun.teautil.Common.empty(err.code) && !com.aliyun.teautil.Common.empty(err.message)) {
                      // err 中含有 code 和 message 屬性,可幫助開發(fā)定位問題
                      System.out.println("TeaException:"+err.message);
                  }
      
              } catch (Exception _err) {
                  TeaException err = new TeaException(_err.getMessage(), _err);
                  if (!com.aliyun.teautil.Common.empty(err.code) && !com.aliyun.teautil.Common.empty(err.message)) {
                      // err 中含有 code 和 message 屬性,可幫助開發(fā)定位問題
                      System.out.println("TeaException:" + err.message);
                  }
      
              }
              return accessToken;
          }
      }

      2、獲取表單schema

      package sfccl.api;
      import com.aliyun.tea.*;
      import com.aliyun.teautil.*;
      import com.aliyun.teautil.models.*;
      import com.aliyun.dingtalkworkflow_1_0.*;
      import com.aliyun.dingtalkworkflow_1_0.models.*;
      import com.aliyun.teaopenapi.*;
      import com.aliyun.teaopenapi.models.*;
      import java.util.List;
      public class GetSchema {
          /**
           * 使用 Token 初始化賬號Client
           * @return Client
           * @throws Exception
           */
          public static com.aliyun.dingtalkworkflow_1_0.Client createClient() throws Exception {
              Config config = new Config();
              config.protocol = "https";
              config.regionId = "central";
              return new com.aliyun.dingtalkworkflow_1_0.Client(config);
          }
          public static void main(String[] args_) throws Exception{
              java.util.List<String> args = java.util.Arrays.asList(args_);
              Mytoken mytoken = new Mytoken();
              String token = mytoken.accessToken();
              com.aliyun.dingtalkworkflow_1_0.Client client = GetSchema.createClient();
              QuerySchemaByProcessCodeHeaders querySchemaByProcessCodeHeaders = new QuerySchemaByProcessCodeHeaders();
              querySchemaByProcessCodeHeaders.xAcsDingtalkAccessToken = token;
              QuerySchemaByProcessCodeRequest querySchemaByProcessCodeRequest = new QuerySchemaByProcessCodeRequest()
                      .setProcessCode("PROC-48E207E5-EB8B-457C-BC3D-86CD5E5A50B3");
              try {
                  QuerySchemaByProcessCodeResponse userResponse = client.querySchemaByProcessCodeWithOptions(querySchemaByProcessCodeRequest, querySchemaByProcessCodeHeaders, new RuntimeOptions());
                  System.out.println(userResponse.getBody().toMap());   //注意:這里使用toMap()才能看到具體表單模板,若使用toString()只能看到類地址
              } catch (TeaException err) {
                  if (!com.aliyun.teautil.Common.empty(err.code) && !com.aliyun.teautil.Common.empty(err.message)) {
                      // err 中含有 code 和 message 屬性,可幫助開發(fā)定位問題
                      System.out.println(err.message);
                  }
              } catch (Exception _err) {
                  TeaException err = new TeaException(_err.getMessage(), _err);
                  if (!com.aliyun.teautil.Common.empty(err.code) && !com.aliyun.teautil.Common.empty(err.message)) {
                      // err 中含有 code 和 message 屬性,可幫助開發(fā)定位問題
                      System.out.println(err.message);
                  }
              }
          }
      }

       三、結果

      1f997da77f873b49b2c3fa2653656762
      7200
      {result={creatorUserId=081944650937626047, gmtModified=2022-11-22T11:04Z, bizType=, formUuid=FORM-E4579C3A-30FA-41F4-9953-321259F1F23B, ownerIdType=orgId, formCode=PROC-48E207E5-EB8B-457C-BC3D-86CD5E5A50B3, icon=null, engineType=0, memo=測試001——api流程表單開發(fā)測試, gmtCreate=2022-11-22T10:44Z, schemaContent={icon=common, title=出差申請, items=[{children=[{componentName=TextField, props={bizAlias=, id=TextField-K2AD4O5B, label=出差地點(單行輸入框, required=null}}, {componentName=DDPhotoField, props={bizAlias=null, id=DDPhotoField_1AWJR59S5BTS0, label=圖片, required=false}}, {componentName=DDDateRangeField, props={bizAlias=null, id=DDDateRangeField_19TP9POJBE800, label=["開始時間","結束時間"], required=false}}, {componentName=NumberField, props={bizAlias=, id=NumberField_1WOIL8PMYE5C0, label=出差人數(shù), required=false}}, {componentName=MoneyField, props={bizAlias=, id=MoneyField_KUPX9HK115O0, label=出差金額(元), required=false}}, {componentName=DDSelectField, props={bizAlias=, id=DDSelectField_21GQV9G2U9Z40, label=出差同伴(單選框), required=false}}, {componentName=TextField, props={bizAlias=, id=TextField_9RF2CYB4B380, label=出差工具, required=false}}, {componentName=TextareaField, props={bizAlias=, id=TextareaField_1WFOQXQCVGLC0, label=出差事由, required=false}}], componentName=TableField, props={staffStatusEnabled=false, bizType=null, hidden=null, payEnable=null, statField=null, link=null, align=null, durationLabel=null, pushToCalendar=null, required=null, duration=null, holidayOptions=[], appId=null, options=null, hiddenInApprovalDetail=null, useCalendar=null, disabled=null, id=TableField_16SENC2STKG00, placeholder=null, asyncCondition=null, behaviorLinkage=null, hideLabel=null, showAttendOptions=null, objOptions=null, notUpper=null, format=null, bizAlias=, label=行程明細, labelEditableFreeze=null, pushToAttendance=null, commonBizType=null, push={attendanceRule=null, pushSwitch=null, pushTag=null}, fieldsInfo=null, requiredEditableFreeze=null, unit=null, extract=null, verticalPrint=null, eSign=null, mainTitle=null, formula=null, notPrint=null, choice=null, childFieldVisible=null, actionName=添加, attendTypeLabel=null}}]}, appUuid=dingc2e467f9e6ed39aaf5bf40eda33b7ba0, appType=0, visibleRange=PRIVATE, listOrder=51, name=出差申請, customSetting=null, procType=, status=PUBLISHED}}
      
      Process finished with exit code 0

       

      posted @ 2022-12-08 09:34  sfccl  閱讀(876)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 女人香蕉久久毛毛片精品| 少妇xxxxx性开放| 久久综合色之久久综合| 日韩精品福利视频在线观看| 亚洲av产在线精品亚洲第一站| 亚洲国产精品高清线久久| 国产在线视频导航| 欧洲精品色在线观看| 伊人久久大香线蕉av色婷婷色 | 国产99青青成人A在线| 亚洲av成人无码精品电影在线| 正在播放酒店约少妇高潮| 国产精品国产三级国产专业| 亚洲精品天堂成人片AV在线播放| 91久久偷偷做嫩草影院免费看 | 国产色无码精品视频免费| 色偷偷偷久久伊人大杳蕉| 国产aⅴ夜夜欢一区二区三区| 国产成人一区二区免av| 东方av四虎在线观看| 国产高清在线精品一区二区三区| 亚洲国产高清第一第二区| 五月天天天综合精品无码| 中国孕妇变态孕交xxxx| 国产最新精品系列第三页| 人人澡人摸人人添| 免费无码又爽又刺激网站| 一本无码在线观看| 亚洲精品一区二区美女| h动态图男女啪啪27报gif| 动漫精品中文字幕无码| 好吊视频在线一区二区三区| 久久av色欲av久久蜜桃网| 日韩一卡二卡三卡四卡五卡| 东京热人妻丝袜无码AV一二三区观| 女人被狂躁c到高潮喷水一区二区| 日本一区二区三区在线看 | 香蕉av777xxx色综合一区| 久久精品视频一二三四区| AV人摸人人人澡人人超碰| 国产成人午夜福利在线小电影|