|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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(java.lang.String name)
Cancel the activity: finishs the activity with the given task id |
void |
cancelProcess()
Cancel the whole process. |
boolean |
evaluateXPath(java.lang.String xpathExpression)
evaluates the given XPath 1.0 expression |
void |
finishActivity(java.lang.String label)
finish a task, an andpar, orpar, or a parfor. |
Page |
finishIf(javax.servlet.http.HttpServletRequest req)
|
java.lang.Object |
getFormFieldValue(java.lang.String formfield)
Returns the value of a formfield. |
boolean |
isActive(java.lang.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(java.lang.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(java.lang.String n,
java.lang.String mode)
Expression in andjoin for implementing generalized andjoin |
boolean |
lock(java.lang.String name)
Add a lock to the process instance. |
boolean |
log(java.lang.String message,
java.lang.String level)
writes the argument on the log |
boolean |
manualIf()
|
void |
parforJoin(java.lang.String n,
java.lang.String mode)
Expression in end parfor for implementing generalized parfor join |
void |
setFieldToAgent(java.lang.String formfield)
Set a form field to the current agent |
void |
setFieldToOU(java.lang.String formfield)
Set a form field to the home org unit of agent |
void |
setFieldToValue(java.lang.String formfield,
java.lang.String value)
Set a form field to the home org unit of agent |
boolean |
unlock(java.lang.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(java.lang.String name) throws java.lang.Exception
name
- name of the lock
java.lang.Exception
public boolean unlock(java.lang.String name) throws java.lang.Exception
name
- name of the lock
java.lang.Exception
public void cancelActivity(java.lang.String name)
name
- the id of a task
java.lang.Exception
public void cancelProcess()
java.lang.Exception
public void autoTake() throws java.lang.Exception
java.lang.Exception
public boolean log(java.lang.String message, java.lang.String level)
message
- the messagelevel
- the log level
true
public void setFieldToAgent(java.lang.String formfield)
formfield
- the form field: formid "." fieldamepublic void setFieldToOU(java.lang.String formfield)
formfield
- the form field: formid "." fieldamepublic java.lang.Object getFormFieldValue(java.lang.String formfield)
formfield
- in the syntax formid "." fieldname
public void setFieldToValue(java.lang.String formfield, java.lang.String value) throws java.lang.Exception
formfield
- the form field: formid "." fieldame
java.lang.Exception
public boolean isStartAgent(java.lang.String formfield)
formfield
- the form field in syntax: formid "." fieldamepublic boolean isActive(java.lang.String task)
task
- the id of a task object
public void join(java.lang.String n, java.lang.String mode)
n
- number of branches that must be completedmode
- either cancel or none. every other value is taken as nonepublic void parforJoin(java.lang.String n, java.lang.String mode)
n
- number of branches that must be completedmode
- either cancel or none. every other value is taken as nonepublic void finishActivity(java.lang.String label)
label
- the label of a steppublic boolean isTrue()
public boolean isFalse()
public boolean manualIf()
public Page finishIf(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public boolean evaluateXPath(java.lang.String xpathExpression) throws java.lang.Exception
xpathExpression
-
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |