public class Artifact
extends java.lang.Object
implements java.io.Serializable
The Artifact is defined as the electronic-document operated by end-users in Agentflow System. It can be described by its logic and form. The former describes the hidden information used for Agentflow System and the later is the facade of the document used for display.
The Logical Information:
The logical information described the ArtifactID, ArtifactName, ArtifactSynopsis, relationship between Artifacts, and ArtifactState. The ArtifactState is used to determine the routing of the Artifact in the Agentflow System. For example, consider the Process 'payment' of the Work Flow 'purchasing'. (Please reference pe.pase.DBProcess to get the detail of the example.) In the Process, the user can pay by credit card, check, cash, and so on. Then, the Process invoked next depends on the type of payment. Therefore, the Agentflow System uses the ArtifactState to define the different "State" of the Process.(The usage of ArtifactState rather than ProcessState is because the state is determined by the content of Artifact.)
The detail of fields to describe the Artifact logical information are listed below:
Descriptor | Comment |
ArtifactID | the identifier of Artifact in the Agentflow System |
ArtifactSerialNo | the user-defined serial number of the Artifact |
ArtifactName | the name of the Artifact |
ArtifactSynopsis | the comment of the Artifact |
ProjectID | the ID of attached project |
ProcessInfoSpec | the guide to describe how to execute the Process |
ParentArtifactID | the ID of parent Artifact |
SubArtifactID | the ID of sub Artifact |
ArtifactState | the ArtifactState |
InitArtifactState | the initial ArtifactState of the artifact |
The ParentArtifactID and SubArtifactID is reserved to the future extension of Artifact-Composition.
The form Information:
The form of Artifact is composed by several Component, such as the TextField, the ComboBox, the Label, and so on. The form defined in Artiface can be regarded as a UI "Template". It defines the facade, behavior, and related-coordinate of each Componetns by a list of data objects. The detail of the data object can reference pe.pase.ArtFormItem.
Besides the ArtFormItem, the EnableScript and VisibleScript is the other two form-related field. They are used to indicate the properties of editable and visible of each Component at different ArtifactState.(The 'ediable' means the component is visible but is not editable). The fields are String with format as following: [columnName=State1,State2,State3,...][TextField1=1,1,1,...][CheckBox1=1,0,0,...]...
At the last, the Agentflow System will initiate the Artifact Instance while the execution time. Please reference the class pe.pase.PASEartInstance.
DBProcess
,
ArtFormItem
,
PASEartInstance
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
CUSTOM_TYPE |
static int |
CUSTOMAP_TYPE |
static java.lang.String |
DEFAULT_VALUE_EXECUTE_TIME |
static java.lang.String |
DEFAULT_VALUE_FUNC_VAR |
static int |
EFORM2_TYPE |
static java.lang.String |
EXECUTE_TIME_EVERY |
static java.lang.String |
EXECUTE_TIME_FIRST |
static java.lang.String |
EXECUTE_TIME_INITIAL |
static java.lang.String |
EXECUTE_TIME_NEVER |
static int |
JAVA_TYPE |
static int |
JSP_TYPE |
Constructor and Description |
---|
Artifact() |
Artifact(java.lang.String aID)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addArtFormItem(ArtFormItem item)
Deprecated.
|
void |
addArtMultiLanguage(ArtMultiLanguage item) |
void |
addArtState(PASEartState state)
Add a artifact state.
|
void |
addSubArtifactID(java.lang.String artID)
Add a subartifact id.
|
java.lang.Object |
clone() |
Artifact |
clone(java.lang.Object toObject) |
ArtFormItem |
getArtFormItem(java.lang.String itemName)
Get the artifact form item by name
|
ArtFormItem |
getArtFormItemById(java.lang.String itemId)
Get the artifact form item by item_id
|
java.util.Vector<ArtFormItem> |
getArtFormItemList()
Get the list of artifact form item
|
java.lang.String |
getArtifactID()
Get the artifact id
|
java.util.HashMap |
getArtLocaleInfo() |
java.util.Map<java.lang.String,ArtMultiLanguage> |
getArtMultiLanguage() |
java.util.Vector<java.lang.String> |
getArtStateIDList() |
java.util.Vector<PASEartState> |
getArtStateList()
Get the list of artifact state
|
java.lang.String |
getComponentGroups() |
java.lang.String |
getDefaultValueScript() |
java.lang.String |
getEnableScript()
Get the enable script.
|
java.lang.String |
getEncodingReset() |
java.lang.String |
getExecutableDVScript() |
byte[] |
getFormSnapshot() |
java.lang.String |
getGeneratedTiming() |
java.lang.Object |
getHashKey() |
java.lang.String |
getID()
Get the artifact id
|
java.lang.String |
getInitStateID()
Get the initial artifact state id
|
java.lang.String |
getInstanceIDEncoding()
Get the format of serial number.
|
java.util.HashMap |
getJarFileMap() |
MobileForm |
getMobileForm(java.lang.String astId) |
MobileForm |
getMobileFormByArtStateName(java.lang.String astName) |
MobileForm |
getMobileFormByArtStateName(java.lang.String astName,
int mfpRuleOrder) |
java.util.Vector<MobileForm> |
getMobileForms() |
java.lang.String |
getName()
Get the artifact name
|
java.lang.String |
getName(java.lang.String locale) |
java.lang.String |
getParentID()
Get the id of parent
|
java.lang.String |
getProjectID()
Get the id of project which owns this artifact.
|
java.lang.String[] |
getRichTextAreaUITypeParams() |
byte[] |
getScriptAdaptorJarFile() |
java.util.Vector<java.lang.String> |
getSubArtifactIDList()
Get the list of subartifact
|
java.lang.String |
getSynopsis() |
int |
getType() |
java.lang.String |
getVisibleScript()
Get the visible script.
|
int |
getX() |
int |
getY() |
boolean |
isVersion2() |
boolean |
removeArtFormItem(ArtFormItem item)
Deprecated.
|
void |
removeArtMultiLanguage(ArtMultiLanguage item) |
boolean |
removeArtStateID(PASEartState state)
Remove a artifact state.
|
boolean |
removeSubArtifactID(java.lang.String artID)
Remove a subartifact id.
|
void |
setArtFormItemList(java.util.Vector<ArtFormItem> prList)
Deprecated.
|
void |
setArtifactID(java.lang.String id)
Set the artifact id
|
void |
setArtLocaleInfo(java.util.HashMap artLocaleInfo) |
void |
setArtMultiLanguage(java.util.Map<java.lang.String,ArtMultiLanguage> map) |
void |
setArtStateIDList(java.util.Vector<java.lang.String> artStateList) |
void |
setArtStateList(java.util.Vector<PASEartState> prList)
Set the list of artifact state
|
void |
setComponentGroups(java.lang.String componentGroups) |
void |
setDefaultValueScript(java.lang.String script) |
void |
setEnableScript(java.lang.String script)
Set the enable script.
|
void |
setEncodingReset(java.lang.String str) |
void |
setExecutableDVScript(java.lang.String script) |
void |
setFormSnapshot(java.lang.Object obj) |
void |
setGeneratedTiming(java.lang.String encoding) |
void |
setID(java.lang.String id)
Set the artifact id
|
void |
setInitStateID(java.lang.String state)
Set the initial artifact state id
|
void |
setInstanceIDEncoding(java.lang.String encoding)
Set the format of artifact serial number.
|
void |
setJarFileMap(java.util.HashMap hm) |
void |
setMobileForms(java.util.Vector<MobileForm> mobileForms) |
void |
setName(java.lang.String name)
Set the artifact name
|
void |
setParentID(java.lang.String parentID)
Set the id of parent
|
void |
setProjectID(java.lang.String id)
Set the id of project which owns this artifact
|
void |
setScriptAdaptorJarFile(byte[] bs) |
void |
setSubArtifactIDList(java.util.Vector<java.lang.String> prList)
Set the list of subartifact
|
void |
setSynopsis(java.lang.String desc)
Set the artifact synopsis
|
void |
setType(int newType) |
void |
setVersion2(boolean version2) |
void |
setVisibleScript(java.lang.String script)
Set the visible script.
|
void |
setX(int m_x) |
void |
setY(int m_y) |
java.lang.String |
toString()
Deprecated.
|
void |
update(java.lang.Object obj) |
public static final java.lang.String DEFAULT_VALUE_FUNC_VAR
public static final java.lang.String DEFAULT_VALUE_EXECUTE_TIME
public static final java.lang.String EXECUTE_TIME_NEVER
public static final java.lang.String EXECUTE_TIME_INITIAL
public static final java.lang.String EXECUTE_TIME_FIRST
public static final java.lang.String EXECUTE_TIME_EVERY
public static final int JAVA_TYPE
public static final int JSP_TYPE
public static final int CUSTOM_TYPE
public static final int CUSTOMAP_TYPE
public static final int EFORM2_TYPE
public Artifact()
public Artifact(java.lang.String aID)
Artifact
with the
specified artifact id.id
- the artifact idpublic java.lang.String getID()
public void setID(java.lang.String id)
id
- the given idpublic java.lang.String getArtifactID()
public void setArtifactID(java.lang.String id)
id
- the given idpublic java.lang.String getInstanceIDEncoding()
public void setInstanceIDEncoding(java.lang.String encoding)
encoding
- the given format of artifact serial numberpublic java.lang.String getGeneratedTiming()
public void setGeneratedTiming(java.lang.String encoding)
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the given namepublic int getType()
public void setType(int newType)
public java.lang.String getSynopsis()
public void setSynopsis(java.lang.String desc)
desc
- the given synopsispublic java.lang.String getParentID()
public void setParentID(java.lang.String parentID)
parentID
- the given idpublic java.lang.String getProjectID()
public void setProjectID(java.lang.String id)
the
- given idpublic java.util.Vector<java.lang.String> getSubArtifactIDList()
Vector
is a artifact id)public void setSubArtifactIDList(java.util.Vector<java.lang.String> prList)
prList
- the given list(each element in Vector
is a
artifact id)public void addSubArtifactID(java.lang.String artID)
artID
- the given idpublic boolean removeSubArtifactID(java.lang.String artID)
artID
- the given idpublic java.util.Vector<PASEartState> getArtStateList()
Vector
is a instance of
PASEartState
)PASEartState
public void setArtStateList(java.util.Vector<PASEartState> prList)
prList
- the given list. (each element in Vector
is a
instance of PASEartState
)PASEartState
public void addArtState(PASEartState state)
state
- the given statePASEartState
public boolean removeArtStateID(PASEartState state)
state
- the given statePASEartState
public java.lang.String getInitStateID()
public void setInitStateID(java.lang.String state)
state
- the given state idpublic java.lang.String getEnableScript()
public void setEnableScript(java.lang.String script)
script
- the given enable scriptpublic java.lang.String getVisibleScript()
public void setVisibleScript(java.lang.String script)
script
- the given visible scriptpublic java.util.Vector<ArtFormItem> getArtFormItemList()
Vector
is instance of
ArtFormItem
)ArtFormItem
public ArtFormItem getArtFormItem(java.lang.String itemName)
ArtFormItem
.ArtFormItem
public ArtFormItem getArtFormItemById(java.lang.String itemId)
ArtFormItem
.ArtFormItem
public java.util.Map<java.lang.String,ArtMultiLanguage> getArtMultiLanguage()
ArtMultiLanguage
of the artifact's componentsArtMultiLanguage
public void setArtFormItemList(java.util.Vector<ArtFormItem> prList)
prList
- the given list. (each element in Vector
is
instance of ArtFormItem
)ArtFormItem
public void setArtMultiLanguage(java.util.Map<java.lang.String,ArtMultiLanguage> map)
public void addArtFormItem(ArtFormItem item)
item
- the given artifact form itemArtFormItem
public void addArtMultiLanguage(ArtMultiLanguage item)
public boolean removeArtFormItem(ArtFormItem item)
item
- the given artifact form itemArtFormItem
public void removeArtMultiLanguage(ArtMultiLanguage item)
public java.lang.String toString()
toString
in class java.lang.Object
public void setJarFileMap(java.util.HashMap hm)
public java.util.HashMap getJarFileMap()
public void setScriptAdaptorJarFile(byte[] bs)
public byte[] getScriptAdaptorJarFile()
public void setFormSnapshot(java.lang.Object obj)
public byte[] getFormSnapshot()
public void setExecutableDVScript(java.lang.String script)
public java.lang.String getExecutableDVScript()
public void setDefaultValueScript(java.lang.String script)
public java.lang.String getDefaultValueScript()
public boolean isVersion2()
public void setVersion2(boolean version2)
public void update(java.lang.Object obj)
public java.lang.Object getHashKey()
public java.util.Vector<MobileForm> getMobileForms()
public MobileForm getMobileFormByArtStateName(java.lang.String astName)
public MobileForm getMobileFormByArtStateName(java.lang.String astName, int mfpRuleOrder)
public MobileForm getMobileForm(java.lang.String astId)
public void setMobileForms(java.util.Vector<MobileForm> mobileForms)
public java.util.HashMap getArtLocaleInfo()
public void setArtLocaleInfo(java.util.HashMap artLocaleInfo)
public java.lang.String getName(java.lang.String locale)
public java.lang.String getEncodingReset()
public void setEncodingReset(java.lang.String str)
public void setComponentGroups(java.lang.String componentGroups)
public java.lang.String getComponentGroups()
public int getX()
public void setX(int m_x)
public int getY()
public void setY(int m_y)
public Artifact clone(java.lang.Object toObject)
public java.lang.Object clone()
clone
in class java.lang.Object
public java.util.Vector<java.lang.String> getArtStateIDList()
public void setArtStateIDList(java.util.Vector<java.lang.String> artStateList)
public java.lang.String[] getRichTextAreaUITypeParams()
Copyright ? 2022. All Rights Reserved.