public class Activities extends XMLCollection
Activity
instances.controlledPanel, controlPanel, IDPrefix, myOwner, refCollectionElementsatts, isCollapsed, isReadOnly, isRequired, isVisible, labelName, name, NEWLINE, OFFSET, value| 构造器和说明 |
|---|
Activities(XMLComplexElement wpOrAs)
Creates a new instance of the class.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addPropertyToAllActivities(UserProperty up) |
void |
afterImporting()
Called by owner object after importing of XML file to do neccessary things on activities after importing of XML.
|
void |
afterImporting(boolean importUserProperties)
Called by owner object after importing of XML file to do neccessary things on activities after importing of XML.
|
boolean |
canRemoveApplication(Application toRemove)
Returns true if specified application isn't used as a tool of activity which type is Tool.
|
boolean |
canRemoveDataFieldOrFormalParameter(XMLCollectionElement toRemove)
Returns true if specified data field isn't used as actual parameter of activity which type is Tool or
Subflow.
|
boolean |
canRemoveParticipant(Participant toRemove)
Returns true if specified participant isn't referenced to be a performer of activity.
|
boolean |
canRemoveWorkflow(WorkflowProcess toRemove)
Returns true if specified workflow process isn't referenced from any activity of subflow type.
|
void |
decrementID()
Overrides parent method to be accessible within WorkflowManager.
|
void |
fillOutgoingTransitions()
Called by owner object after importing of XML file to do neccessary things on activities after "afterImporting"
method is called both for activities and transitions
|
String |
generateID()
Generates numerical ID for elements that need it, and converts that ID to
string by adding it a prefix that is set using #setIDPrefix method.
|
XMLElement |
generateNewElement()
Generates a new element of the class which instances are members of collection of this class.
|
Activity |
getActivity(String ID)
Returns an XMLActivity specified by given ID.
|
Set |
getBlockActivities()
Returns a set of Activity elements, which type is BlockActivity, contained within Activities object.
|
long |
getCurrentID()
Gets the ID upon further IDs are generated.
|
int[] |
getInvisibleTableFieldOrdinals()
Returns the ordinal numbers of elements not to be displayed within table
panel.
|
XMLPanel |
getPanel()
Returns the panel for editing the element.
|
WorkflowProcess |
getWorkflowProcess() |
void |
refreshCollection(Set elementsToAddOrRemove,
boolean append)
Overrides parent method to handle the case when the activities from WorkflowProcess collection are copied to
ActivitySet collection and vice-versa.
|
void |
refreshMandatories(UserProperty up) |
void |
removePropertyFromAllActivities(UserProperty up) |
protected void |
resetID()
Resets an ID generator.
|
Object |
toValue()
Gets the element value.
|
protected void |
updateID(String someID)
Updates an ID.
|
add, canInsertElement, canRemoveElement, clear, clone, fromXML, get, getChoosable, getCollectionElement, getControlledPanel, getControlPanel, getEditableDefaultValue, getEditableTableFieldOrdinals, getElementStructure, getIDPrefix, getInUseMessageName, getJList, getNode, getOwner, getReadOnlyMessageName, getTableElements, getValues, getXPDLNode, isEmpty, isIdValid, isJCheckBox, onElementCreated, onElementDeleted, onElementInserted, onElementModified, onElementRemoved, refreshLabelName, remove, setCurrentID, setIDPrefix, setOwner, setReadOnly, size, toCollection, toString, toXMLfromXML, getPrintDescription, getPrintDescription, isCollapsed, isReadOnly, isRequired, isValid, isValidEnter, isVisible, setCollapsed, setLabelName, setRequired, setValue, setVisible, toLabel, toNamepublic Activities(XMLComplexElement wpOrAs)
wpOrAs - WorkflowProcess or ActivitySet that holds Activities class.public XMLElement generateNewElement()
generateNewElement 在类中 XMLCollectionpublic Activity getActivity(String ID)
ID - The ID attribute of wanted XMLActivity.public boolean canRemoveWorkflow(WorkflowProcess toRemove)
public boolean canRemoveParticipant(Participant toRemove)
public boolean canRemoveApplication(Application toRemove)
public boolean canRemoveDataFieldOrFormalParameter(XMLCollectionElement toRemove)
public Set getBlockActivities()
public void afterImporting()
public void fillOutgoingTransitions()
public int[] getInvisibleTableFieldOrdinals()
XMLCollectionXMLComplexElement.fillStructure() method.public XMLPanel getPanel()
XMLElementgetPanel 在类中 XMLCollectionpublic WorkflowProcess getWorkflowProcess()
public Object toValue()
XMLElementtoValue 在类中 XMLElementpublic void addPropertyToAllActivities(UserProperty up)
public void removePropertyFromAllActivities(UserProperty up)
public void refreshMandatories(UserProperty up)
public void afterImporting(boolean importUserProperties)
public void refreshCollection(Set elementsToAddOrRemove, boolean append)
refreshCollection 在类中 XMLCollectionelementsToAddOrRemove - Set of elements that has to be added to or removed from
collection.append - true if adding elements to collection,
false otherwise.public void decrementID()
decrementID 在类中 XMLCollectionpublic long getCurrentID()
XMLCollectiongetCurrentID 在类中 XMLCollectionpublic String generateID()
XMLCollectiongenerateID 在类中 XMLCollectionprotected void resetID()
XMLCollectionresetID 在类中 XMLCollectionprotected void updateID(String someID)
XMLCollectionupdateID 在类中 XMLCollectionsomeID - the ID value upon the update is performed.Copyright © 2023 onecode. All rights reserved.