Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WDESIGNER and version 24.0

A BPMN process can be complex and elaborated, and may also contain lane and role definitions to control which user is allowed to execute which process step. All these permissions are managed by the security service.

Each request to the service is handled in a dedicated Runtime thread. Request can be start events, submission of forms, and more. At the begin of each thread, an instance of the security service is created to check if the requester is allowed to perform this request. Next, if permission is granted, the generated code is executed.

Access the Security Service

You can access the security service from within your service implementation via the Security class that is part of the Base Types.PAS_Platform package.

Info

This is only possible within a Get Data execution. Other executions do not provide the necessary context.

The security service provides the following information:

InformationOperationRemark
Get the current security service instance
getSecurityService

Multiexcerpt include
MultiExcerptNamedefinition
PageWithExcerptgetSecurityService

UUID of current usergetCurrentUserUUID

Multiexcerpt include
MultiExcerptNamedefinition
PageWithExcerptgetCurrentUserUUID

Roles of current usergetCurrentUserRoles

Multiexcerpt include
MultiExcerptNamedefinition
PageWithExcerptgetCurrentUserRoles

User is authorized
isAuthorized

Multiexcerpt include
MultiExcerptNamedefinition
PageWithExcerptisAuthorized

User has a role
hasRole

Multiexcerpt include
MultiExcerptNamedefinition
PageWithExcerpthasRole

Custom Security Service

Note

Deprecated The other operations of the Security class handle custom instances of the security service and should not be used by modelers.

  • SecurityService()
    This operation implements the constructor for the security service to create a new instance of the security service.
  • setSecurityService()
    This operation sets the instance of the security service to be the current security service to be used.
  • setCurrentUserUUID()
    This operation sets the UUID of the current user within the given instance of the security service.
  • setCurrentUserRoles()
    This operation sets the roles of the current user within the given instance of the security service.
rp
Panel
titleRelated Pages:

Children Display