public class TMLFormProcessContext extends ProcessContext implements java.util.Map<java.lang.String,java.lang.Object>
Modifier and Type | Class and Description |
---|---|
class |
TMLFormProcessContext.DiskPCFile
A process context file stored on disk
|
class |
TMLFormProcessContext.DocumentPCFile
A process context file that points to a file attached to a document
|
static interface |
TMLFormProcessContext.PCFile
A file attached to a process context
|
Constructor and Description |
---|
TMLFormProcessContext(java.lang.String processid,
java.lang.String parentId,
ProcessContextRegistration registration)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addFile(java.io.InputStream in,
java.lang.String fileName)
Add an uploaded file to the process context
|
void |
clearFiles()
Remove all files on this process context
|
de.innovationgate.webgate.api.WGDocument |
getCreatedDoc()
Returns a document that was created on a process in this context
|
java.util.Map<java.lang.String,TMLFormProcessContext.PCFile> |
getFiles()
Returns all files attached to this process context
|
boolean |
removeFile(java.lang.String filename)
Remove a file from this process context
|
clear, containsKey, containsValue, entrySet, equals, get, getCreated, getProcessId, hashCode, isEmpty, keySet, kill, put, putAll, remove, size, values
public TMLFormProcessContext(java.lang.String processid, java.lang.String parentId, ProcessContextRegistration registration)
processid
- The process idparentId
- The id of the entity to which this process context should belongregistration
- The registration map for process contextspublic java.util.Map<java.lang.String,TMLFormProcessContext.PCFile> getFiles()
public boolean removeFile(java.lang.String filename)
filename
- Name of the filepublic void addFile(java.io.InputStream in, java.lang.String fileName) throws java.io.IOException, java.security.NoSuchAlgorithmException
in
- The data of the filefileName
- The name of the filejava.io.IOException
java.security.NoSuchAlgorithmException
public void clearFiles()
public de.innovationgate.webgate.api.WGDocument getCreatedDoc()