Section | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
- Click the rules icon in the Workflow Designer toolbar.
- Click the theplus icon to add a rule.
- Show the Manager Approval section on the Manager and HR step
- Click the Run Builder button then click Add Condition - this is the Condition wizard
- Select the current step from the first dropdown.
- Select is is on or after from the second dropdown.
- Select Manager from the third dropdown.
- Click Next - this is the Action wizard where you set up actions that will happen if the condition is true
- Select the Manager Approval section from the first dropdown
- Set the property to as visible by selecting it from the second dropdown.
- Click Next then click Add Action - this is the else action wizard where you set up actions that will happen if the condition is false
- Select the Manager Approval section from the first dropdown
- Set the property to as hidden by selecting it from the second dropdown.
- Click Finish.
The rule should look like this:
...
Populate Employee Info When Form Loads
- Click the theplus icon to add a rule.
Name the rule Populate the Employee Name, Email, Employee Id and Manager Id when the Employee step loads.
- Click the Run Builder button then click Add Condition - this is the Condition wizard
- Select the current step from the first dropdown.
- Select is from the second dropdown
- Select Employee from the third dropdown.
- Click Next - this is the Action wizard where you set up actions that will happen if the condition is true
- Select EmployeeName from the first dropdown.
- Select to from the second dropdown
- Begin typing userFullName in the third field then select the userFullName function when it displays in the dropdown. Type in the closing parenthesis. Tab out of the field. This sets up the EmployeeName field to be populated with the Employee Name using the built-in userFullName function.
- Click the Add Action button.
- Select EmployeeId from the first dropdown.
- Select to from the second dropdown
- Begin typing userID in the third field then select the userID function when it displays in the dropdown. Type in the closing parenthesis. Tab out of the field. This sets up the EmployeeId field to be populated with the employee's user id using the built-in userID function.
- Click the Add Action button.
- Select ManagerId from the first dropdown.
- Select to from the second dropdown
- Begin typing userManagerID in the third field then select the userManagerID function when it displays in the dropdown. Type in the closing parenthesis. Tab out of the field. This sets up the ManagerId field to be populated with the user id of the employee's manager using the built-in userManagerID function.
- Click the Add Action button.
- Select Email from the first dropdown.
- Select to from the second dropdown
- Begin typing userEmail in the third field then select the userEmail function when it displays in the dropdown. Type in the closing parenthesis. Tab out of the field. This sets up the Email field to be populated with the employee's email address using the built-in userEmail function.
- Click Finish
The rule should look like this:
...
Populate HR Info on HR Step
- Click the theplus icon to add a rule.
Name the rule Populate the HR Employee Name and Email on the HR step
- Click the Run Builder button then click Add Condition - this is the Condition wizard
- Select the current step from the first dropdown.
- Select is from the second dropdown
- Select HR from the third dropdown.
- Click Next - this is the Action wizard where you set up actions that will happen if the condition is true
- Select HRId from the first dropdown.
- Select to from the second dropdown
- Begin typing userID in the third field then select the userID function when it displays in the dropdown. Type in the closing parenthesis. Tab out of the field. This sets up the HRId field to be populated with the user id of the HR employee using the built-in userID function.
- Click the Add Action button.
- Select HREmail from the first dropdown.
- Select to from the second dropdown
- Begin typing userEmail in the third field then select the userEmail function when it displays in the dropdown. Type HRId after the opening parenthesis then add the closing parenthesis. Tab out of the field. This sets up the HREmail field to be populated with the email address of the HR employee using the built-in userEmail function.
The rule should look like this: - Click Finish
Click the save and exit icon to save the rules.
- Click the save and exit icon to save the workflow.
...
A great way to test your workflow 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 workflow is set to public in tenant and that it is deployed to production:
- In Workflow Properties, select the Access Control Tab. Set "Who can start the workflow" to "Anyone (login not required.)
- On the Forms & Workflows Homepage, click the Action menu for the Leave Approval Workflow. Select Deploy.
- In Workflow Properties, select the Access Control Tab. Set "Who can start the workflow" 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 project 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 workflow. 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 workflow 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 workflow's configured form action message displays.
Logout of your space.
...