💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 07.获取指定任务信息 获取指定的taskId的任务信息 函数原型: ``` public function getTask($taskId) ``` - - - - - - 参数说明: String $taskId;流程审批任务ID - - - - - - 返回值: ``` { ["code"] => int(1) ["msg"] => string(7) "success" ["data"] => array(49) { ["activityId"] => string(36) "979cae1c-0d8a-442a-b6eb-169db8d6c9d5" ["activityInstanceId"] => string(36) "326431bf-acf0-4009-bd20-b2b20ff441af" ["activityName"] => string(18) "部门主管审批" ["activityShowName"] => string(18) "部门主管审批" ["appId"] => string(2) "OA" ["approAction"] => string(0) "" ["commentCount"] => int(0) ["completedTime"] => int(1541671954000) ["completedType"] => string(8) "Approval" ["createdTime"] => int(1541671892000) ["delegatorName"] => string(0) "" ["directBackAct"] => string(0) "" ["expectFinishedTime"] => int(0) ["fromCreator"] => string(6) "万敏" ["fromCreatorID"] => string(27) "lSRVeq-dzgVvJ-MLEJXO-GZfQHR" ["fromTaskId"] => string(36) "de527d4e-354e-4825-8681-b37c3f605192" ["importance"] => int(0) ["isCirculated"] => bool(false) ["isCompleter"] => bool(true) ["isContainDelegator"] => bool(false) ["isDelegateDone"] => bool(false) ["isDelegatorCompleted"] => bool(false) ["isInsert"] => bool(true) ["isReferred"] => bool(false) ["isValid"] => bool(true) ["openBizDate"] => string(10) "2018-11-08" ["opinion"] => string(0) "" ["realName"] => string(9) "王体东" ["respondType"] => string(6) "anyone" ["secrecy"] => int(0) ["sheetId"] => string(19) "OA20181108181132219" ["startedTime"] => int(0) ["stepId"] => int(2) ["taskCreateType"] => string(8) "Approval" ["taskDealHours"] => int(0) ["taskId"] => string(36) "928404d2-d434-4dd5-a4bb-ba8baab69288" ["taskSeq"] => string(5) "00-01" ["taskState"] => int(2) ["urgeTimes"] => int(0) ["urgency"] => int(0) ["userDpId"] => string(18) "ycsjgswglj_jjg_cwk" ["userDpName"] => string(9) "财务科" ["userId"] => string(27) "hrmYBE-evNduc-kxEmze-jcSIgA" ["userMobile"] => string(11) "13477304418" ["userName"] => string(10) "wangtidong" ["workflowId"] => string(36) "8950199a-85dd-44dc-871e-aec7ffabfe91" ["workflowInstanceId"] => string(36) "12836CA5-6FF7-E937-79AD-F27A5135CF48" ["workflowInstanceState"] => int(2) ["workflowTitle"] => string(12) "测试提单" } } ```