Agentflow
V3.1

pe.pase
Class PASEartState

java.lang.Object
  extended by pe.pase.PASEartState
All Implemented Interfaces:
com.flowring.entity.Entity, java.io.Serializable, java.lang.Cloneable

public class PASEartState
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable, com.flowring.entity.Entity

An abstract representation of Artifact State.

The Artifact State is used for Artifact routing in the Agentflow System. The ArtStateID and ArtStateName represent the identifier and name of the Artifact State. Then the ArtifactID and ProjectID show the ID of the Artifact and Project that the Artifact is belong to. At lase, The ArtStateCond is a special field to determine whether the Artifact State is achieved. The introduction of the ArtStateCond is introduced in next paragraph.

In the Agentflow System, when a end-user finishes its work and want to complete the Task, the process of 'condition verifying' is in progress. The verifying is used to determint whether the task fits the 'complete' condition of the Task. If fit, the user is permitted to complete the Task; otherwise, the System will inform the end-user that the task can't be completed. The ArtStateCond is used as the rule for 'condition verifying'. It is composed of several 'ComponentValue expression'. The operator of the expression is the value of the Component; then the operand is the '<', '>', '==', '<=', '>=', and '!='. The 'ComponentValue expression' are combined by 'AND' or 'OR'. The followiong is an example of the ArtStateCond:

TextArea1 > 400 AND RadioButton1 != true AND PasswordField1 == 'supermane'

Since:
version 1.0.0
Version:
1.1.5,
Author:
yschen@flowring.com
See Also:
Artifact, Serialized Form

Field Summary
static java.lang.String CSEntArtStateID
           
 
Constructor Summary
PASEartState()
           
PASEartState(java.lang.String astID)
          Constructor.
 
Method Summary
 java.lang.Object clone()
          Make a copy of the PASEartState object
 java.lang.String getArtifactID()
          Get the artifact id
 java.lang.String getCondition()
          Get the artifact state condition.
 java.lang.String getDescription()
          Get the artifact state description.
 java.lang.Object getHashKey()
           
 java.lang.String getID()
          Get the artifact state id
 java.lang.String getName()
          Get the artifact state name
 java.lang.String getProjectID()
          Get the project id
 void setArtifactID(java.lang.String artf)
          Set the artifact id
 void setCondition(java.lang.String cond)
          Set the artifact state condition.
 void setDescription(java.lang.String des)
          Set the artifact state description.
 void setID(java.lang.String id)
          Set the artifact state id
 void setName(java.lang.String name)
          Set the artifact state name
 void setProjectID(java.lang.String id)
          Set the project id
 java.lang.String toString()
          Returns a string representation of the artifact state
 void update(java.lang.Object obj)
          Update the data of PASEartState instance
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CSEntArtStateID

public static java.lang.String CSEntArtStateID
Constructor Detail

PASEartState

public PASEartState()

PASEartState

public PASEartState(java.lang.String astID)
Constructor. Construct a instance of PASEartState with the specified artifact state id.

Parameters:
id - the artifact state id
Since:
version 1.0.0
Method Detail

clone

public java.lang.Object clone()
Make a copy of the PASEartState object

Overrides:
clone in class java.lang.Object
Returns:
the object
Since:
version 1.0.0

getArtifactID

public java.lang.String getArtifactID()
Get the artifact id

Returns:
the artifact id
Since:
version 1.0.0

getCondition

public java.lang.String getCondition()
Get the artifact state condition. The condition will determine the next state.

Returns:
the artifact state condition
Since:
version 1.0.0

getDescription

public java.lang.String getDescription()
Get the artifact state description.

Returns:
the artifact state description
Since:
version 2.0.0

getHashKey

public java.lang.Object getHashKey()
Specified by:
getHashKey in interface com.flowring.entity.Entity

getID

public java.lang.String getID()
Get the artifact state id

Returns:
the artifact state id
Since:
version 1.0.0

getName

public java.lang.String getName()
Get the artifact state name

Returns:
the artifact state name
Since:
version 1.0.0

getProjectID

public java.lang.String getProjectID()
Get the project id

Returns:
the project id
Since:
version 1.0.0

setArtifactID

public void setArtifactID(java.lang.String artf)
Set the artifact id

Parameters:
artf - the given artifact id
Since:
version 1.0.0

setCondition

public void setCondition(java.lang.String cond)
Set the artifact state condition. The condition will determine the next state.

Parameters:
cond - the given artifact state condition
Since:
version 1.0.0

setDescription

public void setDescription(java.lang.String des)
Set the artifact state description.

Parameters:
cond - the given artifact state description
Since:
version 2.0.0

setID

public void setID(java.lang.String id)
Set the artifact state id

Parameters:
id - the given artifact state id
Since:
version 1.0.0

setName

public void setName(java.lang.String name)
Set the artifact state name

Parameters:
name - the given artifact state name
Since:
version 1.0.0

setProjectID

public void setProjectID(java.lang.String id)
Set the project id

Parameters:
id - the given project id
Since:
version 1.0.0

toString

public java.lang.String toString()
Returns a string representation of the artifact state

Overrides:
toString in class java.lang.Object
Returns:
the artifact state name
Since:
version 1.0.0

update

public void update(java.lang.Object obj)
Update the data of PASEartState instance

Specified by:
update in interface com.flowring.entity.Entity
Parameters:
obj - the given PASEartState instance
Since:
version 1.0.0

Agentflow
V3.1

Submit a bug or feature
Copyright 1999-2010 Flowring , Inc. 12F., No.120, Sec2, Gongdao 5th Rd.,
Hsinchu City 300, Taiwan (R.O.C.) All Rights Reserved.