|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.workflow.engine.SynchedWorkflow
Field Summary | |
private static String |
CLASSNAME
|
private String |
eventKey
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static String |
FC_RESOURCE
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
(package private) static boolean |
SERVER
|
private static String |
SYNCH_ROBOT_NAME
|
private static String |
SYNCH_WF_NAME
|
private Notifiable |
targetObject
|
private String |
templateName
|
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Constructor Summary | |
SynchedWorkflow()
No arg constructor. |
Method Summary | |
private void |
checkParameters()
|
WfBlockTemplate |
createBlockTemplate(String name)
|
private WfSynchRobotTemplate |
createSynchRobotTemplate(WfBlockTemplate block_template)
|
private void |
eventKeyValidate(String a_EventKey)
|
String |
getEventKey()
Gets the value of the attribute: eventKey; Key of the event to be listened to. |
private String |
getStringRepresentation(Object value)
Constructs a String representation of the object passed as parameter. |
Notifiable |
getTargetObject()
Gets the value of the attribute: targetObject; Target object against what events are listened to. |
private WfProcessTemplateMaster |
getTemplateMaster()
|
String |
getTemplateName()
Gets the value of the attribute: templateName; Name of the workflow template to start when the event happens to target object. |
static void |
main(String[] args)
Testing method. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(SynchedWorkflow thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setEventKey(String a_EventKey)
Sets the value of the attribute: eventKey; Key of the event to be listened to. |
void |
setTargetObject(Notifiable a_TargetObject)
Sets the value of the attribute: targetObject; Target object against what events are listened to. |
void |
setTemplateName(String a_TemplateName)
Sets the value of the attribute: templateName; Name of the workflow template to start when the event happens to target object. |
void |
setVariableMap(ProcessStepTemplateLink link)
|
void |
start(RoleHolder project,
int priority)
Starts event listening. |
void |
startSynchedWorkflow(WfProcessTemplateMaster template_master,
RoleHolder role_holder,
int priority)
|
private void |
templateNameValidate(String a_TemplateName)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private String templateName
private String eventKey
private Notifiable targetObject
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
static final boolean SERVER
private static final String FC_RESOURCE
private static final String SYNCH_WF_NAME
private static final String SYNCH_ROBOT_NAME
Constructor Detail |
public SynchedWorkflow()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(SynchedWorkflow thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public String getTemplateName()
public void setTemplateName(String a_TemplateName) throws WTPropertyVetoException
a_TemplateName
-
WTPropertyVetoException
private void templateNameValidate(String a_TemplateName) throws WTPropertyVetoException
a_TemplateName
-
WTPropertyVetoException
public String getEventKey()
public void setEventKey(String a_EventKey) throws WTPropertyVetoException
a_EventKey
-
WTPropertyVetoException
private void eventKeyValidate(String a_EventKey) throws WTPropertyVetoException
a_EventKey
-
WTPropertyVetoException
public Notifiable getTargetObject()
public void setTargetObject(Notifiable a_TargetObject) throws WTPropertyVetoException
a_TargetObject
-
WTPropertyVetoException
public void start(RoleHolder project, int priority) throws WTException
project
- priority
-
WTException
public static void main(String[] args)
args
- private void checkParameters() throws WTException
WTException
private WfProcessTemplateMaster getTemplateMaster() throws WTException
WTException
public void startSynchedWorkflow(WfProcessTemplateMaster template_master, RoleHolder role_holder, int priority) throws WTException
WTException
public WfBlockTemplate createBlockTemplate(String name) throws WTException
WTException
private WfSynchRobotTemplate createSynchRobotTemplate(WfBlockTemplate block_template) throws WTException
WTException
private String getStringRepresentation(Object value)
If the value is not a WTObject, calls 'toString()'; otherwise produces the object's identity.
value
- object passed as parameter
public void setVariableMap(ProcessStepTemplateLink link) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |