Package com.groiss.wf
Interface ActivityInstance
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
ProcessInstance
The activity instance represents a step of a process instance.
This interface contains only getters, use the WfEngine interface
to manipulate this object.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Defines the last action of the activity. -
Field Summary
Modifier and TypeFieldDescriptionstatic final short
Instance has been aborted.static final short
Instance is active.static final int
static final int
An andjoin node, end of andpar.static final int
batchstatic final int
A begin node.static final int
A branch node.static final int
Start of a choice construct.static final int
A branch of a choice.static final short
Instance has been compensated.static final short
Step is currently beeing compensatedstatic final int
An else-if node.static final int
An end node.static final int
A branch end node.static final int
static final int
end scopestatic final int
parallel for endstatic final short
Step is in error statestatic final int
An exit-when node.static final short
Instance is finished.static final int
A goto node.static final int
An if node.static final int
A loop node, starts a loop construct.static final short
The user sees the instance via an augmented workliststatic final short
The user sees the instance because of assignment to himself or one of his rolesstatic final short
The user sees the instance via substitutionstatic final short
The origin of the instance is unknownstatic final int
An orjoin node, end of orpar.static final int
A par node, start of orpar or andpar.static final int
parallel forstatic final int
A (sub)process node.static final int
start a new scopestatic final short
Instance is in idle state.static final short
Instance is in suspension list.static final int
A system step which is translated in another wdl expression, e.g. raiseEventstatic final int
A system task.static final int
A system step which makes no finishstatic final int
A task node.static final int
static final short
Instance is finished, but post finish actions are pending (for example selection of choice path).static final int
A while node.static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptiongetAgent()
Returns the agent of the objectReturns the application the activity belogs to.Returns the descriptionReturns the duedateReturns the finish date.getId()
Returns the id of the activity instance.Returns a enum for the last action that changed the state of this ailong
getOid()
Returns the unique oid of the object.Returns the organizational unit.short
Returns the origin of this ActivityInstance.Returns the parent node in the process execution graph, normally the process instance, but for example in parfors, the parfor nodeReturns the process definition the activity instance belongs to.Returns the process instance the activity instance belongs to.Returns the start date.short
Returns the status of the activity instance.Returns the step-agent of the object.Get the label of the step the activity instance belongs to.Get the name of the step the activity belongs to.getTaken()
Returns the date when a user has taken the activity.getTask()
Returns the taskint
getType()
Returns the type of the activity instance.Returns the UserFolder of the ActivityInstance.boolean
Returns true if the activity instance has been created in a go back action.boolean
Returns true if the activity instance has been created in a reactivate action.Get all SystemNotes, which are attached to this activityinstance
-
Field Details
-
ALL
static final int ALL- See Also:
-
BEGIN
static final int BEGINA begin node.- See Also:
-
END
static final int ENDAn end node.- See Also:
-
IF
static final int IFAn if node.- See Also:
-
ELSIF
static final int ELSIFAn else-if node.- See Also:
-
LOOP
static final int LOOPA loop node, starts a loop construct.- See Also:
-
EXIT_WHEN
static final int EXIT_WHENAn exit-when node.- See Also:
-
WHILE
static final int WHILEA while node.- See Also:
-
PAR
static final int PARA par node, start of orpar or andpar.- See Also:
-
ANDJOIN
static final int ANDJOINAn andjoin node, end of andpar.- See Also:
-
ORJOIN
static final int ORJOINAn orjoin node, end of orpar.- See Also:
-
CHOICE
static final int CHOICEStart of a choice construct.- See Also:
-
CHOICE_BRANCH
static final int CHOICE_BRANCHA branch of a choice.- See Also:
-
GOTO
static final int GOTOA goto node.- See Also:
-
TASK
static final int TASKA task node.- See Also:
-
SYSTEM_TASK
static final int SYSTEM_TASKA system task.- See Also:
-
PROCESS
static final int PROCESSA (sub)process node.- See Also:
-
BRANCH
static final int BRANCHA branch node.- See Also:
-
END_BRANCH
static final int END_BRANCHA branch end node.- See Also:
-
SYSTEM_INTERN
static final int SYSTEM_INTERNA system step which is translated in another wdl expression, e.g. raiseEvent- See Also:
-
SYSTEM_WAIT
static final int SYSTEM_WAITA system step which makes no finish- See Also:
-
PARFOR
static final int PARFORparallel for- See Also:
-
ENDFOR
static final int ENDFORparallel for end- See Also:
-
BATCH
static final int BATCHbatch- See Also:
-
SCOPE
static final int SCOPEstart a new scope- See Also:
-
END_SCOPE
static final int END_SCOPEend scope- See Also:
-
END_COMPENSATION
static final int END_COMPENSATION- See Also:
-
WS_INVOKE
static final int WS_INVOKE- See Also:
-
WS_RECEIVE
static final int WS_RECEIVE- See Also:
-
WS_REPLY
static final int WS_REPLY- See Also:
-
WAIT
static final int WAIT- See Also:
-
STARTED
static final short STARTEDInstance is in idle state.- See Also:
-
ACTIVE
static final short ACTIVEInstance is active.- See Also:
-
SUSPENDED
static final short SUSPENDEDInstance is in suspension list.- See Also:
-
FINISHED
static final short FINISHEDInstance is finished.- See Also:
-
ABORTED
static final short ABORTEDInstance has been aborted.- See Also:
-
WAITING
static final short WAITINGInstance is finished, but post finish actions are pending (for example selection of choice path).- See Also:
-
COMPENSATED
static final short COMPENSATEDInstance has been compensated.- See Also:
-
COMPENSATING
static final short COMPENSATINGStep is currently beeing compensated- See Also:
-
ERROR
static final short ERRORStep is in error state- See Also:
-
ORIGIN_UNKNOWN
static final short ORIGIN_UNKNOWNThe origin of the instance is unknown- See Also:
-
ORIGIN_DIRECT
static final short ORIGIN_DIRECTThe user sees the instance because of assignment to himself or one of his roles- See Also:
-
ORIGIN_SUBSTITUTION
static final short ORIGIN_SUBSTITUTIONThe user sees the instance via substitution- See Also:
-
ORIGIN_AUGMENTATION
static final short ORIGIN_AUGMENTATIONThe user sees the instance via an augmented worklist- See Also:
-
-
Method Details
-
getOid
long getOid()Returns the unique oid of the object.- Returns:
- the oid
-
getAgent
Agent getAgent()Returns the agent of the object- Returns:
- the agent (User or Role)
-
getStepAgent
Agent getStepAgent()Returns the step-agent of the object. This is the agent, as it appears in the process definition, normally a role- Returns:
- the step-agent (User or Role)
-
getStarted
Date getStarted()Returns the start date.- Returns:
- a date object
-
getTaken
Date getTaken()Returns the date when a user has taken the activity.- Returns:
- a date object or null if not yet taken.
-
getFinished
Date getFinished()Returns the finish date.- Returns:
- a date object, is null when the activity is not finished.
-
getDuedate
Date getDuedate()Returns the duedate- Returns:
- a date, null when no duedate is set.
-
getDescription
String getDescription()Returns the description- Returns:
- a string object, may be null
-
getStatus
short getStatus()Returns the status of the activity instance. See the programming guide for the possible values.- Returns:
- the status
-
getOrgUnit
OrgUnit getOrgUnit()Returns the organizational unit.- Returns:
- the OrgUnit
-
getApplication
Application getApplication()Returns the application the activity belogs to.- Returns:
- the application
-
getType
int getType()Returns the type of the activity instance.- Returns:
- the type
-
getTask
Task getTask()Returns the task- Returns:
- the task, may be null if activity instance is not of type task.
-
getProcessDefinition
ProcessDefinition getProcessDefinition()Returns the process definition the activity instance belongs to.- Returns:
- the process definition
-
getProcessInstance
ProcessInstance getProcessInstance()Returns the process instance the activity instance belongs to.- Returns:
- the process instance
-
getStepName
String getStepName()Get the name of the step the activity belongs to.- Returns:
- the step name, may be null.
-
getStepLabel
String getStepLabel()Get the label of the step the activity instance belongs to.- Returns:
- the step label, may be null.
-
getParent
ActivityInstance getParent()Returns the parent node in the process execution graph, normally the process instance, but for example in parfors, the parfor node- Returns:
- an activity instance
-
getOrigin
short getOrigin()Returns the origin of this ActivityInstance. Works only when the Instance was retrieved via the WorklistCache.- Returns:
ORIGIN_UNKNOWN
,ORIGIN_DIRECT
,ORIGIN_SUBSTITUTION
, orORIGIN_AUGMENTATION
-
isInGoBack
boolean isInGoBack()Returns true if the activity instance has been created in a go back action. -
isInReactivate
boolean isInReactivate()Returns true if the activity instance has been created in a reactivate action. -
getId
String getId()Returns the id of the activity instance.- Returns:
- the id
-
listSystemNotes
Get all SystemNotes, which are attached to this activityinstance- Returns:
- a list of systemnotes attached to this activityinstance
-
getLastAction
ActivityInstance.LastAction getLastAction()Returns a enum for the last action that changed the state of this ai -
getUserFolder
UserFolder getUserFolder()Returns the UserFolder of the ActivityInstance.- Returns:
- the UserFolder the ActivityInstance is in
-