public interface WfEngine extends RemoteWfEngine
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 | Interface and Description |
---|---|
static class |
WfEngine.Tasks
Predefined tasks.
|
INVISIBLE, MUST, NO_ADDDEL, READ_ONLY, READ_WRITE, TEXT
Modifier and Type | Method and Description |
---|---|
void |
abort(ProcessInstance process)
Abort a process.
|
void |
abort(ProcessInstance process,
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(String stepid,
ActivityInstance previous)
Start additional parfor branches for the given step.
|
void |
addSystemNote(ActivityInstance ai,
String subject,
String text)
Attach a note to an ActivityInstance.
|
void |
archive(ProcessInstance process)
Archive a process.
|
void |
canTake(ActivityInstance ai)
Check if the thread-user can take the activity.
|
ActivityInstance |
changeAgent(ActivityInstance ai,
Agent a,
OrgUnit ou,
String comment)
Give the activity instance to another agent.
|
void |
checkAbort(ProcessInstance process)
Check if the thread user may abort the process.
|
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,
String comment)
Send a copy to another user.
|
ProcessInstance |
createProcessInstance(ProcessDefinition p,
User u,
OrgUnit d,
Date duedate,
String id)
Create a process instance.
|
ProcessInstance |
createProcessInstance(ProcessDefinition p,
User u,
OrgUnit d,
Date duedate,
String id,
DMSForm f)
Create a process instance.
|
void |
filterByFolder(UserFolder uf,
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.
|
List<ActivityInstance> |
getActiveTasks(ProcessInstance process)
Get the list of active activities of a process instance.
|
List<ActivityInstance> |
getActiveTasks(ProcessInstance process,
User u)
Get the list of active, interactive activities of a process instance assigned to a user.
|
List<ActivityInstance> |
getActivities(String condition)
Find the activity instances with a given condition.
|
ActivityInstance |
getActivityInstance(long oid)
Find a activity instance from the given oid.
|
List<ActivityInstance> |
getActivityInstances(ProcessInstance process)
Get the list of all direct activity instances of a process instance.
|
List<ActivityInstance> |
getActivityInstances(ProcessInstance process,
boolean recursive,
boolean active,
int type,
String steplabel)
Get a list of activity instances for a process instance
|
List<ActivityInstance> |
getActivityInstances(ProcessInstance process,
String steplabel)
Get the list of direct activity instances of a particular step in a process.
|
List<ActivityInstance> |
getAllCurrentActivityInstances(ProcessInstance process)
Get the list of ALL active activities of a process instance.
|
List<ActivityInstance> |
getAllInteractiveTasks(ProcessInstance process)
Get the list of ALL active, interactive activities of a process instance.
|
List<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.
|
List<DMSObject> |
getDocuments(ProcessInstance process)
Get the list of DMS objects (e.g. documents, folders) attached to a process.
|
Map<String,Short> |
getFieldModes(ActivityInstance ai,
DMSForm f)
Get field modes for form fields
|
Map<String,Short> |
getFieldModes(ActivityInstance ai,
DMSForm form,
DMSForm mainform,
String id)
Get field modes for form fields and subforms
|
<P extends DMSForm> |
getForm(ActivityInstance ai,
String id)
Get a form of a process.
|
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
|
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(String id)
Find a process instance with the given id.
|
ProcessDefinition |
getProcessDefinition(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(String id,
int version)
Find a process definition with the given id and version.
|
List<ProcessInstance> |
getProcesses(String condition)
Find the process instances with a given condition.
|
ProcessInstance |
getProcessFromForm(long formoid)
Find a process instance from the oid of a form.
|
List<ActivityInstance> |
getRoleSuspensionList(Application a)
Get the role suspension list of the current user.
|
List<ActivityInstance> |
getRoleWorklist(Application a)
Get the role worklist of the current user.
|
String |
getServerProperty(String prop)
Returns a property from the server
|
List<Pair<ProcessDefinition,List<Pair<String,List<OrgUnit>>>>> |
getStartableProcDefs(Application appl)
List the process definitions of the given application, which are startable
for the user.
|
List<Pair<ProcessDefinition,List<OrgUnit>>> |
getStartableProcesses(Application appl)
List the process definitions of the given application, which are startable
for the user.
|
List<Pair<String,List<OrgUnit>>> |
getStartInfo(ProcessDefinition pd)
Returns the start info for the given process for the current thread user.
|
Store |
getStore()
Return the underlying store.
|
List<ActivityInstance> |
getSuspensionList(Application a)
Get the personal suspension list of the current user.
|
List<Suspension> |
getSuspensions(ActivityInstance ai)
Find out when and how the activity instance was in the suspension list.
|
Task |
getTask(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(String id,
int version)
Find a task with the given id and version.
|
List<UserFolder> |
getUserFolders()
Get the list of UserFolders of the current user.
|
List<ActivityInstance> |
getWaitingList(Application a)
Get the list of waiting activities of the current user.
|
List<ActivityInstance> |
getWorklist(Application a,
boolean withRepr)
Get the worklist of the current user.
|
List<ActivityInstance> |
getWorkList(EnumSet<WorklistKind> wlKinds,
Application a)
Get a combined worklist of the combination (union) of the desired kinds for the current user.
|
List<ActivityInstance> |
getWorkList(WorklistKind wlKind,
Application a)
Get a worklist of the desired kind for the current user.
|
ActivityInstance |
goBack(ActivityInstance ai,
ActivityInstance ai2,
String comment)
Go back to a previous step.
|
void |
goBackToLastInteractive(ActivityInstance ai,
String comment) |
ActivityInstance |
gotoStep(ActivityInstance ai,
String steplabel,
Agent ag,
OrgUnit ou,
String comment)
Goto another step.
|
void |
gotoTask(ActivityInstance ai,
String stepname,
Agent ag,
OrgUnit ou,
String comment)
Deprecated.
|
void |
gotoTask(ProcessInstance process,
String taskid,
Agent ag,
String comment)
Deprecated.
|
boolean |
hasDocuments(ProcessInstance process)
Has the process documents attached?
|
boolean |
hasForm(ActivityInstance ai,
String id)
Check if the process has a form with given id.
|
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.
|
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.
|
List<ActivityInstance> |
listPredecessors(ActivityInstance ai)
Return the list of predecessor steps of an activity instance.
|
List<Pair<ActivityInstance,List<ActivityInstance>>> |
listPreviousSteps(ActivityInstance ai)
List the previous steps of the process (possible go back targets).
|
List<ProcessDefinition> |
listProcessDefinitions(Application appl)
List the process definitions of the given application
|
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,
List<String> forms)
Deprecated.
|
ActivityInstance |
makeVersion(ActivityInstance ai,
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.
|
Map<ActivityInstance,UserFolder> |
mapToUserFolders(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 |
propagateProcessChange(ProcessInstance pi)
Inform the system that a process instance has been changed.
|
void |
reactivate(ProcessInstance process)
Reactivate a process.
|
void |
reactivate(ProcessInstance process,
String comment)
Reactivate a process.
|
void |
reactivateAndTake(ProcessInstance process,
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 |
removeSeens(ActivityInstance ai,
boolean meToo)
Delete the seen information for the given ai.
|
void |
seeAgain(ActivityInstance ai)
Move the activity instance from the suspension list to the worklist.
|
void |
seeLater(ActivityInstance ai,
Date d)
Move the activity instance from the worklist to the suspension list.
|
void |
seeLater(ActivityInstance ai,
Date d,
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,
String descr)
Set the description of an activity instance.
|
void |
setDuedate(ActivityInstance ai,
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,
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,
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.
|
void |
startBranch(ProcessInstance process,
String branchid)
Start a branch.
|
ProcessInstance |
startProcess(ProcessDefinition p,
User u,
OrgUnit d,
Date duedate,
String id)
Start a process.
|
ProcessInstance |
startProcess(ProcessDefinition p,
User u,
OrgUnit d,
Date duedate,
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).
|
Store getStore()
getStore
in interface RemoteWfEngine
ProcessDefinition getProcessDefinition(String id)
getProcessDefinition
in interface RemoteWfEngine
id
- the id of the processProcessDefinition getProcessDefinition(String id, int version)
getProcessDefinition
in interface RemoteWfEngine
id
- the id of the processversion
- the version of the processList<ProcessDefinition> listProcessDefinitions(Application appl)
listProcessDefinitions
in interface RemoteWfEngine
appl
- the applicationList<Pair<ProcessDefinition,List<OrgUnit>>> getStartableProcesses(Application appl)
getStartableProcesses
in interface RemoteWfEngine
List<Pair<ProcessDefinition,List<Pair<String,List<OrgUnit>>>>> getStartableProcDefs(Application appl)
getStartableProcDefs
in interface RemoteWfEngine
appl
- optional application restrictionList<Pair<String,List<OrgUnit>>> getStartInfo(ProcessDefinition pd)
RemoteWfEngine
getStartInfo
in interface RemoteWfEngine
pd
- a process definitionTask getTask(String id)
getTask
in interface RemoteWfEngine
id
- the id of the taskTask getTask(String id, int version)
getTask
in interface RemoteWfEngine
id
- the id of the taskversion
- the version of the taskProcessInstance startProcess(ProcessDefinition p, User u, OrgUnit d, Date duedate, String id)
startProcess
in interface RemoteWfEngine
p
- the process definitionu
- the userd
- the org. unitduedate
- the duedateid
- the id of the process instanceProcessInstance startProcess(ProcessDefinition p, User u, OrgUnit d, Date duedate, String id, DMSForm f)
startProcess
in interface RemoteWfEngine
p
- the process definitionu
- the userd
- the org. unitduedate
- the duedateid
- the id of the process instancef
- a formProcessInstance createProcessInstance(ProcessDefinition p, User u, OrgUnit d, Date duedate, String id)
createProcessInstance
in interface RemoteWfEngine
p
- the process definitionu
- the userd
- the org. unitduedate
- the duedateid
- the id of the process instanceProcessInstance createProcessInstance(ProcessDefinition p, User u, OrgUnit d, Date duedate, String id, DMSForm f)
createProcessInstance
in interface RemoteWfEngine
p
- the process definitionu
- the userd
- the org. unitduedate
- the duedateid
- the id of the process instancef
- a formvoid start(ProcessInstance pi)
start
in interface RemoteWfEngine
pi
- the process instance to startList<ActivityInstance> getWorklist(Application a, boolean withRepr)
getWorklist
in interface RemoteWfEngine
a
- the application, if null return work items for all applicationswithRepr
- if true add the work items assigned to persons the user substitutes.List<ActivityInstance> getWorkList(WorklistKind wlKind, Application a)
getWorkList
in interface RemoteWfEngine
wlKind
- the kind of worklist to be returneda
- the application, if null return work items for all applicationsList<ActivityInstance> getWorkList(EnumSet<WorklistKind> wlKinds, Application a)
getWorkList
in interface RemoteWfEngine
wlKinds
- the kinds of worklists to be returneda
- the application, if null return work items for all applicationsList<ActivityInstance> getWaitingList(Application a)
getWaitingList
in interface RemoteWfEngine
a
- the application, if null return waiting items for all applicationsList<ActivityInstance> getRoleWorklist(Application a)
getRoleWorklist
in interface RemoteWfEngine
a
- the application, if null return work items for all applicationsList<ActivityInstance> getSuspensionList(Application a)
getSuspensionList
in interface RemoteWfEngine
a
- the application, if null return work items for all applicationsList<ActivityInstance> getRoleSuspensionList(Application a)
getRoleSuspensionList
in interface RemoteWfEngine
a
- the application, if null return work items for all applicationsboolean isVisible(ActivityInstance ai)
isVisible
in interface RemoteWfEngine
ProcessInstance getProcess(String id)
getProcess
in interface RemoteWfEngine
id
- the process instance idProcessInstance getProcess(long oid)
getProcess
in interface RemoteWfEngine
oid
- the process instance oidProcessInstance getProcessFromForm(long formoid)
getProcessFromForm
in interface RemoteWfEngine
formoid
- the oid of a process formActivityInstance getActivityInstance(long oid)
getActivityInstance
in interface RemoteWfEngine
oid
- the activity instance oidProcessInstance getProcess(DMSForm f)
getProcess
in interface RemoteWfEngine
f
- the formList<ProcessInstance> getProcesses(String condition)
getProcesses
in interface RemoteWfEngine
condition
- a SQL where clauseList<ActivityInstance> getActivities(String condition)
getActivities
in interface RemoteWfEngine
condition
- a SQL where clauseList<ActivityInstance> getAllInteractiveTasks(ProcessInstance process)
ActivityInstance.TASK
)
ActivityInstance
s of the given ProcessInstance
,
even ALL children of ActivityInstance.PROCESS
,
ActivityInstance.PARFOR
and ActivityInstance.SCOPE
will be returnedgetAllInteractiveTasks
in interface RemoteWfEngine
process
- the process instanceList<ActivityInstance> getAllCurrentActivityInstances(ProcessInstance process)
ActivityInstance.TASK
), as well as all longrunning activity instances
[Type in (ActivityInstance.SYSTEM_WAIT
, ActivityInstance.BATCH
, ActivityInstance.WS_INVOKE
, ActivityInstance.WS_RECEIVE
, ActivityInstance.WAIT
)]
ActivityInstance
s of the given ProcessInstance
,
even ALL children of ActivityInstance.PROCESS
,
ActivityInstance.PARFOR
and ActivityInstance.SCOPE
will be returnedgetAllCurrentActivityInstances
in interface RemoteWfEngine
process
- the process instanceList<ActivityInstance> getActiveTasks(ProcessInstance process)
ActivityInstance
,
but doesn't return ALL ActivityInstance
s of the given ProcessInstance
.
children of ActivityInstance.PROCESS
, ActivityInstance.PARFOR
and ActivityInstance.SCOPE
will not be returnedgetActiveTasks
in interface RemoteWfEngine
process
- the process instanceList<ActivityInstance> getActiveTasks(ProcessInstance process, User u)
ActivityInstance.TASK
)
ActivityInstance
s of the given ProcessInstance
,
but doesn't return ALL interactive ActivityInstance
s of the given ProcessInstance
.
children of ActivityInstance.PROCESS
, ActivityInstance.PARFOR
and ActivityInstance.SCOPE
will not be returnedgetActiveTasks
in interface RemoteWfEngine
process
- the process instanceu
- the userList<ActivityInstance> getActivityInstances(ProcessInstance process)
ActivityInstance
s of the given ProcessInstance
.
children of ActivityInstance.PROCESS
, ActivityInstance.PARFOR
and ActivityInstance.SCOPE
will not be returnedgetActivityInstances
in interface RemoteWfEngine
process
- the process instanceList<ActivityInstance> getActivityInstances(ProcessInstance process, String steplabel)
ActivityInstance
s of the given ProcessInstance
.
children of ActivityInstance.PROCESS
, ActivityInstance.PARFOR
and ActivityInstance.SCOPE
will not be returnedgetActivityInstances
in interface RemoteWfEngine
process
- the process instancesteplabel
- the label of the stepList<ActivityInstance> getActivityInstances(ProcessInstance process, boolean recursive, boolean active, int type, String steplabel)
getActivityInstances
in interface RemoteWfEngine
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 intendedList<DMSObject> getDocuments(ProcessInstance process)
getDocuments
in interface RemoteWfEngine
process
- the process instanceDMSObject
<P extends DMSForm> P getForm(ActivityInstance ai, String id)
getForm
in interface RemoteWfEngine
ai
- the process instance or an activity instance of the processid
- the id of the form in the processboolean hasForm(ActivityInstance ai, String id)
hasForm
in interface RemoteWfEngine
ai
- the process instance or an activity instance of the processid
- the id of the form in the processList<DMSForm> getForms(ProcessInstance process)
getForms
in interface RemoteWfEngine
process
- the process instanceProcessInstance getMainProcess(ActivityInstance ai)
getMainProcess
in interface RemoteWfEngine
ai
- an activity instanceProcessInstance getParent(ActivityInstance ai)
getParent
in interface RemoteWfEngine
ai
- an activity instanceList<DMSNote> getNotes(ProcessInstance process)
getNotes
in interface RemoteWfEngine
process
- a process instancevoid addSystemNote(ActivityInstance ai, String subject, String text)
addSystemNote
in interface RemoteWfEngine
ai
- the activity instance (or process instance) to which the note is attachedsubject
- the system note subjecttext
- the system note textboolean hasDocuments(ProcessInstance process)
hasDocuments
in interface RemoteWfEngine
process
- a process instanceboolean hasNotes(ProcessInstance process)
hasNotes
in interface RemoteWfEngine
process
- a process instanceMap<String,Short> getFieldModes(ActivityInstance ai, DMSForm f)
getFieldModes
in interface RemoteWfEngine
ai
- an activity instancef
- the formMap<String,Short> getFieldModes(ActivityInstance ai, DMSForm form, DMSForm mainform, String id)
getFieldModes
in interface RemoteWfEngine
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 idList<Suspension> getSuspensions(ActivityInstance ai)
getSuspensions
in interface RemoteWfEngine
Suspension
svoid canTake(ActivityInstance ai)
canTake
in interface RemoteWfEngine
ai
- an activity instanceActivityInstance take(ActivityInstance ai)
take
in interface RemoteWfEngine
ai
- an activity instance that is created after the take operation;void finish(ActivityInstance ai)
finish
in interface RemoteWfEngine
ai
- an activity instanceList<List<ActivityInstance>> getChoiceSteps(ActivityInstance ai)
getChoiceSteps
in interface RemoteWfEngine
void finishChoice(ActivityInstance ai)
finishChoice
in interface RemoteWfEngine
ai
- the choice step on the branch you want to followsvoid closePredecessor(ActivityInstance ai)
closePredecessor
in interface RemoteWfEngine
List<Pair<ActivityInstance,List<ActivityInstance>>> listPreviousSteps(ActivityInstance ai)
listPreviousSteps
in interface RemoteWfEngine
ai
- current activity instanceActivityInstance goBack(ActivityInstance ai, ActivityInstance ai2, String comment)
goBack
in interface RemoteWfEngine
ai
- an activity instanceai2
- a finished activity instancecomment
- a commentActivityInstance untake(ActivityInstance ai)
untake
in interface RemoteWfEngine
ai
- an activity instance that is created before the untake operation;void seeLater(ActivityInstance ai, Date d)
seeLater
in interface RemoteWfEngine
ai
- an activity instanced
- the date, when the item should reappear in the worklistvoid seeLater(ActivityInstance ai, Date d, String description)
seeLater
in interface RemoteWfEngine
ai
- an activity instanced
- the date, when the item should reappear in the worklistdescription
- an optional commentvoid seeAgain(ActivityInstance ai)
seeAgain
in interface RemoteWfEngine
ai
- an activity instancevoid setAgent(ActivityInstance ai, Agent a)
setAgent
in interface RemoteWfEngine
ai
- an activity instancea
- an agent (user or role)ActivityInstance changeAgent(ActivityInstance ai, Agent a, OrgUnit ou, String comment)
changeAgent
in interface RemoteWfEngine
ai
- an activity instancea
- an agent (user or role)ou
- an org-unit, may be nullcomment
- optional comment to the next agentvoid setStepAgent(ActivityInstance ai, Agent a)
setStepAgent
in interface RemoteWfEngine
ai
- an activity instancea
- an agent (user or role)@Deprecated void gotoTask(ProcessInstance process, String taskid, Agent ag, String comment)
gotoTask
in interface RemoteWfEngine
process
- an processinstance instancetaskid
- id of a taskag
- an agent (user or role)comment
- a comment string@Deprecated void gotoTask(ActivityInstance ai, String stepname, Agent ag, OrgUnit ou, String comment)
gotoTask
in interface RemoteWfEngine
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 stringActivityInstance gotoStep(ActivityInstance ai, String steplabel, Agent ag, OrgUnit ou, String comment)
gotoStep
in interface RemoteWfEngine
ai
- an activity instancesteplabel
- the label of a step to jump to, set the label in the process definition (editor or WDL).ag
- an agent (user or role), may be null. Will be ignored if the specified step is not a taskou
- the org.unit (may be null). Will be ignored if the specified step is not a taskcomment
- a comment stringActivityInstance copyTo(ActivityInstance ai, User u)
copyTo
in interface RemoteWfEngine
ai
- an activity instanceu
- a userActivityInstance copyTo(ActivityInstance ai, User u, String comment)
copyTo
in interface RemoteWfEngine
ai
- an activity instanceu
- a usercomment
- a comment to this copy@Deprecated void makeBranch(ProcessInstance process, Task t, Agent a, OrgUnit d, List<String> forms)
makeBranch
in interface RemoteWfEngine
ActivityInstance makeBranch(ProcessInstance process, Task t, Agent a, OrgUnit d)
makeBranch
in interface RemoteWfEngine
process
- instance of the processt
- a task assigned to the processa
- a user or roled
- an optional departmentvoid startBranch(ProcessInstance process, String branchid)
startBranch
in interface RemoteWfEngine
process
- process instancebranchid
- the step-id of the branch step.int addParforInstances(String stepid, ActivityInstance previous)
addParforInstances
in interface RemoteWfEngine
stepid
- the id of the parfor stepprevious
- an activity instance of the same process instancevoid setOrgUnit(ActivityInstance ai, OrgUnit d)
setOrgUnit
in interface RemoteWfEngine
ai
- an activity instanced
- the OrgUnitvoid setDescription(ActivityInstance ai, String descr)
setDescription
in interface RemoteWfEngine
ai
- an activity instancedescr
- the new desriptionvoid setSubject(ProcessInstance process)
setSubject
in interface RemoteWfEngine
process
- the process instancevoid setSubjectToString(ProcessInstance process, String str)
setSubjectToString
in interface RemoteWfEngine
process
- the process instancestr
- the new subjectvoid updateForm(DMSForm f)
updateForm
in interface RemoteWfEngine
f
- the formvoid setDuedate(ActivityInstance ai, Date d)
setDuedate
in interface RemoteWfEngine
ai
- an activity instanced
- the new due datevoid setId(ProcessInstance pi, String s)
setId
in interface RemoteWfEngine
pi
- a process instances
- the new idvoid setPriority(ProcessInstance pi, int priority)
setPriority
in interface RemoteWfEngine
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).void abort(ProcessInstance process)
abort
in interface RemoteWfEngine
process
- the process instance. Should be a main Process, may be an ActivityInstance in a branch.void reactivate(ProcessInstance process)
reactivate
in interface RemoteWfEngine
process
- the process instance. Should be a main process.void archive(ProcessInstance process)
archive
in interface RemoteWfEngine
process
- the process instancevoid abort(ProcessInstance process, String comment)
abort
in interface RemoteWfEngine
process
- the process instance. Should be a main Process, may be an ActivityInstance in a branch.comment
- a comment, why the process is abortedvoid checkAbort(ProcessInstance process)
checkAbort
in interface RemoteWfEngine
void reactivate(ProcessInstance process, String comment)
reactivate
in interface RemoteWfEngine
process
- the process instance. Should be a main Process.comment
- a comment, why the process is reactivatedvoid reactivateAndTake(ProcessInstance process, String comment)
reactivateAndTake
in interface RemoteWfEngine
process
- the process instance. Should be a main Process.comment
- a comment, why the process is reactivatedActivityInstance getContext()
getContext
in interface RemoteWfEngine
void setContext(ActivityInstance ai)
setContext
in interface RemoteWfEngine
String getServerProperty(String prop)
getServerProperty
in interface RemoteWfEngine
List<ActivityInstance> listSuccessors(ActivityInstance ai)
listSuccessors
in interface RemoteWfEngine
List<ActivityInstance> listPredecessors(ActivityInstance ai)
listPredecessors
in interface RemoteWfEngine
void addAgent(ActivityInstance ai, Agent a, OrgUnit ou, DMSNote note)
addAgent
in interface RemoteWfEngine
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 activityvoid setCheckedOut(ActivityInstance ai, boolean state)
setCheckedOut
in interface RemoteWfEngine
ai
- the activity instancestate
- if true we check it outvoid goBackToLastInteractive(ActivityInstance ai, String comment)
goBackToLastInteractive
in interface RemoteWfEngine
ActivityInstance makeVersion(ActivityInstance ai, String desc, boolean withDocs)
makeVersion
in interface RemoteWfEngine
ai
- the activity instance to versiondesc
- a comment for this versionwithDocs
- if true all the documents are also versionedvoid refreshWLCacheOrgData()
refreshWLCacheOrgData
in interface RemoteWfEngine
void refreshWLCache(User u)
refreshWLCache
in interface RemoteWfEngine
u
- - the uservoid setFinished(ActivityInstance ai)
setFinished
in interface RemoteWfEngine
ai
- the activity instance to be finishedvoid abortSiblings(ActivityInstance join)
abortSiblings
in interface RemoteWfEngine
void abortParforSiblings(ActivityInstance parfor)
abortParforSiblings
in interface RemoteWfEngine
parfor
- an instance of the parfor step (a parent of an activityinstance inside the parfor)void setSeen(ActivityInstance ai, boolean seen)
setSeen
in interface RemoteWfEngine
void removeSeens(ActivityInstance ai, boolean meToo)
RemoteWfEngine
removeSeens
in interface RemoteWfEngine
ai
- an activity instancemeToo
- if true the seen information for the current user is also deleted.boolean hasSeen(ActivityInstance ai)
hasSeen
in interface RemoteWfEngine
PersistentVersion getFormVersion(DMSForm form, ActivityInstance ai)
getFormVersion
in interface RemoteWfEngine
form
- the form which version is wantedai
- the activity instance determining the context of the versionList<PersistentVersion> listFormVersions(ActivityInstance ai)
listFormVersions
in interface RemoteWfEngine
ai
- the activity instance determining the context of the versionsvoid propagateChange(ActivityInstance ai)
This is only needed in special cases, when there were changes in some data that would lead to a different presentation of the ActivityInstance in a client and which where out of the scope of the automatic worklist change detection (e.g. redisplay a worklist item after some form update).
propagateChange
in interface RemoteWfEngine
ai
- the activity instance which has changedvoid propagateProcessChange(ProcessInstance pi)
This is only needed in special cases, when there were changes in some data that would lead to different presentations in the worklists and which where out of the scope of the automatic worklist change detection (e.g. changes in displayed additional data).
propagateProcessChange
in interface RemoteWfEngine
pi
- the process instance which has changedvoid filterByFolder(UserFolder uf, List<ActivityInstance> ais)
filterByFolder
in interface RemoteWfEngine
uf
- the UserFolder to filter upon.ais
- the list of ActivityInstances to be filteredList<UserFolder> getUserFolders()
getUserFolders
in interface RemoteWfEngine
Map<ActivityInstance,UserFolder> mapToUserFolders(List<ActivityInstance> ais)
mapToUserFolders
in interface RemoteWfEngine
ais
- the list of activityInstances to be filtered@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.