|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.workflow.impl.bonita.BARFileDefinition
public class BARFileDefinition
This class maps in memory a deployable Business Process Archive. Among others, it stores array of bytes corresponding to the XPDL definition file, the form definition file (ie forms.xml) and the resource bundles. Created by Bull R&D
| Field Summary | |
|---|---|
protected java.util.Hashtable<java.lang.String,byte[]> |
entries
Contains bytes corresponding to the files in the archive |
| Constructor Summary | |
|---|---|
BARFileDefinition()
|
|
BARFileDefinition(java.io.InputStream inputStream)
This constructor builds a file definition based on an Input Stream corresponding to a Business Process Archive. |
|
BARFileDefinition(javax.jcr.Node node)
This constructor builds a file definition from a Node stored in the JCR representing a Business Process. |
|
| Method Summary | |
|---|---|
void |
deploy()
|
java.lang.String |
getCustomizedView(java.lang.String stateName)
|
java.util.Hashtable<java.lang.String,byte[]> |
getEntries()
|
byte[] |
getEntry(java.lang.String path)
|
org.w3c.dom.Element |
getForm(java.lang.String stateName)
Retrieves a Form corresponding to a State as a DOM Element |
org.w3c.dom.Element |
getFormsDefinition()
Retrieves the whole Form definition as a DOM Element |
java.lang.String |
getProcessModelName()
|
java.util.ResourceBundle |
getResourceBundle(java.lang.String stateName,
java.util.Locale locale)
|
java.lang.String |
getResourceBundleName(java.lang.String stateName)
Retrieves the Bundle name of a Form corresponding to a State name |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getVariables(java.lang.String stateName)
|
byte[] |
getXPDLDefinition()
Retrieves the XPDL Process definition |
boolean |
isDelegatedView(java.lang.String stateName)
|
boolean |
isFormDefined(java.lang.String stateName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Hashtable<java.lang.String,byte[]> entries
| Constructor Detail |
|---|
public BARFileDefinition()
public BARFileDefinition(java.io.InputStream inputStream)
throws java.io.IOException
inputStream - Input Stream corresponding to the process archive
java.io.IOExceptionpublic BARFileDefinition(javax.jcr.Node node)
node - stored in the JCR which represents the process model| Method Detail |
|---|
public void deploy()
throws java.lang.Exception
deploy in interface FileDefinitionjava.lang.Exceptionpublic java.lang.String getProcessModelName()
getProcessModelName in interface FileDefinition
public java.util.ResourceBundle getResourceBundle(java.lang.String stateName,
java.util.Locale locale)
getResourceBundle in interface FileDefinitionpublic java.lang.String getCustomizedView(java.lang.String stateName)
getCustomizedView in interface FileDefinition
public byte[] getEntry(java.lang.String path)
throws java.lang.Exception
getEntry in interface FileDefinitionjava.lang.Exceptionpublic org.w3c.dom.Element getForm(java.lang.String stateName)
stateName - name of the state
public org.w3c.dom.Element getFormsDefinition()
public java.lang.String getResourceBundleName(java.lang.String stateName)
stateName - identifies the Form
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getVariables(java.lang.String stateName)
getVariables in interface FileDefinitionpublic byte[] getXPDLDefinition()
public boolean isDelegatedView(java.lang.String stateName)
isDelegatedView in interface FileDefinitionpublic boolean isFormDefined(java.lang.String stateName)
isFormDefined in interface FileDefinitionpublic java.util.Hashtable<java.lang.String,byte[]> getEntries()
getEntries in interface FileDefinition
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||