public interface TemplateChangeService
Modifier and Type | Field and Description |
---|---|
static String |
AUDIT_ENTRY_SUB_TYPE_TEMPLATE_VARIATION |
static String |
AUDIT_ENTRY_TYPE_DEPLOYMENT |
static String |
AUDIT_ENTRY_VAR_NAME_APPROVAL_USER_ID |
static String |
AUDIT_ENTRY_VAR_NAME_CHANGE_USER_ID |
static String |
AUDIT_ENTRY_VAR_OLD_VERSION_TIMESTAMP |
static String |
PRC_VAR_NAME_APPROVED |
static String |
PRC_VAR_NAME_NEW_CONTENT |
static String |
PRC_VAR_NAME_NEW_CONTENT_RESOURCE |
static String |
PRC_VAR_NAME_NEW_EXTERNAL_ID |
static String |
PRC_VAR_NAME_TPL_DEF_ID |
static String |
PRC_VAR_NAME_TRIGGERING_USER_ID |
static String |
PRC_VAR_NAME_TRIGGERING_USER_NAME |
Modifier and Type | Method and Description |
---|---|
void |
deployTemplateVariationContentChange(String templateVariationId,
String tenantId,
String newVariationContent,
String newVariationContentResource)
Directly changes and deploys the variation content of the given template variation at runtime.
|
void |
deployTemplateVariationContentChange(String templateVariationId,
String tenantId,
String newVariationContent,
String newVariationContentResource,
String externalId)
Directly changes and deploys the variation content of the given template variation at runtime.
|
ProcessInstance |
findApprovalProcessInstance(String combinedTemplateVariationKey,
String tenantId)
Find a running approval / change process for the specified template variation.
|
void |
triggerTemplateVariationContentChange(String templateVariationId,
String tenantId,
UpdateTemplateVariationRequest updateRequest)
Changes and deploys the variation content of the given template variation at runtime.
|
static final String PRC_VAR_NAME_TPL_DEF_ID
static final String PRC_VAR_NAME_NEW_CONTENT
static final String PRC_VAR_NAME_NEW_CONTENT_RESOURCE
static final String PRC_VAR_NAME_NEW_EXTERNAL_ID
static final String PRC_VAR_NAME_TRIGGERING_USER_ID
static final String PRC_VAR_NAME_APPROVED
static final String PRC_VAR_NAME_TRIGGERING_USER_NAME
static final String AUDIT_ENTRY_TYPE_DEPLOYMENT
static final String AUDIT_ENTRY_SUB_TYPE_TEMPLATE_VARIATION
static final String AUDIT_ENTRY_VAR_NAME_CHANGE_USER_ID
static final String AUDIT_ENTRY_VAR_NAME_APPROVAL_USER_ID
static final String AUDIT_ENTRY_VAR_OLD_VERSION_TIMESTAMP
void triggerTemplateVariationContentChange(String templateVariationId, String tenantId, UpdateTemplateVariationRequest updateRequest)
deployTemplateVariationContentChange(String, String, String, String)
.templateVariationId
- the id of the template variation to change its variation contentupdateRequest
- the update request containing the necessary data (e.g. new variation content, etc) for the updatevoid deployTemplateVariationContentChange(String templateVariationId, String tenantId, String newVariationContent, String newVariationContentResource)
triggerTemplateVariationContentChange(String, String, UpdateTemplateVariationRequest)
or as part of the change / approval process
to eventually deploy the changed content.templateVariationId
- the id of the template variation to change and deploy its contenttenantId
- the optional id of the tenantnewVariationContent
- the new variation content to change and deploy (can be null if newVariationContentResource
is passed)newVariationContentResource
- the new variation content resource to change and deploy (can be null if newVariationContent
is passed)void deployTemplateVariationContentChange(String templateVariationId, String tenantId, String newVariationContent, String newVariationContentResource, String externalId)
triggerTemplateVariationContentChange(String, String, UpdateTemplateVariationRequest)
or as part of the change / approval process
to eventually deploy the changed content.templateVariationId
- the ID of the template variation to change and deploy its contenttenantId
- the optional ID of the tenantnewVariationContent
- the new variation content to change and deploy (can be null if newVariationContentResource
is passed)newVariationContentResource
- the new variation content resource to change and deploy (can be null if newVariationContent
is passed)externalId
- the new external IDProcessInstance findApprovalProcessInstance(String combinedTemplateVariationKey, String tenantId)
combinedTemplateVariationKey
- the combined id of the template and variation key (as being returned by TemplateVariationModel.getKey()