Class BaseActionDefinitionModel
- java.lang.Object
-
- com.flowable.action.api.repository.BaseActionDefinitionModel
-
- All Implemented Interfaces:
ActionDefinitionModel
public class BaseActionDefinitionModel extends Object implements ActionDefinitionModel
-
-
Field Summary
-
Fields inherited from interface com.flowable.action.api.repository.ActionDefinitionModel
CONFIRMATION_MESSAGE_DEFINITION_KEY, CONFIRMATION_TITLE_DEFINITION_KEY
-
-
Constructor Summary
Constructors Constructor Description BaseActionDefinitionModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBotKey()List<String>getChannels()com.fasterxml.jackson.databind.JsonNodegetConfig()Optional configuration parameters for the action.StringgetConfirmationMessage()As an alternative to a modeled form, a simple confirmation message might be provided by the action definition.StringgetConfirmationMessageCode()As an alternative to a modeled form or fixed confirmation message, you can also specify a confirmation code to be used with the template engine to render.StringgetConfirmationTitle()As an optional addition to the confirmation message (also see comments there), you can specify the title for the confirmation dialog, if the default is not sufficient.StringgetConfirmationTitleCode()Instead of the optional confirmation title, you can also specify a confirmation title code to use the template engine for the title of the confirmation dialog.StringgetDescription()StringgetFormKey()BooleangetGlobal()StringgetGroupId()StringgetHelp()Returns the more extended description or help for the action, which is optional and might describe more details about the action, its purpose and parameters.Map<String,Map<String,String>>getI18n()StringgetIcon()BooleangetIgnoreConfirmationMessage()StringgetKey()List<String>getMappedStates()List<String>getMappedSubStates()List<String>getMappedSubTypes()List<String>getMappedTypes()StringgetName()List<String>getPermissionGroups()The permissions groups that have permission to see the action.Set<String>getPermissionUserIdentityLinkTypes()The types of user identity links that have permission to see the action.IntegergetPriority()StringgetSample()Returns the optional sample of how this action could look like as an extension to the description.StringgetScopeType()StringgetSignalName()List<String>getSignalVariableNames()StringgetTheme()booleanisFormSameDeployment()voidsetBotKey(String botKey)voidsetChannels(List<String> channels)voidsetConfig(com.fasterxml.jackson.databind.JsonNode config)voidsetConfirmationMessage(String confirmationMessage)voidsetConfirmationMessageCode(String confirmationMessageCode)voidsetConfirmationTitle(String confirmationTitle)voidsetConfirmationTitleCode(String confirmationTitleCode)voidsetDescription(String description)voidsetFormKey(String formKey)voidsetFormSameDeployment(boolean formSameDeployment)voidsetGlobal(Boolean global)voidsetGroupId(String groupId)voidsetHelp(String help)voidsetI18n(Map<String,Map<String,String>> i18n)voidsetIcon(String icon)voidsetIgnoreConfirmationMessage(Boolean ignoreConfirmationMessage)voidsetKey(String key)voidsetMappedStates(List<String> mappedStates)voidsetMappedSubStates(List<String> mappedSubStates)voidsetMappedSubTypes(List<String> mappedSubTypes)voidsetMappedTypes(List<String> mappedTypes)voidsetName(String name)voidsetPermissionGroups(List<String> permissionGroups)voidsetPermissionUserIdentityLinkTypes(Set<String> permissionUserIdentityLinkTypes)voidsetPriority(Integer priority)voidsetSample(String sample)voidsetScopeType(String scopeType)voidsetSignalName(String signalName)voidsetSignalVariableNames(List<String> signalVariableNames)voidsetTheme(String theme)
-
-
-
Field Detail
-
key
protected String key
-
name
protected String name
-
description
protected String description
-
formKey
protected String formKey
-
formSameDeployment
protected boolean formSameDeployment
-
confirmationMessage
protected String confirmationMessage
-
confirmationMessageCode
protected String confirmationMessageCode
-
confirmationTitle
protected String confirmationTitle
-
confirmationTitleCode
protected String confirmationTitleCode
-
ignoreConfirmationMessage
protected Boolean ignoreConfirmationMessage
-
scopeType
protected String scopeType
-
theme
protected String theme
-
icon
protected String icon
-
priority
protected Integer priority
-
groupId
protected String groupId
-
sample
protected String sample
-
help
protected String help
-
global
protected Boolean global
-
botKey
protected String botKey
-
signalName
protected String signalName
-
config
protected com.fasterxml.jackson.databind.JsonNode config
-
-
Method Detail
-
getKey
public String getKey()
- Specified by:
getKeyin interfaceActionDefinitionModel
-
setKey
public void setKey(String key)
-
getName
public String getName()
- Specified by:
getNamein interfaceActionDefinitionModel
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceActionDefinitionModel
-
setDescription
public void setDescription(String description)
-
getFormKey
public String getFormKey()
- Specified by:
getFormKeyin interfaceActionDefinitionModel
-
setFormKey
public void setFormKey(String formKey)
-
isFormSameDeployment
public boolean isFormSameDeployment()
- Specified by:
isFormSameDeploymentin interfaceActionDefinitionModel
-
setFormSameDeployment
public void setFormSameDeployment(boolean formSameDeployment)
-
getConfirmationMessage
public String getConfirmationMessage()
Description copied from interface:ActionDefinitionModelAs an alternative to a modeled form, a simple confirmation message might be provided by the action definition. If available, the provided message is shown to get confirmation from the user to execute the action definition. As an alternative to a fixed confirmation message, you can also specify a confirmation message code which will then be used with the template engine to render and you can use placeholders using the scoped object to make it dynamic.- Specified by:
getConfirmationMessagein interfaceActionDefinitionModel- Returns:
- the optional confirmation message as an alternative to a modeled form
-
setConfirmationMessage
public void setConfirmationMessage(String confirmationMessage)
-
getConfirmationMessageCode
public String getConfirmationMessageCode()
Description copied from interface:ActionDefinitionModelAs an alternative to a modeled form or fixed confirmation message, you can also specify a confirmation code to be used with the template engine to render. And it might use the scoped objects data within placeholders to make it dynamic. The template definition key is fixed in this case and isActionDefinitionModel.CONFIRMATION_MESSAGE_DEFINITION_KEYand the returned code is considered the variation for the template.- Specified by:
getConfirmationMessageCodein interfaceActionDefinitionModel- Returns:
- the optional confirmation message code if the template engine should be used to render the confirmation message for this action definition
-
setConfirmationMessageCode
public void setConfirmationMessageCode(String confirmationMessageCode)
-
getConfirmationTitle
public String getConfirmationTitle()
Description copied from interface:ActionDefinitionModelAs an optional addition to the confirmation message (also see comments there), you can specify the title for the confirmation dialog, if the default is not sufficient.- Specified by:
getConfirmationTitlein interfaceActionDefinitionModel- Returns:
- the optional confirmation dialog title, if the default should be overwritten
-
setConfirmationTitle
public void setConfirmationTitle(String confirmationTitle)
-
getConfirmationTitleCode
public String getConfirmationTitleCode()
Description copied from interface:ActionDefinitionModelInstead of the optional confirmation title, you can also specify a confirmation title code to use the template engine for the title of the confirmation dialog.- Specified by:
getConfirmationTitleCodein interfaceActionDefinitionModel- Returns:
- the optional confirmation dialog title code to be used with the template engine
-
setConfirmationTitleCode
public void setConfirmationTitleCode(String confirmationTitleCode)
-
getIgnoreConfirmationMessage
public Boolean getIgnoreConfirmationMessage()
- Specified by:
getIgnoreConfirmationMessagein interfaceActionDefinitionModel
-
setIgnoreConfirmationMessage
public void setIgnoreConfirmationMessage(Boolean ignoreConfirmationMessage)
-
getScopeType
public String getScopeType()
- Specified by:
getScopeTypein interfaceActionDefinitionModel
-
setScopeType
public void setScopeType(String scopeType)
-
getPermissionUserIdentityLinkTypes
public Set<String> getPermissionUserIdentityLinkTypes()
Description copied from interface:ActionDefinitionModelThe types of user identity links that have permission to see the action. This is combined withActionDefinitionModel.getPermissionGroups()when checking for permissions. If a user is not a member of theActionDefinitionModel.getPermissionGroups(), but has an identity link type within this list, then the user will have access to the action.- Specified by:
getPermissionUserIdentityLinkTypesin interfaceActionDefinitionModel- Returns:
- the types of user identity links
-
setPermissionUserIdentityLinkTypes
public void setPermissionUserIdentityLinkTypes(Set<String> permissionUserIdentityLinkTypes)
-
getPermissionGroups
public List<String> getPermissionGroups()
Description copied from interface:ActionDefinitionModelThe permissions groups that have permission to see the action. This is combined withActionDefinitionModel.getPermissionUserIdentityLinkTypes()when checking for permissions. If a user is not a member of the permissions groups, but has an identity link type part ofActionDefinitionModel.getPermissionUserIdentityLinkTypes(), then the user will have access to the action.- Specified by:
getPermissionGroupsin interfaceActionDefinitionModel- Returns:
- the list of permission groups
-
getMappedStates
public List<String> getMappedStates()
- Specified by:
getMappedStatesin interfaceActionDefinitionModel
-
getMappedSubStates
public List<String> getMappedSubStates()
- Specified by:
getMappedSubStatesin interfaceActionDefinitionModel
-
getMappedTypes
public List<String> getMappedTypes()
- Specified by:
getMappedTypesin interfaceActionDefinitionModel
-
getMappedSubTypes
public List<String> getMappedSubTypes()
- Specified by:
getMappedSubTypesin interfaceActionDefinitionModel
-
getChannels
public List<String> getChannels()
- Specified by:
getChannelsin interfaceActionDefinitionModel
-
getTheme
public String getTheme()
- Specified by:
getThemein interfaceActionDefinitionModel
-
setTheme
public void setTheme(String theme)
-
getIcon
public String getIcon()
- Specified by:
getIconin interfaceActionDefinitionModel
-
setIcon
public void setIcon(String icon)
-
getPriority
public Integer getPriority()
- Specified by:
getPriorityin interfaceActionDefinitionModel
-
setPriority
public void setPriority(Integer priority)
-
getGroupId
public String getGroupId()
- Specified by:
getGroupIdin interfaceActionDefinitionModel
-
setGroupId
public void setGroupId(String groupId)
-
getSample
public String getSample()
Description copied from interface:ActionDefinitionModelReturns the optional sample of how this action could look like as an extension to the description.- Specified by:
getSamplein interfaceActionDefinitionModel- Returns:
- the optional sample for this action with sample parameter values
-
setSample
public void setSample(String sample)
-
getHelp
public String getHelp()
Description copied from interface:ActionDefinitionModelReturns the more extended description or help for the action, which is optional and might describe more details about the action, its purpose and parameters.- Specified by:
getHelpin interfaceActionDefinitionModel- Returns:
- the optional help description for the action
-
setHelp
public void setHelp(String help)
-
getGlobal
public Boolean getGlobal()
- Specified by:
getGlobalin interfaceActionDefinitionModel
-
setGlobal
public void setGlobal(Boolean global)
-
getBotKey
public String getBotKey()
- Specified by:
getBotKeyin interfaceActionDefinitionModel
-
setBotKey
public void setBotKey(String botKey)
-
getSignalName
public String getSignalName()
- Specified by:
getSignalNamein interfaceActionDefinitionModel
-
setSignalName
public void setSignalName(String signalName)
-
getSignalVariableNames
public List<String> getSignalVariableNames()
- Specified by:
getSignalVariableNamesin interfaceActionDefinitionModel
-
getI18n
public Map<String,Map<String,String>> getI18n()
- Specified by:
getI18nin interfaceActionDefinitionModel
-
getConfig
public com.fasterxml.jackson.databind.JsonNode getConfig()
Description copied from interface:ActionDefinitionModelOptional configuration parameters for the action. Allows to add action/bot implementation specific configurations.- Specified by:
getConfigin interfaceActionDefinitionModel
-
setConfig
public void setConfig(com.fasterxml.jackson.databind.JsonNode config)
-
-