环节流转前校验
开发中
CBD测试环境
https://cbdtest.yitaiyitai.com/bpmax/open-api
CBD测试环境
https://cbdtest.yitaiyitai.com/bpmax/open-api
GET
/step/beforeNextStepScript
请求参数
Header 参数
x-bp-corporation-id
string
v2客户唯一标识
默认值:
{{OPEN_CORPORATION_ID}}
x-bp-app-id
string
v2应用id
默认值:
{{OPEN_APP_ID}}
x-bp-timestamp
string
v2签名时间戳
默认值:
{{TIME_STAMP}}
x-bp-sign
string
v2签名
默认值:
{{SIGN}}
x-open-api-secret
string
可选
默认值:
{{OPEN_API_SECRET_KEY}}
Cookie 参数
cbd_test.yitaiyitai.com_mms
string
可选
默认值:
{{COOKIE}}
Body 参数application/json
action
string
必需
step_id
string
必需
postData
object
必需
id
integer
必需
name
string
必需
version
array[string]
必需
period
string
必需
plan_time_cost
integer
必需
from_flow_step_id
null
必需
flow_step_id
string
必需
order
integer
必需
accept_start_time
null
必需
real_start_time
string
必需
step_alive_time
string
必需
plan_start_time
null
必需
real_end_time
null
必需
plan_end_time
null
必需
brief
null
必需
status
integer
必需
is_public
integer
必需
show_on_pending
integer
必需
delay_level
integer
必需
create_time
string
必需
update_time
string
必需
user_id
integer
必需
flow_id
integer
必需
organization_id
integer
必需
project_id
integer
必需
is_del
integer
必需
seperate_content
integer
必需
form_template_id
integer
必需
reference_attachments
array[string]
必需
formList
array[string]
必需
attachments
array[string]
必需
form_template
object
必需
owner
array [object {11}]
必需
self_steps
array[string]
必需
step_form
object
必需
description
string
必需
target_step
string
必需
user_list
array[string]
必需
userInfo
object
必需
id
integer
必需
phone
string
必需
partner_id
null
必需
avatar
string
必需
name
string
必需
title
string
必需
birthday
null
必需
email
string
必需
extra
string
必需
brief
null
必需
score
integer
必需
status
integer
必需
create_time
string
必需
update_time
string
必需
last_login_time
string
必需
create_ip
string
必需
last_login_ip
string
必需
is_del
integer
必需
organization_id
integer
必需
group_ids
array[integer]
必需
admin_ids
array[integer]
必需
group_list
array [object {4}]
必需
admin_list
array [object {4}]
必需
role_ids
array[integer]
必需
models
array [object {14}]
必需
role
array [object {3}]
必需
points
array[string]
必需
role_key
string
必需
flow
object
必需
periods
array[string]
必需
nodes
array [object {60}]
必需
meta
object
必需
group
array[string]
必需
project
object
必需
id
integer
必需
name
string
必需
customer_name
null
必需
brief
null
必需
qualification
string
必需
project_type_ids
string
必需
address
null
必需
status
integer
必需
computed
null
必需
ext_config
object
必需
delay_level
integer
必需
create_time
string
必需
update_time
string
必需
plan_end_time
null
必需
real_start_time
string
必需
real_end_time
null
必需
start_step_id
integer
必需
start_flow_step_id
string
必需
end_step_id
null
必需
end_flow_step_id
null
必需
user_id
integer
必需
contract_id
string
必需
project_id
integer
必需
path
string
必需
step_id
integer
必需
key
string
必需
flow_type
string
必需
customer_id
integer
必需
owner_id
integer
必需
flow_id
integer
必需
organization_id
integer
必需
is_del
integer
必需
archive_time
null
必需
time_cost
array[string]
必需
visibility
string
必需
visibility_scope
null
必需
workspace
string
必需
attachments
array[string]
必需
owner
object
必需
step_owner_list
array [object {13}]
必需
metaForm
object
必需
projectForm
object
必需
id
integer
必需
project_id
integer
必需
form_id
null
必需
step_id
integer
必需
name
null
必需
desc
null
必需
create_time
string
必需
update_time
string
必需
is_del
integer
必需
template_id
integer
必需
user_id
integer
必需
organization_id
integer
必需
value
array [object {16}]
必需
form_template
object
必需
title_to_value
object
必需
field_to_value
object
必需
key_to_value
object
必需
currentStep
object
必需
id
integer
必需
name
string
必需
version
array[string]
必需
period
string
必需
plan_time_cost
integer
必需
from_flow_step_id
null
必需
flow_step_id
string
必需
order
integer
必需
accept_start_time
null
必需
real_start_time
string
必需
step_alive_time
string
必需
plan_start_time
null
必需
real_end_time
null
必需
plan_end_time
null
必需
brief
null
必需
status
integer
必需
is_public
integer
必需
show_on_pending
integer
必需
delay_level
integer
必需
create_time
string
必需
update_time
string
必需
user_id
integer
必需
flow_id
integer
必需
organization_id
integer
必需
project_id
integer
必需
is_del
integer
必需
seperate_content
integer
必需
form_template_id
integer
必需
reference_attachments
array[string]
必需
formList
array[string]
必需
attachments
array[string]
必需
owner
array [object {11}]
必需
form_template
object
必需
currentStepForm
object
必需
curStepConfig
object
必需
id
string
必需
name
string
必需
period
string
必需
start_step
boolean
必需
approve_to_step
string
必需
approve_fail
string
必需
approve_actions
array[string]
必需
approve_fail_actions
array[string]
必需
condational_nodes
array[string]
必需
auto_trigger_flows
object
必需
approve_count_required
integer
必需
arrange_owner_steps
array[string]
必需
arrange_self_steps
array[string]
必需
arrange_steps_owner
array[string]
必需
attachment_required
array[string]
必需
auto_end_by_subflow
boolean
必需
auto_fail_by_subflow
boolean
必需
auto_range_type
string
必需
auto_range_by_role
boolean
必需
bind_by_subflow
boolean
必需
bind_subflow_add_btn_text
string
必需
bind_subflow_title
string
必需
bind_subflow
string
必需
canExpand
boolean
必需
cc_type
string
必需
cc_user_role
array[string]
必需
cc_user_by_script
string
必需
cc_message_template
string
必需
cc_user
array[string]
必需
create_step
boolean
必需
description
string
必需
done_count_required
integer
必需
end_action_by_subflow
string
必需
expand
boolean
必需
fail_action_by_subflow
string
必需
form_template
integer
必需
hide_step_detail
boolean
必需
hook
object
必需
multiple_actions
boolean
必需
need_confirm
boolean
必需
object_events
array[string]
必需
owner_is_creater
boolean
必需
owner_roles
array[string]
必需
plan_end_time
boolean
必需
plan_start_time
boolean
必需
public
boolean
必需
report_actions
array[string]
必需
role_logic
string
必需
seperate_content
boolean
必需
set_step_owner_time_limit
boolean
必需
show_on_pending
boolean
必需
start_time
boolean
必需
step_detail_id
null
必需
message_template
string
必需
step_transform
string
必需
sub_flow_actions
array[string]
必需
plugin_urgent_reminder
object
必需
plugin_create_feishu_chat
object
必需
beforeNextStepScript
string
必需
enableBeforeNextStepScript
boolean
必需
$moment
string
必需
$service
string
必需
$model
string
必需
示例
{ "action": "string", "step_id": "string", "postData": { "id": 0, "name": "string", "version": [ "string" ], "period": "string", "plan_time_cost": 0, "from_flow_step_id": null, "flow_step_id": "string", "order": 0, "accept_start_time": null, "real_start_time": "string", "step_alive_time": "string", "plan_start_time": null, "real_end_time": null, "plan_end_time": null, "brief": null, "status": 0, "is_public": 0, "show_on_pending": 0, "delay_level": 0, "create_time": "string", "update_time": "string", "user_id": 0, "flow_id": 0, "organization_id": 0, "project_id": 0, "is_del": 0, "seperate_content": 0, "form_template_id": 0, "reference_attachments": [ "string" ], "formList": [ "string" ], "attachments": [ "string" ], "form_template": { "id": 0, "name": "string", "desc": "string", "category": "string", "meta_form_id": 0, "status": 0, "option": { "form": { "size": "string", "inline": true, "autoSave": true, "category": "string", "labelWidth": "string", "labelPosition": "string", "hideRequiredAsterisk": true }, "submitBtn": true }, "create_time": "string", "update_time": "string", "is_del": 0, "origin_template_id": 0, "user_id": 0, "parent_id": 0, "organization_id": 0, "uuid": "string", "path": "string", "visibility": "string", "visibility_scope": null, "rule": [ [ { "prefix": { "type": "string", "props": { "value": "string" } }, "info": { "info": "string", "align": "string", "class": "string" }, "validateRequired": null, "lambda_version": "string", "lambda": "string", "lambdaFields": [ "string" ], "lambdaInit": true, "inject": true, "type": "string", "field": "string", "title": "string", "effect": { "fetch": "string", "_fc": true }, "props": { "multiple": true, "COMPLETE": true }, "options": [ "string" ], "style": { "width": "string" }, "_fc_drag_tag": "string", "name": "string", "children": [ "string" ], "hidden": true, "display": true, "key": "string", "form_rule_id": 0, "form_template_id": 0 } ] ], "value": [ { "field": "string", "title": "string", "field_type": "string", "key": "string", "value": { "value": [ "string" ], "type": "string" }, "validateMap": { "required": null } } ] }, "owner": [ { "id": 0, "name": "string", "avatar": "string", "status": 0, "step_id": 0, "limit_start_time": null, "limit_end_time": null, "attr": null, "organization_id": 0, "models": [ "string" ], "role": [ { "name": "string", "key": "string", "user_id": 0 } ] } ], "self_steps": [ "string" ], "step_form": { "value": [ { "field": "string", "title": "string", "template_id": 0, "field_type": "string", "key": "string", "value": { "value": [ "string" ], "type": "string" }, "validateMap": { "required": null } } ] }, "description": "string", "target_step": "string", "user_list": [ "string" ] }, "userInfo": { "id": 0, "phone": "string", "partner_id": null, "avatar": "string", "name": "string", "title": "string", "birthday": null, "email": "string", "extra": "string", "brief": null, "score": 0, "status": 0, "create_time": "string", "update_time": "string", "last_login_time": "string", "create_ip": "string", "last_login_ip": "string", "is_del": 0, "organization_id": 0, "group_ids": [ 0 ], "admin_ids": [ 0 ], "group_list": [ { "id": 0, "path": "string", "is_admin": 0, "name": "string" } ], "admin_list": [ { "id": 0, "path": "string", "is_admin": 0, "name": "string" } ], "role_ids": [ 0 ], "models": [ { "id": 0, "key": "string", "name": "string", "user_id": 0, "form_template_id": 0, "object_event": [ "string" ], "is_del": 0, "create_time": "string", "update_time": "string", "organization_id": 0, "permission": null, "uuid": "string", "form_id": 0, "form_template": { "id": 0, "name": "string", "desc": "string", "category": "string", "meta_form_id": 0, "status": 0, "option": { "form": { "size": "string", "inline": true, "autoSave": true, "category": "string", "labelWidth": "string", "labelPosition": "string", "hideRequiredAsterisk": true }, "isPreview": true, "submitBtn": true, "isTemplate": true }, "create_time": "string", "update_time": "string", "is_del": 0, "origin_template_id": 0, "user_id": 0, "parent_id": 0, "organization_id": 0, "uuid": "string", "path": "string", "visibility": "string", "visibility_scope": null, "rule": [ "string" ], "value": [ "string" ] } } ], "role": [ { "name": "string", "key": "string", "user_id": 0 } ], "points": [ "string" ], "role_key": "string" }, "flow": { "periods": [ "string" ], "nodes": [ { "id": "string", "name": "string", "period": "string", "start_step": true, "approve_to_step": "string", "approve_fail": "string", "approve_actions": [ "string" ], "approve_fail_actions": [ "string" ], "condational_nodes": [ "string" ], "auto_trigger_flows": { "flows": [ "string" ], "create_again": true, "manual_end": true, "all_finish_action": "string", "fail_action": "string" }, "approve_count_required": 0, "arrange_owner_steps": [ "string" ], "arrange_self_steps": [ "string" ], "arrange_steps_owner": [ "string" ], "attachment_required": [ "string" ], "auto_end_by_subflow": true, "auto_fail_by_subflow": true, "auto_range_type": "string", "auto_range_by_role": true, "bind_by_subflow": true, "bind_subflow_add_btn_text": "string", "bind_subflow_title": "string", "bind_subflow": "string", "canExpand": true, "cc_type": "string", "cc_user_role": [ "string" ], "cc_user_by_script": "string", "cc_message_template": "string", "cc_user": [ "string" ], "create_step": true, "description": "string", "done_count_required": 0, "end_action_by_subflow": "string", "expand": true, "fail_action_by_subflow": "string", "form_template": 0, "hide_step_detail": true, "hook": {}, "multiple_actions": true, "need_confirm": true, "object_events": [ "string" ], "owner_is_creater": true, "owner_roles": [ "string" ], "plan_end_time": true, "plan_start_time": true, "public": true, "report_actions": [ "string" ], "role_logic": "string", "seperate_content": true, "set_step_owner_time_limit": true, "show_on_pending": true, "start_time": true, "step_detail_id": null, "message_template": "string", "step_transform": "string", "sub_flow_actions": [ "string" ], "plugin_urgent_reminder": { "enabled": true, "auto": true, "auto_action": "string", "auto_action_time": "string", "auto_action_deplay": "string", "auto_remind_delay": "string", "freq_control": "string", "urgent": true, "chat_flow": "string", "template": "string", "flows": [ "string" ] }, "plugin_create_feishu_chat": { "type": "string", "enabled": true, "chatName": "string", "autoSendMessage": true, "autoSendCard": true, "subFlow": true, "advancedTaskCard": true, "platform_id": "string", "member_script": "string", "enable_update": true, "cross_tenant": true, "update_chat_configs": [ "string" ], "triggerMode": "string", "chatRange": "string", "chatOwner": "string" }, "beforeNextStepScript": "string", "enableBeforeNextStepScript": true } ], "meta": { "isMeta": true, "name": "string", "public_create": true, "public_create_domain": "string", "use_template_project_name": true, "project_name_template": "string", "task_project_name_template": "string", "computed_fields": [ "string" ], "object_events": [ "string" ], "ignorePause": true, "step_detail_id": null, "plan_end_time_type": "string", "project_name_length": 0, "condational_jump": [ "string" ], "lambda_step_visible": "string", "form_template": 0, "plugin_urgent_reminder": { "enabled": true, "auto": true, "auto_action": "string", "auto_action_time": "string", "auto_action_deplay": "string", "auto_remind_delay": "string", "freq_control": "string", "urgent": true, "chat_flow": "string", "template": "string", "flows": [ "string" ] }, "plugin_urgent_reminder_meta": { "project_delay": "string", "enabled": true, "auto": true, "auto_action": "string", "auto_action_time": "string", "auto_action_deplay": "string", "auto_remind_delay": "string", "freq_control": "string", "urgent": true, "chat_flow": "string", "template": "string", "flows": [ "string" ] }, "plugin_create_feishu_chat": { "type": "string", "enabled": true, "chatName": "string", "autoSendMessage": true, "autoSendCard": true, "subFlow": true, "advancedTaskCard": true, "platform_id": "string", "member_script": "string", "enable_update": true, "cross_tenant": true, "update_chat_configs": [ "string" ], "triggerMode": "string", "chatRange": "string", "chatOwner": "string" }, "hook": { "hook_meta/project_create": { "config": { "flow_type": "string", "flow_key": null }, "key": "string", "organization_id": 0, "enable": true, "name": "string", "type": "string" } }, "table_list_template": 0, "project_create_validator": "string" }, "group": [ "string" ] }, "project": { "id": 0, "name": "string", "customer_name": null, "brief": null, "qualification": "string", "project_type_ids": "string", "address": null, "status": 0, "computed": null, "ext_config": { "autoReplayConfig": {} }, "delay_level": 0, "create_time": "string", "update_time": "string", "plan_end_time": null, "real_start_time": "string", "real_end_time": null, "start_step_id": 0, "start_flow_step_id": "string", "end_step_id": null, "end_flow_step_id": null, "user_id": 0, "contract_id": "string", "project_id": 0, "path": "string", "step_id": 0, "key": "string", "flow_type": "string", "customer_id": 0, "owner_id": 0, "flow_id": 0, "organization_id": 0, "is_del": 0, "archive_time": null, "time_cost": [ "string" ], "visibility": "string", "visibility_scope": null, "workspace": "string", "attachments": [ "string" ], "owner": { "id": 0, "name": "string", "avatar": "string", "phone": "string", "extra": "string", "role": [ { "name": "string", "key": "string", "user_id": 0 } ], "models": [ "string" ] }, "step_owner_list": [ { "id": 0, "name": "string", "avatar": "string", "status": 0, "step_id": 0, "limit_start_time": null, "limit_end_time": null, "attr": null, "organization_id": 0, "flow_step_id": "string", "project_id": 0, "role": [ { "name": "string", "key": "string", "user_id": 0 } ], "models": [ "string" ] } ], "metaForm": { "id": 0, "project_id": 0, "form_id": null, "step_id": 0, "name": null, "desc": null, "create_time": "string", "update_time": "string", "is_del": 0, "template_id": 0, "user_id": 0, "organization_id": 0, "value": [ { "id": 0, "form_id": 0, "title": "string", "field": "string", "key": "string", "validateMap": { "required": null }, "value": { "value": "string", "type": "string" }, "search_value": "string", "create_time": "string", "update_time": "string", "is_del": 0, "template_id": 0, "project_id": 0, "step_id": 0, "flow_step_id": "string", "field_type": "string" } ], "form_template": { "id": 0, "name": "string", "option": { "form": { "size": "string", "inline": true, "autoSave": true, "labelWidth": "string", "labelPosition": "string", "hideRequiredAsterisk": true }, "isPreview": true, "submitBtn": true, "isTemplate": true }, "update_time": "string", "origin_template_id": 0, "visibility_scope": null, "rule": [ [ { "prefix": { "type": "string", "props": { "value": "string" } }, "info": { "info": "string", "align": "string", "class": "string" }, "validateRequired": null, "lambda_version": "string", "lambda": "string", "lambdaFields": [ "string" ], "lambdaInit": true, "inject": true, "type": "string", "field": "string", "title": "string", "defaultValueType": "string", "props": { "maxlength": 0, "placeholder": "string", "clearable": true, "COMPLETE": true }, "style": { "width": "string" }, "effect": { "_fc": true }, "_fc_drag_tag": "string", "name": "string", "options": [ "string" ], "children": [ "string" ], "hidden": true, "display": true, "key": "string", "form_rule_id": 0, "form_template_id": 0 } ] ], "value": [ { "field": "string", "title": "string", "field_type": "string", "key": "string", "value": { "type": "string" }, "validateMap": { "required": null } } ] }, "title_to_value": { "姓名": "string" }, "field_to_value": { "Fvv261o4g4pbz": "string" }, "key_to_value": { "name": "string" } } }, "projectForm": { "id": 0, "project_id": 0, "form_id": null, "step_id": 0, "name": null, "desc": null, "create_time": "string", "update_time": "string", "is_del": 0, "template_id": 0, "user_id": 0, "organization_id": 0, "value": [ { "id": 0, "form_id": 0, "title": "string", "field": "string", "key": "string", "validateMap": { "required": null }, "value": { "value": "string", "type": "string" }, "search_value": "string", "create_time": "string", "update_time": "string", "is_del": 0, "template_id": 0, "project_id": 0, "step_id": 0, "flow_step_id": "string", "field_type": "string" } ], "form_template": { "id": 0, "name": "string", "option": { "form": { "size": "string", "inline": true, "autoSave": true, "labelWidth": "string", "labelPosition": "string", "hideRequiredAsterisk": true }, "isPreview": true, "submitBtn": true, "isTemplate": true }, "update_time": "string", "origin_template_id": 0, "visibility_scope": null, "rule": [ [ { "prefix": { "type": "string", "props": { "value": "string" } }, "info": { "info": "string", "align": "string", "class": "string" }, "validateRequired": null, "lambda_version": "string", "lambda": "string", "lambdaFields": [ "string" ], "lambdaInit": true, "inject": true, "type": "string", "field": "string", "title": "string", "defaultValueType": "string", "props": { "maxlength": 0, "placeholder": "string", "clearable": true, "COMPLETE": true }, "style": { "width": "string" }, "effect": { "_fc": true }, "_fc_drag_tag": "string", "name": "string", "options": [ "string" ], "children": [ "string" ], "hidden": true, "display": true, "key": "string", "form_rule_id": 0, "form_template_id": 0 } ] ], "value": [ { "field": "string", "title": "string", "field_type": "string", "key": "string", "value": { "type": "string" }, "validateMap": { "required": null } } ] }, "title_to_value": { "姓名": "string" }, "field_to_value": { "Fvv261o4g4pbz": "string" }, "key_to_value": { "name": "string" } }, "currentStep": { "id": 0, "name": "string", "version": [ "string" ], "period": "string", "plan_time_cost": 0, "from_flow_step_id": null, "flow_step_id": "string", "order": 0, "accept_start_time": null, "real_start_time": "string", "step_alive_time": "string", "plan_start_time": null, "real_end_time": null, "plan_end_time": null, "brief": null, "status": 0, "is_public": 0, "show_on_pending": 0, "delay_level": 0, "create_time": "string", "update_time": "string", "user_id": 0, "flow_id": 0, "organization_id": 0, "project_id": 0, "is_del": 0, "seperate_content": 0, "form_template_id": 0, "reference_attachments": [ "string" ], "formList": [ "string" ], "attachments": [ "string" ], "owner": [ { "id": 0, "name": "string", "avatar": "string", "status": 0, "step_id": 0, "limit_start_time": null, "limit_end_time": null, "attr": null, "organization_id": 0, "role": [ { "name": "string", "key": "string", "user_id": 0 } ], "models": [ "string" ] } ], "form_template": { "id": 0, "name": "string", "desc": "string", "category": "string", "meta_form_id": 0, "status": 0, "option": { "form": { "size": "string", "inline": true, "autoSave": true, "category": "string", "labelWidth": "string", "labelPosition": "string", "hideRequiredAsterisk": true }, "isPreview": true, "submitBtn": true, "isTemplate": true }, "create_time": "string", "update_time": "string", "is_del": 0, "origin_template_id": 0, "user_id": 0, "parent_id": 0, "organization_id": 0, "uuid": "string", "path": "string", "visibility": "string", "visibility_scope": null, "rule": [ [ { "prefix": { "type": "string", "props": { "value": "string" } }, "info": { "info": "string", "align": "string", "class": "string" }, "validateRequired": null, "lambda_version": "string", "lambda": "string", "lambdaFields": [ "string" ], "lambdaInit": true, "inject": true, "type": "string", "field": "string", "title": "string", "effect": { "fetch": "string", "_fc": true }, "props": { "multiple": true, "COMPLETE": true }, "options": [ "string" ], "style": { "width": "string" }, "_fc_drag_tag": "string", "name": "string", "children": [ "string" ], "hidden": true, "display": true, "key": "string", "form_rule_id": 0, "form_template_id": 0 } ] ], "value": [ { "field": "string", "title": "string", "field_type": "string", "key": "string", "value": { "value": [ "string" ], "type": "string" }, "validateMap": { "required": null } } ] } }, "currentStepForm": {}, "curStepConfig": { "id": "string", "name": "string", "period": "string", "start_step": true, "approve_to_step": "string", "approve_fail": "string", "approve_actions": [ "string" ], "approve_fail_actions": [ "string" ], "condational_nodes": [ "string" ], "auto_trigger_flows": { "flows": [ "string" ], "create_again": true, "manual_end": true, "all_finish_action": "string", "fail_action": "string" }, "approve_count_required": 0, "arrange_owner_steps": [ "string" ], "arrange_self_steps": [ "string" ], "arrange_steps_owner": [ "string" ], "attachment_required": [ "string" ], "auto_end_by_subflow": true, "auto_fail_by_subflow": true, "auto_range_type": "string", "auto_range_by_role": true, "bind_by_subflow": true, "bind_subflow_add_btn_text": "string", "bind_subflow_title": "string", "bind_subflow": "string", "canExpand": true, "cc_type": "string", "cc_user_role": [ "string" ], "cc_user_by_script": "string", "cc_message_template": "string", "cc_user": [ "string" ], "create_step": true, "description": "string", "done_count_required": 0, "end_action_by_subflow": "string", "expand": true, "fail_action_by_subflow": "string", "form_template": 0, "hide_step_detail": true, "hook": {}, "multiple_actions": true, "need_confirm": true, "object_events": [ "string" ], "owner_is_creater": true, "owner_roles": [ "string" ], "plan_end_time": true, "plan_start_time": true, "public": true, "report_actions": [ "string" ], "role_logic": "string", "seperate_content": true, "set_step_owner_time_limit": true, "show_on_pending": true, "start_time": true, "step_detail_id": null, "message_template": "string", "step_transform": "string", "sub_flow_actions": [ "string" ], "plugin_urgent_reminder": { "enabled": true, "auto": true, "auto_action": "string", "auto_action_time": "string", "auto_action_deplay": "string", "auto_remind_delay": "string", "freq_control": "string", "urgent": true, "chat_flow": "string", "template": "string", "flows": [ "string" ] }, "plugin_create_feishu_chat": { "type": "string", "enabled": true, "chatName": "string", "autoSendMessage": true, "autoSendCard": true, "subFlow": true, "advancedTaskCard": true, "platform_id": "string", "member_script": "string", "enable_update": true, "cross_tenant": true, "update_chat_configs": [ "string" ], "triggerMode": "string", "chatRange": "string", "chatOwner": "string" }, "beforeNextStepScript": "string", "enableBeforeNextStepScript": true }, "$moment": "string", "$service": "string", "$model": "string" }
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://cbdtest.yitaiyitai.com/bpmax/open-api/step/beforeNextStepScript' \ --header 'x-bp-corporation-id: {{OPEN_CORPORATION_ID}}' \ --header 'x-bp-app-id: {{OPEN_APP_ID}}' \ --header 'x-bp-timestamp: {{TIME_STAMP}}' \ --header 'x-bp-sign: {{SIGN}}' \ --header 'x-open-api-secret: cbdtest_yitaiyitai_com^asdasd%wpocm@noirfeoopmciuoi23' \ --header 'Cookie: cbd_test.yitaiyitai.com_mms=35df455d-1ad2-456d-b521-77d7fc0552f0' \ --header 'Content-Type: application/json' \ --data-raw '{ "action": "string", "step_id": "string", "postData": { "id": 0, "name": "string", "version": [ "string" ], "period": "string", "plan_time_cost": 0, "from_flow_step_id": null, "flow_step_id": "string", "order": 0, "accept_start_time": null, "real_start_time": "string", "step_alive_time": "string", "plan_start_time": null, "real_end_time": null, "plan_end_time": null, "brief": null, "status": 0, "is_public": 0, "show_on_pending": 0, "delay_level": 0, "create_time": "string", "update_time": "string", "user_id": 0, "flow_id": 0, "organization_id": 0, "project_id": 0, "is_del": 0, "seperate_content": 0, "form_template_id": 0, "reference_attachments": [ "string" ], "formList": [ "string" ], "attachments": [ "string" ], "form_template": { "id": 0, "name": "string", "desc": "string", "category": "string", "meta_form_id": 0, "status": 0, "option": { "form": { "size": "string", "inline": true, "autoSave": true, "category": "string", "labelWidth": "string", "labelPosition": "string", "hideRequiredAsterisk": true }, "submitBtn": true }, "create_time": "string", "update_time": "string", "is_del": 0, "origin_template_id": 0, "user_id": 0, "parent_id": 0, "organization_id": 0, "uuid": "string", "path": "string", "visibility": "string", "visibility_scope": null, "rule": [ [ { "prefix": { "type": "string", "props": { "value": "string" } }, "info": { "info": "string", "align": "string", "class": "string" }, "validateRequired": null, "lambda_version": "string", "lambda": "string", "lambdaFields": [ "string" ], "lambdaInit": true, "inject": true, "type": "string", "field": "string", "title": "string", "effect": { "fetch": "string", "_fc": true }, "props": { "multiple": true, "COMPLETE": true }, "options": [ "string" ], "style": { "width": "string" }, "_fc_drag_tag": "string", "name": "string", "children": [ "string" ], "hidden": true, "display": true, "key": "string", "form_rule_id": 0, "form_template_id": 0 } ] ], "value": [ { "field": "string", "title": "string", "field_type": "string", "key": "string", "value": { "value": [ "string" ], "type": "string" }, "validateMap": { "required": null } } ] }, "owner": [ { "id": 0, "name": "string", "avatar": "string", "status": 0, "step_id": 0, "limit_start_time": null, "limit_end_time": null, "attr": null, "organization_id": 0, "models": [ "string" ], "role": [ { "name": "string", "key": "string", "user_id": 0 } ] } ], "self_steps": [ "string" ], "step_form": { "value": [ { "field": "string", "title": "string", "template_id": 0, "field_type": "string", "key": "string", "value": { "value": [ "string" ], "type": "string" }, "validateMap": { "required": null } } ] }, "description": "string", "target_step": "string", "user_list": [ "string" ] }, "userInfo": { "id": 0, "phone": "string", "partner_id": null, "avatar": "string", "name": "string", "title": "string", "birthday": null, "email": "string", "extra": "string", "brief": null, "score": 0, "status": 0, "create_time": "string", "update_time": "string", "last_login_time": "string", "create_ip": "string", "last_login_ip": "string", "is_del": 0, "organization_id": 0, "group_ids": [ 0 ], "admin_ids": [ 0 ], "group_list": [ { "id": 0, "path": "string", "is_admin": 0, "name": "string" } ], "admin_list": [ { "id": 0, "path": "string", "is_admin": 0, "name": "string" } ], "role_ids": [ 0 ], "models": [ { "id": 0, "key": "string", "name": "string", "user_id": 0, "form_template_id": 0, "object_event": [ "string" ], "is_del": 0, "create_time": "string", "update_time": "string", "organization_id": 0, "permission": null, "uuid": "string", "form_id": 0, "form_template": { "id": 0, "name": "string", "desc": "string", "category": "string", "meta_form_id": 0, "status": 0, "option": { "form": { "size": "string", "inline": true, "autoSave": true, "category": "string", "labelWidth": "string", "labelPosition": "string", "hideRequiredAsterisk": true }, "isPreview": true, "submitBtn": true, "isTemplate": true }, "create_time": "string", "update_time": "string", "is_del": 0, "origin_template_id": 0, "user_id": 0, "parent_id": 0, "organization_id": 0, "uuid": "string", "path": "string", "visibility": "string", "visibility_scope": null, "rule": [ "string" ], "value": [ "string" ] } } ], "role": [ { "name": "string", "key": "string", "user_id": 0 } ], "points": [ "string" ], "role_key": "string" }, "flow": { "periods": [ "string" ], "nodes": [ { "id": "string", "name": "string", "period": "string", "start_step": true, "approve_to_step": "string", "approve_fail": "string", "approve_actions": [ "string" ], "approve_fail_actions": [ "string" ], "condational_nodes": [ "string" ], "auto_trigger_flows": { "flows": [ "string" ], "create_again": true, "manual_end": true, "all_finish_action": "string", "fail_action": "string" }, "approve_count_required": 0, "arrange_owner_steps": [ "string" ], "arrange_self_steps": [ "string" ], "arrange_steps_owner": [ "string" ], "attachment_required": [ "string" ], "auto_end_by_subflow": true, "auto_fail_by_subflow": true, "auto_range_type": "string", "auto_range_by_role": true, "bind_by_subflow": true, "bind_subflow_add_btn_text": "string", "bind_subflow_title": "string", "bind_subflow": "string", "canExpand": true, "cc_type": "string", "cc_user_role": [ "string" ], "cc_user_by_script": "string", "cc_message_template": "string", "cc_user": [ "string" ], "create_step": true, "description": "string", "done_count_required": 0, "end_action_by_subflow": "string", "expand": true, "fail_action_by_subflow": "string", "form_template": 0, "hide_step_detail": true, "hook": {}, "multiple_actions": true, "need_confirm": true, "object_events": [ "string" ], "owner_is_creater": true, "owner_roles": [ "string" ], "plan_end_time": true, "plan_start_time": true, "public": true, "report_actions": [ "string" ], "role_logic": "string", "seperate_content": true, "set_step_owner_time_limit": true, "show_on_pending": true, "start_time": true, "step_detail_id": null, "message_template": "string", "step_transform": "string", "sub_flow_actions": [ "string" ], "plugin_urgent_reminder": { "enabled": true, "auto": true, "auto_action": "string", "auto_action_time": "string", "auto_action_deplay": "string", "auto_remind_delay": "string", "freq_control": "string", "urgent": true, "chat_flow": "string", "template": "string", "flows": [ "string" ] }, "plugin_create_feishu_chat": { "type": "string", "enabled": true, "chatName": "string", "autoSendMessage": true, "autoSendCard": true, "subFlow": true, "advancedTaskCard": true, "platform_id": "string", "member_script": "string", "enable_update": true, "cross_tenant": true, "update_chat_configs": [ "string" ], "triggerMode": "string", "chatRange": "string", "chatOwner": "string" }, "beforeNextStepScript": "string", "enableBeforeNextStepScript": true } ], "meta": { "isMeta": true, "name": "string", "public_create": true, "public_create_domain": "string", "use_template_project_name": true, "project_name_template": "string", "task_project_name_template": "string", "computed_fields": [ "string" ], "object_events": [ "string" ], "ignorePause": true, "step_detail_id": null, "plan_end_time_type": "string", "project_name_length": 0, "condational_jump": [ "string" ], "lambda_step_visible": "string", "form_template": 0, "plugin_urgent_reminder": { "enabled": true, "auto": true, "auto_action": "string", "auto_action_time": "string", "auto_action_deplay": "string", "auto_remind_delay": "string", "freq_control": "string", "urgent": true, "chat_flow": "string", "template": "string", "flows": [ "string" ] }, "plugin_urgent_reminder_meta": { "project_delay": "string", "enabled": true, "auto": true, "auto_action": "string", "auto_action_time": "string", "auto_action_deplay": "string", "auto_remind_delay": "string", "freq_control": "string", "urgent": true, "chat_flow": "string", "template": "string", "flows": [ "string" ] }, "plugin_create_feishu_chat": { "type": "string", "enabled": true, "chatName": "string", "autoSendMessage": true, "autoSendCard": true, "subFlow": true, "advancedTaskCard": true, "platform_id": "string", "member_script": "string", "enable_update": true, "cross_tenant": true, "update_chat_configs": [ "string" ], "triggerMode": "string", "chatRange": "string", "chatOwner": "string" }, "hook": { "hook_meta/project_create": { "config": { "flow_type": "string", "flow_key": null }, "key": "string", "organization_id": 0, "enable": true, "name": "string", "type": "string" } }, "table_list_template": 0, "project_create_validator": "string" }, "group": [ "string" ] }, "project": { "id": 0, "name": "string", "customer_name": null, "brief": null, "qualification": "string", "project_type_ids": "string", "address": null, "status": 0, "computed": null, "ext_config": { "autoReplayConfig": {} }, "delay_level": 0, "create_time": "string", "update_time": "string", "plan_end_time": null, "real_start_time": "string", "real_end_time": null, "start_step_id": 0, "start_flow_step_id": "string", "end_step_id": null, "end_flow_step_id": null, "user_id": 0, "contract_id": "string", "project_id": 0, "path": "string", "step_id": 0, "key": "string", "flow_type": "string", "customer_id": 0, "owner_id": 0, "flow_id": 0, "organization_id": 0, "is_del": 0, "archive_time": null, "time_cost": [ "string" ], "visibility": "string", "visibility_scope": null, "workspace": "string", "attachments": [ "string" ], "owner": { "id": 0, "name": "string", "avatar": "string", "phone": "string", "extra": "string", "role": [ { "name": "string", "key": "string", "user_id": 0 } ], "models": [ "string" ] }, "step_owner_list": [ { "id": 0, "name": "string", "avatar": "string", "status": 0, "step_id": 0, "limit_start_time": null, "limit_end_time": null, "attr": null, "organization_id": 0, "flow_step_id": "string", "project_id": 0, "role": [ { "name": "string", "key": "string", "user_id": 0 } ], "models": [ "string" ] } ], "metaForm": { "id": 0, "project_id": 0, "form_id": null, "step_id": 0, "name": null, "desc": null, "create_time": "string", "update_time": "string", "is_del": 0, "template_id": 0, "user_id": 0, "organization_id": 0, "value": [ { "id": 0, "form_id": 0, "title": "string", "field": "string", "key": "string", "validateMap": { "required": null }, "value": { "value": "string", "type": "string" }, "search_value": "string", "create_time": "string", "update_time": "string", "is_del": 0, "template_id": 0, "project_id": 0, "step_id": 0, "flow_step_id": "string", "field_type": "string" } ], "form_template": { "id": 0, "name": "string", "option": { "form": { "size": "string", "inline": true, "autoSave": true, "labelWidth": "string", "labelPosition": "string", "hideRequiredAsterisk": true }, "isPreview": true, "submitBtn": true, "isTemplate": true }, "update_time": "string", "origin_template_id": 0, "visibility_scope": null, "rule": [ [ { "prefix": { "type": "string", "props": { "value": "string" } }, "info": { "info": "string", "align": "string", "class": "string" }, "validateRequired": null, "lambda_version": "string", "lambda": "string", "lambdaFields": [ "string" ], "lambdaInit": true, "inject": true, "type": "string", "field": "string", "title": "string", "defaultValueType": "string", "props": { "maxlength": 0, "placeholder": "string", "clearable": true, "COMPLETE": true }, "style": { "width": "string" }, "effect": { "_fc": true }, "_fc_drag_tag": "string", "name": "string", "options": [ "string" ], "children": [ "string" ], "hidden": true, "display": true, "key": "string", "form_rule_id": 0, "form_template_id": 0 } ] ], "value": [ { "field": "string", "title": "string", "field_type": "string", "key": "string", "value": { "type": "string" }, "validateMap": { "required": null } } ] }, "title_to_value": { "姓名": "string" }, "field_to_value": { "Fvv261o4g4pbz": "string" }, "key_to_value": { "name": "string" } } }, "projectForm": { "id": 0, "project_id": 0, "form_id": null, "step_id": 0, "name": null, "desc": null, "create_time": "string", "update_time": "string", "is_del": 0, "template_id": 0, "user_id": 0, "organization_id": 0, "value": [ { "id": 0, "form_id": 0, "title": "string", "field": "string", "key": "string", "validateMap": { "required": null }, "value": { "value": "string", "type": "string" }, "search_value": "string", "create_time": "string", "update_time": "string", "is_del": 0, "template_id": 0, "project_id": 0, "step_id": 0, "flow_step_id": "string", "field_type": "string" } ], "form_template": { "id": 0, "name": "string", "option": { "form": { "size": "string", "inline": true, "autoSave": true, "labelWidth": "string", "labelPosition": "string", "hideRequiredAsterisk": true }, "isPreview": true, "submitBtn": true, "isTemplate": true }, "update_time": "string", "origin_template_id": 0, "visibility_scope": null, "rule": [ [ { "prefix": { "type": "string", "props": { "value": "string" } }, "info": { "info": "string", "align": "string", "class": "string" }, "validateRequired": null, "lambda_version": "string", "lambda": "string", "lambdaFields": [ "string" ], "lambdaInit": true, "inject": true, "type": "string", "field": "string", "title": "string", "defaultValueType": "string", "props": { "maxlength": 0, "placeholder": "string", "clearable": true, "COMPLETE": true }, "style": { "width": "string" }, "effect": { "_fc": true }, "_fc_drag_tag": "string", "name": "string", "options": [ "string" ], "children": [ "string" ], "hidden": true, "display": true, "key": "string", "form_rule_id": 0, "form_template_id": 0 } ] ], "value": [ { "field": "string", "title": "string", "field_type": "string", "key": "string", "value": { "type": "string" }, "validateMap": { "required": null } } ] }, "title_to_value": { "姓名": "string" }, "field_to_value": { "Fvv261o4g4pbz": "string" }, "key_to_value": { "name": "string" } }, "currentStep": { "id": 0, "name": "string", "version": [ "string" ], "period": "string", "plan_time_cost": 0, "from_flow_step_id": null, "flow_step_id": "string", "order": 0, "accept_start_time": null, "real_start_time": "string", "step_alive_time": "string", "plan_start_time": null, "real_end_time": null, "plan_end_time": null, "brief": null, "status": 0, "is_public": 0, "show_on_pending": 0, "delay_level": 0, "create_time": "string", "update_time": "string", "user_id": 0, "flow_id": 0, "organization_id": 0, "project_id": 0, "is_del": 0, "seperate_content": 0, "form_template_id": 0, "reference_attachments": [ "string" ], "formList": [ "string" ], "attachments": [ "string" ], "owner": [ { "id": 0, "name": "string", "avatar": "string", "status": 0, "step_id": 0, "limit_start_time": null, "limit_end_time": null, "attr": null, "organization_id": 0, "role": [ { "name": "string", "key": "string", "user_id": 0 } ], "models": [ "string" ] } ], "form_template": { "id": 0, "name": "string", "desc": "string", "category": "string", "meta_form_id": 0, "status": 0, "option": { "form": { "size": "string", "inline": true, "autoSave": true, "category": "string", "labelWidth": "string", "labelPosition": "string", "hideRequiredAsterisk": true }, "isPreview": true, "submitBtn": true, "isTemplate": true }, "create_time": "string", "update_time": "string", "is_del": 0, "origin_template_id": 0, "user_id": 0, "parent_id": 0, "organization_id": 0, "uuid": "string", "path": "string", "visibility": "string", "visibility_scope": null, "rule": [ [ { "prefix": { "type": "string", "props": { "value": "string" } }, "info": { "info": "string", "align": "string", "class": "string" }, "validateRequired": null, "lambda_version": "string", "lambda": "string", "lambdaFields": [ "string" ], "lambdaInit": true, "inject": true, "type": "string", "field": "string", "title": "string", "effect": { "fetch": "string", "_fc": true }, "props": { "multiple": true, "COMPLETE": true }, "options": [ "string" ], "style": { "width": "string" }, "_fc_drag_tag": "string", "name": "string", "children": [ "string" ], "hidden": true, "display": true, "key": "string", "form_rule_id": 0, "form_template_id": 0 } ] ], "value": [ { "field": "string", "title": "string", "field_type": "string", "key": "string", "value": { "value": [ "string" ], "type": "string" }, "validateMap": { "required": null } } ] } }, "currentStepForm": {}, "curStepConfig": { "id": "string", "name": "string", "period": "string", "start_step": true, "approve_to_step": "string", "approve_fail": "string", "approve_actions": [ "string" ], "approve_fail_actions": [ "string" ], "condational_nodes": [ "string" ], "auto_trigger_flows": { "flows": [ "string" ], "create_again": true, "manual_end": true, "all_finish_action": "string", "fail_action": "string" }, "approve_count_required": 0, "arrange_owner_steps": [ "string" ], "arrange_self_steps": [ "string" ], "arrange_steps_owner": [ "string" ], "attachment_required": [ "string" ], "auto_end_by_subflow": true, "auto_fail_by_subflow": true, "auto_range_type": "string", "auto_range_by_role": true, "bind_by_subflow": true, "bind_subflow_add_btn_text": "string", "bind_subflow_title": "string", "bind_subflow": "string", "canExpand": true, "cc_type": "string", "cc_user_role": [ "string" ], "cc_user_by_script": "string", "cc_message_template": "string", "cc_user": [ "string" ], "create_step": true, "description": "string", "done_count_required": 0, "end_action_by_subflow": "string", "expand": true, "fail_action_by_subflow": "string", "form_template": 0, "hide_step_detail": true, "hook": {}, "multiple_actions": true, "need_confirm": true, "object_events": [ "string" ], "owner_is_creater": true, "owner_roles": [ "string" ], "plan_end_time": true, "plan_start_time": true, "public": true, "report_actions": [ "string" ], "role_logic": "string", "seperate_content": true, "set_step_owner_time_limit": true, "show_on_pending": true, "start_time": true, "step_detail_id": null, "message_template": "string", "step_transform": "string", "sub_flow_actions": [ "string" ], "plugin_urgent_reminder": { "enabled": true, "auto": true, "auto_action": "string", "auto_action_time": "string", "auto_action_deplay": "string", "auto_remind_delay": "string", "freq_control": "string", "urgent": true, "chat_flow": "string", "template": "string", "flows": [ "string" ] }, "plugin_create_feishu_chat": { "type": "string", "enabled": true, "chatName": "string", "autoSendMessage": true, "autoSendCard": true, "subFlow": true, "advancedTaskCard": true, "platform_id": "string", "member_script": "string", "enable_update": true, "cross_tenant": true, "update_chat_configs": [ "string" ], "triggerMode": "string", "chatRange": "string", "chatOwner": "string" }, "beforeNextStepScript": "string", "enableBeforeNextStepScript": true }, "$moment": "string", "$service": "string", "$model": "string" }'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-01-21 10:03:42