|
Agentflow V3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpe.pase.PASEartInstance
public class PASEartInstance
An abstract representation of Artifact Instance.
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 Summary | |
---|---|
PASEartInstance()
|
|
PASEartInstance(java.lang.String id)
Constructor. |
Method Summary | |
---|---|
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 |
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 |
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 |
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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PASEartInstance()
public PASEartInstance(java.lang.String id)
PASEartInstance
with
the specified artifact instance id.
id
- the artifact instance idMethod Detail |
---|
public void addAppValue(java.lang.String key, java.lang.Object value)
key
- the given component namevalue
- the given component valuepublic void addAppValue(java.lang.String key, java.lang.String value)
key
- the given component namevalue
- the given component valuepublic java.lang.Object clone()
PASEartInstance
object
clone
in class java.lang.Object
public java.util.HashMap getAppDataMap()
public java.lang.String getAppValue(java.lang.String key)
public java.lang.String getArtifactID()
public PASEartState getArtState()
PASEartState
public java.lang.Object getHashKey()
getHashKey
in interface com.flowring.entity.Entity
public java.lang.String getID()
public java.lang.String getMyID()
public java.lang.String getName()
public void setAppDataMap(java.util.HashMap data)
data
- the data map ( key : value = component name : component value)public void setAppValue(java.lang.String key, java.lang.Object value)
key
- the given component namevalue
- the given component valuepublic void setAppValue(java.lang.String key, java.lang.String value)
key
- the given component namevalue
- the given component valuepublic void setArtifactID(java.lang.String id)
name
- the given artifact idpublic void setArtState(PASEartState as)
as
- the given artifact instance statePASEartState
public void setID(java.lang.String id)
id
- the given artifact instance idpublic void setMyID(java.lang.String id)
id
- the given artifact instance serial numberpublic void setName(java.lang.String name)
name
- the given artifact instance namepublic java.lang.String toString()
toString
in class java.lang.Object
public void update(java.lang.Object obj)
Artifact
instance
update
in interface com.flowring.entity.Entity
obj
- the given PASEartInstance
object
|
Agentflow V3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |