In this chapter we create the example model with its organizational structure and the authorization and department settings we need to demonstrate the delegation of an activity to another department.
The following sections guide you through the process:
Create a new model by choosing File > New > Other > Process Manager Wizards > Process Model in the main menu and name it DemoDelegationModel. A default process definition is created automatically.
Create a primitive data named DepartmentData, which will be used as data path for the department defined for the organization.
Figure: Primitive Data for Department Values
For information on how to create and use data, please refer to the chapter Handling Data in the Process of the Support Case Example tutorial.
Now we create the organizational structure with the participants to perform the workflow.
In the default model diagram, create the following participants:
Via the Connect option in the toolbar palette, connect the role NationalDirector with the organization and choose Manager Of to make it the team leader of the organization. Also connect the role Engineer to the organization, which will be automatically be the Works For connection. Now the organizational structure should look as illustrated in the following screenshot:
Figure: The Organizational Structure
For information on creating and assigning organizations, please refer to the chapter Modeling the Organizational Structure of the Modeling Guide.
To set the department data for the organization NationDivision:
Figure: Department Settings for NationDivision
Open the diagram of the default process definition and create the following workflow diagram:
Figure: Workflow for the Delegation Use Case
Please refer to the chapter Adding Activities to Process Definition of the Support Case Example tutorial for detailed information on how to add and connect activities in a process diagram.
Now we give the organization NationDivision the permission to delegate the activity Delegate to other departments. An entitlement Delegation to other departments is provided, that allows the user to delegate work from one department to another. To add this authorization to the activity, perform the following steps:
Figure: Authorization Settings
As authorization settings are inherited to organizations and roles underneath the organizational tree, also the role NationalDirector gets this grant and is authorized to delegate the activity to other departments.
Please refer to chapter Setting Authorization in Model Element Property Pages of the Modeling Guide for detailed information about declarative authorization settings.