|
Process Class Relationships | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--filenet.vw.api.VWTransferResult
Use this class to access the value returned by a VWSession.transfer() method call.
The following code snippet demonstrates how to use this class in a general fashion:
// Initialize version and errors to null:
String myVersion = null;
string myError[] = null;
// Put result of transfer in tRes:
VWTransferResult tRes = mySession.transfer ( myWorkflow, "DLTestWorkflow", true, true );
// If the transfer was successful, return the version; otherwise return the errors that caused it to fail:
if (tRes.sucess())
myVersion = tRes.getVersion();
else
myError = tRes.getErrors();
VWSession
,
VWSession.transfer(filenet.vw.api.VWWorkflowDefinition, java.lang.String, boolean, boolean)
, Serialized FormMethod Summary | |
java.lang.String[] |
getErrors()
Retrieves the errors returned by a transfer operation. |
java.lang.String |
getVersion()
Retrieves a string representation of the version returned by the transfer. |
boolean |
success()
Determines whether a transfer was successful. |
java.lang.String |
toString()
Retrieves the string version of this transfer result object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public boolean success()
true
if the
transfer succeeded; otherwise, the method returns false
.public java.lang.String getVersion()
To retrieve the errors causing a failure, use the
getErrors()
method.
public java.lang.String[] getErrors()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |