|
|||||||||
| 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(java.lang.String name)
Cancel the activity: finishs the activity with the given task id |
void |
cancelProcess()
Cancel the whole process. |
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 |
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)
throws java.lang.Exception
name - the id of a task
java.lang.Exception
public void cancelProcess()
throws java.lang.Exception
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)
throws java.lang.Exception
formfield - the form field: formid "." fieldame
java.lang.Exception
public void setFieldToOU(java.lang.String formfield)
throws java.lang.Exception
formfield - the form field: formid "." fieldame
java.lang.Exception
public void setFieldToValue(java.lang.String formfield,
java.lang.String value)
throws java.lang.Exception
formfield - the form field: formid "." fieldame
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||