This class represents a process definitions with
the root tag ProcessDefinition. It converts the input to the
respective objects in the process definition database.
DefaultProcessDefinition(Document processDefinition) Construct a new DefaultProcessDefinition from a
JDOM document.
Parameters: processDefinition - parsed process definitionas Document. throws: JDOMException - If an error occurs.
This constructor assumes that XPDL has been verified before, i.e.
it parses the process definition with verification turned off.
Parameters: xpdl - String representation of the process definition throws: IOException - If an error occurs.
applications() Extracts all the applications definition in the package and
in this process and use it to generate a collection of
ApplicationDefinition.
public int
auditEventSelection() This method the audit event filter for instances of this
process definition.
public int
cleanupMode() This method checks if a closed process should be removed.
version() Return the version of the process manager.
Field Detail
logger
final static org.apache.commons.logging.Log logger(Code)
logger of this class.
Constructor Detail
DefaultProcessDefinition
public DefaultProcessDefinition(Document processDefinition) throws JDOMException, ImportException(Code)
Construct a new DefaultProcessDefinition from a
JDOM document.
Parameters: processDefinition - parsed process definitionas Document. throws: JDOMException - If an error occurs. throws: ImportException - if the XPDL is not correct.
Construct a new DefaultProcessDefinition from an
XPDL Document.
This constructor assumes that XPDL has been verified before, i.e.
it parses the process definition with verification turned off.
Parameters: xpdl - String representation of the process definition throws: IOException - If an error occurs. throws: ImportException - if the XPDL is not correct.
Find out the dedicated application using the given id.
Parameters: id - the given id of the application to be found. throws: InvalidIdException - If no such application be found the dedicated application.
Extracts all the applications definition in the package and
in this process and use it to generate a collection of
ApplicationDefinition.
a collection of ApplicationDefinition.
This method checks if a closed process should be removed. Parse the
process definition and find out if the extendAttribute with the name of
RemoveClosedProcess has the value of MANUAL,
AUTOMATIC or COMPLETED and return the
corresponding constant. Default is to remove automatically, i.e.
DefaultProcessDefinition.REMOVE_AUTOMATICREMOVE_AUTOMATIC .
the cleanup mode.
Returns the meta information that describes the context for
this kind of process. Equivalent to calling
de.danet.an.workflow.localcoreapi.WfProcessMgrLocal.contextSignaturecontextSignature on a process manager for this
kind of process.
the process meta information. See Also: de.danet.an.workflow.localcoreapi.WfProcessMgrLocal.contextSignature
Return the participant identified by the id.
Parameters: id - identity of the participant in string a Participant object throws: InvalidIdException - if no participant with the given id exists.
This method checks if the closed process should be removed. Parse the
process definition and find out if the extendAttribute with the name of
RemoveClosedProcess has the value of MANUAL, then return false; if it
has the value of AUTOMATIC, then return true. Default is true.
true if the closed process should be removed, otherwise false.
Returns the meta information that describes the result for this
kind of process. Equivalent to calling
de.danet.an.workflow.localcoreapi.WfProcessMgrLocal.resultSignatureresultSignature on a process manager for this
kind of process.
The implementation returns all formal IN or INOUT parameters.
the process meta information. See Also: de.danet.an.workflow.localcoreapi.WfProcessMgrLocal.resultSignature