Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Objective

Create a workflow that

...

gives us the ability to edit the properties of a Person in EmpowerID using the Operation Base Activity

...

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 on Workflow Studio (WFS), and then click Run as administrator.

...

  1. Image Added
  2. Wait for WFS to start and enter your credentials.

...

  1. Image Added

    Image Modified

 

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

...

Image Added

 

  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.

...

Image Added
  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.

Image Modified
  1. Wait for the Form designer to be loaded.

  2. Click on the Save button to save your Form and give it the name Training_

...

  1. EditUserForm.

...

Image Added

 

  1. 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.

 

Image Modified

 

 

  1. Double-click on Person1 and rename it to

...

  1. ObjectivePerson.

Image Modified
  1. Now expand the

...

  1. ObjectivePerson component and drag and drop the following fields/columns on the Form Designer.

  • FirstName

  • Last Name

...

  • Street Address

...

  • City

...

Password

  • Postal Code

Image Added
  1. Now double-click on Tab1 and rename it to Person Info, then double-click on

...

  1. Tab1Section1 and give it the name

...

  1. Person Information, then double-click on

...

  1. Tab1Section2 and give it thename

...

  1. Address Information. Lastly, double-click on FirstName and LastName fields and put a space between them.

...

  1. Image Added
  2. Now right-click on the

...

  1. First Name and Last Name text box

...

  1. one by one and

...

  1. set the IsReadOnly property to true.

    Image Added
  2. This is how your final form will look like

    Image Added
  3. Now click on publish button to publish your Form. The publishing dialog box will appear. Click on the

...

  1. Next button twice to Publish the Form.

Image Added
  1. Once published successfully, click on the Ok button

Image Added
  1. Now, it will ask you to restart the workflow studio. Click on the Yes button.

...

 

...

Image Added

19. Once workflow has been restarted it’s time to create a lookup control.

  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 Lookup Controls folder, hover your mouse on the New User Interface option and Click on Lookup

Image Added

 

  1. Wait for the Lookup designer to be loaded.

  2. Click on the Save button to save your Lookup and give it the name Training_EditPersonLK.

Image Added

 

  1. From the Component Object, select PersonView, and from the Data Method, select the GetAllSearchAdvanced method.

Image Added

 

  1. Click on the Lookup Designer from the top bar and select the Set Grid Type option.

Image Added
  1. The Set Grid Type dialog box will appear from the dropdown select the Person and click on the Ok button.

...

Image Added
  1. Now click on publish button to publish your

...

  1. Lookup. The publishing dialog box will appear

...

  1. to click on the Next and then Next button

...

  1. again to Publish the

...

  1. Lookup.

...

Image Added
  1. Once

...

  1. publish successfully

...

  1. click on the Ok button

...

Image Added
  1. Now

...

  1. it will ask you to restart the workflow Studio, click on the Yes button.

Image Added
  1. Once workflow studio has been restarted it’s time to create a workflow and placed our forms and lookup controls onto it.

  2. 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

...

  1. on Flow Chart Workflow.

  2. Now, first drag the Lookup control onto your form, and in its description property, write Load All Users and in its Name property write LoadAllUsersLK. Then, drag the Form control onto the form, and in its description property, write Edit Person Attribute and its Name property write EditPersonAttributeForm. Lastly, drag and drop the EditPersonMultiOperations activity onto your form, and in its description property, write Update Person Attribute. Next, connect all three of these activities with lines. Please refer to the screenshot below

Image Added
  1. Now, navigate to the Bindings tab and perform the binding as follows. (We've previously learned about bindings in the Bindings module, and we are applying the same process here passing the selected user from a lookup control to our form.) and adding one more binding and that is passing the ObjectivePerson component of our form and binding it to the Form_TargetPerson property of EditPersonMultiOperations.

    Image Added
  2. Now right click on the EditPersonMultiOperations activity and choose the Enable/Disable Executing Operations option

    Image Added
  3. From the Enable/Disable Resource Operations dialog box Enable the Edit Person Organization Attributes and Edit Address operations.

    Image Added
  4. Now click on the save button to save your Workflow and name it Training_EditPerson

  5. After saving it publish your workflow from the Workflow Studio.

  6. Now publish your Form, Lookup control and Workflow by going to the EmpowerID Web UI and test your workflow.

  7. I ran my workflow, and the first image displays my Lookup Control, while the second one shows my Form. As you can observe, the Street Address, City, and Postal Code fields are empty. Let me input some values and submit it. Afterward, I'll re-run the workflow to verify whether the fields have been updated or not.

Image Added

Image Added

  1. I reran the workflow to see if the changes I made took place or not and it seems like it worked fine. You can also verify your changes by accessing the database. Refer to the second image.

Image Added

Image Added

  1. End