Class ExternalResourceArtifactManager
- java.lang.Object
-
- org.bonitasoft.engine.api.impl.resolver.BARResourceArtifactManager
-
- org.bonitasoft.engine.api.impl.resolver.ExternalResourceArtifactManager
-
- All Implemented Interfaces:
BusinessArchiveArtifactManager
public class ExternalResourceArtifactManager extends BARResourceArtifactManager
- Author:
- Baptiste Mesta
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringRESOURCES-
Fields inherited from class org.bonitasoft.engine.api.impl.resolver.BARResourceArtifactManager
processResourcesService
-
-
Constructor Summary
Constructors Constructor Description ExternalResourceArtifactManager(ProcessResourcesService processResourcesService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<org.bonitasoft.engine.bpm.process.Problem>checkResolution(SProcessDefinition processDefinition)voiddelete(SProcessDefinition processDefinition)booleandeploy(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive, SProcessDefinition processDefinition)deploy a dedicated part of the process e.g.voidexportToBusinessArchive(long processDefinitionId, org.bonitasoft.engine.bpm.bar.BusinessArchiveBuilder businessArchiveBuilder)
-
-
-
Field Detail
-
RESOURCES
public static final java.lang.String RESOURCES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExternalResourceArtifactManager
public ExternalResourceArtifactManager(ProcessResourcesService processResourcesService)
-
-
Method Detail
-
deploy
public boolean deploy(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive, SProcessDefinition processDefinition) throws org.bonitasoft.engine.exception.BonitaException, SBonitaExceptionDescription copied from interface:BusinessArchiveArtifactManagerdeploy a dedicated part of the process e.g. load connectors Must throw an exception is something is not resolved in the process- Parameters:
businessArchive- the business archive containing the dependencyprocessDefinition- the process definition- Returns:
- true if the process is resolved for this deployer, false otherwise
- Throws:
org.bonitasoft.engine.exception.BonitaExceptionSBonitaException
-
checkResolution
public java.util.List<org.bonitasoft.engine.bpm.process.Problem> checkResolution(SProcessDefinition processDefinition)
- Parameters:
processDefinition- the process definition- Returns:
- a list of resolution problems or an empty list is there is no issue for this artifact
-
delete
public void delete(SProcessDefinition processDefinition) throws SObjectModificationException, SBonitaReadException, SRecorderException
-
exportToBusinessArchive
public void exportToBusinessArchive(long processDefinitionId, org.bonitasoft.engine.bpm.bar.BusinessArchiveBuilder businessArchiveBuilder) throws SBonitaException- Throws:
SBonitaException
-
-