Skip to main content

classic-entity

  • Classic Use Cases

    1. User Management

    • The user management module includes: user creation, role creation, permission creation, user-role association, role-permission association, and user login.

    1. Establish Permissions
      • Create permissions under different PBMs.
  • pbc-content

  1. Integrate the Standard "User Management" PBM for Rapid Construction

    • Navigate to "Content Configuration" -> "Business Components" -> "Select" -> "User Management" -> "Check" -> "Confirm".

    pbc-content

  • In the "Test Run" environment, you will see the following: pbc-content
  1. Utilize Permissions
    • Use permissions to control the visibility of specific menus:
  {
"accessPermissionPredicate": {
"hasAnyOf": [
"MODEL_MANAGEMENT_CREATE" // pbc“权限控制”中设置的token
]
},
"to": "/access",
"label": "模型接入",
"activeBasePath": "/access",
"icon": "home"
}
  • Control the visibility of a field within a form:
  {
"component": "Button",
"componentProps": {
"content": "提交",
"type": "primary",
"action": {
"type": "submit",
"method": "put",
"message": "保存成功",
"successAction": {
"type": "cancel"
}
}
},
"hidden": {
"permissionPredicate": {
"hasAnyOf": [
"MODEL_MANAGEMENT_CREATE"
]
},
"valueIfPositive": false,
"valueIfNegative": true
}
}
  1. After the above configurations, when roles are created, permissions are set, and bound to users, users can log in and have their permissions determine the visibility of elements accordingly.

2. Methods of Triggering Flows

Form Trigger

  • Place a form node as the first step in the flow.

Timer Trigger

  • Place a timer node as the first step in the flow.

REST Trigger

  • This feature supports the definition of custom REST APIs.
Trigger from a Page
  {
"component": "Button",
"componentProps": {
"iconName": "download",
"style": {
"padding": 0
},
"type": "link",
"action": {
"type": "request",
"method": "post",
"url": "/flow/api/flow-rest/model-recommend-download?id=:id"
}
}
}
Support within Flow
  1. Configure a flow, for example: pbc-content Figure 1 pbc-content Figure 2 pbc-content Figure 3 pbc-content