|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.wf.SystemAction
public class SystemAction
This class provides some methods useful for preprocessing and postconditions.
| Constructor Summary | |
|---|---|
SystemAction()
|
|
| Method Summary | |
|---|---|
void |
autoTake()
This method performs a take when the activity instance is assigned to a role and there is exactly one user having this role. |
void |
cancelActivity(String name)
Cancel the activity: finishs the activity with the given task id |
void |
cancelProcess()
Cancel the whole process. |
boolean |
evaluateXPath(String xpathExpression)
evaluates the given XPath 1.0 expression |
void |
finishActivity(String label)
finish a task, an andpar, orpar, or a parfor. |
Page |
finishIf(HttpServletRequest req)
|
Object |
getFormFieldValue(String formfield)
Returns the value of a formfield. |
boolean |
isActive(String task)
Returns true if there is an active or idle or suspended activity instance in the current process that has the task with the given id. |
boolean |
isFalse()
Use as condition dummy, returns false. |
boolean |
isStartAgent(String formfield)
This method returns true if the formfield contains a user object and the user is the start agent of the current process. |
boolean |
isTrue()
Use as condition dummy, always returns true. |
void |
join(String n,
String mode)
Expression in andjoin for implementing generalized andjoin |
boolean |
lock(String name)
Add a lock to the process instance. |
boolean |
log(String message,
String level)
writes the argument on the log |
boolean |
manualIf()
|
void |
parforJoin(String n,
String mode)
Expression in end parfor for implementing generalized parfor join |
void |
setFieldToAgent(String formfield)
Set a form field to the current agent |
void |
setFieldToOU(String formfield)
Set a form field to the home org unit of agent |
void |
setFieldToValue(String formfield,
String value)
Set a form field to the home org unit of agent |
boolean |
unlock(String name)
Removes the lock. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SystemAction()
| Method Detail |
|---|
public boolean lock(String name)
throws Exception
name - name of the lock
Exception
public boolean unlock(String name)
throws Exception
name - name of the lock
Exceptionpublic void cancelActivity(String name)
name - the id of a task
Exceptionpublic void cancelProcess()
Exception
public void autoTake()
throws Exception
Exception
public boolean log(String message,
String level)
message - the messagelevel - the log level
truepublic void setFieldToAgent(String formfield)
formfield - the form field: formid "." fieldamepublic void setFieldToOU(String formfield)
formfield - the form field: formid "." fieldamepublic Object getFormFieldValue(String formfield)
formfield - in the syntax formid "." fieldname
public void setFieldToValue(String formfield,
String value)
throws Exception
formfield - the form field: formid "." fieldame
Exceptionpublic boolean isStartAgent(String formfield)
formfield - the form field in syntax: formid "." fieldamepublic boolean isActive(String task)
task - the id of a task object
public void join(String n,
String mode)
n - number of branches that must be completedmode - either cancel or none. every other value is taken as none
public void parforJoin(String n,
String mode)
n - number of branches that must be completedmode - either cancel or none. every other value is taken as nonepublic void finishActivity(String label)
label - the label of a steppublic boolean isTrue()
public boolean isFalse()
public boolean manualIf()
public Page finishIf(HttpServletRequest req)
throws Exception
Exception
public boolean evaluateXPath(String xpathExpression)
throws Exception
xpathExpression -
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||