|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.wf.DefaultApplicationAdapter
public class DefaultApplicationAdapter
Default implementation for ApplicationAdapter
| Field Summary | |
|---|---|
static java.lang.String |
idPrefix
|
| Constructor Summary | |
|---|---|
DefaultApplicationAdapter()
|
|
| Method Summary | |
|---|---|
Right |
getFinishRight(ActivityInstance ai)
Returns the right which is needed for sending the process to next agent The system checks if the sending user has this right for the agent and org. |
java.util.List |
getFinishRights()
Return the list of finish rights used in this application. |
java.lang.String |
getNewProcessId(ProcessInstance pi)
The method is called whenever a new process Id is needed |
com.groiss.wf.distri.Packer |
getPacker()
Return the Packer used for distributing activities of this application. |
Resource |
getResource()
|
java.util.Vector |
getUserProperties(User u)
Returns the user properties a user can set. |
boolean |
localizeNames()
Returns true when names of tasks or roles should be localized. |
void |
modifyDetailLinks(KeyedList links,
java.lang.StringBuffer title,
ProcessInstance pi,
ActivityInstance ai)
You can modify the title and links in the detail view of the process. |
void |
notifyUser(User u,
ActivityInstance ai)
The method is called when an email-notification about a new worklist entry is sent. |
void |
onAbort(ProcessInstance pi)
A process is aborted |
void |
onAddDocument(ProcessInstance pi,
DMSFolder f,
DMSObject o)
Called when a document is added to a process of this application. |
void |
onReactivate(ProcessInstance pi)
A process is reactivated |
void |
onRemoveDocument(ProcessInstance pi,
DMSFolder f,
DMSObject o)
Called when a document is removed from a process of this application. |
void |
onSeeAgain(ActivityInstance ai)
An ActivityInstance is taken out of the suspension list. |
void |
onSeeLater(ActivityInstance ai)
An ActivityInstance is put into the suspension list. |
void |
setApplication(Application appl)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String idPrefix
| Constructor Detail |
|---|
public DefaultApplicationAdapter()
| Method Detail |
|---|
public void setApplication(Application appl)
setApplication in interface HasResource
public java.lang.String getNewProcessId(ProcessInstance pi)
throws java.lang.Exception
ApplicationAdapter
getNewProcessId in interface ApplicationAdapterpi - the process instance for which the id should be generated
java.lang.Exceptionpublic void onSeeLater(ActivityInstance ai)
ApplicationAdapter
onSeeLater in interface ApplicationAdapterai - an activity instancepublic void onSeeAgain(ActivityInstance ai)
ApplicationAdapter
onSeeAgain in interface ApplicationAdapterai - an activity instance
public void onAbort(ProcessInstance pi)
throws java.lang.Exception
ApplicationAdapter
onAbort in interface ApplicationAdapterpi - the process instance
java.lang.Exception
public void onReactivate(ProcessInstance pi)
throws java.lang.Exception
ApplicationAdapter
onReactivate in interface ApplicationAdapterpi - the process instance
java.lang.Exception
public void onAddDocument(ProcessInstance pi,
DMSFolder f,
DMSObject o)
throws java.lang.Exception
ApplicationAdapter
onAddDocument in interface ApplicationAdapterpi - the process instancef - the folder where the object will be addedo - the object to add
java.lang.Exception
public void onRemoveDocument(ProcessInstance pi,
DMSFolder f,
DMSObject o)
throws java.lang.Exception
ApplicationAdapter
onRemoveDocument in interface ApplicationAdapterpi - the process instancef - the foldero - the object to add
java.lang.Exception
public void notifyUser(User u,
ActivityInstance ai)
throws java.lang.Exception
ApplicationAdapter
notifyUser in interface ApplicationAdapteru - the recipientai - an activity instance
java.lang.Exceptionpublic java.util.Vector getUserProperties(User u)
ApplicationAdapter
getUserProperties in interface ApplicationAdapteru - The user whose properties should be returned
public boolean localizeNames()
HasResource
localizeNames in interface HasResourcepublic Resource getResource()
getResource in interface HasResourcepublic Right getFinishRight(ActivityInstance ai)
ApplicationAdapter
getFinishRight in interface ApplicationAdapterai - the new ActivityInstancepublic java.util.List getFinishRights()
ApplicationAdapter
getFinishRights in interface ApplicationAdapterpublic com.groiss.wf.distri.Packer getPacker()
ApplicationAdapter
getPacker in interface ApplicationAdapter
public void modifyDetailLinks(KeyedList links,
java.lang.StringBuffer title,
ProcessInstance pi,
ActivityInstance ai)
throws java.lang.Exception
ApplicationAdapter
modifyDetailLinks in interface ApplicationAdapterlinks - a keyed list of Link objects, keys are form{i}, documents, notes, history, processpi - the process instanceai - the activity instance, may be null (for example when called from search)
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||