Section | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Setup users and roles
Warning |
---|
This is a one-time setup that will have to be performed by an administrator. |
We will need to create three roles for the Leave Approval workflow:
Click Manage Roles. Notice that the role frevvo.designer already exist by default and cannot be deleted.
Click the icon to create a new role. Add the role name "Employee" and click Submit.
Repeat step 2 to add the "Manager" and "HR" roles.
- Click the Back to Manage Tenant link.
Click Manage Users. Notice that the user admin already exists by default and cannot be deleted.
Click the
icon each time to create a new user.- Add the user named "jerry" and assign jerry the role Manager. Remember to click submit for each one.
- Add the user named "tom". Assign the Employee role to user tom. Since jerry is tom's manager, select jerry from the dropdown list in the Reports to field.
Add the user sue and assign sue the role of HR.
- Add the user named "designer" and assign the special role of frevvo.designer
- Logoff as the tenant admin.
- You now have your tenant setup and ready to create and test a simple Leave Approval workflow.
...
A great way to test your flow is to use a space. A space is a frevvo website that is very easy to create. Your deployed forms/workflows are automatically added. Follow these steps to create the space:
- Ensure the visibility of your Expense Report flow is set to public in tenant and that it is deployed to production:
- In Flow Properties, select the Access Control Tab. Set "Who can start the flow" to "Anyone (login not required.)
- On the Forms & Flows Homepage, click the Action menu for the Leave Approval Workflow. Select Deploy.
- In Flow Properties, select the Access Control Tab. Set "Who can start the flow" to "Anyone (login not required.)
- Click on the Spaces Tab. Click the Add icon. Enter an id and name for your space. Click Create. You will taken to the Space designer. Simply click the Save & Exit icon to return to your Space list.
- Click the Action Menu and select Share.
- Copy the share url for your space then logoff .
- Paste the space url into another browser or a new tab of the browser you are using. Login as tom@<your tenant name>. automatically makes your application a tab on the space menu and your Leave Approval Workflow an option on the menu under the tab. Your space should look something like this:
Click on the tab for your project and then click on the Leave Approval workflow. This brings you to the first step in your flow. The workflow automatically has a navigation bar to indicate which step you are currently in as well as the next steps that are coming.
Fill in the fields in the 1st step, remember to sign and click the Send to Manager button to route the workflow to the Manager for approval.
Tom should see the customized pending message that you set up on the manager activity in the workflow.
- Logout of your space then login to the space as the manager jerry - jerry@<your tenant>.
- Click on the Important Items tab, then click the Task List. Jerry will see the pending Leave Approval request from Tom. Note the Task information that we set up on step 2 of the flow using the template - Leave Approval for {EmployeeName}
- Click the Perform icon to display the task. Notice Manager Jerry sees the Employee Information section filled in by Tom and the Manager Approval section so he can approve or reject the request.
- The manager name and email fields are populated by our business rule.
- Add a comment and sign the section.
- Click the customized Send to HR button. The pending message that you set up on the HR step of the workflow displays.
- Logout of your space and login as sue@<your tenant>.
- Click on the Important Items tab and then on the Task List. The pending task for the HR department displays. Note Sue, the HR employee, sees the Employee Information section, the Manager Approval section and the HR section.
- Click the Finish button to complete the workflow. The flow's configured form action message displays.
Logout of your space.
...