public class WorkflowProcess extends XMLCollectionElement
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
ENDOFWORKFLOWACT_SEPARATE |
attrId, ID_DELIMITER, myCollectionattributes, complexStructureatts, isCollapsed, isReadOnly, isRequired, isVisible, labelName, name, NEWLINE, OFFSET, value| 构造器和说明 |
|---|
WorkflowProcess(WorkflowProcesses wps,
Package p)
Creates a new instance of the class.
|
WorkflowProcess(WorkflowProcesses wps,
Package p,
boolean SubFlow)
ADD BY WENZHANG 2006-03-01 未经测试不推荐使用
|
WorkflowProcess(WorkflowProcesses wps,
Package p,
WFApplication wfApp,
boolean isNew,
String processId) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addPropertyToAllActivities(UserProperty up) |
void |
addVersion() |
void |
addVersion(int num) |
protected void |
afterImporting(boolean importUserProperties)
Called by Package object after importing of XML file to determine correct block activites and loop activities,
and after that to determine the activities to insert at the workflow process graph.
|
Object |
clone()
Used to create exact copy of instance of this class.
|
WorkflowProcess |
clonePlugins(WorkflowProcess wp) |
void |
decrementActivityId() |
boolean |
equals(Object o) |
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.
|
Activities |
getActivities() |
Activity |
getActivity(String id) |
List |
getActivityCommandListeners() |
List |
getActivityListeners() |
ActivitySets |
getActivitySets() |
String |
getAppName() |
Activity |
getBlockActivity(String activitySetId)
得到所有的块
|
String |
getClassifications() |
long |
getCurrentActivityId() |
Set |
getEndDescriptions() |
LinkedHashSet |
getEntitiesToInsert(Object forObject)
Returns set of entities to be inserted for given object.
|
WorkflowProcess |
getMainProcess()
WENZHANG 06-03-04 本方法存在缺陷使用时请注意条件 本方法适用的范围:每个包内只能有一个主流程 如果主流程不存在(包内只有一个或多个子流程情况可能存在) 如果存在多个主流程按顺序返回第一个
|
XMLAttribute |
getMainVersionId() |
String |
getName() |
long |
getNextActivityId() |
Activity |
getOutflowActivity(String activitySetId)
得到所有的子流程
|
Package |
getPackage()
Returns the package that is container for process.
|
XMLPanel |
getPanel()
Prepares the tabbed panel to show editable fields of WorkflowProcess.
|
XMLPanel |
getPanel(int no)
Prepares the one of the group panels that contains some of this element editable fields.
|
XMLPanel[] |
getPanels() |
List |
getProcessListeners() |
String |
getProjectName() |
Object |
getProperty(String key) |
Transitions |
getRefTransitions() |
Set |
getStartDescriptions() |
List |
getSubProcessList()
得到所有的子流程
|
String |
getSystemCode() |
String |
getTooltip()
Gets the tooltip for participant.
|
List |
getTransitionListeners() |
String |
getVersionID() |
String |
getVersionNumber() |
String |
getVisuallySortedParticipantIDs()
Used to get the visual order of participant visual objects contained within a WorkflowProcess graph.
|
boolean |
isIDUniqueAndValid(XMLPanel p)
Checks if an ID entered by the user is unique.
|
boolean |
isNew() |
boolean |
isSubFlow()
判断该工作流是否为子流程O
|
boolean |
isValidEnter(XMLPanel p)
检查流程属性框输入值是否合法
|
void |
readFromXML(Node node) |
void |
reConfigApplication(WFApplication wfApp,
String appName) |
protected void |
refreshMandatories(UserProperty up) |
protected void |
removePropertyFromAllActivities(UserProperty up) |
void |
resetActivityId() |
void |
saveUserInfo() |
void |
setActiveTime(String activeTime)
设置版本激活时间
|
void |
setAppName(String appName) |
void |
setClassifications(String appName,
String classificationCode) |
void |
setCreator(com.ds.iot.json.UserInfo user) |
void |
setCurrentActivityId(long curId) |
void |
setEndDescriptions(Set eds) |
void |
setFreezeTime(String freezeTime)
设置版本冻结时间
|
protected void |
setIDPrefixForCollections()
Sets proper ID prefix for all Id generators (XMLCollection class instances).
|
void |
setMainVersionId(XMLAttribute mainVersionId) |
void |
setModifier(com.ds.iot.json.UserInfo user) |
void |
setNew(boolean bNew) |
void |
setPackage(Package p) |
void |
setProperty(String key,
Object obj) |
void |
setPublicationStatus(ProcessDefVersionStatus publicationStatus)
设置流程版本状态
|
void |
setRefTransitions(Transitions refTransitions) |
void |
setStartDescriptions(Set sd) |
void |
setSubFlow(boolean SubFlow) |
void |
setVisuallySortedParticipantIDs(String vsPID)
Used to set the visual order of participant visual objects contained within a WorkflowProcess graph.
|
void |
setWFName(String Name) |
String |
toString()
Overrides super-class method to retreive the value of this class "Name" attribute, or if it does not exist, the
value of "Id" attribute.
|
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, refreshLabelName, set, set, setReadOnly, toComplexType, toComplexTypeValues, toComplexValuesfromXML, getPrintDescription, getPrintDescription, isCollapsed, isReadOnly, isRequired, isVisible, setCollapsed, setLabelName, setRequired, setValue, setVisible, toLabel, toName, toValuepublic WorkflowProcess(WorkflowProcesses wps, Package p)
wps - The reference to collection of workflow processes where this instance will be put into.p - The container for all processes.public WorkflowProcess(WorkflowProcesses wps, Package p, boolean SubFlow)
public WorkflowProcess(WorkflowProcesses wps, Package p, WFApplication wfApp, boolean isNew, String processId)
public WorkflowProcess getMainProcess()
public String getProjectName()
public String getClassifications()
public XMLAttribute getMainVersionId()
public void setMainVersionId(XMLAttribute mainVersionId)
protected void fillStructure()
fillStructure 在类中 XMLCollectionElementpublic Package getPackage()
protected void addPropertyToAllActivities(UserProperty up)
protected void removePropertyFromAllActivities(UserProperty up)
protected void refreshMandatories(UserProperty up)
public LinkedHashSet getEntitiesToInsert(Object forObject)
public Set getStartDescriptions()
public String getSystemCode()
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 String getTooltip()
public void toXML(Node parent) throws DOMException
toXML 在类中 XMLComplexElementparent - indicates how much tabulators to put before element tag.DOMExceptionprotected void afterImporting(boolean importUserProperties)
public String toString()
toString 在类中 XMLComplexElementpublic XMLPanel getPanel(int no)
no - The ordinal number of group panel to be shown.public XMLPanel getPanel()
NOTE: This method is never used, panels are retrieved one by one calling the method with the same name but with ordinal number of wanted panel as an argument.
getPanel 在类中 XMLComplexElementpublic XMLPanel[] getPanels()
protected void setIDPrefixForCollections()
public void fromXML(Node node)
XMLElementfromXML 在类中 XMLCollectionElementnode - The content retrieved from XML file, that represents tag for
this element.public void readFromXML(Node node)
public boolean isIDUniqueAndValid(XMLPanel p)
public boolean isValidEnter(XMLPanel p)
isValidEnter 在类中 XMLElementpublic void setWFName(String Name)
public void setSubFlow(boolean SubFlow)
public boolean isSubFlow()
public Activities getActivities()
public boolean isNew()
public void setNew(boolean bNew)
public List getSubProcessList()
public void saveUserInfo()
public String getAppName()
public void setAppName(String appName)
public List getProcessListeners()
public List getActivityListeners()
public List getActivityCommandListeners()
public List getTransitionListeners()
public void addVersion()
public void addVersion(int num)
public String getVersionID()
public String getName()
public String getVersionNumber()
public long getNextActivityId()
public long getCurrentActivityId()
public void setCurrentActivityId(long curId)
public void decrementActivityId()
public void resetActivityId()
public void setCreator(com.ds.iot.json.UserInfo user)
public void setModifier(com.ds.iot.json.UserInfo user)
public void reConfigApplication(WFApplication wfApp, String appName)
public Object clone()
XMLElementclone 在类中 XMLCollectionElementpublic ActivitySets getActivitySets()
public WorkflowProcess clonePlugins(WorkflowProcess wp)
public void setPackage(Package p)
public void setPublicationStatus(ProcessDefVersionStatus publicationStatus)
publicationStatus - public void setActiveTime(String activeTime)
activeTime - public void setFreezeTime(String freezeTime)
freezeTime - public Transitions getRefTransitions()
public void setRefTransitions(Transitions refTransitions)
Copyright © 2023 onecode. All rights reserved.