最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Custom API for Fetching Activity List in Elsa Workflow V3 - Stack Overflow

programmeradmin5浏览0评论

I want to customize the list of activities returned by the Elsa API since each user should see different activities based on their permissions or context.

Is this feasible?

The API I want to customize:

Path:/elsa/api/descriptors/activities` 
Method:GET

Result:

Endpoint:/elsa/api/descriptors/activities?userId={id}
Method:GET  
Description: Retrieves the list of activity descriptors for the user with the specified `id`.  

I want to customize the list of activities returned by the Elsa API since each user should see different activities based on their permissions or context.

Is this feasible?

The API I want to customize:

Path:/elsa/api/descriptors/activities` 
Method:GET

Result:

Endpoint:/elsa/api/descriptors/activities?userId={id}
Method:GET  
Description: Retrieves the list of activity descriptors for the user with the specified `id`.  
Share Improve this question edited Feb 17 at 19:14 VLAZ 29.1k9 gold badges62 silver badges84 bronze badges asked Feb 17 at 9:48 Trinh Nguyen Thi MaiTrinh Nguyen Thi Mai 11 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

you'd want to limit what sections of the activities they can see. Basically, you can tailor what activities Elsa shows them based on their permissions. you'd have to make a Custom Activity Provider that checks who the user is and what permissions they have. Then, alter the part of Elsa that exports the list of activities it has access to so that it knows it should use your CAP and only present the user with activities they're allowed to have. Finally, tell Elsa to actually use this new device when it comes out. That way, everyone just gets to view what they should be viewing, so it stays safe and anized.

发布评论

评论列表(0)

  1. 暂无评论