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>
artifactList
protected java.util.List<java.lang.String>
candidateStarterGroups
protected java.util.List<java.lang.String>
candidateStarterUsers
protected java.util.List<ValuedDataObject>
dataObjects
protected java.lang.String
documentation
protected java.util.List<EventListener>
eventListeners
protected boolean
executable
protected java.util.List<ActivitiListener>
executionListeners
protected java.util.List<FlowElement>
flowElementList
protected java.util.Map<java.lang.String,FlowElement>
flowElementMap
protected FlowElement
initialFlowElement
protected IOSpecification
ioSpecification
protected java.util.List<Lane>
lanes
protected java.lang.String
name
-
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 void
addArtifact(Artifact artifact)
void
addFlowElement(FlowElement element)
void
addFlowElementToMap(FlowElement element)
Process
clone()
boolean
containsFlowElementId(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 FlowElement
findFlowElementInList(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)
FlowElementsContainer
findParent(FlowElement childElement)
FlowElementsContainer
findParent(FlowElement childElement, FlowElementsContainer flowElementsContainer)
Artifact
getArtifact(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.String
getDocumentation()
java.util.List<EventListener>
getEventListeners()
java.util.List<ActivitiListener>
getExecutionListeners()
FlowElement
getFlowElement(java.lang.String flowElementId)
FlowElement
getFlowElement(java.lang.String flowElementId, boolean searchRecurive)
java.util.Map<java.lang.String,FlowElement>
getFlowElementMap()
java.util.Collection<FlowElement>
getFlowElements()
FlowElementsContainer
getFlowElementsContainer(java.lang.String flowElementId)
Searches the whole process, including subprocessesprotected FlowElementsContainer
getFlowElementsContainer(FlowElementsContainer flowElementsContainer, java.lang.String flowElementId)
FlowElement
getInitialFlowElement()
IOSpecification
getIoSpecification()
java.util.List<Lane>
getLanes()
java.lang.String
getName()
boolean
isExecutable()
void
removeArtifact(java.lang.String artifactId)
void
removeFlowElement(java.lang.String elementId)
void
removeFlowElementFromMap(java.lang.String elementId)
void
setCandidateStarterGroups(java.util.List<java.lang.String> candidateStarterGroups)
void
setCandidateStarterUsers(java.util.List<java.lang.String> candidateStarterUsers)
void
setDataObjects(java.util.List<ValuedDataObject> dataObjects)
void
setDocumentation(java.lang.String documentation)
void
setEventListeners(java.util.List<EventListener> eventListeners)
void
setExecutable(boolean executable)
void
setExecutionListeners(java.util.List<ActivitiListener> executionListeners)
void
setFlowElementMap(java.util.Map<java.lang.String,FlowElement> flowElementMap)
void
setInitialFlowElement(FlowElement initialFlowElement)
void
setIoSpecification(IOSpecification ioSpecification)
void
setLanes(java.util.List<Lane> lanes)
void
setName(java.lang.String name)
void
setValues(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:
getExecutionListeners
in interfaceHasExecutionListeners
-
setExecutionListeners
public void setExecutionListeners(java.util.List<ActivitiListener> executionListeners)
- Specified by:
setExecutionListeners
in 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:
getFlowElementMap
in 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:
getFlowElement
in 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:
getFlowElements
in interfaceFlowElementsContainer
-
addFlowElement
public void addFlowElement(FlowElement element)
- Specified by:
addFlowElement
in interfaceFlowElementsContainer
-
addFlowElementToMap
public void addFlowElementToMap(FlowElement element)
- Specified by:
addFlowElementToMap
in interfaceFlowElementsContainer
-
removeFlowElement
public void removeFlowElement(java.lang.String elementId)
- Specified by:
removeFlowElement
in interfaceFlowElementsContainer
-
removeFlowElementFromMap
public void removeFlowElementFromMap(java.lang.String elementId)
- Specified by:
removeFlowElementFromMap
in interfaceFlowElementsContainer
-
getArtifact
public Artifact getArtifact(java.lang.String id)
- Specified by:
getArtifact
in interfaceFlowElementsContainer
-
getArtifacts
public java.util.Collection<Artifact> getArtifacts()
- Specified by:
getArtifacts
in interfaceFlowElementsContainer
-
addArtifact
public void addArtifact(Artifact artifact)
- Specified by:
addArtifact
in interfaceFlowElementsContainer
-
removeArtifact
public void removeArtifact(java.lang.String artifactId)
- Specified by:
removeArtifact
in 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:
clone
in 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)
-
-