Creating the Model and Organizational Structure

In a dynamic Web project, create a new model by choosing File > New > Other > Process Manager Wizards > Process Model in the main menu. Rename the default process definition to Report Demo.

For detailed information on creating dynamic Web projects for usage with the Stardust Portal, please refer to the Rapid Application Development guide.

Continue with the following:

Creating the Workflow

Open the diagram of the Report Demo process definition. Create a manual trigger and two subsequent activities. Name the activities Enter Department and Activity by Scoped NationalDirector as demonstrated in the following screenshot:


Figure: Reporting Use Case Example Workflow

Creating the Department Data

Create the primitive data Nation Department, which will be used as data path for the department defined for the organizations.

Assign this data as In- and Out-data mapping to the activity Enter Department. Thus, the different department values are determined via this activity.

Diagram with Data
Figure: Adding Department Primitive Data

For information on how to create data and data mapping, please refer to the chapter Specifying Data and Specifying Data Mappings of the Modeling Guide accordingly.

Binding the Department Data

Now bind the department data to the organization NationDivision:

  1. Open the properties page of the NationDivision organization.
  2. Select Department Binding.
  3. Enable the checkbox for Organization support departments.
  4. In the Department Id section, select the data Nation Department in the Data drop-down list.
  5. Click OK.

Department Settings
Figure: Department Settings for NationDivision

Creating the Organizational Structure

In the default diagram, create two organizations, HeadOffice and NationalDivision. Assign the NationalDivision organization as suborganization of HeadOffice. Create a role NationalDirector and connect it with a Manager Of connection to NationalDivision.

Organizational Structure
Figure: Organizational Structure

For information on creating and assigning organizations, please refer to the chapter Defining Roles and Organizations of the Support Case Example tutorial.

Assigning the Performers

Set the following performers:

  1. Assign the Administrator role as participant to the manual trigger.
  2. Assign HeadOffice as performer of Enter Department.
  3. Assign NationalDirector as performer of Activity by Scoped NationalDirector.

Now the model should look like in the following diagram screenshot:

diagram
Figure: Reporting Use Case Example Diagram

Setting Authorization for Reading Activity Instance Data

Now change the default authorization set for the grant Reading Activity Instance Data:

  1. Open the property page of the activity Activity by Scoped NationalDirector.
  2. On the left side of the pane select the Authorization entry.
  3. In the Permission part, select Reading Activity Instance Data.
  4. In the Participant part: Please note, that Owner always remains selected.

diagram
Figure: Setting the Authorization