public class ProcessDefinitionBARContribution extends Object implements BusinessArchiveContribution
Modifier and Type | Field and Description |
---|---|
static String |
PROCESS_DEFINITION_XML |
static String |
PROCESS_INFOS_FILE |
Constructor and Description |
---|
ProcessDefinitionBARContribution() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkProcessInfos(File barFolder,
DesignProcessDefinition processDefinition) |
String |
convertProcessToXml(DesignProcessDefinition processDefinition) |
DesignProcessDefinition |
convertXmlToProcess(String content) |
DesignProcessDefinition |
deserializeProcessDefinition(File file) |
protected String |
generateInfosFromDefinition(DesignProcessDefinition processDefinition) |
protected Marshaller |
getMarshaller() |
String |
getName()
Retrieves the
BusinessArchiveContribution name |
protected String |
getProcessInfos(String infos) |
boolean |
isMandatory()
Checks if this
BusinessArchiveContribution is mandatory |
boolean |
readFromBarFolder(BusinessArchive businessArchive,
File barFolder)
Updates the
BusinessArchive with information read from the file system and returns true if the
information was successfully read or false otherwise. |
void |
saveToBarFolder(BusinessArchive businessArchive,
File barFolder)
Writes the content of the BusinessArchive to the file system
|
void |
serializeProcessDefinition(File barFolder,
DesignProcessDefinition processDefinition) |
public static final String PROCESS_DEFINITION_XML
public static final String PROCESS_INFOS_FILE
public boolean isMandatory()
BusinessArchiveContribution
BusinessArchiveContribution
is mandatoryisMandatory
in interface BusinessArchiveContribution
BusinessArchiveContribution
is mandatory; false otherwisepublic boolean readFromBarFolder(BusinessArchive businessArchive, File barFolder) throws IOException, InvalidBusinessArchiveFormatException
BusinessArchiveContribution
BusinessArchive
with information read from the file system and returns true if the
information was successfully read or false otherwise.readFromBarFolder
in interface BusinessArchiveContribution
businessArchive
- the BusinessArchive
to be filled with information read from the file systembarFolder
- the folder storing the information to be filled in the BusinessArchive
IOException
- if a problem occurs when reading information from file system.InvalidBusinessArchiveFormatException
- when the folder from which the information is being read has an
invalid format.BusinessArchive
protected void checkProcessInfos(File barFolder, DesignProcessDefinition processDefinition) throws InvalidBusinessArchiveFormatException
public DesignProcessDefinition deserializeProcessDefinition(File file) throws IOException, InvalidBusinessArchiveFormatException
public void saveToBarFolder(BusinessArchive businessArchive, File barFolder) throws IOException
BusinessArchiveContribution
saveToBarFolder
in interface BusinessArchiveContribution
businessArchive
- the BusinessArchive
containing the information to be stored in the file systembarFolder
- the folder where the BusinessArchive
information will be stored.IOException
- when a problem occurs when the information is being stored in the file system.public void serializeProcessDefinition(File barFolder, DesignProcessDefinition processDefinition) throws IOException
IOException
public String convertProcessToXml(DesignProcessDefinition processDefinition) throws IOException
IOException
protected Marshaller getMarshaller() throws JAXBException
JAXBException
public DesignProcessDefinition convertXmlToProcess(String content) throws IOException
IOException
protected String generateInfosFromDefinition(DesignProcessDefinition processDefinition)
public String getName()
BusinessArchiveContribution
BusinessArchiveContribution
namegetName
in interface BusinessArchiveContribution
BusinessArchiveContribution
nameCopyright © 2020 Bonitasoft S.A. All rights reserved.