Skip to end of banner
Go to start of banner

Operation Base Activity Lab 1

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

Version 1 Current »

Objective

Create a workflow that creates a new person in EmpowerID using the Operation Base Activity.

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

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

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

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.

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.

Wait for the Form designer to be loaded.

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

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

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

  • FirstName

  • Last Name

  • Company

  • PrimaryOrgRoleOrgZoneID

  • Password

  1. Now double-click on Tab1 and rename it to Person Info, then double-click on Tab1 Section1 and give it the name About, then double-click on Tab1 Section 2 and give it the name Company Details. Lastly, double-click on FirstName and LastName fields and put a space between them.

  2. Now right-click on the Password text box, and from the menu, click on Edit.

Field configuration dialog box will appear. Click on the Control Types tab and select Password Confirmation and click on the Ok button

Now right-click on the PrimaryOrgRoleOrgZoneID, and from the menu, click on Edit. A Field Configuration dialog box will appear, go to the Control Types tab and select the OrgRoleOrgZone picker and Click on the Ok button.

  1. Now click on publish button to publish your Form. The publishing dialog box will appear. Click on the Next button twice to Publish the Form.

  2. Once published successfully, click on the Ok button

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

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

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

  3. Give your workflow a name, in this case, Training_CreatePersonWF.

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

  5. Keep the activity selected. If not selected, then select it, and on the right-hand side, change its (Name) property to UserCreationForm.

  6. Now drag and drop CreatePersonOperation activity onto the designer pane.

Keep the Operation Base Activity selected and give it the name CreatePersonInEmpowerID. In the description type Create Person In EmpowerID.

Right-click on the CreatePersonInEmpowerID activity and select Enable/Disable Executing Operations.

Move Create from Disabled Operations to the Enabled Operation section.

  1. Now drag and drop the ApplyNamingConvention activity onto the designer pane.

  2. Give it a Name for example APAForUsers.

Now click on the start circle, drag the line from it, connect it with your APAForUsers activity, and similarly connect the lines that will come out from your activity to the CreatePersonInEmpowerID activity to the End circle.

  1. Now go to the Bindings tab, and from the left section, expand the UserCreationForm Underneath it, expand the Input/Output and drag its TargetPerson and drop it onto the TargetPerson of APAForUsers.

  2. Now expand APAForUsers from the left section, expand Input/Output and drag the TargetPerson and drop it on the Form_TargetPerson property of CreatePersonInEmpowerID. You can find the Form_TargetPerson property under the Input.

  1. Now click on the publish button to publish your workflow; a dialog box will appear. Click on the Next button twice. Once saved successfully, click on the Ok button.

  2. Open internet explorer or Edge or whichever browser is installed on your machine and go to this URL: Login using EmpowerID (empoweriam.com)

  3. It will ask you to enter your credentials and provide them with your username and password given to you by your lab instructor.

  4. It will take you to your EmpowerID dashboard page. On the left-hand side, click on Low Code/No Code Workflows, and Underneath it, click on Low Code Workflows.

  5. It will take you to the RequestWorkflow page; on the right-hand side of your page, we have an actions pane under it click on the Publish Workflow Studio Item.

  6. On the PublishWorkflowStudioItem page, click on choose file, select the .pub file for Training_UserInputForm and then click open file, and it will get selected now click on the Submit button.

  7. You will get this message which tells that deployment is successful.

  8. Now click on the Publish Workflow Studio Item again, and this time select the Training_CreatePersonWF published file and hit on the submit button to publish it.

  9. Close your browser and workflow studio and reset the IIS on your machine. Make sure you open Command Prompt in Administration mode.

  10. Now open the EmpowerID on the browser again, expand the Low Code/No Code Workflows, and Underneath it, click on Low Code Workflows.

  11. In the search box, type your workflow name Training_CreatePersonWF and hit the search button. Your workflow will appear, click on it under the Run column.

  12. Now, you can see your Form, fill out the fields, and test it.

  13. End

  • No labels