Package org.activiti.bpmn.model
Class Process
- java.lang.Object
-
- org.activiti.bpmn.model.BaseElement
-
- org.activiti.bpmn.model.Process
-
- All Implemented Interfaces:
FlowElementsContainer,HasExecutionListeners,HasExtensionAttributes
public class Process extends BaseElement implements FlowElementsContainer, HasExecutionListeners
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<Artifact>artifactListprotected java.util.List<java.lang.String>candidateStarterGroupsprotected java.util.List<java.lang.String>candidateStarterUsersprotected java.util.List<ValuedDataObject>dataObjectsprotected java.lang.Stringdocumentationprotected java.util.List<EventListener>eventListenersprotected booleanexecutableprotected java.util.List<ActivitiListener>executionListenersprotected java.util.List<FlowElement>flowElementListprotected java.util.Map<java.lang.String,FlowElement>flowElementMapprotected FlowElementinitialFlowElementprotected IOSpecificationioSpecificationprotected java.util.List<Lane>lanesprotected java.lang.Stringname-
Fields inherited from class org.activiti.bpmn.model.BaseElement
attributes, extensionElements, id, xmlColumnNumber, xmlRowNumber
-
-
Constructor Summary
Constructors Constructor Description Process()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArtifact(Artifact artifact)voidaddFlowElement(FlowElement element)voidaddFlowElementToMap(FlowElement element)Processclone()booleancontainsFlowElementId(java.lang.String id)java.util.List<Association>findAssociationsWithSourceRefRecursive(java.lang.String sourceRef)protected java.util.List<Association>findAssociationsWithSourceRefRecursive(FlowElementsContainer flowElementsContainer, java.lang.String sourceRef)java.util.List<Association>findAssociationsWithTargetRefRecursive(java.lang.String targetRef)protected java.util.List<Association>findAssociationsWithTargetRefRecursive(FlowElementsContainer flowElementsContainer, java.lang.String targetRef)protected FlowElementfindFlowElementInList(java.lang.String flowElementId)<FlowElementType extends FlowElement>
java.util.List<FlowElementType>findFlowElementsInSubProcessOfType(SubProcess subProcess, java.lang.Class<FlowElementType> type)<FlowElementType extends FlowElement>
java.util.List<FlowElementType>findFlowElementsInSubProcessOfType(SubProcess subProcess, java.lang.Class<FlowElementType> type, boolean goIntoSubprocesses)<FlowElementType extends FlowElement>
java.util.List<FlowElementType>findFlowElementsOfType(java.lang.Class<FlowElementType> type)<FlowElementType extends FlowElement>
java.util.List<FlowElementType>findFlowElementsOfType(java.lang.Class<FlowElementType> type, boolean goIntoSubprocesses)FlowElementsContainerfindParent(FlowElement childElement)FlowElementsContainerfindParent(FlowElement childElement, FlowElementsContainer flowElementsContainer)ArtifactgetArtifact(java.lang.String id)java.util.Collection<Artifact>getArtifacts()java.util.List<java.lang.String>getCandidateStarterGroups()java.util.List<java.lang.String>getCandidateStarterUsers()java.util.List<ValuedDataObject>getDataObjects()java.lang.StringgetDocumentation()java.util.List<EventListener>getEventListeners()java.util.List<ActivitiListener>getExecutionListeners()FlowElementgetFlowElement(java.lang.String flowElementId)FlowElementgetFlowElement(java.lang.String flowElementId, boolean searchRecurive)java.util.Map<java.lang.String,FlowElement>getFlowElementMap()java.util.Collection<FlowElement>getFlowElements()FlowElementsContainergetFlowElementsContainer(java.lang.String flowElementId)Searches the whole process, including subprocessesprotected FlowElementsContainergetFlowElementsContainer(FlowElementsContainer flowElementsContainer, java.lang.String flowElementId)FlowElementgetInitialFlowElement()IOSpecificationgetIoSpecification()java.util.List<Lane>getLanes()java.lang.StringgetName()booleanisExecutable()voidremoveArtifact(java.lang.String artifactId)voidremoveFlowElement(java.lang.String elementId)voidremoveFlowElementFromMap(java.lang.String elementId)voidsetCandidateStarterGroups(java.util.List<java.lang.String> candidateStarterGroups)voidsetCandidateStarterUsers(java.util.List<java.lang.String> candidateStarterUsers)voidsetDataObjects(java.util.List<ValuedDataObject> dataObjects)voidsetDocumentation(java.lang.String documentation)voidsetEventListeners(java.util.List<EventListener> eventListeners)voidsetExecutable(boolean executable)voidsetExecutionListeners(java.util.List<ActivitiListener> executionListeners)voidsetFlowElementMap(java.util.Map<java.lang.String,FlowElement> flowElementMap)voidsetInitialFlowElement(FlowElement initialFlowElement)voidsetIoSpecification(IOSpecification ioSpecification)voidsetLanes(java.util.List<Lane> lanes)voidsetName(java.lang.String name)voidsetValues(Process otherElement)-
Methods inherited from class org.activiti.bpmn.model.BaseElement
addAttribute, addExtensionElement, getAttributes, getAttributeValue, getExtensionElements, getId, getXmlColumnNumber, getXmlRowNumber, setAttributes, setExtensionElements, setId, setValues, setXmlColumnNumber, setXmlRowNumber
-
-
-
-
Field Detail
-
name
protected java.lang.String name
-
executable
protected boolean executable
-
documentation
protected java.lang.String documentation
-
ioSpecification
protected IOSpecification ioSpecification
-
executionListeners
protected java.util.List<ActivitiListener> executionListeners
-
lanes
protected java.util.List<Lane> lanes
-
flowElementList
protected java.util.List<FlowElement> flowElementList
-
dataObjects
protected java.util.List<ValuedDataObject> dataObjects
-
artifactList
protected java.util.List<Artifact> artifactList
-
candidateStarterUsers
protected java.util.List<java.lang.String> candidateStarterUsers
-
candidateStarterGroups
protected java.util.List<java.lang.String> candidateStarterGroups
-
eventListeners
protected java.util.List<EventListener> eventListeners
-
flowElementMap
protected java.util.Map<java.lang.String,FlowElement> flowElementMap
-
initialFlowElement
protected FlowElement initialFlowElement
-
-
Method Detail
-
getDocumentation
public java.lang.String getDocumentation()
-
setDocumentation
public void setDocumentation(java.lang.String documentation)
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
isExecutable
public boolean isExecutable()
-
setExecutable
public void setExecutable(boolean executable)
-
getIoSpecification
public IOSpecification getIoSpecification()
-
setIoSpecification
public void setIoSpecification(IOSpecification ioSpecification)
-
getExecutionListeners
public java.util.List<ActivitiListener> getExecutionListeners()
- Specified by:
getExecutionListenersin interfaceHasExecutionListeners
-
setExecutionListeners
public void setExecutionListeners(java.util.List<ActivitiListener> executionListeners)
- Specified by:
setExecutionListenersin interfaceHasExecutionListeners
-
getLanes
public java.util.List<Lane> getLanes()
-
setLanes
public void setLanes(java.util.List<Lane> lanes)
-
getFlowElementMap
public java.util.Map<java.lang.String,FlowElement> getFlowElementMap()
- Specified by:
getFlowElementMapin interfaceFlowElementsContainer
-
setFlowElementMap
public void setFlowElementMap(java.util.Map<java.lang.String,FlowElement> flowElementMap)
-
containsFlowElementId
public boolean containsFlowElementId(java.lang.String id)
-
getFlowElement
public FlowElement getFlowElement(java.lang.String flowElementId)
- Specified by:
getFlowElementin interfaceFlowElementsContainer
-
getFlowElement
public FlowElement getFlowElement(java.lang.String flowElementId, boolean searchRecurive)
- Parameters:
searchRecurive- : searches the whole process, including subprocesses
-
findAssociationsWithSourceRefRecursive
public java.util.List<Association> findAssociationsWithSourceRefRecursive(java.lang.String sourceRef)
-
findAssociationsWithSourceRefRecursive
protected java.util.List<Association> findAssociationsWithSourceRefRecursive(FlowElementsContainer flowElementsContainer, java.lang.String sourceRef)
-
findAssociationsWithTargetRefRecursive
public java.util.List<Association> findAssociationsWithTargetRefRecursive(java.lang.String targetRef)
-
findAssociationsWithTargetRefRecursive
protected java.util.List<Association> findAssociationsWithTargetRefRecursive(FlowElementsContainer flowElementsContainer, java.lang.String targetRef)
-
getFlowElementsContainer
public FlowElementsContainer getFlowElementsContainer(java.lang.String flowElementId)
Searches the whole process, including subprocesses
-
getFlowElementsContainer
protected FlowElementsContainer getFlowElementsContainer(FlowElementsContainer flowElementsContainer, java.lang.String flowElementId)
-
findFlowElementInList
protected FlowElement findFlowElementInList(java.lang.String flowElementId)
-
getFlowElements
public java.util.Collection<FlowElement> getFlowElements()
- Specified by:
getFlowElementsin interfaceFlowElementsContainer
-
addFlowElement
public void addFlowElement(FlowElement element)
- Specified by:
addFlowElementin interfaceFlowElementsContainer
-
addFlowElementToMap
public void addFlowElementToMap(FlowElement element)
- Specified by:
addFlowElementToMapin interfaceFlowElementsContainer
-
removeFlowElement
public void removeFlowElement(java.lang.String elementId)
- Specified by:
removeFlowElementin interfaceFlowElementsContainer
-
removeFlowElementFromMap
public void removeFlowElementFromMap(java.lang.String elementId)
- Specified by:
removeFlowElementFromMapin interfaceFlowElementsContainer
-
getArtifact
public Artifact getArtifact(java.lang.String id)
- Specified by:
getArtifactin interfaceFlowElementsContainer
-
getArtifacts
public java.util.Collection<Artifact> getArtifacts()
- Specified by:
getArtifactsin interfaceFlowElementsContainer
-
addArtifact
public void addArtifact(Artifact artifact)
- Specified by:
addArtifactin interfaceFlowElementsContainer
-
removeArtifact
public void removeArtifact(java.lang.String artifactId)
- Specified by:
removeArtifactin interfaceFlowElementsContainer
-
getCandidateStarterUsers
public java.util.List<java.lang.String> getCandidateStarterUsers()
-
setCandidateStarterUsers
public void setCandidateStarterUsers(java.util.List<java.lang.String> candidateStarterUsers)
-
getCandidateStarterGroups
public java.util.List<java.lang.String> getCandidateStarterGroups()
-
setCandidateStarterGroups
public void setCandidateStarterGroups(java.util.List<java.lang.String> candidateStarterGroups)
-
getEventListeners
public java.util.List<EventListener> getEventListeners()
-
setEventListeners
public void setEventListeners(java.util.List<EventListener> eventListeners)
-
findFlowElementsOfType
public <FlowElementType extends FlowElement> java.util.List<FlowElementType> findFlowElementsOfType(java.lang.Class<FlowElementType> type)
-
findFlowElementsOfType
public <FlowElementType extends FlowElement> java.util.List<FlowElementType> findFlowElementsOfType(java.lang.Class<FlowElementType> type, boolean goIntoSubprocesses)
-
findFlowElementsInSubProcessOfType
public <FlowElementType extends FlowElement> java.util.List<FlowElementType> findFlowElementsInSubProcessOfType(SubProcess subProcess, java.lang.Class<FlowElementType> type)
-
findFlowElementsInSubProcessOfType
public <FlowElementType extends FlowElement> java.util.List<FlowElementType> findFlowElementsInSubProcessOfType(SubProcess subProcess, java.lang.Class<FlowElementType> type, boolean goIntoSubprocesses)
-
findParent
public FlowElementsContainer findParent(FlowElement childElement)
-
findParent
public FlowElementsContainer findParent(FlowElement childElement, FlowElementsContainer flowElementsContainer)
-
clone
public Process clone()
- Specified by:
clonein classBaseElement
-
setValues
public void setValues(Process otherElement)
-
getDataObjects
public java.util.List<ValuedDataObject> getDataObjects()
-
setDataObjects
public void setDataObjects(java.util.List<ValuedDataObject> dataObjects)
-
getInitialFlowElement
public FlowElement getInitialFlowElement()
-
setInitialFlowElement
public void setInitialFlowElement(FlowElement initialFlowElement)
-
-