|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.store.PersistentObject com.groiss.wf.batch.BatchJob
public class BatchJob
Captures state information about batch Jobs. Each batchjob is in one of four normal lifecycle states or one of two error states. First it is CREATED, then it is STARTED, then it is FINISHED and afterwards it is COMPLETED. It may also be manually ABORTED.
Field Summary | |
---|---|
static int |
ABORTED
State for aborted instances. |
static int |
COMPLETED
State for completed instances. |
static int |
COMPLETEDERRORHANDLING
error handling has been completed |
static int |
CREATED
Initial state for the instance. |
static int |
FINISHED
State for finished instances. |
static int |
FINISHERROR
State for instances which could not be finished by the BatchManager. |
static int |
FINISHERRORHANDLING
error handling for batchjobs which couln't be finished is currently active |
static int |
FINISHERRORHANDLINGFAILED
error handling is definied for this batchjob, but it did fail to start |
static int |
FINISHERRORHANDLINGPENDING
error handling for batchjobs which couln't be finished will be started soon |
static int |
STARTED
State for started instances. |
static int |
STARTERROR
State for instances which could not be started. |
static int |
STARTERRORHANDLING
error handling for batchjobs which couln't be started is currently active |
static int |
STARTERRORHANDLINGFAILED
error handling is definied for this batchjob, but it did fail to start |
static int |
STARTERRORHANDLINGPENDING
error handling for batchjobs which couln't be started will be started soon |
Fields inherited from class com.groiss.store.PersistentObject |
---|
filled, oid |
Constructor Summary | |
---|---|
|
BatchJob()
Create an empty BatchJob instance. |
protected |
BatchJob(java.lang.String jobtype,
int jobstate,
ActivityInstance context,
java.lang.String params)
Create a BatchJob instance. |
Method Summary | |
---|---|
java.util.Date |
getCompletiontime()
Get the time the instance was completed. |
ActivityInstance |
getContext()
The process context in which the instance was submitted. |
java.util.Date |
getCreationtime()
Get the time the instance was created. |
java.util.Date |
getFinishtime()
Get the time the instance was finished. |
int |
getJobstate()
The state of the instance. |
java.lang.String |
getJobtype()
The jobtype of the instance. |
java.lang.String |
getParams()
Get the parameters for the job execution. |
int |
getResultcode()
Get the resultcode of the instance. |
java.lang.String |
getResultvalues()
Get the resultvalues of the instance. |
java.util.Date |
getStarttime()
Get the time the instance was started or is about to be started. |
java.lang.String |
getStateName()
|
java.lang.String |
getTableName()
This method must return the table name of the database table in which this persistent object is stored. |
boolean |
isAutofinish()
Determine whether the instance is to be finished automatically. |
boolean |
isGoBackOnError()
Determine whether an error during start of the instance will force the engine to go back to the latest interactive step. |
boolean |
isNewthread()
Determine whether the instance is to be started in a new thread. |
boolean |
isStartnow()
Determine whether the instance is to be started immediately. |
void |
setAutofinish(boolean autofinish)
Set the autofinish property of the instance. |
void |
setCompletiontime(java.util.Date completiontime)
|
void |
setContext(ActivityInstance context)
|
void |
setCreationtime(java.util.Date creationtime)
|
void |
setFinishtime(java.util.Date finishtime)
|
void |
setGoBackOnError(boolean gobackonerror)
Set the gobackonerror property of the instance. |
void |
setJobstate(int jobstate)
|
void |
setJobtype(java.lang.String jobtype)
|
void |
setNewthread(boolean newthread)
Set the newthread property of the instance. |
void |
setParams(java.lang.String params)
Set the params field of the instance. |
void |
setResultcode(int resultcode)
Set the resultcode of the instance. |
void |
setResultvalues(java.lang.String resultvalues)
Set the resultvalues. |
void |
setStartnow(boolean startnow)
Set the startnow property of the instance. |
void |
setStarttime(java.util.Date starttime)
Set the time the instance shoud be started. |
java.lang.String |
toString()
|
Methods inherited from class com.groiss.store.PersistentObject |
---|
clone, dbFields, equals, getKey, getOid, getStore, getValue, hashCode, isFilled, onDelete, onInsert, onRead, onUpdate, setFilled, setOid, setStore |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CREATED
public static final int STARTED
public static final int FINISHED
public static final int COMPLETED
public static final int ABORTED
public static final int STARTERROR
public static final int FINISHERROR
public static final int STARTERRORHANDLING
public static final int FINISHERRORHANDLING
public static final int COMPLETEDERRORHANDLING
public static final int STARTERRORHANDLINGPENDING
public static final int FINISHERRORHANDLINGPENDING
public static final int STARTERRORHANDLINGFAILED
public static final int FINISHERRORHANDLINGFAILED
Constructor Detail |
---|
protected BatchJob(java.lang.String jobtype, int jobstate, ActivityInstance context, java.lang.String params)
jobtype
- a Stringjobstate
- an intcontext
- a ActivityInstanceparams
- a Stringpublic BatchJob()
Method Detail |
---|
public java.lang.String getTableName()
Persistent
public void setStartnow(boolean startnow)
public boolean isStartnow()
public void setAutofinish(boolean autofinish)
public boolean isAutofinish()
BatchAdapter.doStart(com.groiss.wf.batch.BatchJob)
public void setNewthread(boolean newthread)
public boolean isNewthread()
public void setGoBackOnError(boolean gobackonerror)
public boolean isGoBackOnError()
public void setJobtype(java.lang.String jobtype)
public java.lang.String getJobtype()
public void setJobstate(int jobstate)
public int getJobstate()
public void setContext(ActivityInstance context)
public ActivityInstance getContext()
public void setParams(java.lang.String params)
public java.lang.String getParams()
public void setResultvalues(java.lang.String resultvalues)
resultvalues
- a Stringpublic java.lang.String getResultvalues()
public void setResultcode(int resultcode)
resultcode
- an int representing a coded result of the instances executionpublic int getResultcode()
public void setCreationtime(java.util.Date creationtime)
public java.util.Date getCreationtime()
public void setStarttime(java.util.Date starttime)
public java.util.Date getStarttime()
public void setFinishtime(java.util.Date finishtime)
public java.util.Date getFinishtime()
public void setCompletiontime(java.util.Date completiontime)
public java.util.Date getCompletiontime()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getStateName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |