Versions Compared

Key

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

Objective

Create an activity for checking if a user has a manager or not.

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.

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

    Image Modified

    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 Modified
  1. Add New Folder dialog box will appear from it; select the following options.

  • Workflows > Activities

  • Workflows > Applications

And click the Ok button.

Image Modified
  1. Expand the Developer Packages folder, find the DemoLabs folder, expand it under the DemoLabs folder, expand the Workflows, right-click on the Activities folder, hover your mouse on the New Activity option and Click on Flow Chart Activity.

    Image Modified
  2. Wait for the Activity designer to be loaded.

  3. Once the Activity Designer is loaded, go to its properties tab, and from there, search for the System Code Activity. Then, drag and drop it onto the Activity Designer pane.

    Image Modified
  4. Now, draw lines to connect your activity with the starting and ending circles. Refer to the image below. and in the Name property give any name say SCActivity

    Image Modified
  5. Now go to Propertie tab of your Activity Designer and create two properties TargetPerson and TargetManager. The type of TargetPerson should be Person component and the type of TargetManager should be string.

  6. Now double click on the SCActivity and it will generate a class for you in that class write below code

  7. Now, click on the Save button at the top to save your activity and name it PMmanager. Once Save Click on the Publish button to publish your Activity.

Image Added

Image Added