Component library Workflow

0
So, I have a application where we have different component modules that can be downloaded and used in different applications. For this the user will come and select whichever the module they want. Application has a request button to request for the module Request button should validate if already approved If not approved, then next step is sent an approval request Admin dashboard will have option to show all the request. Request has option to approve / reject. If the request is approved then the download button in the Module component page which is beside the request button will be enabled for the user. How to achieve this in Mendix. A basic understanding of the flow is what I need. Pls do help on how to achieve this 
asked
1 answers
0

Hi Spoorthi,

1.Module List Page: Display available modules with Request and Download buttons.

Request Validation: On clicking Request button to call microflow : Check if an existing request for this module by the user is still pending or approved then sent to admin for approval.

If Admin Approved the module for respective user--call microflow to change status to approved and attribute Isdownloded change  to true.(you should add this attribute to module entity).

If user come again check in the module page. If he click the download button it should download. for that you should set button condition to current user Is download =true.

 

Thanks,

 

 

answered