public class ActivitySet extends XMLCollectionElement
attrId, ID_DELIMITER, myCollectionattributes, complexStructureatts, isCollapsed, isReadOnly, isRequired, isVisible, labelName, name, NEWLINE, OFFSET, value| 构造器和说明 |
|---|
ActivitySet(ActivitySets ass,
WorkflowProcess myWorkflow)
Creates a new instance of the class.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addPropertyToAllActivities(UserProperty up)
Adds an user defined property to the activity.
|
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.
|
protected boolean |
canRemoveApplication(Application toRemove)
Returns true if specified application isn't used anywhere.
|
protected boolean |
canRemoveDataFieldOrFormalParameter(XMLCollectionElement toRemove)
Returns true if specified data field isn't used anywhere.
|
protected boolean |
canRemoveParticipant(Participant toRemove)
Returns true if specified participant isn't referenced to be a
performer of activity.
|
protected boolean |
canRemoveWorkflow(WorkflowProcess toRemove)
Returns true if specified workflow process isn't referenced
from any activity of subflow type.
|
Object |
clone()
Used to create exact copy of instance of this class.
|
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.
|
WorkflowProcess |
getOwnerProcess()
Returns a workflow process that contains the set.
|
XMLPanel |
getPanel()
Prepares the tabbed panel to show editable fields of Activity.
|
protected boolean |
isDataFieldOrFormalParameterUsedWithinTransitionConditions(XMLCollectionElement toRemove)
Returns true if specified data field or formal parameter is
used in transition condition expression of any transition within activity
set's transitions.
|
void |
refreshMandatories(UserProperty up)
Adds an user defined property after the user changed it's type from
OPTIONAL to MANDATORY.
|
void |
removePropertyFromAllActivities(UserProperty up)
Removes an user defined property upon it's removal from collection of
properties.
|
void |
setIDPrefixForCollections()
Sets proper ID prefix for all Id generators (XMLCollection class
instances).
|
void |
setVersionId(String versionId) |
String |
toString()
Returns the text representation of element's 'value'.
|
void |
toXML(Node parent)
Overrides super-class method to realize this class specific writting to
XML file.
|
getCollection, getID, getNode, isIDUniqueAndValid, setCollectionget, get, getChildElements, getElementsCount, getIndex, isEmpty, isValid, processAttributes, processElements, refreshLabelName, set, set, setReadOnly, toComplexType, toComplexTypeValues, toComplexValuesfromXML, getPrintDescription, getPrintDescription, isCollapsed, isReadOnly, isRequired, isValidEnter, isVisible, setCollapsed, setLabelName, setRequired, setValue, setVisible, toLabel, toName, toValuepublic ActivitySet(ActivitySets ass, WorkflowProcess myWorkflow)
public void setVersionId(String versionId)
protected void fillStructure()
fillStructure 在类中 XMLCollectionElementpublic void setIDPrefixForCollections()
public WorkflowProcess getOwnerProcess()
protected void afterImporting(boolean importUserProperties)
public XMLPanel getPanel()
getPanel 在类中 XMLComplexElementpublic void addPropertyToAllActivities(UserProperty up)
up - The mandatory user property to add.public void removePropertyFromAllActivities(UserProperty up)
up - The user property to remove.public void refreshMandatories(UserProperty up)
up - The mandatory user property to add.protected boolean canRemoveWorkflow(WorkflowProcess toRemove)
protected boolean canRemoveParticipant(Participant toRemove)
protected boolean canRemoveApplication(Application toRemove)
protected boolean canRemoveDataFieldOrFormalParameter(XMLCollectionElement toRemove)
protected boolean isDataFieldOrFormalParameterUsedWithinTransitionConditions(XMLCollectionElement toRemove)
public String toString()
XMLElementtoString method of it's value member, if value is
null, returns labelName member.toString 在类中 XMLComplexElementpublic void toXML(Node parent) throws DOMException
toXML 在类中 XMLComplexElementparent - indicates how much tabulators to put before element tag.DOMExceptionpublic void fromXML(Node node)
XMLElementfromXML 在类中 XMLCollectionElementnode - The content retrieved from XML file, that represents tag for
this element.public Object clone()
XMLElementclone 在类中 XMLCollectionElementCopyright © 2023 onecode. All rights reserved.