全部 ApiPost使用 后端 前端 接口测试 IOS Android 数据库 2022 测试技术 工具
问答 / 问答详情

在被转义的json中,变量应该如何传递呢??

apipost团队您好,在被转义的json中,变量应该如何传递呢??

在被转义的json中,变量应该如何传递呢??

| 0 收藏

3 个回答

麻烦您把这串json发我一下试试

{

    "id": "{{流程模型id}}",

    "type": "1",

    "saveType": "publish",

    "flowJson": "{\"graph\":{\"data\":{\"name\":\"apipost\",\"description\":\"apipost\",\"globalformid\":\"\",\"globalformname\":\"\",\"title\":\"\",\"useNewDesigner\":\"true\",\"iconType\":\"2\",\"isUflow\":\"1\",\"templateStatus\":\"0\",\"meta\":{\"kpiProcessWarningHour\":\"0\",\"formType\":\"eformvue\",\"kpiProcessReasonableDay\":\"0\",\"processMobileApproval\":\"no\",\"isParticipateKPI\":\"yes\",\"kpiProcessReasonableMinute\":\"0\",\"kpiProcessWarningMinute\":\"0\",\"titleAutoUpdate\":\"no\",\"processDefineid\":\"{{流程模型key}}-1\",\"event_auto_perform\":\"no\",\"showTrackInForm\":\"no\",\"kpiProcessReasonableHour\":\"0\",\"kpiProcessWarningDay\":\"0\",\"flowOwnerDeptId\":\"4028ac81802c57fa01802c7de3b8001e\",\"flowOwnerDeptName\":\"CFGS;XXX公司\",\"flowOwnerUserId\":\"759549010001\",\"flowOwnerUserName\":\"cam2;cam2\"},\"variables\":[],\"conditionType\":null,\"conditions\":[],\"processAuth\":{\"users\":[],\"depts\":[],\"roles\":[],\"groups\":[],\"positions\":[]},\"magics\":[],\"actors\":{},\"events\":[],\"ideas\":[],\"subs\":[],\"releaseTask\":\"\",\"secretControl\":\"no\",\"roleConstrain\":\"\",\"flowVersion\":null,\"processSystems\":[],\"flowStatus\":\"1\",\"modelId\":\"8a69ef5d8ca04515018ca55af36974c4\"},\"key\":\"{{流程模型key}}\"},\"node\":[{\"position\":{\"x\":40,\"y\":90},\"size\":{\"width\":48,\"height\":48},\"view\":\"vue-shape-view\",\"shape\":\"vue-shape\",\"id\":\"start1\",\"zIndex\":100,\"data\":{\"nodeType\":\"start\",\"alias\":\"开始\",\"name\":\"start1\",\"meta\":{},\"events\":[]},\"component\":\"start\",\"ports\":{\"groups\":{\"port_g\":{\"attrs\":{\"circle\":{\"dataClass\":\"choice-point\",\"r\":6,\"magnet\":true,\"stroke\":\"#5b8ffa\",\"strokeWidth\":2,\"fill\":\"#fff\"}},\"position\":{\"name\":\"ellipseSpread\",\"args\":{\"start\":0,\"step\":90}}}},\"items\":[{\"group\":\"port_g\",\"id\":\"p_top\"},{\"group\":\"port_g\",\"id\":\"p_right\"},{\"group\":\"port_g\",\"id\":\"p_bottom\"},{\"group\":\"port_g\",\"id\":\"p_left\"}]}},{\"position\":{\"x\":482,\"y\":90},\"size\":{\"width\":48,\"height\":48},\"view\":\"vue-shape-view\",\"shape\":\"vue-shape\",\"id\":\"end1\",\"zIndex\":100,\"data\":{\"nodeType\":\"end\",\"alias\":\"结束\",\"name\":\"end1\",\"meta\":{},\"events\":[]},\"component\":\"end\",\"ports\":{\"groups\":{\"port_g\":{\"attrs\":{\"circle\":{\"dataClass\":\"choice-point\",\"r\":6,\"magnet\":true,\"stroke\":\"#5b8ffa\",\"strokeWidth\":2,\"fill\":\"#fff\"}},\"position\":{\"name\":\"ellipseSpread\",\"args\":{\"start\":0,\"step\":90}}}},\"items\":[{\"group\":\"port_g\",\"id\":\"p_top\"},{\"group\":\"port_g\",\"id\":\"p_right\"},{\"group\":\"port_g\",\"id\":\"p_bottom\"},{\"group\":\"port_g\",\"id\":\"p_left\"}]}},{\"position\":{\"x\":170,\"y\":73},\"size\":{\"width\":185,\"height\":82},\"view\":\"vue-shape-view\",\"shape\":\"vue-shape\",\"id\":\"task1\",\"zIndex\":100,\"data\":{\"nodeType\":\"task\",\"alias\":\"编制\",\"dealtype\":\"1\",\"label\":\"编制\",\"name\":\"task1\",\"taskFormId\":\"\",\"taskFormName\":\"\",\"candidateUsers\":\"3116428a-f7b7-a800-2d88-e56b00b067c4\",\"meta\":{\"down_yes_secret\":\"no\",\"supersede_multi\":\"no\",\"isReadTodo\":\"no\",\"deptTreeHideOrg\":\"no\",\"userSelectType\":\"manual\",\"kpiTaskReasonableHour\":\"0\",\"autoHastenTask\":\"no\",\"isSelectUser\":\"yes\",\"orgTreeOpenToDept\":\"no\",\"isWorkHandUser\":\"yes\",\"kpiTaskReasonableDay\":\"0\",\"orgTreeDefaultOpen\":\"no\",\"branch_attachment_auth\":\"no\",\"isAutoGetUser\":\"no\",\"phoneInfo\":\"no\",\"canHideDialog\":\"no\",\"ideaCompelManner\":\"no\",\"kpiTaskReasonableMinute\":\"0\",\"kpiTaskWarningMinute\":\"0\",\"specDateChange\":\"0\",\"down_yes\":\"yes\",\"event_auto_start\":\"no\",\"run_must_user\":\"0\",\"specDateType\":\"0\",\"isSendReaderTodo\":\"no\",\"isNeedZbIdea\":\"no\",\"isMustUser\":\"no\",\"taskMobileApproval\":\"no\",\"kpiTaskWarningDay\":\"0\",\"task_zi_ding_yi_jian\":\"no\",\"kpiTaskWarningHour\":\"0\",\"checkTask\":\"0\",\"supposeCycle\":\"3\",\"ideaType\":\"can\",\"milestoneTask\":\"0\",\"event_auto_deleteSubProcess\":\"no\",\"secretVar\":\"\",\"isNeedIdea\":\"yes\",\"showTrackInForm\":\"no\",\"preview_yes\":\"yes\",\"handHastenTask\":\"no\",\"ideaDisplayStyle\":\"add\"},\"events\":[],\"magics\":[{\"id\":\"\",\"type\":\"transmit\",\"name\":\"发送阅知\",\"alias\":\"\",\"possess\":\"\",\"preProcessing\":{\"id\":null,\"clazz\":\"\",\"name\":null,\"fields\":[]},\"postProcessing\":{\"id\":null,\"clazz\":\"\",\"name\":null,\"fields\":[]},\"activity\":\"\",\"activityValue\":\"\",\"scope\":\"\",\"clazz\":null,\"jScript\":\"\",\"jscript\":\"\"}],\"actors\":{\"3116428a-f7b7-a800-2d88-e56b00b067c4\":[{\"id\":\"8a69ef10889ac62601889e0d7e431101\",\"roleCode\":\"cam1\",\"roleName\":\"cam1\",\"name\":\"cam1\",\"type\":\"role\"}]},\"fieldsAuths\":[],\"selfIdeas\":[],\"attachmentAuths\":[],\"docRights\":[],\"subs\":[],\"checkLists\":[],\"roleConstrain\":\"\",\"operationSpecification\":[]},\"component\":\"task\",\"ports\":{\"groups\":{\"port_g\":{\"attrs\":{\"circle\":{\"dataClass\":\"choice-point\",\"r\":6,\"magnet\":true,\"stroke\":\"#5b8ffa\",\"strokeWidth\":2,\"fill\":\"#fff\"}},\"position\":{\"name\":\"ellipseSpread\",\"args\":{\"start\":0,\"step\":90}}}},\"items\":[{\"group\":\"port_g\",\"id\":\"p_top\"},{\"group\":\"port_g\",\"id\":\"p_right\"},{\"group\":\"port_g\",\"id\":\"p_bottom\"},{\"group\":\"port_g\",\"id\":\"p_left\"}]}}],\"edge\":[{\"shape\":\"edge\",\"attrs\":{\"line\":{\"stroke\":\"#00cc99\",\"targetMarker\":{\"name\":\"block\",\"args\":{\"size\":\"3\",\"width\":\"6\",\"height\":\"9\"}},\"strokeDasharray\":0,\"style\":{\"animation\":\"ant-line 30s infinite linear\"}}},\"id\":\"8a69ef5d8ca04515018ca55b38eb74cd\",\"zIndex\":-1,\"data\":{\"alias\":\"\",\"to\":\"task1\",\"dueDate\":null,\"conditionType\":null,\"order\":null,\"description\":null,\"meta\":{},\"events\":[],\"conditions\":[],\"candidateUsers\":null,\"actors\":{},\"autoSubmit\":false},\"labels\":[{\"attrs\":{\"label\":{\"text\":\"\"}}}],\"source\":{\"cell\":\"start1\",\"port\":\"p_right\"},\"target\":{\"cell\":\"task1\",\"port\":\"p_left\"},\"vertices\":[]},{\"shape\":\"edge\",\"attrs\":{\"line\":{\"stroke\":\"#00cc99\",\"targetMarker\":{\"name\":\"block\",\"args\":{\"size\":\"3\",\"width\":\"6\",\"height\":\"9\"}},\"strokeDasharray\":0,\"style\":{\"animation\":\"ant-line 30s infinite linear\"}}},\"id\":\"8a69ef5d8ca04515018ca55b38eb74ce\",\"zIndex\":-1,\"data\":{\"alias\":\"\",\"to\":\"end1\",\"dueDate\":null,\"conditionType\":null,\"order\":null,\"description\":null,\"meta\":{},\"events\":[],\"conditions\":[],\"candidateUsers\":null,\"actors\":{},\"autoSubmit\":false},\"labels\":[{\"attrs\":{\"label\":{\"text\":\"\"}}}],\"source\":{\"cell\":\"task1\",\"port\":\"p_right\"},\"target\":{\"cell\":\"end1\",\"port\":\"p_left\"},\"vertices\":[]}]}",

    "sendXml": "true"

}

麻烦帮忙看下,谢谢

Apipost 私有化火热进行中

撰写答案

只服务于

前后端、移动端、测试人员

提问题 发布您遇到的Bug和问题,上万名大牛和开发者来帮您解决!