Currently, the WF defines the approver in a fixed, static manner, allowing a given activity to be approved by a specific user or by some user of a specific role.
We have documents where there can be more than one approver for the same activity or the approver doesn't fit into the existing possibilities (Invoker, Organization, Role).
Therefore, we need to improve the definition of the approver, allowing the creation of rules, where the approver will be defined dynamically.
Workflow Responsible (AD_WF_Responsible.ResponsibleType)
Implement a new type, which will be used to inform that the approver will be defined dynamically.
Document Status (PA_DocumentStatus.WhereClause) and Class WWFActivity.ResponsibleType()
Include one more condition on the where clause, so that activities are displayed according to the created rule.