Skip to end of banner
Go to start of banner

Forms Lab (User Decision Form)

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Objective

Create two User Decision Forms:

  1. Use the first form to select a person for leave approval.

  2. Create the second form for the approver to approve the leaves.

Credentials:

User ID: Test

Password: P@$$w0rd

  1. Start the 20331B-NYC-DC-05 virtual machine. Wait for the virtual machine to display the Desktop.

  2. On your Desktop, Right-click Workflow Studio (WFS), and then click Run as administrator.

  3. Wait for WFS to start and enter your credentials.

  1. In Solution Explorer, right-click on the Developer Packages folder, create a new folder called DemoLabs, and click the Ok button.

  1. Add New Folder dialog box will appear from it; select the following options

  • User Interface > Lookup Control

  • User Interface > Forms

  • User Interface > UI Pages

  • Workflows > Applications

And click the Ok button.

  1. Expand the Developer Packages folder, find the DemoLabs folder, expand it under the DemoLabs folder, expand the User Interface folder, right-click on the Forms folder, hover your mouse on the New User Interface option and Click on Form.

  1. Wait for the Form designer to be loaded.

  2. After loading the Form Designer, navigate to the Properties tab. From there, change the 'Form Type’ to UserDecision and set 'ShowComments' to True

  1. Click on the Save button to save your Form and give it the name VacationRequestForm.

  2. Give your section name Vacation Request

  3. Right-click on the Form Data then click on Add Object and go to Rbac Components tab from there select the Person component and click on Add button.

  1. Double-click on Person1 and rename it to TargetApprover only.

  2. Now expand the TargetApprover and drag and drop the PersonID (Rename it to Approver’s Name)

  3. Next, right click on the Approver’s Name text box then click on the Edit option. This action will open the Field Configuration dialog box. From there go to Control Types tab and choose the PersonAutoComplete control. Now proceed the Standard Properties tab and check the Enable Dialog and Populate Autocomplete Object checkboxes and click on the Ok button.

  1. Now your form will resemble the image below.

  1. Publish your Form. After publishing, allow the Workflow Studio to restart. This will generate a Form Activity.

  2. On your newly created Form go to the Properties tab. From there, change the 'Form Type’ to UserDecision and set 'ShowComments' to True

  1. Click on the Save button to save your Form and give it the name VacationApprovalForm.

  2. Give your section name Requestor Info

  3. Now go to Approval Decisions and from there enable the Approved and Rejected buttons.

  4. Right-click on the Form Data then click on Add Object and go to Rbac Components tab from there select the Person component and click on Add button.

  1. Double-click on Person1 and rename it to TargetRequestor only.

  2. Now expand the TargetRequestor and drag and drop the following fields/columns on the Form Designer.

  • FirstName

  • Last Name

  • Email

  • Friendly Name

  • Company

  • Title

  1. Now right click on all the fields one by one and set IsRead only.

  2. Now your Form will look like this one in the below image.

  3. Publish your Form. After publishing, allow the Workflow Studio to restart. This will generate a Form Activity.

  4. Expand the Developer Packages folder, find the DemoLabs folder expand it under the DemoLabs folder, expand the Workflows folder right click on the Applications folder, hover your mouse on the New Workflow option and Click on Flow Chart Workflow

  1. Wait for the Workflow Designer Pane to be loaded. Once loaded, click on the save button to save your workflow.

  1. Give your workflow a name in this case RequestVacationWF.

  2. Once saved, drag and drop your Form control activity onto the designer pane of Workflow.

  3. First drag and drop the Vacation Request Form and then Vacation Approval Form onto the designer pane of Workflow.

  4. Right-click anywhere on the Workflow Designer pane and select the 'Workflow Business Rules' option. This action will open a Workflow Business Rules dialog box. In the Name textbox, enter IsDecisionApprove_Rule and click the Add button.

  • No labels