{ "label": "基础", "order": 4, "blocks": [ { "type": "All", "name": "CheckTaskRecordIdIsExistBp", "label": "校验任务实例Id是否存在", "description": "", "inputParams": [ { "name": "taskRecordId", "type": "String", "label": "任务实例Id", "description": "", "required": true, "defaultValue": null, "options": [] } ], "extraInputParamsFunc": "", "outputParams": {}, "contextVariables": { "taskRecordIdIsExist": { "type": "boolean", "label": "Id是否存在", "description": null } }, "children": {}, "hidden": false, "scriptFunction": null }, { "type": "All", "name": "ReleaseResourceBp", "label": "立即释放任务资源(相同设备下可以继续下达相同任务)", "description": "", "inputParams": [], "extraInputParamsFunc": "", "outputParams": {}, "contextVariables": {}, "children": {}, "hidden": false, "scriptFunction": null }, { "type": "All", "name": "CreateUuidBp", "label": "创建唯一id", "description": "", "inputParams": [], "extraInputParamsFunc": "", "outputParams": {}, "contextVariables": { "createUuid": { "type": "String", "label": "创建唯一id", "description": null } }, "children": {}, "hidden": false, "scriptFunction": null, "operatingInstructions": "## 校验任务实例Id是否存在 (CheckTaskRecordIdIsExistBp)\n\n### 描述\n本块用于校验任务实例Id是否存在。\n\n### 输入参数\n\n| 参数名 | 是否必填 | 类型 | 描述 |\n|--------------|---------|--------|------------|\n| taskRecordId | 必填 | String | 任务实例Id |\n\n### 上下文变量\n\n| 变量名 | 类型 | 描述 |\n|-----------------|----------|-----------|\n| taskRecordIdIsExist | boolean | Id是否存在 |\n" }, { "type": "All", "name": "CurrentTimeStampBp", "label": "当前时间戳", "description": "", "inputParams": [], "extraInputParamsFunc": "", "outputParams": {}, "contextVariables": { "currentTimeStamp": { "type": "Long", "label": "当前时间戳", "description": null } }, "children": {}, "hidden": false, "scriptFunction": null, "operatingInstructions": "## 当前时间戳 (CurrentTimeStampBp)\n\n### 描述\n本块用于获取当前时间戳。\n\n### 输入参数\n无\n\n### 上下文变量\n\n| 变量名 | 类型 | 描述 |\n|-----------------|-------|------------|\n\n| currentTimeStamp | Long | 当前时间戳 |\n\n## 执行sql (JdbcExecuteBp)\n### 描述\n本块用于执行sql语句。\n\n### 输入参数\n\n| 参数名 | 是否必填 | 类型 | 描述 |\n|-------|---------|--------|---------|\n| sql | 必填 | String | sql语句 |\n\n### 输出参数\n无\n" }, { "type": "All", "name": "JdbcExecuteBp", "label": "执行sql", "description": "", "inputParams": [ { "name": "sql", "type": "String", "label": "sql语句", "description": "", "required": true, "defaultValue": null, "options": [] } ], "extraInputParamsFunc": "", "outputParams": {}, "contextVariables": {}, "children": {}, "hidden": false, "scriptFunction": null, "operatingInstructions": "## 查询sql (JdbcQueryBp)\n\n### 描述\n本块用于查询sql语句。\n\n### 输入参数\n\n| 参数名 | 是否必填 | 类型 | 描述 |\n|-------|---------|--------|---------|\n| sql | 必填 | String | sql语句 |\n\n### 上下文变量\n\n| 变量名 | 类型 | 描述 |\n|-----------|--------|--------------|\n| resultSet | String | 查询sql返回值 |\n" }, { "type": "All", "name": "JdbcQueryBp", "label": "查询sql", "description": "", "inputParams": [ { "name": "sql", "type": "String", "label": "sql语句", "description": "", "required": true, "defaultValue": null, "options": [] } ], "extraInputParamsFunc": "", "outputParams": {}, "contextVariables": { "resultSet": { "type": "String", "label": "查询sql返回值", "description": null } }, "children": {}, "hidden": false, "scriptFunction": null, "operatingInstructions": "## 查询sql (JdbcQueryBp)\n\n### 描述\n本块用于查询sql语句。\n\n### 输入参数\n\n| 参数名 | 是否必填 | 类型 | 描述 |\n|-------|---------|--------|---------|\n| sql | 必填 | String | sql语句 |\n\n### 上下文变量\n\n| 变量名 | 类型 | 描述 |\n|-----------|--------|--------------|\n| resultSet | String | 查询sql返回值 |\n" }, { "type": "All", "name": "PrintBp", "label": "打印", "description": "", "inputParams": [ { "name": "message", "type": "Any", "label": "消息", "description": "", "required": false, "defaultValue": null, "options": [] } ], "extraInputParamsFunc": "", "outputParams": {}, "contextVariables": {}, "children": {}, "hidden": false, "scriptFunction": null, "operatingInstructions": "## 打印 (PrintBp)\n\n### 描述\n本块用于打印信息。\n\n### 输入参数\n\n| 参数名 | 是否必填 | 类型 | 描述 |\n\n|---------|---------|------|------|\n| message | 非必填 | Any | 消息 |\n\n### 输出参数\n无\n" }, { "type": "All", "name": "StringToJsonArrayBp", "label": "将字符串转换成JSON数组", "description": "", "inputParams": [ { "name": "convertString", "type": "String", "label": "需要转换的字符串", "description": "", "required": true, "defaultValue": null, "options": [] } ], "extraInputParamsFunc": "", "outputParams": { "convertArray": { "type": "Object", "label": "转换后的JSON数组", "description": null } }, "contextVariables": {}, "children": {}, "hidden": false, "scriptFunction": null, "operatingInstructions": "## 将字符串转换成JSON数组 (StringToJsonArrayBp)\n\n### 描述\n本块用于将字符串转换成JSON数组。\n\n### 输入参数\n\n| 参数名 | 是否必填 | 类型 | 描述 |\n|--------------|---------|--------|----------------|\n| convertString | 必填 | String | 需要转换的字符串 |\n\n### 输出参数\n\n| 参数名 | 类型 | 描述 |\n|--------------|--------|------------------|\n| convertArray | Object | 转换后的JSON数组 |\n" }, { "type": "All", "name": "StringToJsonObjectBp", "label": "将字符串转换成JSON对象", "description": "", "inputParams": [ { "name": "convertString", "type": "String", "label": "需要转换的字符串", "description": "", "required": true, "defaultValue": null, "options": [] } ], "extraInputParamsFunc": "", "outputParams": { "convertObject": { "type": "Object", "label": "转换后的JSON对象", "description": null } }, "contextVariables": {}, "children": {}, "hidden": false, "scriptFunction": null, "operatingInstructions": "## 将字符串转换成JSON对象 (StringToJsonObjectBp)\n\n### 描述\n本块用于将字符串转换成JSON对象。\n\n### 输入参数\n\n| 参数名 | 是否必填 | 类型 | 描述 |\n|--------------|---------|--------|----------------|\n| convertString | 必填 | String | 需要转换的字符串 |\n\n### 输出参数\n\n| 参数名 | 类型 | 描述 |\n|--------------|--------|------------------|\n| convertObject | Object | 转换后的JSON对象 |\n" }, { "type": "All", "name": "TimestampBp", "label": "当前时间", "description": "", "inputParams": [], "extraInputParamsFunc": "", "outputParams": {}, "contextVariables": { "timestamp": { "type": "String", "label": "时间", "description": null } }, "children": {}, "hidden": false, "scriptFunction": null, "operatingInstructions": "## 当前时间 (TimestampBp)\n\n### 描述\n本块用于获取当前时间。\n\n### 输入参数\n无\n\n### 上下文变量\n\n| 变量名 | 类型 | 描述 |\n|----------|--------|--------|\n| timestamp | String | 当前时间 |\n" } ] }