Package com.flowable.audit.api.runtime
Interface AuditInstanceBuilder
- All Known Implementing Classes:
AuditInstanceBuilderImpl
public interface AuditInstanceBuilder
A builder to create new objects of type
AuditInstance
.- Author:
- Micha Kiener
-
Method Summary
Modifier and Type Method Description AuditInstanceBuilder
auditDefinitionId(java.lang.String auditDefinitionId)
Set the audit definition of this audit instance.AuditInstance
create()
Creates and persists theAuditInstance
according the data provided to this builder.AuditInstanceBuilder
creatorId(java.lang.String creatorId)
Set the optional creator id.AuditInstanceBuilder
externalId(java.lang.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.AuditInstanceBuilder
payload(java.util.Map<java.lang.String,java.lang.Object> payload)
Set the optional payload as a generic map representation for this audit instance as described within theAuditDefinition
.AuditInstanceBuilder
scopeDefinitionId(java.lang.String scopeDefinitionId)
Set the scope instance definition for which the audit instance was created.AuditInstanceBuilder
scopeId(java.lang.String scopeId)
Set the optional scope instance for which the audit instance was created.AuditInstanceBuilder
scopeType(java.lang.String scopeType)
Set the optional scope instance type for which the audit instance was created (must be set ifscopeId(String)
is set).AuditInstanceBuilder
subScopeId(java.lang.String subScopeId)
Set the optional subScope instance for which the audit instance was created.AuditInstanceBuilder
subType(java.lang.String subType)
Set the sub type of this audit instance.AuditInstanceBuilder
tenantId(java.lang.String tenantId)
The tenantId for the audit instance.AuditInstanceBuilder
type(java.lang.String type)
Set the main type of this audit instance.
-
Method Details
-
auditDefinitionId
Set the audit definition of this audit instance. -
scopeId
Set the optional scope instance for which the audit instance was created. -
subScopeId
Set the optional subScope instance for which the audit instance was created. -
scopeType
Set the optional scope instance type for which the audit instance was created (must be set ifscopeId(String)
is set). -
scopeDefinitionId
Set the scope instance definition for which the audit instance was created. -
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. -
tenantId
The tenantId for the audit instance. -
type
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. -
subType
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. -
payload
Set the optional payload as a generic map representation for this audit instance as described within theAuditDefinition
. -
creatorId
Set the optional creator id. If no creator id is set, currently authenticated user is used. -
create
AuditInstance create()Creates and persists theAuditInstance
according the data provided to this builder.- Returns:
- the newly created and persisted audit instance
-