|
Agentflow V3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpe.pase.Artifact
public class Artifact
An abstract representation of Artifact.
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 FormField Summary | |
---|---|
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 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 Summary | |
---|---|
Artifact()
|
|
Artifact(java.lang.String aID)
Constructor. |
Method Summary | |
---|---|
void |
addArtMultiLanguage(ArtMultiLanguage item)
|
void |
addArtState(PASEartState state)
Add a artifact state. |
void |
addSubArtifactID(java.lang.String artID)
Add a subartifact id. |
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 |
getArtFormItemList()
Get the list of artifact form item |
java.lang.String |
getArtifactID()
Get the artifact id |
java.util.Map |
getArtMultiLanguage()
|
java.util.Vector |
getArtStateList()
Get the list of artifact state |
java.lang.String |
getDefaultValueScript()
|
java.lang.String |
getEnableScript()
Get the enable script. |
java.lang.String |
getExecutableDVScript()
|
byte[] |
getFormSnapshot()
|
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 |
getMobileFormByArtStateName(java.lang.String astName)
|
java.util.Vector<MobileForm> |
getMobileForms()
|
java.lang.String |
getName()
Get the artifact name |
java.lang.String |
getParentID()
Get the id of parent |
java.lang.String |
getProjectID()
Get the id of project which owns this artifact. |
byte[] |
getScriptAdaptorJarFile()
|
java.util.Vector |
getSubArtifactIDList()
Get the list of subartifact |
java.lang.String |
getSynopsis()
|
int |
getType()
|
java.lang.String |
getVisibleScript()
Get the visible script. |
boolean |
isVersion2()
|
void |
removeArtMultiLanguage(ArtMultiLanguage item)
|
boolean |
removeArtStateID(PASEartState state)
Remove a artifact state. |
boolean |
removeSubArtifactID(java.lang.String artID)
Remove a subartifact id. |
void |
setArtifactID(java.lang.String id)
Set the artifact id |
void |
setArtMultiLanguage(java.util.Map map)
|
void |
setArtStateList(java.util.Vector prList)
Set the list of artifact state |
void |
setDefaultValueScript(java.lang.String script)
|
void |
setEnableScript(java.lang.String script)
Set the enable script. |
void |
setExecutableDVScript(java.lang.String script)
|
void |
setFormSnapshot(byte[] fs)
|
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 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 |
update(java.lang.Object obj)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CUSTOM_TYPE
public static final int CUSTOMAP_TYPE
public static final java.lang.String DEFAULT_VALUE_EXECUTE_TIME
public static final java.lang.String DEFAULT_VALUE_FUNC_VAR
public static final java.lang.String EXECUTE_TIME_EVERY
public static final java.lang.String EXECUTE_TIME_FIRST
public static final java.lang.String EXECUTE_TIME_INITIAL
public static final java.lang.String EXECUTE_TIME_NEVER
public static final int JAVA_TYPE
public static final int JSP_TYPE
Constructor Detail |
---|
public Artifact()
public Artifact(java.lang.String aID)
Artifact
with the
specified artifact id.
id
- the artifact idMethod Detail |
---|
public void addArtMultiLanguage(ArtMultiLanguage item)
public void addArtState(PASEartState state)
state
- the given statePASEartState
public void addSubArtifactID(java.lang.String artID)
artID
- the given idpublic ArtFormItem getArtFormItem(java.lang.String itemName)
ArtFormItem
.ArtFormItem
public ArtFormItem getArtFormItemById(java.lang.String itemId)
ArtFormItem
.ArtFormItem
public java.util.Vector getArtFormItemList()
Vector
is instance of
ArtFormItem
)ArtFormItem
public java.lang.String getArtifactID()
public java.util.Map getArtMultiLanguage()
ArtMultiLanguage
of the artifact's componentsArtMultiLanguage
public java.util.Vector getArtStateList()
Vector
is a instance of
PASEartState
)PASEartState
public java.lang.String getDefaultValueScript()
public java.lang.String getEnableScript()
public java.lang.String getExecutableDVScript()
public byte[] getFormSnapshot()
public java.lang.Object getHashKey()
getHashKey
in interface com.flowring.entity.Entity
public java.lang.String getID()
public java.lang.String getInitStateID()
public java.lang.String getInstanceIDEncoding()
public java.util.HashMap getJarFileMap()
public MobileForm getMobileFormByArtStateName(java.lang.String astName)
public java.util.Vector<MobileForm> getMobileForms()
public java.lang.String getName()
public java.lang.String getParentID()
public java.lang.String getProjectID()
public byte[] getScriptAdaptorJarFile()
public java.util.Vector getSubArtifactIDList()
Vector
is a artifact id)public java.lang.String getSynopsis()
public int getType()
public java.lang.String getVisibleScript()
public boolean isVersion2()
public void removeArtMultiLanguage(ArtMultiLanguage item)
public boolean removeArtStateID(PASEartState state)
state
- the given state
PASEartState
public boolean removeSubArtifactID(java.lang.String artID)
artID
- the given id
public void setArtifactID(java.lang.String id)
id
- the given idpublic void setArtMultiLanguage(java.util.Map map)
public void setArtStateList(java.util.Vector prList)
prList
- the given list. (each element in Vector
is a
instance of PASEartState
)PASEartState
public void setDefaultValueScript(java.lang.String script)
public void setEnableScript(java.lang.String script)
script
- the given enable scriptpublic void setExecutableDVScript(java.lang.String script)
public void setFormSnapshot(byte[] fs)
public void setID(java.lang.String id)
id
- the given idpublic void setInitStateID(java.lang.String state)
state
- the given state idpublic void setInstanceIDEncoding(java.lang.String encoding)
encoding
- the given format of artifact serial numberpublic void setJarFileMap(java.util.HashMap hm)
public void setMobileForms(java.util.Vector<MobileForm> mobileForms)
public void setName(java.lang.String name)
name
- the given namepublic void setParentID(java.lang.String parentID)
parentID
- the given idpublic void setProjectID(java.lang.String id)
the
- given idpublic void setScriptAdaptorJarFile(byte[] bs)
public void setSubArtifactIDList(java.util.Vector prList)
prList
- the given list(each element in Vector
is a
artifact id)public void setSynopsis(java.lang.String desc)
desc
- the given synopsispublic void setType(int newType)
public void setVersion2(boolean version2)
public void setVisibleScript(java.lang.String script)
script
- the given visible scriptpublic void update(java.lang.Object obj)
update
in interface com.flowring.entity.Entity
|
Agentflow V3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |