|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WfEngineService
This class WfEngineService represents the client accessible
API to the workflow engine. It contains, for example, methods to create
and start processes.
Supported API: true
Extendable: false
| Method Summary | |
|---|---|
void |
changeEventConfiguration(WfProcess process,
wt.workflow.engine.WfEventConfiguration evt_cfg)
Changes the process' event configuration to the one passed as argument. |
WfExecutionObject |
changeState(WfExecutionObject exec_object,
wt.workflow.engine.WfTransition transition)
Changes the state of a process or activity. |
wt.workflow.engine.WfActivity |
complete(wt.workflow.engine.WfActivity activity,
Vector selected_events)
Completes activity and generates events. |
WfProcess |
createAdHocProcess(WfTemplateObject template,
Object team_spec)
Deprecated. use method with WTContainerRef |
WfProcess |
createAdHocProcess(WfTemplateObject template,
Object team_spec,
WTContainerRef context_ref)
Creates a process given a template object that can be a process template, a block template or an activity template. |
WfProcess |
createProcess(wt.workflow.definer.WfProcessDefinition template,
Object team_spec)
Deprecated. use method with WTContainerRef |
WfProcess |
createProcess(wt.workflow.definer.WfProcessDefinition template,
Object team_spec,
WTContainerRef context_ref)
Creates and returns a process from the given template, associated team specification and a reference to the context (@link wt.inf.container.WTContainerRef} where the process is to be created. |
wt.workflow.engine.WfContainer |
createStartAdHocProcess(wt.workflow.engine.WfAdHocActivity requester,
wt.workflow.definer.WfContainerTemplate template)
Creates and starts an adh hoc process given the ad hoc activity and the template from which the process should be instantiated. |
void |
deleteClosedProcesses(SearchCondition condition)
Delete all closed processes that meet the search condition passed as argument. |
void |
deleteProcess(WfProcess process)
Deletes process passed as argument. |
Enumeration |
getAssociatedProcesses(Persistable object,
wt.workflow.engine.WfState state)
Deprecated. use method with WTContainerRef argument. |
QueryResult |
getAssociatedProcesses(Persistable object,
wt.workflow.engine.WfState state,
WTContainerRef context_ref)
Returns all process instances associated with the object passed as argument that are in a given state in the passed WTContainer. |
Enumeration |
getHistory(wt.workflow.engine.WfEventAuditType eventType)
Returns a list of all events of a given type associated with execution objects. |
Enumeration |
getHistory(WfExecutionObject obj,
wt.workflow.engine.WfEventAuditType eventType)
Returns a list of all events associated with a given execution object of a given type. |
Enumeration |
getOverdueActivities(WfProcess process)
Returns all overdue activities contained in a given process. |
Enumeration |
getOverdueProcesses()
Deprecated. use method with WTContainerRef as argument. |
QueryResult |
getOverdueProcesses(WTContainerRef context_ref)
Returns all overdue processes in a given WTContainer. |
Enumeration |
getProcessConnectors(wt.workflow.engine.WfContainer container)
Returns all connectors contained in a given process. |
Enumeration |
getProcesses(wt.workflow.definer.WfProcessTemplate template,
wt.workflow.engine.WfState state)
Returns all processes instantianted from a given template that are in a given state. |
Vector |
getProcessRoles(WfProcess process)
Answer a vector of role objects declared by the process Supported API: true |
Enumeration |
getProcessSteps(wt.workflow.engine.WfContainer container,
wt.workflow.engine.WfState state)
Returns all instantiated process steps in a given state. |
String |
getProjectName(wt.workflow.engine.WfContainer container)
Returns the name of the project associated with the given process. |
URL |
getRelatedProcessesURL(WTObject obj)
Returns a URL to view associated workflow processes given a business object. |
WTPrincipal |
getResponsible(WfExecutionObject exec_obj)
Returns principal responsible for the execution object. |
Enumeration |
getResponsibleParticipants(WfExecutionObject exec_obj)
Returns an Enumeration of principal references who are responsible for the execution object. |
String |
getTeamName(wt.workflow.engine.WfContainer container)
Returns the name of the team associated with the given process. |
Folder |
getWfFolder(String folder_path,
WTObject pbo,
WTContainerRef context_ref)
Gets folder given its relative path, associated business object and the context. |
WfProcess |
startProcess(WfProcess process,
ProcessData input,
long priority)
Starts a process with given input data and priority. |
WfProcess |
startProcess(WfProcess process,
ProcessData input,
long priority,
Timestamp start_time,
Timestamp deadline)
Start a process given, in addition to the input data, absolute start time and deadline. |
WfProcess |
startProcessImmediate(WfProcess process,
ProcessData input,
long priority)
Starts a process with given input data and priority without creation of new thread or queue entries. |
void |
terminateObjectsRunningWorkflows(Persistable object)
if terminateObjectsRunningWorkflows=true, terminate all the objects running processes. |
void |
terminateObjectsRunningWorkflows(WTCollection collection)
if terminateObjectsRunningWorkflows=true, terminate all the objects running processes. |
| Method Detail |
|---|
WfProcess startProcess(WfProcess process,
ProcessData input,
long priority)
throws WTException
process - input - priority -
WTException
Enumeration getProcesses(wt.workflow.definer.WfProcessTemplate template,
wt.workflow.engine.WfState state)
throws WTException
template - state -
WTException
Enumeration getProcessSteps(wt.workflow.engine.WfContainer container,
wt.workflow.engine.WfState state)
throws WTException
container - state -
WTException
Enumeration getProcessConnectors(wt.workflow.engine.WfContainer container)
throws WTException
container -
WTException
Vector getProcessRoles(WfProcess process)
throws WTException
process -
WTException
WfExecutionObject changeState(WfExecutionObject exec_object,
wt.workflow.engine.WfTransition transition)
throws WTException
exec_object - transition -
WTException
Enumeration getHistory(WfExecutionObject obj,
wt.workflow.engine.WfEventAuditType eventType)
throws WTException
obj - eventType -
WTException
void deleteClosedProcesses(SearchCondition condition)
throws WTException
condition -
WTException
Enumeration getOverdueProcesses()
throws WTException
WTException
Enumeration getOverdueActivities(WfProcess process)
throws WTException
process -
WTException
wt.workflow.engine.WfActivity complete(wt.workflow.engine.WfActivity activity,
Vector selected_events)
throws WTException
activity - selected_events -
WTException
String getProjectName(wt.workflow.engine.WfContainer container)
throws WTException
container -
WTException
WfProcess createProcess(wt.workflow.definer.WfProcessDefinition template,
Object team_spec)
throws WTException
A team specification can be one of the following:
RoleHolder (deprecated)
wt.team.TeamRef
wt.team.TeamTeamplateRef
LifeCycleManaged
Import Note:
The process will be created in the same WTContainer
as the team spec passed as argument, except in the case the team spec
is a wt.team.TeamTeamplateRef, in which case the process is
created in the classic container. There is a similar method with
the same name that accepts an additional argument that is a reference
to the container where the process is to be created.
Supported API: true
template - team_spec -
WTException
Enumeration getHistory(wt.workflow.engine.WfEventAuditType eventType)
throws WTException
eventType -
WTException
void changeEventConfiguration(WfProcess process,
wt.workflow.engine.WfEventConfiguration evt_cfg)
throws WTException
process - evt_cfg -
WTException
void deleteProcess(WfProcess process)
throws WTException
process -
WTException
WfProcess startProcessImmediate(WfProcess process,
ProcessData input,
long priority)
throws WTException
process - input - priority -
WTException
wt.workflow.engine.WfContainer createStartAdHocProcess(wt.workflow.engine.WfAdHocActivity requester,
wt.workflow.definer.WfContainerTemplate template)
throws WTException
requester - template -
WTException
WfProcess startProcess(WfProcess process,
ProcessData input,
long priority,
Timestamp start_time,
Timestamp deadline)
throws WTException
process - input - priority - start_time - deadline -
WTException
WTPrincipal getResponsible(WfExecutionObject exec_obj)
throws WTException
exec_obj -
WTException
Enumeration getAssociatedProcesses(Persistable object,
wt.workflow.engine.WfState state)
throws WTException
object - state -
WTException
WfProcess createAdHocProcess(WfTemplateObject template,
Object team_spec)
throws WTException
In case it is an activity template, the block template generated has the same name as the activity template as well as variables. The mapping between the block templates and activity templates is a 1-1 mapping based on the variable names. This has the effect that the block template is completely transparent during execution time.
A team specification can be one of the following:
RoleHolder (deprecated)
wt.team.TeamRef
wt.team.TeamTeamplateRef
LifeCycleManaged
Import Note:
The process will be created in the same WTContainer
as the team spec passed as argument, except in the case the team spec
is a wt.team.TeamTeamplateRef, in which case the process is
created in the classic container. There is a similar method with
the same name that accepts an additional argument that is a reference
to the container where the process is to be created.
Supported API: true
template - team_spec -
WTException
URL getRelatedProcessesURL(WTObject obj)
throws WTException
obj -
WTException
Enumeration getResponsibleParticipants(WfExecutionObject exec_obj)
throws WTException
exec_obj -
WTException
void terminateObjectsRunningWorkflows(Persistable object)
throws WTException
object - The object for which you wish to terminate the objects running workflows.
WTException
void terminateObjectsRunningWorkflows(WTCollection collection)
throws WTException
collection - The collection of objects for which you wish to terminate the running workflows.
WTException
WfProcess createProcess(wt.workflow.definer.WfProcessDefinition template,
Object team_spec,
WTContainerRef context_ref)
throws WTException
A team specification can be one of the following:
RoleHolder (deprecated)
wt.team.TeamRef
wt.team.TeamTeamplateRef
LifeCycleManaged
template - team_spec - context_ref -
WTException
WfProcess createAdHocProcess(WfTemplateObject template,
Object team_spec,
WTContainerRef context_ref)
throws WTException
In case it is an activity template, the block template generated
has the same name as the activity template as well as variables.
The mapping between the block templates and activity templates is
a 1-1 mapping based on the variable names. This has the effect that
the block template is completely transparent during execution time.
Supported API: true
template - team_spec - context_ref -
WTException
String getTeamName(wt.workflow.engine.WfContainer container)
throws WTException
container -
WTException
QueryResult getAssociatedProcesses(Persistable object,
wt.workflow.engine.WfState state,
WTContainerRef context_ref)
throws WTException
object - state - context_ref -
WTException
QueryResult getOverdueProcesses(WTContainerRef context_ref)
throws WTException
context_ref -
WTException
Folder getWfFolder(String folder_path,
WTObject pbo,
WTContainerRef context_ref)
throws WTException
Creates workflow folder for a given context. The folder path is also passed as argument. Assumes folder_path of the form:
/System/Workflows/where forder-name is one of {"NotStarted", "Running", ...}
The folder is created as
Supported API: true
folder_path - pbo - context_ref -
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||