public interface ApplicationAdapter extends HasResource
Modifier and Type | Method and Description |
---|---|
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.
|
List<Right> |
getFinishRights()
Return the list of finish rights used in this application.
|
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.
|
void |
getToolbarActions(ActivityInstance ai,
List<Pair<String,List<Pair<String,?>>>> actions)
Determine the toolbar actions shown in the detail view of an activity instance.
|
List<Element> |
getUserProperties(User u)
Returns the user properties a user can set.
|
String |
getVersion()
Returns the version of the application code.
|
void |
modifyDetailLinks(KeyedList<String,Link> links,
StringBuilder title,
ProcessInstance pi,
ActivityInstance ai)
You can modify the title and links in the detail view of the process.
|
void |
modifyDetailPanes(KeyedList<String,NavigationTreeNode> nodes,
StringBuilder title,
ProcessInstance pi,
ActivityInstance ai)
You can modify the title and tabs 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)
An activity is aborted (process is aborted, activity cancelled by goBack)
|
void |
onAddDocument(ProcessInstance pi,
DMSFolder f,
DMSObject o)
Called before a document is added to a process (incl. subfolders) of this application.
|
void |
onAnonymize(User u,
String newId)
The method is called when the anonymize function is called for a user.
|
default void |
onApplicationInstall(Application appl)
This method is called on installation of an application.
|
default void |
onApplicationUninstall(Application appl)
This method is called on application uninstall (delete).
|
void |
onChangeAgent(ActivityInstance oldAi,
ActivityInstance newAi)
Change agent has been performed for an activity instance.
|
default void |
onCopyProcess(ProcessInstance originPI,
ProcessInstance newPI)
This method is called when task function "Create process copy" is executed.
|
default void |
onFinishNotComplete(ActivityInstance ai)
The method is called when the user cancels the post-finish selection dialog (e.g. select choice-branch, follow-up-user etc.)
|
List<Pair<ActivityInstance,List<ActivityInstance>>> |
onListPreviousSteps(ActivityInstance ai,
List<Pair<ActivityInstance,List<ActivityInstance>>> list)
Called when "go back" is executed.
|
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 (incl. subfolders) 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.
|
String |
upgrade(Application appl)
The method is called when the application server detects that the version of the application
in the database is different from the version of the code.
|
getResource, localizeNames, setApplication
String getNewProcessId(ProcessInstance pi)
pi
- the process instance for which the id should be generatedvoid onSeeLater(ActivityInstance ai)
ai
- an activity instancevoid onSeeAgain(ActivityInstance ai)
ai
- an activity instancevoid onChangeAgent(ActivityInstance oldAi, ActivityInstance newAi)
oldAi
- the old activity instancenewAi
- the new activity instanceList<Pair<ActivityInstance,List<ActivityInstance>>> onListPreviousSteps(ActivityInstance ai, List<Pair<ActivityInstance,List<ActivityInstance>>> list)
ai
- the activity instance the process is currently inlist
- a list of Pairs. The first element of the pair is a previous activity instance, the second
is a list of activities that must be aborted when going back to this step (for example siblings in a
parallelism).void onAbort(ProcessInstance pi)
pi
- the aborted activity instance, may be a process instance, may be an activity instancevoid onReactivate(ProcessInstance pi)
pi
- the process instancevoid onAddDocument(ProcessInstance pi, DMSFolder f, DMSObject o)
pi
- the process instancef
- the folder where the object will be addedo
- the object to addvoid onRemoveDocument(ProcessInstance pi, DMSFolder f, DMSObject o)
pi
- the process instancef
- the foldero
- the object to addvoid notifyUser(User u, ActivityInstance ai)
u
- the recipientai
- an activity instanceList<Element> getUserProperties(User u)
u
- The user whose properties should be returnedRight getFinishRight(ActivityInstance ai)
ai
- the new ActivityInstanceList<Right> getFinishRights()
com.groiss.wf.distri.Packer getPacker()
void modifyDetailLinks(KeyedList<String,Link> links, StringBuilder title, ProcessInstance pi, ActivityInstance ai)
links
- a keyed list of Link objects, keys are 'form<index>', 'documents', 'notes', 'history', 'process'title
- pi
- the process instanceai
- the activity instance, may be null (for example when called from search)void modifyDetailPanes(KeyedList<String,NavigationTreeNode> nodes, StringBuilder title, ProcessInstance pi, ActivityInstance ai)
nodes
- a list of configured nodes, the keys are the node ids, for example 'history'.
For forms the keys are 'form:<fid>' where fid is the id of the form in the process.
The nodes are copied from the original ones and therefore mutable. Additional attributes can be
set via NavigationTreeNode.setAttrib(String, Object)
.title
- HTML text can be added to the StringBuilder, for getting the standard appearance, use the following structure:ai
- activity instance object, may be nullvoid getToolbarActions(ActivityInstance ai, List<Pair<String,List<Pair<String,?>>>> actions)
ai
- the activity instanceactions
- the actions configured in the worklistString getVersion()
String upgrade(Application appl) throws Exception
Exception
void onAnonymize(User u, String newId)
u
- newId
- the id after anonymizedefault void onFinishNotComplete(ActivityInstance ai)
ai
- the last task that needs to be finisheddefault void onApplicationInstall(Application appl)
appl
- the application objectdefault void onApplicationUninstall(Application appl)
appl
- the application objectdefault void onCopyProcess(ProcessInstance originPI, ProcessInstance newPI)
originPI
- the ProcessInstance
where "Create process copy" has been callednewPI
- the ProcessInstance
which has been created by "Create process copy"@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.