Package com.appiancorp.suiteapi.process
Class Connection
java.lang.Object
com.appiancorp.suiteapi.process.Connection
- All Implemented Interfaces:
JSONable,JSONCacheable,XMLable,Serializable
Represents a directional link between two process nodes
(startNode and endNode). The current thinking is that the only node that
is relevant is the end node, and it is referenced by its guiId.
Connections are also known as "flows".
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Longstatic final LongFields inherited from interface com.appiancorp.suiteapi.common.JSONable
hiddenAttributes$TRANSIENTFields inherited from interface com.appiancorp.suiteapi.common.XMLable
DEFAULT_BUFFER_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe gui id of the nodeProcessNodeat the end of this connection.Get the anchor of the Node from which thisConnectionbegins.getGuiId()SeesetGuiId(Long).Returns the set of attributes (properties) that should not be included in the JSON representation of the object.getLabel()Gets the label for thisConnection.Gets theLabelbean which stores the styling information for thisConnection's label.Gets the gui id of the start nodeProcessNodeof this connection.booleanReturns true if you want to synchronizeDataGet the anchor of the Node at which thisConnectionterminates.booleanDetermines whether the next attended activity should be shown immediately, as if part of a wizard.booleanReturns true if you want to override the assignment for the next attended activity.booleanvoidsetAssociations(Connection[] associations_) Set the associations of this connection; if this connection is an association itself, this field should benull.voidsetChained(boolean chained_) Set whether the next attended activity should be shown immediately, as if part of a wizard.voidsetEndNodeGuiId(Long endNodeGuiId_) Sets the gui id of the nodeProcessNodeat the end of this connection.voidsetEndObjectType(String endObjectType_) Set the type of the end object of this connection, for example "ap.gui.Node" or "ap.gui.Annotation".voidsetFromAnchor(Long fromAnchor_) Set the anchor of the Node from which thisConnectionbegins.voidSet the guiId of the connection.voidSets the label for thisConnection.voidsetLabelStyle(Label labelStyle_) Sets theLabelbean for thisConnection.voidsetOverridesAssignment(boolean overridesAssignment_) Set whether or not to override the assignment of the next attended activity.voidsetShowArrowhead(boolean showArrowhead_) Set whether an arrowhead should be displayed at the end of the connection.voidsetStartNodeGuiId(Long startNodeGuiId_) Sets the gui id of the start nodeProcessNodeof this connection.voidsets the status of the connectionvoidsetSynchronizeData(boolean synchronizeData_) Set whether or not to synchronizeDatavoidsetToAnchor(Long toAnchor_) Set the anchor of the Node at which thisConnectionterminates.toString()Creates a String representation of this object, which is useful for debugging.toXML()converts theconnectionto XML and returns it as a StringvoidtoXML(StringBuilder buffer_) Appends an XML representation of this object to the given buffer.
-
Field Details
-
STATUS_NOT_TRAVERSED
-
STATUS_TRAVERSED
-
END_TYPE_NODE
- See Also:
-
END_TYPE_ANNOTATION
- See Also:
-
DEFAULT_OBJECT_TYPE
- See Also:
-
-
Constructor Details
-
Connection
public Connection()Creates a new connection.
-
-
Method Details
-
getHiddenAttributes
Description copied from interface:JSONableReturns the set of attributes (properties) that should not be included in the JSON representation of the object.- Specified by:
getHiddenAttributesin interfaceJSONable- Returns:
- the set of hidden attributes
-
toXML
converts theconnectionto XML and returns it as a String -
toXML
Appends an XML representation of this object to the given buffer. -
getGuiId
SeesetGuiId(Long). -
setGuiId
Set the guiId of the connection. -
getEndNodeGuiId
The gui id of the nodeProcessNodeat the end of this connection. A gui id is the identifier within the context of a process modelProcessModel, and is NOT a primary key.- Returns:
- the end node gui id for this connection
-
setEndNodeGuiId
Sets the gui id of the nodeProcessNodeat the end of this connection. A gui id is the identifier within the context of a process modelProcessModel, and is NOT a primary key.- Parameters:
endNodeGuiId_- the end node gui id to set for this connection
-
toString
Creates a String representation of this object, which is useful for debugging. -
getStartNodeGuiId
Gets the gui id of the start nodeProcessNodeof this connection. A gui id is the identifier within the context of a process modelProcessModel, and is NOT a primary key.- Returns:
- the start node gui id for this connection
-
setStartNodeGuiId
Sets the gui id of the start nodeProcessNodeof this connection. A gui id is the identifier within the context of a process modelProcessModel, and is NOT a primary key.- Parameters:
startNodeGuiId_- the start node gui id to set for this connection
-
setStatus
sets the status of the connection- Parameters:
status_- the status of the connection, which can either
-
getStatus
- Returns:
- the status of the connection, which can either
-
getFromAnchor
Get the anchor of the Node from which thisConnectionbegins.- Returns:
- The anchor from which this
Connectionstarts.
-
setFromAnchor
Set the anchor of the Node from which thisConnectionbegins.- Parameters:
fromAnchor_- The anchor from which thisConnectionwill start
-
getToAnchor
Get the anchor of the Node at which thisConnectionterminates.- Returns:
- The anchor at which this
Connectionterminates.
-
setToAnchor
Set the anchor of the Node at which thisConnectionterminates.- Parameters:
toAnchor_- The anchor at which thisConnectionterminates.
-
isShowArrowhead
public boolean isShowArrowhead() -
setShowArrowhead
public void setShowArrowhead(boolean showArrowhead_) Set whether an arrowhead should be displayed at the end of the connection. -
getLabel
Gets the label for thisConnection.- Returns:
- The label for this
Connection
-
setLabel
Sets the label for thisConnection.- Parameters:
label_- The label to set for thisConnection
-
getLabelStyle
Gets theLabelbean which stores the styling information for thisConnection's label.- Returns:
- The
Labelbean for thisConnection
-
setLabelStyle
Sets theLabelbean for thisConnection.- Parameters:
labelStyle_- TheLabelbean to set for thisConnection- See Also:
-
getEndObjectType
-
setEndObjectType
Set the type of the end object of this connection, for example "ap.gui.Node" or "ap.gui.Annotation". -
getAssociations
-
setAssociations
Set the associations of this connection; if this connection is an association itself, this field should benull. -
isChained
public boolean isChained()Determines whether the next attended activity should be shown immediately, as if part of a wizard.- Returns:
- true if activity chaining is enabled
- See Also:
-
setChained
public void setChained(boolean chained_) Set whether the next attended activity should be shown immediately, as if part of a wizard.- Parameters:
chained_- true to enable activity chaining- See Also:
-
isOverridesAssignment
public boolean isOverridesAssignment()Returns true if you want to override the assignment for the next attended activity. This is only relevant if this Connection has activity chaining enabled.- Returns:
- true if the next attended activity assignment is to be overridden
- See Also:
-
setOverridesAssignment
public void setOverridesAssignment(boolean overridesAssignment_) Set whether or not to override the assignment of the next attended activity. This is only relevant if this Connection has activity chaining enabled.- Parameters:
overridesAssignment_- true to override assignment- See Also:
-
getSynchronizeData
public boolean getSynchronizeData()Returns true if you want to synchronizeData -
setSynchronizeData
public void setSynchronizeData(boolean synchronizeData_) Set whether or not to synchronizeData
-