public class BusinessArchive extends Object implements Serializable
DesignProcessDefinition
and all resources
necessary to the process execution.DesignProcessDefinition
,
Serialized FormConstructor and Description |
---|
BusinessArchive()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addResource(String resourcePath,
byte[] resourceData)
Adds a resource to this
BusinessArchive |
Map<String,String> |
getParameters()
Retrieves the
BusinessArchive parameters |
DesignProcessDefinition |
getProcessDefinition()
Retrieves the related
DesignProcessDefinition |
byte[] |
getResource(String resourcePath)
Retrieves a byte array representing the content of the resource identified by the given path.
|
Map<String,byte[]> |
getResources()
Retrieves a
Map containing all resources of this BusinessArchive . |
Map<String,byte[]> |
getResources(String regex)
Retrieves a
Map representing the resources having paths matching with the given regular expression. |
void |
setParameters(Map<String,String> parameters)
Defines the
BusinessArchive parameters |
void |
setProcessDefinition(DesignProcessDefinition processDefinition)
Defines the related
DesignProcessDefinition |
public BusinessArchive()
BusinessArchive
public DesignProcessDefinition getProcessDefinition()
DesignProcessDefinition
DesignProcessDefinition
DesignProcessDefinition
public void setProcessDefinition(DesignProcessDefinition processDefinition)
DesignProcessDefinition
processDefinition
- the related DesignProcessDefinition
DesignProcessDefinition
public Map<String,String> getParameters()
BusinessArchive
parametersBusinessArchive
parameterspublic void setParameters(Map<String,String> parameters)
BusinessArchive
parametersparameters
- the BusinessArchive
parameterspublic byte[] getResource(String resourcePath)
Example:
businessArchive.getResource("actorMapping.xml")
resourcePath
- the complete resource pathpublic Map<String,byte[]> getResources(String regex)
Map
representing the resources having paths matching with the given regular expression. The Map
keys store the
resource paths and the Map
values store the resource content.
Example:
businessArchive.getResources("^classpath/.*$")
regex
- the regular expression used to match the resource pathMap
representing the resources having paths matching with the given regular expressionprotected void addResource(String resourcePath, byte[] resourceData)
BusinessArchive
resourcePath
- the complete resource path. It must contain the full path and filenameresourceData
- the byte array representing the resource contentCopyright © 2015 Bonitasoft S.A.. All rights reserved.