org.ow2.bonita.facade.def.majorElement.impl
Class ProcessDefinitionImpl

java.lang.Object
  extended by org.ow2.bonita.facade.def.majorElement.impl.NamedElementImpl
      extended by org.ow2.bonita.facade.def.majorElement.impl.ProcessDefinitionImpl
All Implemented Interfaces:
java.io.Serializable, ClientProcessDefinition, NamedElement, ProcessDefinition, ProcessFullDefinition, Archivable

public class ProcessDefinitionImpl
extends NamedElementImpl
implements ProcessFullDefinition

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ow2.bonita.facade.def.majorElement.ProcessDefinition
ProcessDefinition.ProcessState
 
Field Summary
protected  java.util.Set<ActivityDefinition> activities
           
protected  BusinessArchive businessArchive
           
protected  java.util.Set<java.lang.String> classDependencies
           
protected  java.util.Set<DataFieldDefinition> dataFields
           
protected  long dbid
           
protected  java.lang.String deployedBy
           
protected  java.util.Date deployedDate
           
protected  java.lang.String description
           
protected  java.util.List<FormalParameterDefinition> formalParameters
           
protected  java.util.Map<java.lang.String,java.lang.String> metadata
           
protected  java.util.Set<ParticipantDefinition> participants
           
protected  java.util.Set<java.lang.String> processDependencies
           
protected  java.lang.String processId
           
protected  ProcessDefinition.ProcessState state
           
protected  java.util.Set<TransitionDefinition> transitions
           
protected  java.lang.String undeployedBy
           
protected  java.util.Date undeployedDate
           
protected  ProcessDefinitionUUID uuid
           
protected  java.lang.String version
           
 
Fields inherited from class org.ow2.bonita.facade.def.majorElement.impl.NamedElementImpl
name
 
Constructor Summary
protected ProcessDefinitionImpl()
           
  ProcessDefinitionImpl(ProcessDefinition src)
           
  ProcessDefinitionImpl(java.lang.String processId, java.lang.String name, java.lang.String version)
           
 
Method Summary
 void addActivity(ActivityDefinition activity)
           
 void addAMetaData(java.lang.String key, java.lang.String value)
           
 void addData(DataFieldDefinition data)
           
 void addFormalParamater(FormalParameterDefinition fpd)
           
 void addGroup(ParticipantDefinitionImpl group)
           
 void addTranistion(TransitionDefinition transition)
           
 void deleteAMetaData(java.lang.String key)
           
 boolean equals(java.lang.Object obj)
           
 java.util.Set<ActivityDefinition> getActivities()
           
 java.lang.String getAMetaData(java.lang.String key)
           
 BusinessArchive getBusinessArchive()
           
 java.util.Set<java.lang.String> getClassDependencies()
          Returns class dependencies (java classDatas for hooks, mappers, performer assignments, deadlines) for this package.
 java.util.Set<DataFieldDefinition> getDataFields()
           
 java.lang.String getDeployedBy()
          Returns the user deploying the package.
 java.util.Date getDeployedDate()
          Returns the date when the package is deployed.
 java.lang.String getDescription()
          Short textual description of the process.
 java.util.List<FormalParameterDefinition> getFormalParameters()
          A list of parameters that may be passed to the process.
 java.util.Map<java.lang.String,java.lang.String> getMetaData()
           
 java.util.Set<ParticipantDefinition> getParticipants()
           
 java.util.Set<java.lang.String> getProcessDependencies()
          If the package has subflows and the process definition for these subflows are defined in others package definitions then it is not possible to undeploy these packages until this package is itself undeployed.
 java.lang.String getProcessId()
          Returns the value of the id attribute of the WorkflowProcess element defined into the XPDL file.
 ProcessDefinition.ProcessState getState()
           
 java.util.Set<TransitionDefinition> getTransitions()
           
 java.lang.String getUndeployedBy()
          Returns the user undeploying the package.
 java.util.Date getUndeployedDate()
          Returns the date where the package is undeployed.
 ProcessDefinitionUUID getUUID()
          Returns the UUID for the ProcessDefinition.
 java.lang.String getVersion()
          Version of this process definition.
 int hashCode()
           
 void setBusinessArchive(BusinessArchive businessArchive)
           
 void setClassDependencies(java.util.Set<java.lang.String> classDependencies)
           
 void setDeployedBy(java.lang.String deployedBy)
           
 void setDeployedDate(java.util.Date deployedDate)
           
 void setDescription(java.lang.String description)
           
 void setProcessDefinitionUUID(ProcessDefinitionUUID processDefinitionUUID)
           
 void setProcessDependencies(java.util.Set<java.lang.String> processDependencies)
           
 void setState(ProcessDefinition.ProcessState state)
          SETTERS
 void setUndeployedBy(java.lang.String undeployedBy)
           
 void setUndeployedDate(java.util.Date undeployedDate)
           
 void setUUID(ProcessDefinitionUUID processUUID)
           
 java.lang.String toString()
           
 
Methods inherited from class org.ow2.bonita.facade.def.majorElement.impl.NamedElementImpl
getName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

dbid

protected long dbid

uuid

protected ProcessDefinitionUUID uuid

processId

protected java.lang.String processId

description

protected java.lang.String description

formalParameters

protected java.util.List<FormalParameterDefinition> formalParameters

version

protected java.lang.String version

state

protected ProcessDefinition.ProcessState state

classDependencies

protected java.util.Set<java.lang.String> classDependencies

businessArchive

protected BusinessArchive businessArchive

processDependencies

protected java.util.Set<java.lang.String> processDependencies

deployedDate

protected java.util.Date deployedDate

undeployedDate

protected java.util.Date undeployedDate

deployedBy

protected java.lang.String deployedBy

undeployedBy

protected java.lang.String undeployedBy

dataFields

protected java.util.Set<DataFieldDefinition> dataFields

participants

protected java.util.Set<ParticipantDefinition> participants

activities

protected java.util.Set<ActivityDefinition> activities

transitions

protected java.util.Set<TransitionDefinition> transitions

metadata

protected java.util.Map<java.lang.String,java.lang.String> metadata
Constructor Detail

ProcessDefinitionImpl

protected ProcessDefinitionImpl()

ProcessDefinitionImpl

public ProcessDefinitionImpl(java.lang.String processId,
                             java.lang.String name,
                             java.lang.String version)

ProcessDefinitionImpl

public ProcessDefinitionImpl(ProcessDefinition src)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDescription

public java.lang.String getDescription()
Description copied from interface: ClientProcessDefinition
Short textual description of the process.

Specified by:
getDescription in interface ClientProcessDefinition

getFormalParameters

public java.util.List<FormalParameterDefinition> getFormalParameters()
Description copied from interface: ClientProcessDefinition
A list of parameters that may be passed to the process.

Specified by:
getFormalParameters in interface ClientProcessDefinition

getState

public ProcessDefinition.ProcessState getState()
Specified by:
getState in interface ProcessDefinition

getVersion

public java.lang.String getVersion()
Description copied from interface: ClientProcessDefinition
Version of this process definition.

Specified by:
getVersion in interface ClientProcessDefinition

getProcessId

public java.lang.String getProcessId()
Description copied from interface: ClientProcessDefinition
Returns the value of the id attribute of the WorkflowProcess element defined into the XPDL file.

Specified by:
getProcessId in interface ClientProcessDefinition

getUUID

public ProcessDefinitionUUID getUUID()
Description copied from interface: ProcessDefinition
Returns the UUID for the ProcessDefinition.

Specified by:
getUUID in interface ProcessDefinition

getBusinessArchive

public BusinessArchive getBusinessArchive()
Specified by:
getBusinessArchive in interface ProcessDefinition

getClassDependencies

public java.util.Set<java.lang.String> getClassDependencies()
Description copied from interface: ProcessDefinition
Returns class dependencies (java classDatas for hooks, mappers, performer assignments, deadlines) for this package.

Specified by:
getClassDependencies in interface ProcessDefinition
Returns:
The (unordered) set of classDatas on which this package depends on.

getProcessDependencies

public java.util.Set<java.lang.String> getProcessDependencies()
Description copied from interface: ProcessDefinition
If the package has subflows and the process definition for these subflows are defined in others package definitions then it is not possible to undeploy these packages until this package is itself undeployed.

Specified by:
getProcessDependencies in interface ProcessDefinition
Returns:
The (unordered) set of package processDefinitionUUID depending on this package definition.

getDeployedDate

public java.util.Date getDeployedDate()
Description copied from interface: ProcessDefinition
Returns the date when the package is deployed.

Specified by:
getDeployedDate in interface ProcessDefinition

getDeployedBy

public java.lang.String getDeployedBy()
Description copied from interface: ProcessDefinition
Returns the user deploying the package.

Specified by:
getDeployedBy in interface ProcessDefinition

getUndeployedDate

public java.util.Date getUndeployedDate()
Description copied from interface: ProcessDefinition
Returns the date where the package is undeployed.

Specified by:
getUndeployedDate in interface ProcessDefinition

getUndeployedBy

public java.lang.String getUndeployedBy()
Description copied from interface: ProcessDefinition
Returns the user undeploying the package.

Specified by:
getUndeployedBy in interface ProcessDefinition

getDataFields

public java.util.Set<DataFieldDefinition> getDataFields()
Specified by:
getDataFields in interface ClientProcessDefinition

getParticipants

public java.util.Set<ParticipantDefinition> getParticipants()
Specified by:
getParticipants in interface ClientProcessDefinition

getActivities

public java.util.Set<ActivityDefinition> getActivities()
Specified by:
getActivities in interface ClientProcessDefinition

getTransitions

public java.util.Set<TransitionDefinition> getTransitions()
Specified by:
getTransitions in interface ClientProcessDefinition

getMetaData

public java.util.Map<java.lang.String,java.lang.String> getMetaData()
Specified by:
getMetaData in interface ClientProcessDefinition

getAMetaData

public java.lang.String getAMetaData(java.lang.String key)
Specified by:
getAMetaData in interface ClientProcessDefinition

setState

public void setState(ProcessDefinition.ProcessState state)
SETTERS

Specified by:
setState in interface ProcessFullDefinition

setUndeployedDate

public void setUndeployedDate(java.util.Date undeployedDate)
Specified by:
setUndeployedDate in interface ProcessFullDefinition

setUndeployedBy

public void setUndeployedBy(java.lang.String undeployedBy)
Specified by:
setUndeployedBy in interface ProcessFullDefinition

setDescription

public void setDescription(java.lang.String description)
Specified by:
setDescription in interface ProcessFullDefinition

addData

public void addData(DataFieldDefinition data)
Specified by:
addData in interface ProcessFullDefinition

addGroup

public void addGroup(ParticipantDefinitionImpl group)
Specified by:
addGroup in interface ProcessFullDefinition

addTranistion

public void addTranistion(TransitionDefinition transition)
Specified by:
addTranistion in interface ProcessFullDefinition

addActivity

public void addActivity(ActivityDefinition activity)
Specified by:
addActivity in interface ProcessFullDefinition

addFormalParamater

public void addFormalParamater(FormalParameterDefinition fpd)

setDeployedDate

public void setDeployedDate(java.util.Date deployedDate)
Specified by:
setDeployedDate in interface ProcessFullDefinition

setDeployedBy

public void setDeployedBy(java.lang.String deployedBy)
Specified by:
setDeployedBy in interface ProcessFullDefinition

setClassDependencies

public void setClassDependencies(java.util.Set<java.lang.String> classDependencies)
Specified by:
setClassDependencies in interface ProcessFullDefinition

setProcessDependencies

public void setProcessDependencies(java.util.Set<java.lang.String> processDependencies)
Specified by:
setProcessDependencies in interface ProcessFullDefinition

setProcessDefinitionUUID

public void setProcessDefinitionUUID(ProcessDefinitionUUID processDefinitionUUID)

setBusinessArchive

public void setBusinessArchive(BusinessArchive businessArchive)
Specified by:
setBusinessArchive in interface ProcessFullDefinition

setUUID

public void setUUID(ProcessDefinitionUUID processUUID)
Specified by:
setUUID in interface ProcessFullDefinition

deleteAMetaData

public void deleteAMetaData(java.lang.String key)
Specified by:
deleteAMetaData in interface ProcessFullDefinition

addAMetaData

public void addAMetaData(java.lang.String key,
                         java.lang.String value)
Specified by:
addAMetaData in interface ProcessFullDefinition

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2009 OW2 Consortium. All Rights Reserved.