public class PASEartInstance
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The Artifact Instance is initiated from Artifact.(The concept of 'initiate' relationship comes from the relationship between 'class' and 'object' in the Object-Oreinted language.) Therefore, the field of the class can also be divided into the logical and the form informaiotn introduced in pe.pase.Artifact. In the following description, we use attached-Artifact to represent the Atrifact that some Artifact Instance are initiated from.
The Logical Information:
Only part of the logical information in the Artifact are also used the class: the ArtifactID, ArtInstanceName, ArtInstanceSerialNo, and the ArtInstanceState. The content of the first two field are the same as in Artifact. Then the content of the ArtInstaceSerialNo is generated from the ArtifactSerialNo, the format of artifact serial number. At last, the ArtInstanceState indicates the current state of the Artiact Instance. Its data object is represented by the ArtifactState defined in the attached-Artifact. The following is the summary table of the fileds' desciption.
Descriptor | Comment |
ArtInstanceID | the identifier of Aritact Instance in the Agentflow System |
ArtifactID | the ID of Artifact that the Instance is initiated from |
ArtInstanceSerianNo | the ArtifactSerialNo of Artifact that the Instance is initiated from |
ArtInstanceName | the Artifactname of Artifact that the Instance is initiated from |
ArtInstanceState | the current ArtifactState |
The form Information:
One field is used to show the form information: the DataMap. It represents the value of each Component defined in the ArtFormItem of the attached-Artifact.
Artifact
,
Serialized FormConstructor and Description |
---|
PASEartInstance() |
PASEartInstance(java.lang.String id)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAppValue(java.lang.String key,
java.lang.Object value)
For system use.
|
void |
addAppValue(java.lang.String key,
java.lang.String value)
For script use.
|
java.lang.Object |
clone()
Make a copy of the
PASEartInstance object |
java.util.HashMap |
getAppDataMap()
Get the data map
|
java.lang.String |
getAppValue(java.lang.String key)
Get the value of the specified component
|
java.lang.String |
getArtifactID()
Get the artifact id
|
java.util.HashMap |
getArtLocaleInfo() |
PASEartState |
getArtState()
Get the current artifact state
|
java.lang.Object |
getHashKey() |
java.lang.String |
getID()
Get the artifact instance id
|
java.lang.String |
getMyID()
Get the artifact instance serial number
|
java.lang.String |
getName()
Get the artifact instance name
|
java.lang.String |
getName(java.lang.String locale) |
void |
setAppDataMap(java.util.HashMap data)
Set the data map
|
void |
setAppValue(java.lang.String key,
java.lang.Object value)
For system use.
|
void |
setAppValue(java.lang.String key,
java.lang.String value)
For script use.
|
void |
setArtifactID(java.lang.String id)
Set the artifact id
|
void |
setArtLocaleInfo(java.util.HashMap artLocaleInfo) |
void |
setArtState(PASEartState as)
Set the current artifact state
|
void |
setID(java.lang.String id)
Set the artifact instance id
|
void |
setMyID(java.lang.String id)
Set the artifact instance serial number
|
void |
setName(java.lang.String name)
Set the artifact instance name
|
java.lang.String |
toString()
Returns a string representation of the artifact instance
|
void |
update(java.lang.Object obj)
Set the artifact state and data map of the
Artifact
instance |
public PASEartInstance()
public PASEartInstance(java.lang.String id)
PASEartInstance
with
the specified artifact instance id.id
- the artifact instance idpublic java.lang.String getID()
public void setID(java.lang.String id)
id
- the given artifact instance idpublic java.lang.String getMyID()
public void setMyID(java.lang.String id)
id
- the given artifact instance serial numberpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the given artifact instance namepublic java.lang.String getArtifactID()
public void setArtifactID(java.lang.String id)
name
- the given artifact idpublic PASEartState getArtState()
PASEartState
public void setArtState(PASEartState as)
as
- the given artifact instance statePASEartState
public java.util.HashMap getAppDataMap()
public void setAppDataMap(java.util.HashMap data)
data
- the data map ( key : value = component name : component value)public void addAppValue(java.lang.String key, java.lang.String value)
key
- the given component namevalue
- the given component valuepublic void addAppValue(java.lang.String key, java.lang.Object value)
key
- the given component namevalue
- the given component valuepublic java.lang.String getAppValue(java.lang.String key)
public void setAppValue(java.lang.String key, java.lang.String value)
key
- the given component namevalue
- the given component valuepublic void setAppValue(java.lang.String key, java.lang.Object value)
key
- the given component namevalue
- the given component valuepublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
PASEartInstance
objectclone
in class java.lang.Object
public void update(java.lang.Object obj)
Artifact
instanceobj
- the given PASEartInstance
objectpublic java.lang.Object getHashKey()
public java.util.HashMap getArtLocaleInfo()
public void setArtLocaleInfo(java.util.HashMap artLocaleInfo)
public java.lang.String getName(java.lang.String locale)
Copyright ? 2022. All Rights Reserved.