public class Activity extends XMLCollectionElement
attrId, ID_DELIMITER, myCollectionattributes, complexStructureatts, isCollapsed, isReadOnly, isRequired, isVisible, labelName, name, NEWLINE, OFFSET, value| 构造器和说明 |
|---|
Activity(Activities acts,
WorkflowProcess myWorkflow,
ActivityDefTypeEnums type)
Constructs an Activity object that will be contained within a given workflow
process, and of specified type.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addUserProperty(UserProperty up)
Adds an user defined property to the activity.
|
protected void |
afterImporting() |
protected void |
afterImporting(boolean importUserProperties)
Called by Package object after importing of XML file to set the proper
Participant objects for performer of activity, according on it's ID read from
XML, to set proper reference to workflow process for activities of Subflow
type, and to set proper user defined activity properties.
|
Object |
clone()
Used when copying activities of Application(Tools) and AutoActivity type.
|
Activity |
clonePlugins(Activity act) |
protected void |
fillOutgoingTransitions() |
protected void |
fillStructure()
Defines the super-class method.
|
void |
fromXML(Node node)
Supposed to be overriden by derived classes to implement element specific
reading from an XML file.
|
ActivityEventBase |
getActivityEvent()
Returns a workflow process that contains activity.
|
XMLAttribute |
getAttrName() |
BlockActivity |
getBlockActivity() |
Devices |
getDevices() |
Set |
getEndDescriptions() |
Events |
getEvents() |
Set |
getIncomingTransitions() |
Join |
getJoin()
Used to retrieve Join element.
|
Set |
getNonExceptionalOutgoingTransitions() |
OutFlow |
getOutflow() |
WorkflowProcess |
getOwnerProcess()
Returns a workflow process that contains activity.
|
XMLPanel |
getPanel()
Prepares the tabbed panel to show editable fields of Activity.
|
String |
getParticipantID() |
Object |
getProperty(String key) |
Services |
getServices() |
Split |
getSplit()
Used to retrieve Split element.
|
Set |
getStartDescriptions() |
SubFlow |
getSubflow() |
Tools |
getTools() |
String |
getTooltip()
Gets the tooltip for activity.
|
ActivityDefTypeEnums |
getType()
Returns an activity type.
|
String |
getVisuallySortedParticipantIDs()
Used to get the visual order of participant visual objects contained within a
BlockActivity graph.
|
int |
getXOffset()
Called to get the visual position of Activity.
|
int |
getYOffset()
Called to get the visual position of Activity.
|
boolean |
isIDUniqueAndValid(XMLPanel tabbedPanel)
Checks if an ID entered by the user is unique.
|
boolean |
isValidEnter(XMLPanel p)
If activity type is SubFlow, checks if actual and formal params are matched
by type and number.
|
void |
refreshLabelName() |
void |
refreshMandatories(UserProperty up)
Adds an user defined property after the user changed it's type from
OPTIONAL to MANDATORY.
|
void |
refreshPlugins() |
void |
removeUserProperty(UserProperty up)
Removes an user defined property upon it's removal from collection of
properties.
|
void |
setActivityEvent(ActivityEventBase activityEvent) |
void |
setAttrName(XMLAttribute attrName) |
protected void |
setCollection(Activities newCollection)
Used to set the collection that activity belongs to.
|
void |
setEndDescriptions(Set eds) |
void |
setJoinType(String type)
Sets the Join restriction type of activity.
|
void |
setOutgoingTransitions(Set ts) |
void |
setParticipantID(String pID) |
void |
setPosition(String position) |
void |
setProperty(String key,
Object obj) |
void |
setReadOnly(boolean ro)
Sets the element and all elements it is made of to be read only or not.
|
void |
setSplitType(String type)
Sets the Split restriction type of activity.
|
void |
setStartDescriptions(Set sd) |
void |
setVisuallySortedParticipantIDs(String vsPID)
Used to set the visual order of participant visual objects contained within a
BlockActivity graph.
|
void |
setWorkflowProcess(WorkflowProcess wp) |
void |
setXOffset(int xOffs)
Called to set the visual position of Activity.
|
void |
setYOffset(int yOffs)
Called to set the visual position of Activity.
|
String |
toString()
Overrides
toString method to return the name of Activity. |
void |
toXML(Node parent)
Overrides super-class method to realize this class specific writting to XML
file.
|
getCollection, getID, getNode, setCollectionget, get, getChildElements, getElementsCount, getIndex, isEmpty, isValid, processAttributes, processElements, set, set, toComplexType, toComplexTypeValues, toComplexValuesfromXML, getPrintDescription, getPrintDescription, isCollapsed, isReadOnly, isRequired, isVisible, setCollapsed, setLabelName, setRequired, setValue, setVisible, toLabel, toName, toValuepublic Activity(Activities acts, WorkflowProcess myWorkflow, ActivityDefTypeEnums type)
These are valid types:
acts - The reference to collection of activities where this
instance will be put into.myWorkflow - The workflow process that contains activity.type - The type of activity.public WorkflowProcess getOwnerProcess()
public ActivityEventBase getActivityEvent()
public void setActivityEvent(ActivityEventBase activityEvent)
public void fromXML(Node node)
XMLElementfromXML 在类中 XMLCollectionElementnode - The content retrieved from XML file, that represents tag for
this element.protected void afterImporting()
protected void afterImporting(boolean importUserProperties)
public Set getStartDescriptions()
public void setStartDescriptions(Set sd)
public Set getEndDescriptions()
public void setEndDescriptions(Set eds)
public String getVisuallySortedParticipantIDs()
NOTE: This order is valid only immediately after import of WorkflowProcess or it's export to XML file, also, this order is an ExtendedAttribute in a WfMC DTD sence, so it is valid only for XMLs saved by this version of the BPD application.
public void setVisuallySortedParticipantIDs(String vsPID)
vsPID - String representation of visually sorted participant ID's.public int getXOffset()
public void setXOffset(int xOffs)
xOffs - X-offset in respect to origin of Participant's graph object that
visually holds activity.public int getYOffset()
public void setYOffset(int yOffs)
yOffs - Y-offset in respect to origin of Participant's graph object that
visually holds activity.public String getParticipantID()
public void setParticipantID(String pID)
pID - String representation of ID of participant that visualy contains
activity.public void setOutgoingTransitions(Set ts)
public ActivityDefTypeEnums getType()
These are possible types:
public void setJoinType(String type)
type - The type of Join, which can be AND or XOR.public Join getJoin()
public void setSplitType(String type)
type - The type of Split, which can be AND or XOR.public Split getSplit()
public Tools getTools()
public SubFlow getSubflow()
public OutFlow getOutflow()
public Services getServices()
public Devices getDevices()
public Events getEvents()
public BlockActivity getBlockActivity()
protected void fillStructure()
fillStructure 在类中 XMLCollectionElementpublic XMLPanel getPanel()
getPanel 在类中 XMLComplexElementprotected void fillOutgoingTransitions()
public void addUserProperty(UserProperty up)
up - The mandatory user property to add.public void removeUserProperty(UserProperty up)
up - The user property to remove.public void refreshMandatories(UserProperty up)
up - The mandatory user property to add.public String toString()
toString method to return the name of Activity. This
string is used to visually display the activity name onto it's graph object.toString 在类中 XMLComplexElementpublic String getTooltip()
public void toXML(Node parent) throws DOMException
toXML 在类中 XMLComplexElementparent - indicates how much tabulators to put before element tag.DOMExceptionpublic void setReadOnly(boolean ro)
XMLComplexElementsetReadOnly 在类中 XMLComplexElementro - true if element will be 'read only', false
otherwise.public Object clone()
clone 在类中 XMLCollectionElementpublic void refreshLabelName()
refreshLabelName 在类中 XMLComplexElementpublic boolean isIDUniqueAndValid(XMLPanel tabbedPanel)
public boolean isValidEnter(XMLPanel p)
isValidEnter 在类中 XMLElementp - The panel for editing parameters.protected void setCollection(Activities newCollection)
public void setPosition(String position)
public void refreshPlugins()
public void setWorkflowProcess(WorkflowProcess wp)
public Set getNonExceptionalOutgoingTransitions()
public Set getIncomingTransitions()
public XMLAttribute getAttrName()
public void setAttrName(XMLAttribute attrName)
Copyright © 2023 onecode. All rights reserved.