Class ActionRepositoryServiceImpl
java.lang.Object
org.flowable.common.engine.impl.service.CommonServiceImpl<C>
org.flowable.common.engine.impl.service.CommonEngineServiceImpl<ActionEngineConfiguration>
com.flowable.action.engine.impl.repository.ActionRepositoryServiceImpl
- All Implemented Interfaces:
ActionRepositoryService
public class ActionRepositoryServiceImpl extends org.flowable.common.engine.impl.service.CommonEngineServiceImpl<ActionEngineConfiguration> implements ActionRepositoryService
- Author:
- Joram Barrez, Tijs Rademakers
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ActionRepositoryServiceImpl(ActionEngineConfiguration engineConfiguration)
-
Method Summary
Modifier and Type Method Description ActionDefinitionLink
addActionDefinitionLink(java.lang.String actionDefinitionId, java.lang.String type, java.lang.String linkValue)
Adds a newActionDefinitionLink
for the given action definition id.java.lang.String
convertActionDefinitionModelToJson(java.lang.String appDefinitionId)
Returns theActionDefinitionModel
as a JSON string.ActionDefinitionQuery
createActionDefinitionQuery()
Query case definitionsActionDeploymentBuilder
createDeployment()
Starts creating a new deploymentActionDeploymentQuery
createDeploymentQuery()
Query deploymentsvoid
deleteActionDefinitionLink(java.lang.String actionDefinitionLinkId)
Deletes anActionDefinitionLink
for the given action definition link id.void
deleteDeployment(java.lang.String deploymentId)
Deletes the given deployment.ActionDeployment
deploy(ActionDeploymentBuilderImpl deploymentBuilder)
ActionDefinition
getActionDefinition(java.lang.String appDefinitionId)
Returns theActionDefinition
including all action information like additional Properties (e.g.ActionDefinition
getActionDefinitionByKey(java.lang.String actionDefinitionKey)
Returns theActionDefinition
including all action information like additional Properties (e.g.ActionDefinition
getActionDefinitionByKeyAndTenantId(java.lang.String actionDefinitionKey, java.lang.String tenantId)
Returns theActionDefinition
including all action information like additional Properties (e.g.java.util.List<ActionDefinitionLink>
getActionDefinitionLinks(java.lang.String actionDefinitionId)
ReturnsActionDefinitionLink
s for the given action definition id.ActionDefinitionModel
getActionDefinitionModel(java.lang.String actionDefinitionId)
Returns theActionDefinitionModel
including all action model info.ActionDefinitionModel
getActionDefinitionModelByKey(java.lang.String actionDefinitionKey)
Returns theActionDefinitionModel
including all action model info, using the action definition key and resolving the key to the latest version.ActionDefinitionModel
getActionDefinitionModelByKeyAndTenantId(java.lang.String actionDefinitionKey, java.lang.String tenantId)
Returns theActionDefinitionModel
including all action model info, using the action definition key and resolving the key to the latest version.java.util.List<java.lang.String>
getDeploymentResourceNames(java.lang.String deploymentId)
Retrieves a list of deployment resources for the given deployment, ordered alphabetically.java.io.InputStream
getResourceAsStream(java.lang.String deploymentId, java.lang.String resourceName)
Gives access to a deployment resource through a stream of bytes.Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
-
Constructor Details
-
Method Details
-
createDeployment
Description copied from interface:ActionRepositoryService
Starts creating a new deployment- Specified by:
createDeployment
in interfaceActionRepositoryService
-
getDeploymentResourceNames
public java.util.List<java.lang.String> getDeploymentResourceNames(java.lang.String deploymentId)Description copied from interface:ActionRepositoryService
Retrieves a list of deployment resources for the given deployment, ordered alphabetically.- Specified by:
getDeploymentResourceNames
in interfaceActionRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
getResourceAsStream
public java.io.InputStream getResourceAsStream(java.lang.String deploymentId, java.lang.String resourceName)Description copied from interface:ActionRepositoryService
Gives access to a deployment resource through a stream of bytes.- Specified by:
getResourceAsStream
in interfaceActionRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.resourceName
- name of the resource, cannot be null.
-
deploy
-
getActionDefinition
Description copied from interface:ActionRepositoryService
Returns theActionDefinition
including all action information like additional Properties (e.g. documentation).- Specified by:
getActionDefinition
in interfaceActionRepositoryService
-
getActionDefinitionByKey
Description copied from interface:ActionRepositoryService
Returns theActionDefinition
including all action information like additional Properties (e.g. documentation). The latest version for the given key will be returned.- Specified by:
getActionDefinitionByKey
in interfaceActionRepositoryService
-
getActionDefinitionByKeyAndTenantId
public ActionDefinition getActionDefinitionByKeyAndTenantId(java.lang.String actionDefinitionKey, java.lang.String tenantId)Description copied from interface:ActionRepositoryService
Returns theActionDefinition
including all action information like additional Properties (e.g. documentation). The latest version for the given key will be returned.- Specified by:
getActionDefinitionByKeyAndTenantId
in interfaceActionRepositoryService
-
getActionDefinitionLinks
public java.util.List<ActionDefinitionLink> getActionDefinitionLinks(java.lang.String actionDefinitionId)Description copied from interface:ActionRepositoryService
ReturnsActionDefinitionLink
s for the given action definition id.- Specified by:
getActionDefinitionLinks
in interfaceActionRepositoryService
-
addActionDefinitionLink
public ActionDefinitionLink addActionDefinitionLink(java.lang.String actionDefinitionId, java.lang.String type, java.lang.String linkValue)Description copied from interface:ActionRepositoryService
Adds a newActionDefinitionLink
for the given action definition id.- Specified by:
addActionDefinitionLink
in interfaceActionRepositoryService
-
deleteActionDefinitionLink
public void deleteActionDefinitionLink(java.lang.String actionDefinitionLinkId)Description copied from interface:ActionRepositoryService
Deletes anActionDefinitionLink
for the given action definition link id.- Specified by:
deleteActionDefinitionLink
in interfaceActionRepositoryService
-
getActionDefinitionModel
Description copied from interface:ActionRepositoryService
Returns theActionDefinitionModel
including all action model info.- Specified by:
getActionDefinitionModel
in interfaceActionRepositoryService
-
getActionDefinitionModelByKey
Description copied from interface:ActionRepositoryService
Returns theActionDefinitionModel
including all action model info, using the action definition key and resolving the key to the latest version.- Specified by:
getActionDefinitionModelByKey
in interfaceActionRepositoryService
-
getActionDefinitionModelByKeyAndTenantId
public ActionDefinitionModel getActionDefinitionModelByKeyAndTenantId(java.lang.String actionDefinitionKey, java.lang.String tenantId)Description copied from interface:ActionRepositoryService
Returns theActionDefinitionModel
including all action model info, using the action definition key and resolving the key to the latest version.- Specified by:
getActionDefinitionModelByKeyAndTenantId
in interfaceActionRepositoryService
-
convertActionDefinitionModelToJson
public java.lang.String convertActionDefinitionModelToJson(java.lang.String appDefinitionId)Description copied from interface:ActionRepositoryService
Returns theActionDefinitionModel
as a JSON string.- Specified by:
convertActionDefinitionModelToJson
in interfaceActionRepositoryService
-
deleteDeployment
public void deleteDeployment(java.lang.String deploymentId)Description copied from interface:ActionRepositoryService
Deletes the given deployment.- Specified by:
deleteDeployment
in interfaceActionRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
createDeploymentQuery
Description copied from interface:ActionRepositoryService
Query deployments- Specified by:
createDeploymentQuery
in interfaceActionRepositoryService
-
createActionDefinitionQuery
Description copied from interface:ActionRepositoryService
Query case definitions- Specified by:
createActionDefinitionQuery
in interfaceActionRepositoryService
-