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
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final Long
static final Long
Fields inherited from interface com.appiancorp.suiteapi.common.JSONable
hiddenAttributes$TRANSIENT
Fields inherited from interface com.appiancorp.suiteapi.common.XMLable
DEFAULT_BUFFER_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe gui id of the nodeProcessNode
at the end of this connection.Get the anchor of the Node from which thisConnection
begins.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 theLabel
bean which stores the styling information for thisConnection
's label.Gets the gui id of the start nodeProcessNode
of this connection.boolean
Returns true if you want to synchronizeDataGet the anchor of the Node at which thisConnection
terminates.boolean
Determines whether the next attended activity should be shown immediately, as if part of a wizard.boolean
Returns true if you want to override the assignment for the next attended activity.boolean
void
setAssociations
(Connection[] associations_) Set the associations of this connection; if this connection is an association itself, this field should benull
.void
setChained
(boolean chained_) Set whether the next attended activity should be shown immediately, as if part of a wizard.void
setEndNodeGuiId
(Long endNodeGuiId_) Sets the gui id of the nodeProcessNode
at the end of this connection.void
setEndObjectType
(String endObjectType_) Set the type of the end object of this connection, for example "ap.gui.Node" or "ap.gui.Annotation".void
setFromAnchor
(Long fromAnchor_) Set the anchor of the Node from which thisConnection
begins.void
Set the guiId of the connection.void
Sets the label for thisConnection
.void
setLabelStyle
(Label labelStyle_) Sets theLabel
bean for thisConnection
.void
setOverridesAssignment
(boolean overridesAssignment_) Set whether or not to override the assignment of the next attended activity.void
setShowArrowhead
(boolean showArrowhead_) Set whether an arrowhead should be displayed at the end of the connection.void
setStartNodeGuiId
(Long startNodeGuiId_) Sets the gui id of the start nodeProcessNode
of this connection.void
sets the status of the connectionvoid
setSynchronizeData
(boolean synchronizeData_) Set whether or not to synchronizeDatavoid
setToAnchor
(Long toAnchor_) Set the anchor of the Node at which thisConnection
terminates.toString()
Creates a String representation of this object, which is useful for debugging.toXML()
converts theconnection
to XML and returns it as a Stringvoid
toXML
(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:JSONable
Returns the set of attributes (properties) that should not be included in the JSON representation of the object.- Specified by:
getHiddenAttributes
in interfaceJSONable
- Returns:
- the set of hidden attributes
-
toXML
converts theconnection
to 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 nodeProcessNode
at 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 nodeProcessNode
at 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 nodeProcessNode
of 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 nodeProcessNode
of 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 thisConnection
begins.- Returns:
- The anchor from which this
Connection
starts.
-
setFromAnchor
Set the anchor of the Node from which thisConnection
begins.- Parameters:
fromAnchor_
- The anchor from which thisConnection
will start
-
getToAnchor
Get the anchor of the Node at which thisConnection
terminates.- Returns:
- The anchor at which this
Connection
terminates.
-
setToAnchor
Set the anchor of the Node at which thisConnection
terminates.- Parameters:
toAnchor_
- The anchor at which thisConnection
terminates.
-
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 theLabel
bean which stores the styling information for thisConnection
's label.- Returns:
- The
Label
bean for thisConnection
-
setLabelStyle
Sets theLabel
bean for thisConnection
.- Parameters:
labelStyle_
- TheLabel
bean 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
-