Using multi-tenancy in the Task Generator
By activating the central multi-tenancy functionality for tasks, you can either
-
Use by default the INUBIT user groups as tenants or
-
Define the additional module properties
ProcessTenant
andProcessRoles
directly at the module to use tenants irrespective of the INUBIT user management.
Proceed as follows
Activating the multi-tenancy functionality (Defining tenants via user groups)
-
To activate the "multi-tenancy" function, open the tab Administration > General Settings in the Workbench and navigate to Administration > Server.
-
Select the Multitenancy for tasks option.
By activation this option, you simultaneously define that tasks are always created for a specific tenant, which automatically corresponds to the user group in INUBIT Process Engine or Workbench.
If you want to set your tenants individually, you must define a specific module property for this purpose.
Defining the tenants manually via module property ProcessTenant
-
At the relevant Task Generator, open the mapping of variables dialog (refer to Functional Principle of the Mapping of Variables.
-
Select Static value as the source and enter the tenant’s name required.
ProcessTenant
must be set as fixed string. -
Select Module Property as the target.
-
Select
ProcessTenant
as Module Property.In case you work with an already existing Task Generator where the module property
ProcessTenant
is not yet available, you must first open the Task Generator by clicking Edit properties in the context menu and then close it again by clicking Finish. Thus, the module property is added and displayed.
Integrating process users by using module property ProcessUsers
In order to assign tasks statically to specific process users, these process users must be provided in XML structure by using a specific module property.
-
In the variables mapping dialog, select Static value as the source.
-
Select the XML structure type and enter the XML structure required for integrating the process roles manually, e.g.:
<?xml version="1.0" encoding="UTF-8"?> <Property name="ProcessUsers" type="List"> <Property name="Admin" type="String" displayName="Admin"/> </Property>
-
Select Module Property as the target.
-
Select
ProcessUsers
as Module Property.
Integrating process roles by using module property ProcessRoles
In order to use process roles as tenants, you need to provide these process roles using a module property.
-
In the variables mapping dialog, select Static value as the source.
-
Select the XML structure type and enter the XML structure required for integrating the process roles manually, e.g.:
<?xml version="1.0" encoding="UTF-8"?> <Property name="ProcessRoles" type="List"> <Property name="WorkflowOwner"/> </Property>
-
Select Module Property as the target.
-
Select
ProcessRoles
as Module Property.
You can, of course, also define the module property dynamically using a workflow variable. |