Package org.flowable.bpmn.model
Class Process
- java.lang.Object
-
- org.flowable.bpmn.model.BaseElement
-
- org.flowable.bpmn.model.Process
-
- All Implemented Interfaces:
FlowElementsContainer,HasExecutionListeners,HasExtensionAttributes
public class Process extends BaseElement implements FlowElementsContainer, HasExecutionListeners
- Author:
- Tijs Rademakers, Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Artifact>artifactListprotected Map<String,Artifact>artifactMapprotected List<String>candidateStarterGroupsprotected List<String>candidateStarterUsersprotected List<ValuedDataObject>dataObjectsprotected Stringdocumentationprotected booleanenableEagerExecutionTreeFetchingprotected List<EventListener>eventListenersprotected booleanexecutableprotected List<FlowableListener>executionListenersprotected List<FlowElement>flowElementListprotected Map<String,FlowElement>flowElementMapprotected FlowElementinitialFlowElementprotected IOSpecificationioSpecificationprotected List<Lane>lanesprotected Stringname-
Fields inherited from class org.flowable.bpmn.model.BaseElement
attributes, extensionElements, id, xmlColumnNumber, xmlRowNumber
-
-
Constructor Summary
Constructors Constructor Description Process()
-
Method Summary
-
Methods inherited from class org.flowable.bpmn.model.BaseElement
addAttribute, addExtensionElement, getAttributes, getAttributeValue, getExtensionElements, getId, getXmlColumnNumber, getXmlRowNumber, setAttributes, setExtensionElements, setId, setValues, setXmlColumnNumber, setXmlRowNumber
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.flowable.bpmn.model.FlowElementsContainer
getId
-
-
-
-
Field Detail
-
name
protected String name
-
executable
protected boolean executable
-
documentation
protected String documentation
-
ioSpecification
protected IOSpecification ioSpecification
-
executionListeners
protected List<FlowableListener> executionListeners
-
flowElementList
protected List<FlowElement> flowElementList
-
dataObjects
protected List<ValuedDataObject> dataObjects
-
eventListeners
protected List<EventListener> eventListeners
-
flowElementMap
protected Map<String,FlowElement> flowElementMap
-
initialFlowElement
protected FlowElement initialFlowElement
-
enableEagerExecutionTreeFetching
protected boolean enableEagerExecutionTreeFetching
-
-
Method Detail
-
getDocumentation
public String getDocumentation()
-
setDocumentation
public void setDocumentation(String documentation)
-
getName
public String getName()
-
setName
public void setName(String name)
-
isExecutable
public boolean isExecutable()
-
setExecutable
public void setExecutable(boolean executable)
-
getIoSpecification
public IOSpecification getIoSpecification()
-
setIoSpecification
public void setIoSpecification(IOSpecification ioSpecification)
-
getExecutionListeners
public List<FlowableListener> getExecutionListeners()
- Specified by:
getExecutionListenersin interfaceHasExecutionListeners
-
setExecutionListeners
public void setExecutionListeners(List<FlowableListener> executionListeners)
- Specified by:
setExecutionListenersin interfaceHasExecutionListeners
-
getFlowElementMap
public Map<String,FlowElement> getFlowElementMap()
- Specified by:
getFlowElementMapin interfaceFlowElementsContainer
-
setFlowElementMap
public void setFlowElementMap(Map<String,FlowElement> flowElementMap)
-
containsFlowElementId
public boolean containsFlowElementId(String id)
-
getFlowElement
public FlowElement getFlowElement(String flowElementId)
- Specified by:
getFlowElementin interfaceFlowElementsContainer
-
getFlowElement
public FlowElement getFlowElement(String flowElementId, boolean searchRecursive)
- Parameters:
searchRecursive- searches the whole process, including subprocesses
-
findAssociationsWithSourceRefRecursive
public List<Association> findAssociationsWithSourceRefRecursive(String sourceRef)
-
findAssociationsWithSourceRefRecursive
protected List<Association> findAssociationsWithSourceRefRecursive(FlowElementsContainer flowElementsContainer, String sourceRef)
-
findAssociationsWithTargetRefRecursive
public List<Association> findAssociationsWithTargetRefRecursive(String targetRef)
-
findAssociationsWithTargetRefRecursive
protected List<Association> findAssociationsWithTargetRefRecursive(FlowElementsContainer flowElementsContainer, String targetRef)
-
getFlowElementsContainer
public FlowElementsContainer getFlowElementsContainer(String flowElementId)
Searches the whole process, including subprocesses
-
getFlowElementsContainer
protected FlowElementsContainer getFlowElementsContainer(FlowElementsContainer flowElementsContainer, String flowElementId)
-
findFlowElementInList
protected FlowElement findFlowElementInList(String flowElementId)
-
getFlowElements
public 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(String elementId)
- Specified by:
removeFlowElementin interfaceFlowElementsContainer
-
removeFlowElementFromMap
public void removeFlowElementFromMap(String elementId)
- Specified by:
removeFlowElementFromMapin interfaceFlowElementsContainer
-
getArtifact
public Artifact getArtifact(String id)
- Specified by:
getArtifactin interfaceFlowElementsContainer
-
getArtifacts
public Collection<Artifact> getArtifacts()
- Specified by:
getArtifactsin interfaceFlowElementsContainer
-
getArtifactMap
public Map<String,Artifact> getArtifactMap()
- Specified by:
getArtifactMapin interfaceFlowElementsContainer
-
addArtifact
public void addArtifact(Artifact artifact)
- Specified by:
addArtifactin interfaceFlowElementsContainer
-
addArtifactToMap
public void addArtifactToMap(Artifact artifact)
- Specified by:
addArtifactToMapin interfaceFlowElementsContainer
-
removeArtifact
public void removeArtifact(String artifactId)
- Specified by:
removeArtifactin interfaceFlowElementsContainer
-
setCandidateStarterGroups
public void setCandidateStarterGroups(List<String> candidateStarterGroups)
-
getEventListeners
public List<EventListener> getEventListeners()
-
setEventListeners
public void setEventListeners(List<EventListener> eventListeners)
-
findFlowElementsOfType
public <FlowElementType extends FlowElement> List<FlowElementType> findFlowElementsOfType(Class<FlowElementType> type)
-
findFlowElementsOfType
public <FlowElementType extends FlowElement> List<FlowElementType> findFlowElementsOfType(Class<FlowElementType> type, boolean goIntoSubprocesses)
-
findFlowElementsInSubProcessOfType
public <FlowElementType extends FlowElement> List<FlowElementType> findFlowElementsInSubProcessOfType(SubProcess subProcess, Class<FlowElementType> type)
-
findFlowElementsInSubProcessOfType
public <FlowElementType extends FlowElement> List<FlowElementType> findFlowElementsInSubProcessOfType(SubProcess subProcess, 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 List<ValuedDataObject> getDataObjects()
-
setDataObjects
public void setDataObjects(List<ValuedDataObject> dataObjects)
-
getInitialFlowElement
public FlowElement getInitialFlowElement()
-
setInitialFlowElement
public void setInitialFlowElement(FlowElement initialFlowElement)
-
isEnableEagerExecutionTreeFetching
public boolean isEnableEagerExecutionTreeFetching()
-
setEnableEagerExecutionTreeFetching
public void setEnableEagerExecutionTreeFetching(boolean enableEagerExecutionTreeFetching)
-
-