public interface RemoteWfEngine
extends java.rmi.Remote
Most methods have an implicit user parameter. This is initialized as the ThreadPrincipal from the ThreadContext when the WfEngine object is created.
Modifier and Type | Field and Description |
---|---|
static short |
INVISIBLE |
static short |
MUST |
static short |
NO_ADDDEL |
static short |
READ_ONLY |
static short |
READ_WRITE |
static short |
TEXT |
Modifier and Type | Method and Description |
---|---|
void |
abort(ProcessInstance process)
Abort a process.
|
void |
abort(ProcessInstance process,
java.lang.String comment)
Abort a process and add a DMSNote with a generated Subject and a given comment.
|
void |
abortParforSiblings(ActivityInstance parfor)
Abort the running siblings of the current parfor instances.
|
void |
abortSiblings(ActivityInstance join)
Abort the siblings of the par branch.
|
void |
addAgent(ActivityInstance ai,
Agent a,
OrgUnit ou,
DMSNote note)
Add an agent which receives the process after the current agent
|
int |
addParforInstances(java.lang.String stepid,
ActivityInstance previous)
Start additional parfor branches for the given step.
|
void |
addSystemNote(ActivityInstance ai,
java.lang.String subject,
java.lang.String text)
Attach a note to an ActivityInstance.
|
void |
archive(ProcessInstance process)
Archive a process.
|
ActivityInstance |
changeAgent(ActivityInstance ai,
Agent a,
OrgUnit ou,
java.lang.String comment)
Give the activity instance to another agent.
|
void |
closePredecessor(ActivityInstance ai)
If the predecessor of ai was not finished completely (is in status WAITING) and the necessary
action is done now (for example setting the agent for ai) this method will complete it.
|
ActivityInstance |
copyTo(ActivityInstance ai,
User u)
Send a copy to another user.
|
ActivityInstance |
copyTo(ActivityInstance ai,
User u,
java.lang.String comment)
Send a copy to another user.
|
ProcessInstance |
createProcessInstance(ProcessDefinition p,
User u,
OrgUnit d,
java.util.Date duedate,
java.lang.String id)
Create a process instance.
|
ProcessInstance |
createProcessInstance(ProcessDefinition p,
User u,
OrgUnit d,
java.util.Date duedate,
java.lang.String id,
DMSForm f)
Create a process instance.
|
void |
filterByFolder(UserFolder uf,
java.util.List<ActivityInstance> ais)
Filter a list of ActivityInstances.
|
void |
finish(ActivityInstance ai)
Finsh an activity, the engine starts the next step.
|
void |
finishChoice(ActivityInstance ai)
Finishs a choice branch, abort the other branches.
|
java.util.List<ActivityInstance> |
getActiveTasks(ProcessInstance process)
Get the list of active activities of a process instance.
|
java.util.List<ActivityInstance> |
getActiveTasks(ProcessInstance process,
User u)
Get the list of active activities of a process instance assigned to a user.
|
java.util.List<ActivityInstance> |
getActivities(java.lang.String condition)
Find the activity instances with a given condition.
|
ActivityInstance |
getActivityInstance(long oid)
Find a activity instance from the given oid.
|
java.util.List<ActivityInstance> |
getActivityInstances(ProcessInstance process)
Get the list of all direct activity instances of a process instance.
|
java.util.List<ActivityInstance> |
getActivityInstances(ProcessInstance process,
boolean recursive,
boolean active,
int type,
java.lang.String steplabel)
Get a list of activity instances for a process instance
|
java.util.List<ActivityInstance> |
getActivityInstances(ProcessInstance process,
java.lang.String steplabel)
Get the list of direct activity instances of a particular step in a process.
|
java.util.List<ActivityInstance> |
getAllInteractiveTasks(ProcessInstance process)
Get the list of ALL active, interactive activities of a process instance.
|
java.util.List<java.util.List<ActivityInstance>> |
getChoiceSteps(ActivityInstance ai)
Use this method to get the possible choice branches when the process execution
reaches a choice.
|
ActivityInstance |
getContext()
Return the current activity instance.
|
java.util.List<DMSObject> |
getDocuments(ProcessInstance process)
Get the list of DMS objects (e.g. documents, folders) attached to a process.
|
java.util.Map<java.lang.String,java.lang.Short> |
getFieldModes(ActivityInstance ai,
DMSForm f)
Get field modes for form fields
|
java.util.Map<java.lang.String,java.lang.Short> |
getFieldModes(ActivityInstance ai,
DMSForm form,
DMSForm mainform,
java.lang.String id)
Get field modes for form fields and subforms
|
DMSForm |
getForm(ActivityInstance ai,
java.lang.String name)
Get a form of a process.
|
java.util.List<DMSForm> |
getForms(ProcessInstance process)
Get the forms of a process.
|
PersistentVersion |
getFormVersion(DMSForm form,
ActivityInstance ai)
Returns the version of the passed form in the context of the passed activity instance.
|
ProcessInstance |
getMainProcess(ActivityInstance ai)
Get the root of the activity instance tree
|
java.util.List<DMSNote> |
getNotes(ProcessInstance process)
Get the notes to a process instances
|
ProcessInstance |
getParent(ActivityInstance ai)
Get the process instance of the given activity instance.
|
ProcessInstance |
getProcess(DMSForm f)
Find the process instance where the given form is attached.
|
ProcessInstance |
getProcess(long oid)
Find a process instance from the given oid.
|
ProcessInstance |
getProcess(java.lang.String id)
Find a process instance with the given id.
|
ProcessDefinition |
getProcessDefinition(java.lang.String id)
Find a process definition with the given id and status=active, if more than one
is found, the process definition with the highest version number is returned.
|
ProcessDefinition |
getProcessDefinition(java.lang.String id,
int version)
Find a process definition with the given id and version.
|
java.util.List<ProcessInstance> |
getProcesses(java.lang.String condition)
Find the process instances with a given condition.
|
ProcessInstance |
getProcessFromForm(long formoid)
Find a process instance from the oid of a form.
|
java.util.List<ActivityInstance> |
getRoleSuspensionList(Application a)
Get the role suspension list of the current user.
|
java.util.List<ActivityInstance> |
getRoleWorklist(Application a)
Get the role worklist of the current user.
|
java.lang.String |
getServerProperty(java.lang.String prop)
Returns a property from the server
|
java.util.List<Pair<ProcessDefinition,java.util.List<Pair<com.dec.avw.core.Step,java.util.List<OrgUnit>>>>> |
getStartableProcDefs(Application appl)
List the process definitions of the given application, which are startable
for the user.
|
java.util.List<Pair<ProcessDefinition,java.util.List<OrgUnit>>> |
getStartableProcesses(Application appl)
Deprecated.
use getStartableProcDefs
|
RemoteStore |
getStore()
Return the underlying store.
|
java.util.List<ActivityInstance> |
getSuspensionList(Application a)
Get the personal suspension list of the current user.
|
java.util.List<Suspension> |
getSuspensions(ActivityInstance ai)
Find out when and how the activity instance was in the suspension list.
|
Task |
getTask(java.lang.String id)
Find a task with the given id and status=active, if more than one
is found, the task with the highest version number is returned.
|
Task |
getTask(java.lang.String id,
int version)
Find a task with the given id and version.
|
java.util.List<UserFolder> |
getUserFolders()
Get the list of UserFolders of the current user.
|
java.util.List<ActivityInstance> |
getWaitingList(Application a)
Get the list of waiting activities of the current user.
|
java.util.List<ActivityInstance> |
getWorklist(Application a,
boolean withRepr)
Get the worklist of the current user.
|
java.util.List<ActivityInstance> |
getWorkList(java.util.EnumSet<WorklistKind> wlKinds,
Application a)
Get a combined worklist of the combination (union) of the desired kinds for the current user.
|
java.util.List<ActivityInstance> |
getWorkList(WorklistKind wlKind,
Application a)
Get a worklist of the desired kind for the current user.
|
ActivityInstance |
goBack(ActivityInstance ai,
ActivityInstance ai2,
java.lang.String comment)
Go back to a previous step.
|
void |
goBackToLastInteractive(ActivityInstance ai,
java.lang.String comment) |
void |
gotoTask(ActivityInstance ai,
java.lang.String stepname,
Agent ag,
OrgUnit ou,
java.lang.String comment)
Goto another task.
|
void |
gotoTask(ProcessInstance process,
java.lang.String taskid,
Agent ag,
java.lang.String comment)
Deprecated.
the methodbehaves unpredictabe when more than one activity instance of the process is
active and when the task appears more than once in the process definition.
|
boolean |
hasDocuments(ProcessInstance process)
Has the process documents attached?
|
boolean |
hasNotes(ProcessInstance process)
Has the process notes attached?
|
boolean |
hasSeen(ActivityInstance ai)
Returns true if the ActivityInstance has been seen by the current user.
|
boolean |
isVisible(ActivityInstance ai)
Determines whether an ActivityInstance is visible for the current user.
|
java.util.List<PersistentVersion> |
listFormVersions(ActivityInstance ai)
Returns a list of form versions (at most one for each process form) which were made in the context
of the passed activity instance.
|
java.util.List<ActivityInstance> |
listPredecessors(ActivityInstance ai)
Return the list of predecessor steps of an activity instance.
|
java.util.List<Pair<ActivityInstance,java.util.List<ActivityInstance>>> |
listPreviousSteps(ActivityInstance ai)
List the previous steps of the process (possible go back targets).
|
java.util.List<ProcessDefinition> |
listProcessDefinitions(Application appl)
List the process definitions of the given application
|
java.util.List<ActivityInstance> |
listSuccessors(ActivityInstance ai)
Return the list of successor steps of an activity instance.
|
ActivityInstance |
makeBranch(ProcessInstance process,
Task t,
Agent a,
OrgUnit d)
Insert a new step to the running process.
|
void |
makeBranch(ProcessInstance process,
Task t,
Agent a,
OrgUnit d,
java.util.List<java.lang.String> forms)
Deprecated.
use method without form argument
|
ActivityInstance |
makeVersion(ActivityInstance ai,
java.lang.String desc,
boolean withDocs)
Versions the passed activity instance, the process forms and the documents
(optional) and returns a new activity instance which is a copy of the passed one.
|
java.util.Map<ActivityInstance,UserFolder> |
mapToUserFolders(java.util.List<ActivityInstance> ais)
Map a list of ActivityInstances to their corresponding UserFolders.
|
void |
propagateChange(ActivityInstance ai)
Inform the system that a change to an ActivityInstance has been made.
|
void |
reactivate(ProcessInstance process)
Reactivate a process.
|
void |
reactivate(ProcessInstance process,
java.lang.String comment)
Reactivate a process.
|
void |
reactivateAndTake(ProcessInstance process,
java.lang.String comment)
Reactivate a process and take the reactivated tasks.
|
void |
refreshWLCache(User u)
Refresh the organizational data in the WorklistCache for
a particular user.
|
void |
refreshWLCacheOrgData()
Refresh the organizational data in the worklist cache.
|
void |
seeAgain(ActivityInstance ai)
Move the activity instance from the suspension list to the worklist.
|
void |
seeLater(ActivityInstance ai,
java.util.Date d)
Move the activity instance from the worklist to the suspension list.
|
void |
seeLater(ActivityInstance ai,
java.util.Date d,
java.lang.String description)
Move the activity instance from the worklist to the suspension list.
|
void |
setAgent(ActivityInstance ai,
Agent a)
Give the activity instance to another agent.
|
void |
setCheckedOut(ActivityInstance ai,
boolean state)
Set the activityInstance as checcked out or in (i.e. is on mobile server)
|
void |
setContext(ActivityInstance ai) |
void |
setDescription(ActivityInstance ai,
java.lang.String descr)
Set the description of an activity instance.
|
void |
setDuedate(ActivityInstance ai,
java.util.Date d)
Set the duedate of the activity instance.
|
void |
setFinished(ActivityInstance ai)
Set the status of the activity instance to FINISHED.
|
void |
setId(ProcessInstance pi,
java.lang.String s)
Set the id of the process instance.
|
void |
setOrgUnit(ActivityInstance ai,
OrgUnit d)
Change the organizational unit of a process.
|
void |
setPriority(ProcessInstance pi,
int priority)
Set the priority of the process instance.
|
void |
setSeen(ActivityInstance ai,
boolean seen)
Set the given ActivityInstance to seen/unseen for the current user.
|
void |
setStepAgent(ActivityInstance ai,
Agent a)
Set the step-agent of the activity instance to another agent.
|
void |
setSubject(ProcessInstance process)
Set the subject of the process instance according to the definition in the
process definition.
|
void |
setSubjectToString(ProcessInstance process,
java.lang.String str)
Set the subject of the process instance o the given string value.
|
void |
start(ProcessInstance pi)
Start a process instance, which was previously created, but not started.
|
ProcessInstance |
startProcess(ProcessDefinition p,
User u,
OrgUnit d,
java.util.Date duedate,
java.lang.String id)
Start a process.
|
ProcessInstance |
startProcess(ProcessDefinition p,
User u,
OrgUnit d,
java.util.Date duedate,
java.lang.String id,
DMSForm f)
Start a process.
|
ActivityInstance |
take(ActivityInstance ai)
Take an activity: move it from the role-worklist to the worklist.
|
ActivityInstance |
untake(ActivityInstance ai)
Put back an activity: move it from the worklist to the role-worklist.
|
void |
updateForm(DMSForm f)
Update the form (make the changes persistent).
|
static final short INVISIBLE
static final short READ_ONLY
static final short READ_WRITE
static final short TEXT
static final short MUST
static final short NO_ADDDEL
RemoteStore getStore() throws java.rmi.RemoteException
java.rmi.RemoteException
ProcessDefinition getProcessDefinition(java.lang.String id) throws java.rmi.RemoteException
id
- the id of the processjava.rmi.RemoteException
ProcessDefinition getProcessDefinition(java.lang.String id, int version) throws java.rmi.RemoteException
id
- the id of the processversion
- the version of the processjava.rmi.RemoteException
java.util.List<ProcessDefinition> listProcessDefinitions(Application appl) throws java.rmi.RemoteException
appl
- the applicationjava.rmi.RemoteException
@Deprecated java.util.List<Pair<ProcessDefinition,java.util.List<OrgUnit>>> getStartableProcesses(Application appl) throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.List<Pair<ProcessDefinition,java.util.List<Pair<com.dec.avw.core.Step,java.util.List<OrgUnit>>>>> getStartableProcDefs(Application appl) throws java.rmi.RemoteException
optional
- application restrictionjava.rmi.RemoteException
Task getTask(java.lang.String id) throws java.rmi.RemoteException
id
- the id of the taskjava.rmi.RemoteException
Task getTask(java.lang.String id, int version) throws java.rmi.RemoteException
id
- the id of the taskversion
- the version of the taskjava.rmi.RemoteException
ProcessInstance startProcess(ProcessDefinition p, User u, OrgUnit d, java.util.Date duedate, java.lang.String id) throws java.rmi.RemoteException
p
- the process definitionu
- the userd
- the org. unitduedate
- the duedateid
- the id of the process instancejava.rmi.RemoteException
ProcessInstance startProcess(ProcessDefinition p, User u, OrgUnit d, java.util.Date duedate, java.lang.String id, DMSForm f) throws java.rmi.RemoteException
p
- the process definitionu
- the userd
- the org. unitduedate
- the duedateid
- the id of the process instancef
- a formjava.rmi.RemoteException
ProcessInstance createProcessInstance(ProcessDefinition p, User u, OrgUnit d, java.util.Date duedate, java.lang.String id) throws java.rmi.RemoteException
p
- the process definitionu
- the userd
- the org. unitduedate
- the duedateid
- the id of the process instancejava.rmi.RemoteException
ProcessInstance createProcessInstance(ProcessDefinition p, User u, OrgUnit d, java.util.Date duedate, java.lang.String id, DMSForm f) throws java.rmi.RemoteException
p
- the process definitionu
- the userd
- the org. unitduedate
- the duedateid
- the id of the process instancef
- a formjava.rmi.RemoteException
void start(ProcessInstance pi) throws java.rmi.RemoteException
pi
- the process instance to startjava.lang.Exception
java.rmi.RemoteException
java.util.List<ActivityInstance> getWorklist(Application a, boolean withRepr) throws java.rmi.RemoteException
a
- the application, if null return work items for all applicationswithRepr
- if true add the work items assigned to persons the user substitutes.java.rmi.RemoteException
java.util.List<ActivityInstance> getWaitingList(Application a) throws java.rmi.RemoteException
a
- the application, if null return waiting items for all applicationsjava.rmi.RemoteException
java.util.List<ActivityInstance> getRoleWorklist(Application a) throws java.rmi.RemoteException
a
- the application, if null return work items for all applicationsjava.rmi.RemoteException
java.util.List<ActivityInstance> getSuspensionList(Application a) throws java.rmi.RemoteException
a
- the application, if null return work items for all applicationsjava.rmi.RemoteException
java.util.List<ActivityInstance> getRoleSuspensionList(Application a) throws java.rmi.RemoteException
a
- the application, if null return work items for all applicationsjava.rmi.RemoteException
java.util.List<ActivityInstance> getWorkList(WorklistKind wlKind, Application a) throws java.rmi.RemoteException
wlKind
- the kind of worklist to be returneda
- the application, if null return work items for all applicationsjava.rmi.RemoteException
java.util.List<ActivityInstance> getWorkList(java.util.EnumSet<WorklistKind> wlKinds, Application a) throws java.rmi.RemoteException
wlKinds
- the kinds of worklists to be returneda
- the application, if null return work items for all applicationsjava.rmi.RemoteException
boolean isVisible(ActivityInstance ai) throws java.rmi.RemoteException
ai
- java.rmi.RemoteException
ProcessInstance getProcess(java.lang.String id) throws java.rmi.RemoteException
id
- the process instance idjava.rmi.RemoteException
ProcessInstance getProcess(long oid) throws java.rmi.RemoteException
oid
- the process instance oidjava.rmi.RemoteException
ProcessInstance getProcessFromForm(long formoid) throws java.rmi.RemoteException
formoid
- the oid of a process formjava.rmi.RemoteException
ActivityInstance getActivityInstance(long oid) throws java.rmi.RemoteException
oid
- the activity instance oidjava.rmi.RemoteException
ProcessInstance getProcess(DMSForm f) throws java.rmi.RemoteException
f
- the formjava.rmi.RemoteException
java.util.List<ProcessInstance> getProcesses(java.lang.String condition) throws java.rmi.RemoteException
condition
- a SQL where clausejava.rmi.RemoteException
java.util.List<ActivityInstance> getActivities(java.lang.String condition) throws java.rmi.RemoteException
condition
- a SQL where clausejava.rmi.RemoteException
java.util.List<ActivityInstance> getAllInteractiveTasks(ProcessInstance process) throws java.rmi.RemoteException
ActivityInstance.TASK
)
ActivityInstance
s of the given ProcessInstance
,
even ALL children of ActivityInstance.PROCESS
,
ActivityInstance.PARFOR
and ActivityInstance.SCOPE
will be returnedprocess
- the process instancejava.rmi.RemoteException
java.util.List<ActivityInstance> getActiveTasks(ProcessInstance process) throws java.rmi.RemoteException
ActivityInstance
,
but doesn't return ALL ActivityInstance
s of the given ProcessInstance
.
children of ActivityInstance.PROCESS
, ActivityInstance.PARFOR
and ActivityInstance.SCOPE
will not be returnedprocess
- the process instancejava.rmi.RemoteException
java.util.List<ActivityInstance> getActiveTasks(ProcessInstance process, User u) throws java.rmi.RemoteException
ActivityInstance
,
but doesn't return ALL ActivityInstance
s of the given ProcessInstance
.
children of ActivityInstance.PROCESS
, ActivityInstance.PARFOR
and ActivityInstance.SCOPE
will not be returnedu
- the userprocess
- the process instancejava.rmi.RemoteException
java.util.List<ActivityInstance> getActivityInstances(ProcessInstance process) throws java.rmi.RemoteException
ActivityInstance
s of the given ProcessInstance
.
children of ActivityInstance.PROCESS
, ActivityInstance.PARFOR
and ActivityInstance.SCOPE
will not be returnedprocess
- the process instancejava.rmi.RemoteException
java.util.List<ActivityInstance> getActivityInstances(ProcessInstance process, java.lang.String steplabel) throws java.rmi.RemoteException
ActivityInstance
s of the given ProcessInstance
.
children of ActivityInstance.PROCESS
, ActivityInstance.PARFOR
and ActivityInstance.SCOPE
will not be returnedprocess
- the process instancesteplabel
- the label of the stepjava.rmi.RemoteException
java.util.List<ActivityInstance> getActivityInstances(ProcessInstance process, boolean recursive, boolean active, int type, java.lang.String steplabel) throws java.rmi.RemoteException
process
- the process instancerecursive
- if true, also nested activity instances will be returnedactive
- if true, only active activity instances will be returnedtype
- of activity instances to return, if all types should be returned, use ActivityInstance.ALL
steplabel
- restrict the results by label of the step, use null if no restriction intendedjava.rmi.RemoteException
java.util.List<DMSObject> getDocuments(ProcessInstance process) throws java.rmi.RemoteException
process
- the process instanceDMSObject
java.rmi.RemoteException
DMSForm getForm(ActivityInstance ai, java.lang.String name) throws java.rmi.RemoteException
ai
- the process instance or an activity instance of the processjava.rmi.RemoteException
java.util.List<DMSForm> getForms(ProcessInstance process) throws java.rmi.RemoteException
process
- the process instancejava.rmi.RemoteException
ProcessInstance getMainProcess(ActivityInstance ai) throws java.rmi.RemoteException
ai
- an activity instancejava.rmi.RemoteException
ProcessInstance getParent(ActivityInstance ai) throws java.rmi.RemoteException
ai
- an activity instancejava.rmi.RemoteException
java.util.List<DMSNote> getNotes(ProcessInstance process) throws java.rmi.RemoteException
process
- a process instancejava.rmi.RemoteException
boolean hasDocuments(ProcessInstance process) throws java.rmi.RemoteException
process
- a process instancejava.rmi.RemoteException
boolean hasNotes(ProcessInstance process) throws java.rmi.RemoteException
process
- a process instancejava.rmi.RemoteException
java.util.Map<java.lang.String,java.lang.Short> getFieldModes(ActivityInstance ai, DMSForm f) throws java.rmi.RemoteException
ai
- an activity instancef
- the formjava.rmi.RemoteException
java.util.Map<java.lang.String,java.lang.Short> getFieldModes(ActivityInstance ai, DMSForm form, DMSForm mainform, java.lang.String id) throws java.rmi.RemoteException
ai
- activity instanceform
- form or sub form, may be null if mainform is setmainform
- main form, may be null if form is already contain mainformid
- subform relation idjava.rmi.RemoteException
java.util.List<Suspension> getSuspensions(ActivityInstance ai) throws java.rmi.RemoteException
ai
- Suspension
sjava.rmi.RemoteException
ActivityInstance take(ActivityInstance ai) throws java.rmi.RemoteException
ai
- an activity instancejava.rmi.RemoteException
void finish(ActivityInstance ai) throws java.rmi.RemoteException
ai
- an activity instancejava.rmi.RemoteException
java.util.List<java.util.List<ActivityInstance>> getChoiceSteps(ActivityInstance ai) throws java.rmi.RemoteException
ai
- java.rmi.RemoteException
void finishChoice(ActivityInstance ai) throws java.rmi.RemoteException
ai
- the choice step on the branch you want to followsjava.rmi.RemoteException
void closePredecessor(ActivityInstance ai) throws java.rmi.RemoteException
ai
- java.rmi.RemoteException
java.util.List<Pair<ActivityInstance,java.util.List<ActivityInstance>>> listPreviousSteps(ActivityInstance ai) throws java.rmi.RemoteException
ai
- current activity instancejava.rmi.RemoteException
ActivityInstance goBack(ActivityInstance ai, ActivityInstance ai2, java.lang.String comment) throws java.rmi.RemoteException
ai
- an activity instanceai2
- a finished activity instancecomment
- a commentjava.rmi.RemoteException
ActivityInstance untake(ActivityInstance ai) throws java.rmi.RemoteException
ai
- an activity instancejava.rmi.RemoteException
void seeLater(ActivityInstance ai, java.util.Date d) throws java.rmi.RemoteException
ai
- an activity instanced
- the date, when the item should reappear in the worklistjava.rmi.RemoteException
void seeLater(ActivityInstance ai, java.util.Date d, java.lang.String description) throws java.rmi.RemoteException
ai
- an activity instanced
- the date, when the item should reappear in the worklistdescription
- an optional commentjava.rmi.RemoteException
void seeAgain(ActivityInstance ai) throws java.rmi.RemoteException
ai
- an activity instancejava.rmi.RemoteException
void setAgent(ActivityInstance ai, Agent a) throws java.rmi.RemoteException
ai
- an activity instancea
- an agent (user or role)java.rmi.RemoteException
ActivityInstance changeAgent(ActivityInstance ai, Agent a, OrgUnit ou, java.lang.String comment) throws java.rmi.RemoteException
ai
- an activity instancea
- an agent (user or role)ou
- an org-unit, may be nullcomment
- optional comment to the next agentjava.rmi.RemoteException
void setStepAgent(ActivityInstance ai, Agent a) throws java.rmi.RemoteException
ai
- an activity instancea
- an agent (user or role)java.rmi.RemoteException
@Deprecated void gotoTask(ProcessInstance process, java.lang.String taskid, Agent ag, java.lang.String comment) throws java.rmi.RemoteException
process
- an processinstance instancetaskid
- id of a taskag
- an agent (user or role)comment
- a comment stringjava.rmi.RemoteException
void gotoTask(ActivityInstance ai, java.lang.String stepname, Agent ag, OrgUnit ou, java.lang.String comment) throws java.rmi.RemoteException
ai
- an activity instancestepname
- the name of a step to jump to, set the name in the process definition (editor or WDL).ag
- an agent (user or role), may be nullou
- the org.unit (may be null)comment
- a comment stringjava.rmi.RemoteException
ActivityInstance copyTo(ActivityInstance ai, User u) throws java.rmi.RemoteException
ai
- an activity instanceu
- a userjava.rmi.RemoteException
ActivityInstance copyTo(ActivityInstance ai, User u, java.lang.String comment) throws java.rmi.RemoteException
ai
- an activity instanceu
- a usercomment
- a comment to this copyjava.rmi.RemoteException
@Deprecated void makeBranch(ProcessInstance process, Task t, Agent a, OrgUnit d, java.util.List<java.lang.String> forms) throws java.rmi.RemoteException
java.rmi.RemoteException
ActivityInstance makeBranch(ProcessInstance process, Task t, Agent a, OrgUnit d) throws java.rmi.RemoteException
process
- instance of the processt
- a task assigned to the processa
- a user or roled
- an optional departmentjava.rmi.RemoteException
int addParforInstances(java.lang.String stepid, ActivityInstance previous) throws java.rmi.RemoteException
stepid
- the id of the parfor stepprevious
- an activity instance of the same process instancejava.lang.Exception
java.rmi.RemoteException
void setOrgUnit(ActivityInstance ai, OrgUnit d) throws java.rmi.RemoteException
ai
- an activity instanced
- the OrgUnitjava.rmi.RemoteException
void setDescription(ActivityInstance ai, java.lang.String descr) throws java.rmi.RemoteException
ai
- an activity instancedescr
- the new desriptionjava.rmi.RemoteException
void setSubject(ProcessInstance process) throws java.rmi.RemoteException
process
- the process instancejava.rmi.RemoteException
void setSubjectToString(ProcessInstance process, java.lang.String str) throws java.rmi.RemoteException
process
- the process instancestr
- the new subjectjava.rmi.RemoteException
void updateForm(DMSForm f) throws java.rmi.RemoteException
f
- the formjava.rmi.RemoteException
void setDuedate(ActivityInstance ai, java.util.Date d) throws java.rmi.RemoteException
ai
- an activity instanced
- the new due datejava.rmi.RemoteException
void setId(ProcessInstance pi, java.lang.String s) throws java.rmi.RemoteException
pi
- a process instances
- the new idjava.rmi.RemoteException
void setPriority(ProcessInstance pi, int priority) throws java.rmi.RemoteException
pi
- a process instance. The priority is set on the main process instance mpi of pi (and on subprocesses of mpi).priority
- the new priority, two digit integer, starting with 0 (means lowest priority).java.rmi.RemoteException
void abort(ProcessInstance process) throws java.rmi.RemoteException
process
- the process instance. Should be a main Process, may be an ActivityInstance in a branch.java.rmi.RemoteException
void reactivate(ProcessInstance process) throws java.rmi.RemoteException
process
- the process instance. Should be a main process.java.rmi.RemoteException
void archive(ProcessInstance process) throws java.rmi.RemoteException
process
- the process instancejava.rmi.RemoteException
void abort(ProcessInstance process, java.lang.String comment) throws java.rmi.RemoteException
process
- the process instance. Should be a main Process, may be an ActivityInstance in a branch.comment
- a comment, why the process is abortedjava.rmi.RemoteException
void reactivate(ProcessInstance process, java.lang.String comment) throws java.rmi.RemoteException
process
- the process instance. Should be a main Process.comment
- a comment, why the process is reactivatedjava.rmi.RemoteException
void reactivateAndTake(ProcessInstance process, java.lang.String comment) throws java.rmi.RemoteException
process
- the process instance. Should be a main Process.comment
- a comment, why the process is reactivatedjava.rmi.RemoteException
ActivityInstance getContext() throws java.rmi.RemoteException
java.rmi.RemoteException
void setContext(ActivityInstance ai) throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.String getServerProperty(java.lang.String prop) throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.List<ActivityInstance> listSuccessors(ActivityInstance ai) throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.List<ActivityInstance> listPredecessors(ActivityInstance ai) throws java.rmi.RemoteException
java.rmi.RemoteException
void addAgent(ActivityInstance ai, Agent a, OrgUnit ou, DMSNote note) throws java.rmi.RemoteException
ai
- the activity instancea
- a user or roleou
- an organizational unit, if null the ou of the previous activity instance is usednote
- an (optional) note to the agent of the activityjava.rmi.RemoteException
void setCheckedOut(ActivityInstance ai, boolean state) throws java.rmi.RemoteException
state
- if true we check it outai
- the activity instancejava.rmi.RemoteException
void goBackToLastInteractive(ActivityInstance ai, java.lang.String comment) throws java.rmi.RemoteException
java.rmi.RemoteException
ActivityInstance makeVersion(ActivityInstance ai, java.lang.String desc, boolean withDocs) throws java.rmi.RemoteException
ai
- the activity instance to versiondesc
- a comment for this versionwithDocs
- if true all the documents are also versionedjava.rmi.RemoteException
void refreshWLCacheOrgData() throws java.rmi.RemoteException
java.rmi.RemoteException
void refreshWLCache(User u) throws java.rmi.RemoteException
u
- - the userjava.rmi.RemoteException
void setFinished(ActivityInstance ai) throws java.rmi.RemoteException
ai
- the activity instance to be finishedjava.rmi.RemoteException
void abortSiblings(ActivityInstance join) throws java.rmi.RemoteException
join
- java.rmi.RemoteException
void abortParforSiblings(ActivityInstance parfor) throws java.rmi.RemoteException
parfor
- an instance of the parfor step (a parent of an activityinstance inside the parfor)java.rmi.RemoteException
void setSeen(ActivityInstance ai, boolean seen) throws java.rmi.RemoteException
java.rmi.RemoteException
boolean hasSeen(ActivityInstance ai) throws java.rmi.RemoteException
java.rmi.RemoteException
PersistentVersion getFormVersion(DMSForm form, ActivityInstance ai) throws java.rmi.RemoteException
form
- the form which version is wantedai
- the activity instance determining the context of the versionjava.rmi.RemoteException
java.util.List<PersistentVersion> listFormVersions(ActivityInstance ai) throws java.rmi.RemoteException
ai
- the activity instance determining the context of the versionsjava.rmi.RemoteException
void addSystemNote(ActivityInstance ai, java.lang.String subject, java.lang.String text) throws java.rmi.RemoteException
ai
- the activity instance (or process instance) to which the note is attachedsubject
- the system note subjecttext
- the system note textjava.rmi.RemoteException
- Exception is thrown if the system note could not be created or attached to the given activity instancevoid propagateChange(ActivityInstance ai) throws java.rmi.RemoteException
ai
- the activity instance which changedjava.rmi.RemoteException
java.util.List<UserFolder> getUserFolders() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.Map<ActivityInstance,UserFolder> mapToUserFolders(java.util.List<ActivityInstance> ais) throws java.rmi.RemoteException
ais
- the list of activityInstances to be filteredjava.rmi.RemoteException
void filterByFolder(UserFolder uf, java.util.List<ActivityInstance> ais) throws java.rmi.RemoteException
uf
- the UserFolder to filter upon.ais
- the list of ActivityInstances to be filteredjava.rmi.RemoteException
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.