Class AuditInstanceBuilderImpl
java.lang.Object
com.flowable.audit.engine.impl.runtime.AuditInstanceBuilderImpl
- All Implemented Interfaces:
AuditInstanceBuilder
- Author:
- Tijs Rademakers, Joram Barrez
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauditDefinitionId
(String auditDefinitionId) Set the audit definition of this audit instance.create()
Creates and persists theAuditInstance
according the data provided to this builder.Set the optional creator id.externalId
(String externalId) If this audit instance was created from an external system, set this optional external id to map to that external data object id, if necessary.getType()
Set the optional payload as a generic map representation for this audit instance as described within theAuditDefinition
.scopeDefinitionId
(String scopeDefinitionId) Set the scope instance definition for which the audit instance was created.Set the optional scope instance for which the audit instance was created.Set the optional scope instance type for which the audit instance was created (must be set ifAuditInstanceBuilder.scopeId(String)
is set).subScopeId
(String subScopeId) Set the optional subScope instance for which the audit instance was created.Set the sub type of this audit instance.The tenantId for the audit instance.Set the main type of this audit instance.
-
Field Details
-
auditService
-
auditDefinitionId
-
scopeId
-
subScopeId
-
scopeType
-
scopeDefinitionId
-
externalId
-
tenantId
-
type
-
subType
-
payload
-
creatorId
-
-
Constructor Details
-
AuditInstanceBuilderImpl
-
-
Method Details
-
auditDefinitionId
Description copied from interface:AuditInstanceBuilder
Set the audit definition of this audit instance.- Specified by:
auditDefinitionId
in interfaceAuditInstanceBuilder
-
scopeId
Description copied from interface:AuditInstanceBuilder
Set the optional scope instance for which the audit instance was created.- Specified by:
scopeId
in interfaceAuditInstanceBuilder
-
subScopeId
Description copied from interface:AuditInstanceBuilder
Set the optional subScope instance for which the audit instance was created.- Specified by:
subScopeId
in interfaceAuditInstanceBuilder
-
scopeType
Description copied from interface:AuditInstanceBuilder
Set the optional scope instance type for which the audit instance was created (must be set ifAuditInstanceBuilder.scopeId(String)
is set).- Specified by:
scopeType
in interfaceAuditInstanceBuilder
-
scopeDefinitionId
Description copied from interface:AuditInstanceBuilder
Set the scope instance definition for which the audit instance was created.- Specified by:
scopeDefinitionId
in interfaceAuditInstanceBuilder
-
externalId
Description copied from interface:AuditInstanceBuilder
If this audit instance was created from an external system, set this optional external id to map to that external data object id, if necessary.- Specified by:
externalId
in interfaceAuditInstanceBuilder
-
tenantId
Description copied from interface:AuditInstanceBuilder
The tenantId for the audit instance.- Specified by:
tenantId
in interfaceAuditInstanceBuilder
-
type
Description copied from interface:AuditInstanceBuilder
Set the main type of this audit instance. The type and sub type might later be used for easy querying and filtering of the audit stream.- Specified by:
type
in interfaceAuditInstanceBuilder
-
subType
Description copied from interface:AuditInstanceBuilder
Set the sub type of this audit instance. The type and sub type might later be used for easy querying and filtering of the audit stream.- Specified by:
subType
in interfaceAuditInstanceBuilder
-
payload
Description copied from interface:AuditInstanceBuilder
Set the optional payload as a generic map representation for this audit instance as described within theAuditDefinition
.- Specified by:
payload
in interfaceAuditInstanceBuilder
-
creatorId
Description copied from interface:AuditInstanceBuilder
Set the optional creator id. If no creator id is set, currently authenticated user is used.- Specified by:
creatorId
in interfaceAuditInstanceBuilder
-
create
Description copied from interface:AuditInstanceBuilder
Creates and persists theAuditInstance
according the data provided to this builder.- Specified by:
create
in interfaceAuditInstanceBuilder
- Returns:
- the newly created and persisted audit instance
-
getAuditService
-
getAuditDefinitionId
-
getScopeId
-
getSubScopeId
-
getScopeType
-
getScopeDefinitionId
-
getExternalId
-
getTenantId
-
getType
-
getSubType
-
getPayload
-
getCreatorId
-