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 |
ActorMapping |
getActorMapping() |
FormMappingModel |
getFormMappingModel()
Retrieves the form mapping model for 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 |
setActorMapping(ActorMapping actorMapping) |
void |
setFormMappings(FormMappingModel formMappingModel)
Sets the task-to-form (or process-to-form) mapping in this
BusinessArchive . |
void |
setParameters(Map<String,String> parameters)
Defines the
BusinessArchive parameters |
void |
setProcessDefinition(DesignProcessDefinition processDefinition)
Defines the related
DesignProcessDefinition |
public BusinessArchive()
BusinessArchive
public ActorMapping getActorMapping()
public void setActorMapping(ActorMapping actorMapping)
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 contentpublic Map<String,byte[]> getResources()
Map
containing all resources of this BusinessArchive
. The Map
keys store the
resource full paths and the Map
values store the resource content.Map
containing all resources of this BusinessArchive
public void setFormMappings(FormMappingModel formMappingModel)
BusinessArchive
.formMappingModel
- the model to store.public FormMappingModel getFormMappingModel()
BusinessArchive
.BusinessArchive
.Copyright © 2020 Bonitasoft S.A. All rights reserved.