如何通过API或在jbpm rhpam BPMN kie-server中以编程方式创建用户



我有一个应用程序,每当有人在我的应用程序中注册时,应该在jbpm中创建该用户。这样,每当添加新任务时,他都可以批准它。我使用的是在localhost上运行的rhpamjbpm业务中心。http://localhost:8080/business-central/kie-wb.jsp我在谷歌上搜索了如何使用API、swagger或Programmatically创建用户,这样,一旦新用户在我的应用程序中注册,就会在jbpm中创建用户。但没有找到任何关于它的信息。你能帮我吗?

After a month I found some APIS which we can use to perform operation on user, like add/update/delete/get users, groups and roles.
base url: http://localhost:8080/business-central/rest/
[GET] /roles – Get a list of all roles
[GET] /users – Get a list of all users
[GET] /groups – Get groups
[GET] /users/{userName}/groups – Get a list of groups assigned to a user
[GET] /users/{userName}/roles — Gets a list of roles assigned to a user
[POST] /users Creates users
[Post] /users/{userName}/changePassword – Changes user password
[POST] /groups — Creates groups
[POST] /users/{userName}/groups – Overrides the user assigned groups with new values
[POST] /users/{userName}/roles – Overrides the user assigned roles with new values
[Post] /groups/{groupName}/permissions – Updates permissions for a group
[Post] /roles/{roleName}/permissions – Updates permissions for a role
[GET] /groups/{groupName}/permissions –Get all permissions for a group
[GET] /roles/{roleName}/permissions –Get all permissions for a role
[GET] /users/{userName}/permissions –Get all permissions for a user
[DELETE] /users/{userName} – Deletes a given user
[DELETE] /groups/{groupName} Deletes a given groups

您可以在Red Hat网站上找到更多关于REST API的信息来管理用户:

https://access.redhat.com/documentation/en-us/red_hat_process_automation_manager/7.8/html-single/interacting_with_red_hat_process_automation_manager_using_kie_apis/index#security-管理评审的pi-con_kie-apis

但我担心用户角色的变化。在我的jBPM安装中,角色的任何更改(例如,向用户添加流程管理员或将其删除(只有在服务重新启动后才有效。

最新更新