|
BPM Process API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProcessServiceSession
ProcessServiceSession contains methods for creating, storing and managing views and presentations, for getting activities, attachments, instances, notes, and processes, for adding attachments and notes, and for processing activities and instances.
Example:
// Creates the ProcessService. ProcessService processService = ProcessService.create(...); // Creates the passport which will connect the user. ConnectionPassport passport = processService.createPassport("userId); // Sets the password of the user. passport.setPassword("userPassport"); // Fills the passport. passport.fillPassport(); // Creates a new session with the passport and the user's host. ProcessServiceSession session = processService.createSession(passport, "userHost");
Field Summary | |
---|---|
static long |
serialCheck
|
static long |
serialVersionUID
|
Method Summary | |
---|---|
void |
abortActivity(String instanceId,
String activityName,
int taskIn)
Deprecated. use activityAbort(String, int, String) instead |
void |
activityAbort(Activity activity,
InstanceId instanceId)
Deprecated. use activityAbort(Activity, InstanceInfo) |
void |
activityAbort(Activity activity,
InstanceInfo instance)
Locates instance in activity and aborts the main task. |
void |
activityAbort(Activity activity,
int taskIn,
InstanceId instanceId)
Deprecated. use activityAbort(Activity, int, InstanceInfo) |
void |
activityAbort(Activity activity,
int taskIn,
InstanceInfo instance)
Locates instance in activity and aborts the running task identified by taskIn. |
void |
activityAbort(String activityName,
int taskIn,
String instanceId)
Locates instance identified by instanceId in activity activityName and aborts the running task identified by taskIn. |
void |
activityAbort(String activityName,
String instanceId)
Locates instance identified by instanceId in activity activityName and aborts the main task. |
InstanceInfo |
activityCommit(Activity activity,
InstanceInfo instance,
Arguments args)
Executes the commit method of an external activity using the specified activit and the instance. |
InstanceInfo |
activityCommit(String activityName,
String instanceId,
Arguments args)
Executes the commit method of an external activity using the specified activit name and the instance id. |
InstanceInfo |
activityExecute(Activity activity,
InstanceInfo instance,
Arguments args)
Executes the main task for the instance given an instanceStampId. |
InstanceInfo |
activityExecute(Activity activity,
InstanceInfo instance,
int taskToExecute,
Arguments args)
Executes the specified task for this instance given an activity, instance identification and a task identification number. |
InstanceInfo |
activityExecute(Activity activity,
InstanceInfo instance,
Task taskToExecute,
Arguments args)
Executes the specified task for this instance given an activity, instance identification and a task identification number. |
InstanceInfo |
activityExecute(String activityName,
String instanceId,
Arguments args)
Executes the main task for the instance given an instanceStampId. |
InstanceInfo |
activityExecute(String activityName,
String instanceId,
int taskToExecute,
Arguments args)
Executes the specified task for this instance given an activity, instance identification and a task identification number. |
InstanceInfo |
activityExecuteApplication(Activity activity)
Runs the specified Global Activity with no arguments. |
InstanceInfo |
activityExecuteApplication(Activity activity,
Arguments arguments)
Runs the specified Global Activity with the specified arguments
The global activity cannot interact with a user; if user interaction is required, use
|
InstanceInfo |
activityExecuteApplication(String activityName,
String processId)
Runs the specified Global Activity with no arguments. |
InstanceInfo |
activityExecuteApplication(String activityName,
String processId,
Arguments arguments)
Runs the specified Global Activity with the specified arguments
The global activity cannot interact with a user; if user interaction is required, use
|
String |
activityGetDocumentation(Activity activity,
Locale locale)
Gets the full path to the localized documentation for the specified activityId and Locale. |
String |
activityGetDocumentation(String activityName,
String processId,
Locale locale)
Returns the local path of the HTML documentation for the given activity. The activity documentation is retrieved from the engine and stored in the path indicated, along with the images used by the documentation. The HTML file is always stored using UTF-8 encoding. |
InstanceInfoList |
activityGetGrabbableInstances(Activity activity)
Returns all the instances that can be grabbed from the activity specified by the activity. |
InstanceInfoList |
activityGetGrabbableInstances(String activityName,
String processId)
Returns all the instances that can be grabbed from the activity specified by the activity name and the process id. |
TaskExecution |
activityPost(Activity activity,
InstanceInfo instance,
Arguments args)
Executes the main task for this instance using an instanceId and activityId. Allows a PAPI client to customize client-side invocations. |
TaskExecution |
activityPost(Activity activity,
InstanceInfo instance,
int taskToExecute,
Arguments args)
Executes the activity task number over the instance. |
TaskExecution |
activityPost(String activityName,
String instanceId,
Arguments args)
Executes the main task for this instance using an instanceId and activityId. Allows a PAPI client to customize client-side invocations. |
TaskExecution |
activityPost(String activityName,
String instanceId,
int taskToExecute,
Arguments args)
Executes the task for this instance using an instanceId, activityId, and task identification number. Allows a PAPI client to customize client-side invocations. |
GlobalExecution |
activityPostApplication(Activity activity,
Arguments arguments)
Runs a global activity and returns a GlobalExecution to complete the activity. activityPostApplication can have user interaction, whereas runGlobalActivity cannot. |
GlobalExecution |
activityPostApplication(String activityName,
String processId,
Arguments arguments)
Runs a global activity and returns a GlobalExecution to complete the activity. activityPostApplication can have user interaction, whereas runGlobalActivity cannot. |
Arguments |
activityPrepare(Activity activity,
InstanceInfo instance,
Arguments args)
Executes the prepare method for the main task of the activity given an instanceId and an activityId. |
Arguments |
activityPrepare(String activityName,
String instanceId,
Arguments args)
Executes the prepare method for the main task of the activity given an instanceId and an activityId. |
void |
addBookmarks(InstanceStamp[] instancesStamp)
Deprecated. use instancesAddBookmark(InstanceActivityPairSet) instead |
void |
addHistories(InstanceStamp[] instancesStamp)
Deprecated. |
void |
attachmentCheckIn(Attachment attachment,
String remarks,
File file)
Checks in an attachment. If successful, this will always generate a new attachment version. |
void |
attachmentCheckIn(String attachmentId,
String remarks,
File file)
Checks in an attachment. If successful, this will always generate a new attachment version. |
void |
attachmentCheckOut(Attachment attachment,
String folder)
Writes the attachment to the specified folder. To check out the attachment, first call attachmentEdit(Attachment). |
void |
attachmentCheckOutToStream(Attachment attachment,
OutputStream stream)
Writes the attachment to the specified output stream. To check out the attachment, first call attachmentEdit(Attachment). |
void |
attachmentCheckOutToStream(String attachmentId,
OutputStream stream)
Writes the attachment to the specified output stream. |
void |
attachmentEdit(Attachment attachment)
Obtains a version lock for the attachment. |
void |
attachmentEdit(String attachmentId)
Obtains a version lock for the attachment. |
Attachment |
attachmentGet(String attachmentId)
Gets the Attachment for this attachmentId. |
AttachmentList |
attachmentGetAllVersions(String attachmentId)
Gets all the Attachments associated with this attachment. |
Attachment |
attachmentGetLastVersion(String attachmentId)
Gets the last version of the Attachment specified by attachmentId. |
void |
attachmentRelease(Attachment attachment)
Releases the version lock for the attachment. |
void |
attachmentRelease(Attachment attachment,
File file)
Releases the version lock for the attachment and deletes the specified file. |
void |
attachmentRelease(String attachmentId)
Releases the version lock for the attachment. |
void |
checkInAttachment(Attachment attachment,
String remarks,
File file)
Deprecated. use attachmentCheckIn(Attachment, String, File) instead |
void |
checkOutAttachment(Attachment attachment,
String directory)
Deprecated. use attachmentCheckOut(Attachment, String) instead |
void |
checkOutAttachmentToStream(Attachment attachment,
OutputStream stream)
Deprecated. use attachmentCheckOutToStream(Attachment, OutputStream) instead |
void |
close()
Closes the session. For reuse this session you need recreate it. |
InstanceInfo |
commitExternalActivity(String instanceStampId,
int taskIn,
Arguments args)
Deprecated. use activityCommit(String, String, Arguments) instead |
InstanceInfo |
commitExternalActivity(String instanceId,
String activityName,
Arguments args)
Deprecated. use activityCommit(String, String, Arguments) instead |
InstanceInfo |
commitExternalActivity(String instanceId,
String activityName,
int taskIn,
Arguments args)
Deprecated. use activityCommit(String, String, Arguments) instead. |
Presentation |
createPresentation(PresentationType presentationType,
String id,
Presentation.Column[] columns)
Deprecated. use presentationCreate(PresentationType, String, Presentation.Column[]) instead |
InstanceInfo |
createProcessInstance(String targetProcessId,
Arguments arguments)
Deprecated. use processCreateInstance(String, Arguments) instead |
InstanceInfo |
createProcessInstance(String targetProcessId,
String argumentsSetName,
Arguments arguments)
Deprecated. use processCreateInstance(String, String, Arguments) instead |
EditableView |
createView(ViewType viewType,
String viewId,
String[] assignedProcesses)
Deprecated. use viewCreate(ViewType, String, String[]) instead |
TaskExecution |
customRunActivity(String instanceId,
String activityName,
Arguments args)
Deprecated. use activityPost(String, String, Arguments) instead |
TaskExecution |
customRunActivity(String instanceId,
String activityName,
int taskIn,
Arguments args)
Deprecated. use activityPost(String, String, int, Arguments) instead |
TaskExecution |
customRunGlobal(String instanceId,
String activityName,
Arguments args)
Deprecated. use activityPost(String, String, Arguments) instead |
GlobalExecution |
customRunGlobalActivity(String activityId,
Arguments arguments)
Deprecated. use activityPostApplication(String, String, Arguments) instead |
TaskExecution |
customRunTask(String instanceStampId,
int taskIn,
Arguments args)
Deprecated. use activityPost(String, String, int, Arguments) instead. |
String |
getActiveProcessId(String process)
Deprecated. use processGetActiveVersion(String) instead |
String[] |
getActiveProcessIdsByView(View view)
Deprecated. use View.getAssignedProcesses() and then use processGetActiveVersion(String)
over each process in the array. |
String |
getActivityDocumentation(String activityId,
Locale locale)
Deprecated. use activityGetDocumentation(Activity, Locale) instead |
Activity |
getActivityForView(ActivityView view)
Deprecated. The ActivityScope is deprecated |
String[] |
getAllProcessVersions(String process)
Deprecated. use processGetAllVersions(String) instead |
String[] |
getAllProcessVersions(String[] processes)
Deprecated. use processesGetAllVersions(fuego.papi.collections.ProcessIdSet) instead |
Activity[] |
getApplicationsByView(ApplicationsView view)
Deprecated. use viewGetApplications(ApplicationsView) instead |
Attachment |
getAttachment(String attachmentId)
Deprecated. use attachmentGet(String) instead |
Attachment |
getAttachmentLastVersion(String attachmentId)
Deprecated. use attachmentGetLastVersion(String) instead |
Attachment[] |
getAttachmentsByInstance(String instanceId)
Deprecated. use instanceGetAttachments(String) instead |
Attachment[] |
getAttachmentsByView(AttachmentsView view)
Deprecated. use viewGetAttachments(AttachmentsView) instead |
Attachment[] |
getAttachmentVersions(String attachmentId)
Deprecated. use attachmentGetAllVersions(String) instead |
String[] |
getBookmarks()
Deprecated. use instancesGetBookmarks() instead |
Calendar |
getCalendar()
Deprecated. use participantCalendar() instead |
Map |
getChildrenViews(String viewId)
Deprecated. use viewGetChildren(String) instead |
Consult |
getConsult(String instanceId)
Deprecated. use instanceGetLastConsult(InstanceInfo) instead |
String[] |
getConsults()
Deprecated. use instancesGetConsults() instead |
Presentation |
getDefaultPresentation(PresentationType presentationType)
Deprecated. use presentationGetDefault(PresentationType) instead |
Presentation |
getDefaultPresentation(ViewType viewType)
Deprecated. use presentationGetDefault(ViewType) instead |
List |
getDelegateParticipants(InstanceStamp instance)
Deprecated. use instanceGetParticipants(String, String, ParticipantFor) instead.[instanceGetParticipants("/OU/ProcessName#Default-1.0/1/0", "MyActivity", ParticipantFor.DELEGATE)] |
EditableView |
getEditableView(View view)
Deprecated. use viewEdit(View) instead |
List |
getEscalateParticipants(InstanceStamp instance)
Deprecated. use instanceGetParticipants(String, String, ParticipantFor) instead.[instanceGetParticipants("/OU/ProcessName#Default-1.0/1/0", "MyActivity", ParticipantFor.ESCALATE)] |
Activity[] |
getGlobalActivities(Process[] processes)
Deprecated. use processesGetGlobalActivities(ProcessIdSet) instead |
Activity[] |
getGlobalActivities(Process[] processes,
int taskType,
boolean hasInstanceAccess)
Deprecated. processesGetGlobalActivities(ProcessIdSet, int, boolean) instead |
Activity[] |
getGlobalActivities(String[] processIds)
Deprecated. use processesGetGlobalActivities(fuego.papi.collections.ProcessIdSet) instead. |
Activity[] |
getGlobalActivities(String[] processIds,
int activityType,
boolean hasInstanceAccess)
Deprecated. use processesGetGlobalActivities(ProcessIdSet, int, boolean) instead. |
Activity[] |
getGrabActivitiesForInstance(InstanceInfo instance)
Deprecated. use instanceGrabbableFrom(InstanceInfo) instead |
InstanceInfo[] |
getGrabbableInstances(String activityId)
Deprecated. activityGetGrabbableInstances(String, String) instead. |
String |
getHost()
Deprecated. use participantHost() instead |
String |
getId()
Returns the session identification assigned to this session or null if this session does not have identification. |
InstanceInfo |
getInstance(InstanceStamp stamp)
Deprecated. use processGetInstance(String, String) instead |
InstanceInfo |
getInstance(String instanceId)
Deprecated. use processGetInstance(String) instead |
InstanceInfo |
getInstanceByCorrelation(String processId,
String correlationName,
Object[] correlationValues)
Deprecated. use processGetInstanceByCorrelation(String, String, Object[]) instead |
DynamicObject |
getInstanceData(String instanceId)
Deprecated. use instanceGetData(String) instead |
InstanceEvent[] |
getInstanceEvents(String instanceId)
Deprecated. use instanceGetEvents(String) instead |
Note[] |
getInstanceNotes(String instanceId)
Deprecated. use instanceGetNotes(String) instead |
InstanceInfo[] |
getInstances(String processId)
Deprecated. use processGetInstances(String) instead |
InstanceInfo[] |
getInstancesByFilter(String[] processIds,
Filter filter)
Deprecated. use processesGetInstancesByFilter(fuego.papi.collections.ProcessIdSet, Filter) instead |
InstanceInfo[] |
getInstancesByView(InstancesView view)
Deprecated. use viewGetInstances(InstancesView) instead |
Locale |
getLocale()
Deprecated. use participantLocale() instead |
Note |
getNote(String noteId)
Deprecated. use noteGet(String) instead |
String |
getOrganization()
Deprecated. use organization() instead |
View |
getParentView(View view)
Deprecated. use viewGetParent(String) instead |
String |
getParentViewId(String viewId)
Deprecated. use View.getParentId() instead. |
Participant |
getParticipant()
Deprecated. use participantCurrent() instead |
Participant |
getParticipant(String uid)
Deprecated. use participantFind(String) instead |
List |
getParticipantsForInstance(InstanceStamp instance)
Deprecated. use instanceGetParticipants(String, String, ParticipantFor) instead.[instanceGetParticipants("/OU/Process#Default-1.0/1/0", "MyActivity", ParticipantFor.REASSIGN)] |
Presentation |
getPresentation(PresentationType presentationType,
String presentationId)
Deprecated. use presentationGet(PresentationType, String) instead |
Presentation |
getPresentation(String presentationId)
Deprecated. use presentationGet(String) instead |
Presentation |
getPresentation(ViewType viewType,
String presentationId)
Deprecated. use presentationGet(ViewType, String) instead |
String[] |
getPresentationIds(PresentationType presentationType)
Deprecated. use presentationsGetIds(PresentationType) instead |
Process |
getProcess(int processIn)
Deprecated. use processGet(int) instead. 'In' is not a valid identifier in all environments. Use process id instead. |
Process |
getProcess(String processId)
Deprecated. use processGet(String) instead |
ProcessDiagram |
getProcessDiagram(int processIn)
Deprecated. use processGetDiagram(Process) instead |
ProcessDiagram |
getProcessDiagram(Process process)
Deprecated. use processGetDiagram(Process) instead |
ProcessDiagram |
getProcessDiagram(String processId)
Deprecated. use processGetDiagram(String) instead |
String |
getProcessDocumentation(String processId,
Locale locale)
Deprecated. use processGetDocumentation(String, Locale) instead |
Process[] |
getProcesses(boolean force)
Deprecated. use processesGet(boolean) instead |
Process[] |
getProcesses(boolean onlyActiveProcess,
boolean force)
Deprecated. use processesGet(boolean, boolean) instead |
String |
getProcessId(InstanceInfo instance)
Deprecated. use instanceGetProcessId(InstanceInfo) instead |
String |
getProcessId(int processIn)
Deprecated. use processGetId(int) instead |
String[] |
getProcessIds()
Deprecated. use processesGetIds() instead |
String[] |
getProcessIds(boolean onlyActiveProcess)
Deprecated. use processesGetIds(boolean) instead |
String |
getProcessImage(String processId)
Deprecated. use processGetDiagram(Process) instead |
int |
getProcessIn(String processId)
Deprecated. 'In' is not a valid identifier in all environments. |
ProcessService |
getProcessService()
Returns the ProcessService used to create this session. |
Map<String,?> |
getSecureEngines()
|
Object |
getSessionProperty(String key)
Gets PAPI Session scope property. |
TimeZone |
getTimeZone()
Deprecated. use participantTimeZone() instead |
Locale |
getUserLocale()
Deprecated. use participantLocale() instead |
TimeZone |
getUserTimeZone()
Deprecated. use participantTimeZone() instead |
VarDefinition |
getVar(String variableId)
Deprecated. use variableGet(String) instead |
VarDefinition[] |
getVars()
Deprecated. use variablesGet() instead |
View |
getView(String viewId)
Deprecated. use viewGet(String) instead |
String[] |
getViewIds()
Deprecated. use viewsGetIds() instead |
String[] |
getVisibleActivities(String processId)
Deprecated. use processGetVisibleActivities(String) instead |
Attachment[] |
getWorkingAttachments(String processId)
Deprecated. use processGetWorkingAttachments(String) instead |
boolean |
hasNewInstances()
Deprecated. Use #viewsHaveNewInstances instead. |
boolean |
hasNewInstances(String viewId)
Deprecated. use viewHasNewInstances(String) instead |
void |
instanceAttach(InstanceInfo instanceInfo,
String name,
String description,
String remarks,
File file)
Attaches a file attachment to this process instance. |
void |
instanceAttach(InstanceInfo instanceInfo,
String name,
String description,
String remarks,
File file,
String contentType)
Attaches a file with the specified content type to this process instance. |
void |
instanceAttach(InstanceInfo instanceInfo,
String name,
String description,
String remarks,
File file,
String contentType,
Locale locale)
Attaches a file with the specified content type to this process instance. |
void |
instanceAttach(InstanceInfo instanceInfo,
String name,
String description,
String remarks,
File file,
String contentType,
Locale locale,
AttachmentStorageType storageType)
Attaches a file with the specified content type to this process instance. |
void |
instanceAttach(String instanceId,
String name,
String description,
String remarks,
File file,
String contentType,
Locale locale)
Attaches a file with the specified content type to this process instance. |
void |
instanceAttach(String instanceId,
String name,
String description,
String remarks,
File file,
String contentType,
Locale locale,
AttachmentStorageType storageType)
Attaches a file with the specified content type to this process instance. |
boolean |
instanceCanBeAborted(InstanceInfo instance)
Returns true if the instance can be aborted. |
boolean |
instanceCanBeAborted(String instanceId)
Returns true if the instance can be aborted. |
boolean |
instanceCanBeBack(InstanceInfo instance)
Deprecated. use instanceCanBeSentBack(InstanceInfo) instead. |
boolean |
instanceCanBeDelegate(InstanceInfo instance)
Deprecated. use instanceCanBeDelegated(InstanceInfo) instead. |
boolean |
instanceCanBeDelegated(InstanceInfo instance)
Returns true if the instance can be delegated. |
boolean |
instanceCanBeDelegated(String instanceId)
Returns true if the instance can be delegated. |
boolean |
instanceCanBeEscalate(InstanceInfo instance)
Deprecated. use instanceCanBeEscalated(InstanceInfo) instead. |
boolean |
instanceCanBeEscalated(InstanceInfo instance)
Returns true if this instance can be escalated. |
boolean |
instanceCanBeEscalated(String instanceId)
Returns true if this instance can be escalated. |
boolean |
instanceCanBeProcessed(InstanceInfo instance)
Returns true if the instance can be processed. |
boolean |
instanceCanBeProcessed(String instanceId)
Returns true if the instance can be processed. |
boolean |
instanceCanBeReassign(InstanceInfo instance)
Deprecated. use instanceCanBeReassigned(InstanceInfo) instead. |
boolean |
instanceCanBeReassigned(InstanceInfo instance)
Returns true if the instance can be reassigned. |
boolean |
instanceCanBeReassigned(String instanceId)
Returns true if the instance can be reassigned. |
boolean |
instanceCanBeReassignedToPeer(InstanceInfo instance)
Returns true if this instance can be reassigned to a peer. |
boolean |
instanceCanBeReassignedToPeer(String instanceId)
Returns true if this instance can be reassigned to a peer. |
boolean |
instanceCanBeResumed(InstanceInfo instance)
Returns true if the instance can be resumed. |
boolean |
instanceCanBeResumed(String instanceId)
Returns true if the instance can be resumed. |
boolean |
instanceCanBeSelected(InstanceInfo instance)
Returns true if the instance can be selected by the current participant. |
boolean |
instanceCanBeSelected(String instanceId)
Returns true if the instance can be selected by the current participant. |
boolean |
instanceCanBeSent(InstanceInfo instance)
Returns true if the instance can be sent. |
boolean |
instanceCanBeSent(String instanceId)
Returns true if the instance can be sent. |
boolean |
instanceCanBeSentBack(InstanceInfo instance)
Returns true if the instance can be routed back. |
boolean |
instanceCanBeSentBack(String instanceId)
Returns true if the instance can be routed back. |
boolean |
instanceCanBeSuspended(InstanceInfo instance)
Returns true if the instance can be suspended. |
boolean |
instanceCanBeSuspended(String instanceId)
Returns true if the instance can be suspended. |
boolean |
instanceCanBeUngrabbed(InstanceInfo instance)
Returns true if the instance can be ungrabbed. |
boolean |
instanceCanBeUngrabbed(String instanceId)
Returns true if the instance can be ungrabbed. |
boolean |
instanceCanBeUnselected(InstanceInfo instance)
Returns true if the instance can be unselected by the current participant
An instance can be unselected if the instance is currently selected by the participant |
boolean |
instanceCanBeUnselected(String instanceId)
Returns true if the instance can be unselected by the current participant
An instance can be unselected if the instance is currently selected by the participant |
AttachmentList |
instanceGetAttachments(InstanceInfo instance)
Gets all the Attachments associated with this instance. |
AttachmentList |
instanceGetAttachments(String instanceId)
Returns an array with all the attachments related with the passed instance. |
DynamicObject |
instanceGetData(InstanceInfo instance)
Gets the instance component associated with this instance. The instance component is the instance of the class generated during the deployment. |
DynamicObject |
instanceGetData(String instanceId)
Gets the instance component associated with this instance identification. The instance component is the instance of the class generated during the deployment. |
InstanceEventList |
instanceGetEvents(InstanceInfo instance)
Returns the InstanceEvents for the specified instance. |
InstanceEventList |
instanceGetEvents(String instanceId)
Returns the InstanceEvents for the specified instanceId. |
ActivityList |
instanceGetGlobalActivities(InstanceInfo instance)
Returns all Global activities which can be called for the specified instance. |
ActivityList |
instanceGetGlobalActivities(String instanceId)
Returns all Global activities which can be called for the specified instance. |
Consult |
instanceGetLastConsult(InstanceInfo instance)
Gets the Consult associated with the specified instanceId, or null if there is no consultation. |
Consult |
instanceGetLastConsult(String instanceId)
Gets the last Consult associated with the specified instanceId, or null if there is no consultation. |
NoteList |
instanceGetNotes(InstanceInfo instance)
Gets all the Notes associated with the specified instance. |
NoteList |
instanceGetNotes(String instanceId)
Gets all the Notes associated with the specified instance. |
ParticipantList |
instanceGetParticipants(InstanceInfo instance,
ParticipantFor participantFor)
Gets a list of participants that the specified instance can be assigned to. |
ParticipantList |
instanceGetParticipants(String instanceId,
ParticipantFor participantFor)
Deprecated. use instanceGetParticipants(String, String, ParticipantFor, String, int) instead |
ParticipantList |
instanceGetParticipants(String instanceId,
String activityName,
ParticipantFor participantFor)
Deprecated. use instanceGetParticipants(String, String, ParticipantFor, String, int) instead |
ParticipantList |
instanceGetParticipants(String instanceId,
String activityName,
ParticipantFor participantFor,
String filter,
int max)
Gets a list of participants that the specified instance can be assigned to. |
String |
instanceGetProcessId(InstanceInfo instance)
Gets the processId from the specified instanceInfo. |
String |
instanceGetProcessId(String instanceId)
Gets the processId for the specified InstanceId. |
Object |
instanceGetVariable(InstanceInfo instance,
String variableId)
Returns the value of the variable in the given instance. |
Object |
instanceGetVariable(String instanceId,
String variableId)
Returns the value of the variable in the given instance. |
ActivityList |
instanceGrabbableFrom(InstanceInfo instance)
Gets all the grab activities that can grab this instance. |
ActivityList |
instanceGrabbableFrom(String instanceId)
Gets all the grab activities that can grab this instance. |
boolean |
instanceHasAttachments(InstanceInfo instance)
Returns true if the specified instance has attachments. |
boolean |
instanceHasAttachments(String instanceId)
Returns true if the specified instance has attachments. |
boolean |
instanceHasNotes(InstanceInfo instance)
Returns true if the specified instance has notes. |
boolean |
instanceHasNotes(String instanceId)
Returns true if the specified instance has notes. |
void |
instanceLinkExternalAttachment(InstanceInfo instanceInfo,
String externalId,
AttachmentStorageType storageType)
Links an external attachment (stored in an external storage repository) to the instance. |
void |
instanceLinkExternalAttachment(String instanceId,
String externalId,
AttachmentStorageType storageType)
Links an external attachment (stored in an external storage repository) to the instance. |
void |
instanceReassign(InstanceInfo instance,
String participant)
Reassigns the instance to the specified participant. |
void |
instanceReassign(InstanceStamp instance,
String participant)
Deprecated. use instanceReassign(String, String, String) instead |
void |
instanceReassign(String instanceId,
String activityName,
String participant)
Reassigns the instance to the specified participant. |
InstanceInfo |
instanceRefresh(InstanceInfo instanceInfo)
Forces the reload of the specified InstanceInfo. |
InstanceInfo |
instanceRefresh(String instanceId)
Forces the reload of the specified InstanceInfo. |
String |
instanceRetrieveProperty(InstanceInfo instanceInfo,
String key)
Retrieves an instance scope property from the specified instance. |
String |
instanceRetrieveProperty(String instanceId,
String key)
Retrieves an instance scope property from the specified instance. |
void |
instancesAbort(InstanceActivityPairSet instanceActivityPairs)
Aborts the specified instances. |
void |
instancesAbort(InstanceStamp[] instances)
Deprecated. use instancesAbort(InstanceActivityPairSet) instead |
void |
instancesAddBookmark(InstanceActivityPairSet instanceActivityPairs)
Adds bookmarks. |
void |
instancesAddConsult(InstanceActivityPairSet instanceActivityPairs,
String consult,
String toParticipant)
Adds consultations for the specified instances for the specified participant. |
void |
instancesAddConsult(InstanceStamp[] instances,
String consult,
String toParticipant)
Deprecated. use instancesAddConsult(InstanceActivityPairSet, String, String) instead |
void |
instancesAddHistory(InstanceActivityPairSet instances)
|
void |
instancesAddNote(InstanceActivityPairSet instanceActivityPairs,
String note)
Adds a note to the specified instances. |
void |
instancesAddNote(InstanceStamp[] instances,
String note)
Deprecated. use instancesAddNote(InstanceActivityPairSet, String) instead |
fuego.collections.lists.StringList |
instancesGetBookmarks()
Gets bookmarks for the current participant. |
fuego.collections.lists.StringList |
instancesGetConsults()
Gets all the Consults for this session. |
ParticipantList |
instancesGetParticipants(InstanceActivityPairSet instanceActivityPairSet,
ParticipantFor participantFor)
Deprecated. use instancesGetParticipants(fuego.papi.collections.InstanceActivityPairSet, ParticipantFor, String, int) instead |
ParticipantList |
instancesGetParticipants(InstanceActivityPairSet instanceActivityPairSet,
ParticipantFor participantFor,
String filter,
int max)
Gets a list of participants that the specified set of instances can be assigned to. |
fuego.collections.lists.StringList |
instancesGetTargetActivities(InstanceActivityPairSet instanceActivityPairs)
Returns the activities that can receive the specified group of instances. |
ActivityList |
instancesGetTargetActivitiesList(InstanceActivityPairSet instanceActivityPairs)
Returns the activities that can receive the specified group of instances. |
ParticipantsForActivities |
instancesGetTargetParticipants(InstanceActivityPairSet instanceActivityPairs)
Deprecated. use instancesGetTargetActivities(fuego.papi.collections.InstanceActivityPairSet) and instancesGetTargetParticipantsForActivity(fuego.papi.collections.InstanceActivityPairSet, java.lang.String, java.lang.String, int) instead. |
Map |
instancesGetTargetParticipantsForActivity(InstanceActivityPairSet instanceActivityPairs,
String activityName,
String filter,
int max)
Returns the participants who can receive the specified group of instances in the specified activity. |
void |
instancesGrab(InstanceActivityPairSet instanceActivityPairs,
String grabActivityName)
Grabs a group of instances by the specified activity. |
void |
instancesGrab(InstanceStamp[] instances,
String grabActivityName)
Deprecated. use instancesGrab(InstanceActivityPairSet, String) instead |
void |
instancesReassign(InstanceActivityPairSet instanceActivityPairSet,
String participant)
Reassigns the instance to the specified participant. |
void |
instancesRemoveBookmark(InstanceActivityPairSet instanceActivityPairs)
Removes bookmarks. |
void |
instancesResume(InstanceActivityPairSet instanceActivityPairs)
Resumes a group of instances. |
void |
instancesResume(InstanceStamp[] instances)
Deprecated. use instancesResume(fuego.papi.collections.InstanceActivityPairSet) instead |
void |
instancesSelect(InstanceActivityPairSet instanceActivityPairs)
Selects a group of instances by the current participant. |
void |
instancesSelect(InstanceStamp[] instances)
Deprecated. use instancesSelect(fuego.papi.collections.InstanceActivityPairSet) instead |
void |
instancesSend(InstanceActivityPairSet instanceActivityPairs)
Sends a group of instances. |
void |
instancesSend(InstanceStamp[] instances)
Deprecated. use instancesSend(InstanceActivityPairSet) instead |
void |
instancesSendBack(InstanceActivityPairSet instanceActivityPairs,
boolean skip)
Sends back a group of instances. |
void |
instancesSendBack(InstanceStamp[] instances,
boolean skip)
Deprecated. use instancesSendBack(InstanceActivityPairSet, boolean) instead |
void |
instancesSendTo(InstanceActivityPairSet instanceActivityPairs,
String activityName)
Routes a group of instances to the specified activity. |
void |
instancesSendTo(InstanceActivityPairSet instanceActivityPairs,
String activityName,
String participant)
Routes a group of instances to the specified activity and participant. |
void |
instancesSendTo(InstanceStamp[] instances,
String activityName)
Deprecated. use instancesSendTo(InstanceActivityPairSet, String) instead |
void |
instancesSendTo(InstanceStamp[] instances,
String activityName,
String participant)
Deprecated. use instancesSendTo(InstanceActivityPairSet, String, String) instead |
void |
instancesSuspend(InstanceActivityPairSet instanceActivityPairs)
Suspends a group of instances. |
void |
instancesSuspend(InstanceStamp[] instances)
Deprecated. use instancesSuspend(InstanceActivityPairSet) instead |
ParticipantsForActivities |
instancesTargetParticipants(InstanceStamp[] instances)
Deprecated. use instancesGetTargetParticipants(InstanceActivityPairSet) instead |
void |
instanceStoreProperty(InstanceInfo instanceInfo,
String key,
String value)
Stores an instance scope property in the specified instance. |
void |
instanceStoreProperty(String instanceId,
String key,
String value)
Stores an instance scope property in the specified instance. |
void |
instancesUngrab(InstanceActivityPairSet instanceActivityPairs)
Ungrabs a group of instances. |
void |
instancesUngrab(InstanceStamp[] instances)
Deprecated. use instancesUngrab(InstanceActivityPairSet) instead |
void |
instancesUnselect(InstanceActivityPairSet instanceActivityPairs)
Unselects a group of instances. |
void |
instancesUnselect(InstanceStamp[] instances)
Deprecated. use instancesUnselect(InstanceActivityPairSet) instead |
boolean |
isChangeParticipantPasswordSupported()
Deprecated. use participantChangePasswordEnabled() instead |
boolean |
isOpened()
Returns true if this session is open. |
Note |
noteGet(String noteId)
Gets the Note specified by this noteId. |
ObjectClassInstance |
objectClassInstanceFetchByName(String objectClass,
String name)
Retrieves an instance of the specified object class and name. |
ObjectClassInstance[] |
objectClassInstanceFetchByParticipants(String objectClass,
String[] participants)
Retrieves an array of instances for the specified object class that is visible to any of the participants. |
ObjectClassInstance[] |
objectClassInstanceFetchByRoles(String objectClass,
String[] roles)
Retrieves an array of instances for the specified object class that is visible to any of the roles. |
ObjectClassInstance[] |
objectClassInstanceFetchByRolesAndParticipants(String objectClass,
String[] roles,
String[] participants)
Retrieves an array of instances for the specified object class that is visible to any of the roles and participants. |
void |
obtainEditionLock(Attachment attachment)
Deprecated. use attachmentEdit(Attachment) instead |
String |
organization()
Gets the organization name. |
fuego.collections.lists.StringList |
organizations()
Gets all organization names which the Session is connected to. |
Calendar |
participantCalendar()
Gets the calendar set with the session Locale and TimeZone. |
boolean |
participantChangePasswordEnabled()
Returns true if the directory supports changing the current participant password. |
Participant |
participantCurrent()
Gets the Participant for this session. |
void |
participantEnableMailReception(boolean enableMailReception)
Sets whether or not the current participant can receive mail. |
Participant |
participantFind(String uid)
Gets the Participant specified by participantUid. |
ParticipantList |
participantFindByName(String name)
Returns an array of Participants that match the specified name using a substring search. |
String |
participantHost()
Returns the host where the owner of this session is connected from. |
Locale |
participantLocale()
Returns the current participant Locale. |
Map |
participantRetrieveProperties(String category)
Returns a Map with all participant properties for the specified category. |
String |
participantRetrieveProperty(String category,
String key)
Returns a participant property. |
void |
participantStoreProperties(String category,
Map<String,Object> properties)
Stores current participant properties. |
void |
participantStoreProperty(String category,
String key,
Object value)
Stores current participant property. |
TimeZone |
participantTimeZone()
Gets the TimeZone for the current participant. |
void |
participantUpdateLocale(Locale locale)
Updates the current participant locale and stores it. |
void |
participantUpdatePassword(String oldPassword,
String newPassword)
Updates the current participant password. |
void |
participantUpdateTimeZone(TimeZone timezone)
Updates the current participant time zone and stores it. |
Arguments |
prepareExternalActivity(String instanceStampId,
int taskIn,
Arguments args)
Deprecated. use activityPrepare(String, String, Arguments) instead |
Arguments |
prepareExternalActivity(String instanceId,
String activityName,
Arguments args)
Deprecated. use activityPrepare(String, String, Arguments) instead |
Arguments |
prepareExternalActivity(String instanceId,
String activityName,
int taskIn,
Arguments args)
Deprecated. use activityPrepare(String, String, Arguments) instead |
Presentation |
presentationCreate(PresentationType presentationType,
String id,
Presentation.Column[] columns)
Creates a Presentation. |
EditablePresentation |
presentationEdit(Presentation presentation)
Gets an EditablePresentation from a Presentation. |
Presentation |
presentationGet(PresentationType presentationType,
String presentationId)
Gets the Presentation for the specified PresentationType and presentationId. |
Presentation |
presentationGet(String presentationId)
Gets the Presentation specified by this presentationId. |
Presentation |
presentationGet(ViewType viewType,
String presentationId)
Gets the Presentation for the specified ViewType and presentationId. |
Presentation |
presentationGetDefault(PresentationType presentationType)
Gets the predefined default Presentation for the specified PresentationType. |
Presentation |
presentationGetDefault(ViewType viewType)
Gets the default Presentation for the specified viewType. |
Presentation |
presentationRefresh(String presentationId)
Forces the reload of the specified Presentation. |
void |
presentationRemove(String presentationId)
Removes the presentation specified by presentationId. |
fuego.collections.lists.StringList |
presentationsGetIds(PresentationType presentationType)
Gets all the presentationIds for the specified PresentationType. |
void |
presentationStore(Presentation presentation)
Stores a presentation. |
InstanceInfo |
processCreateInstance(String targetProcessId,
Arguments arguments)
Creates a new process instance by running the Begin activity with the specified Arguments in the specified Process. |
InstanceInfo |
processCreateInstance(String targetProcessId,
String argumentsSetName,
Arguments arguments)
Creates a new process instance by running the Begin activity with the specified Arguments in the specified Process with the specified argument set name. |
InstanceInfo |
processCreateInstance(String targetProcessId,
String argumentsSetName,
Arguments arguments,
String name,
String description,
String remarks,
File file,
String contentType,
Locale locale)
|
InstanceInfo |
processCreateInstance(String targetProcessId,
String argumentsSetName,
Arguments arguments,
String name,
String description,
String remarks,
File file,
String contentType,
Locale locale,
AttachmentStorageType storageType)
|
ProcessList |
processesGet(boolean force)
Gets all deployed Processes for the session. |
ProcessList |
processesGet(boolean onlyActiveProcess,
boolean force)
Gets all deployed Processes for the session. |
fuego.collections.lists.StringList |
processesGetAllVersions(ProcessIdSet processes)
Returns all process identifications for the specific processes. |
ActivityList |
processesGetApplications(ProcessIdSet processes)
Gets all the Interactive Global Activities for the specified processes, not include Global Automatic and Global with instance access. |
ActivityList |
processesGetGlobalActivities(ProcessIdSet processes)
Gets all the Global Activities in the current participant roles for the specified processes. |
ActivityList |
processesGetGlobalActivities(ProcessIdSet processes,
boolean hasInstanceAccess)
Gets all the Global Activities in the current participant roles for the specified processes, and instance access. |
ActivityList |
processesGetGlobalActivities(ProcessIdSet processes,
int taskType,
boolean hasInstanceAccess)
Gets all the Global Activities in the current participant roles for the specified processes, task type, and instance access. |
fuego.collections.lists.StringList |
processesGetIds()
Gets the Ids of all deployed processes (Active and Deprecated versions) for this session. |
fuego.collections.lists.StringList |
processesGetIds(boolean onlyActiveProcess)
Gets the Ids of all deployed processes for this session, and optionally only active processes. |
InstanceInfoList |
processesGetInstancesByFilter(ProcessIdSet processes,
Filter filter)
Gets InstanceInfo s from the specified ProcessIds and match with the specified Filter. |
Process |
processGet(int processIn)
Deprecated. 'In' is not a valid identifier in all environments. Use process id instead. |
Process |
processGet(String processId)
Returns a Process object for the specified process identification or for the active process if you use the consolidated process id. |
String |
processGetActiveVersion(String process)
Gets the full active process identification for the specific process from the consolidated process Id or full process Id. For example, the consolidated process id could be "/East/Expense", and the active process id "/East/Expense#Default-2.1"; or the process id could be "/East/Expense#Default-1.0", and the active process id "/East/Expense#Default-2.1". |
fuego.collections.lists.StringList |
processGetAllVersions(String process)
Returns all process Id versions for the specified process. |
ProcessDiagram |
processGetDiagram(Process process)
Gets the ProcessDiagram for the specified process. |
ProcessDiagram |
processGetDiagram(String processId)
Gets the ProcessDiagram for the specified processId. |
String |
processGetDocumentation(String processId,
Locale locale)
Gets the local path of the process documentation, created in Studio, for the specified locale. |
String |
processGetId(int processIn)
Gets the processId from the specified process identification number. |
int |
processGetIn(String processId)
Deprecated. 'In' is not a valid identifier in all environments. |
InstanceInfo |
processGetInstance(String instanceId)
Gets the InstanceInfo specified by instanceId. |
InstanceInfo |
processGetInstance(String instanceId,
String activityName)
Gets the InstanceInfo specified by this Instance identification and the activity where the instance is supposed to be. |
InstanceInfo |
processGetInstanceByCorrelation(String processId,
String correlationName,
Object[] correlationValues)
Gets the instance specified by the process id, correlation name, and correlation values. |
InstanceInfoList |
processGetInstances(String process)
Gets the InstanceInfo s from the specified Process or Consolidated Process. |
ActivityList |
processGetVisibleActivities(String processId)
Gets all the activities visible to the current participant in the specified process. |
AttachmentList |
processGetWorkingAttachments(String processId)
Returns all Attachments locked by the current participant in the specified process. |
void |
processRun(String targetProcessId,
String argumentsSetName,
Arguments arguments,
long timeout)
Creates a new process instance in the specified Process and waits for the instance to reach the End activity up to the specified timeout. |
void |
processSendNotification(String targetInstanceOrProcessId,
String activityName,
String targetArgumentsSetName,
Arguments notification)
Sends a external notification to a process instance. |
void |
processSendNotification(String targetInstanceOrProcessId,
String activityName,
String targetArgumentsSetName,
Arguments notification,
String sourceInstanceId)
Sends a notification to a process in a parent/child relationship or for an external wait/interruption with the specified argument set. |
void |
putSessionProperty(String key,
Object value)
Puts PAPI Session scope property. |
void |
refresh(InstanceInfo instanceInfo)
Deprecated. use instanceRefresh(InstanceInfo) instead |
void |
releaseEditionLock(Attachment attachment)
Deprecated. use attachmentRelease(Attachment) instead |
void |
releaseEditionLock(Attachment attachment,
File file)
Deprecated. use attachmentRelease(Attachment, File) instead |
void |
removeBookmarks(InstanceStamp[] instancesStamp)
Deprecated. use instancesRemoveBookmark(InstanceActivityPairSet) instead |
void |
removePresentation(String presentationId)
Deprecated. use presentationRemove(String) instead |
void |
removeView(String viewId)
Deprecated. use viewRemove(String) instead |
Map |
retrieveRoleProperties(String roleId,
String category)
Deprecated. use roleRetrieveProperties(String, String) instead |
Map |
retrieveUserProperties(String category)
Deprecated. use participantRetrieveProperties(String) instead |
String |
retrieveUserStringProperty(String category,
String key)
Deprecated. use participantRetrieveProperty(String, String) instead |
Map |
roleRetrieveProperties(String roleId,
String category)
Returns a Map with all properties for the specified category for the specified role. |
InstanceInfo |
runActivity(String instanceStampId,
Arguments args)
Deprecated. use activityExecute(String, String, Arguments) instead |
InstanceInfo |
runActivity(String instanceStampId,
int taskIn,
Arguments args)
Deprecated. use activityExecute(String, String, int, Arguments) instead |
InstanceInfo |
runActivity(String instanceId,
String activityName,
Arguments args)
Deprecated. use activityExecute(String, String, Arguments) instead |
InstanceInfo |
runActivity(String instanceId,
String activityName,
int taskIn,
Arguments args)
Deprecated. use activityExecute(String, String, int, Arguments) instead |
InstanceInfo |
runGlobal(String instanceId,
String activityName,
Arguments args)
Deprecated. use activityExecute(String, String, Arguments) instead |
InstanceInfo |
runGlobalActivity(String activityId)
Deprecated. use activityExecuteApplication(String, String) instead |
InstanceInfo |
runGlobalActivity(String activityId,
Arguments arguments)
Deprecated. use activityExecuteApplication(String, String, Arguments) instead |
void |
runProcess(String targetProcessId,
String argumentsSetName,
Arguments arguments,
long timeout)
Deprecated. use processRun(String, String, Arguments, long) instead |
Participant[] |
searchParticipantsByName(String name)
Deprecated. use participantFindByName(String) instead |
void |
sendNotification(String targetInstanceOrProcessId,
String activityName,
String targetArgumentsSetName,
Arguments notification)
Deprecated. use processSendNotification(String, String, String, Arguments) instead |
void |
sendNotification(String targetInstanceOrProcessId,
String activityName,
String targetArgumentsSetName,
Arguments notification,
String sourceInstanceId)
Deprecated. use processSendNotification(String, String, String, Arguments, String) instead |
void |
setCanReceiveMail(boolean canReceiveMail)
Deprecated. use participantEnableMailReception(boolean) instead |
void |
setDefaultOrderByForViews(String variable,
boolean ascendingOrder)
Deprecated. use viewsSetDefaultOrder(String, boolean) instead |
void |
setLocale(Locale locale)
Deprecated. use participantUpdateLocale(Locale) instead |
void |
setTimeZone(TimeZone timezone)
Deprecated. use participantUpdateTimeZone(TimeZone) instead |
void |
storePresentation(Presentation presentation)
Deprecated. use presentationStore(Presentation) instead |
void |
storeUserProperties(String category,
Map<String,Object> properties)
Deprecated. use #participantStoreProperties(String, Map instead |
void |
storeView(View view)
Deprecated. use viewStore(View) instead |
boolean |
taskCanBeProcessed(InstanceInfo instance,
int taskNumber)
Returns true if the specified task for this instance can be executed by the current participant. |
boolean |
taskCanBeProcessed(int taskNumber,
String activityName,
String instanceId)
Returns true if the specified task for this instance can be executed by the current participant. |
boolean |
taskCanBeSelected(InstanceInfo instance,
int taskNumber)
Returns true if the specified task for this instance can be selected by the current participant. |
boolean |
taskCanBeSelected(int taskNumber,
String activityName,
String instanceId)
Returns true if the specified task for this instance can be selected by the current participant. |
boolean |
taskCanBeUnselected(InstanceInfo instance,
int taskNumber)
Returns true if the specified task for this instance can be unselected by the current participant. |
boolean |
taskCanBeUnselected(int taskNumber,
String activityName,
String instanceId)
Returns true if the specified task for this instance can be unselected by the current participant. |
void |
tasksSelect(InstanceInfo instance,
int[] taskNumbers)
Selects a process instance item. Selected items can only be processed by the participant which has them selected. Repeatable process instance items can be selected even if they have already been completed Note: Status is not changed to SELECTED when selecting a COMPLETED process instance item. |
void |
tasksSelect(int[] taskNumbers,
String activityName,
String instanceId)
Selects a process instance item. Selected items can only be processed by the participant which has them selected. Repeatable process instance items can be selected even if they have already been completed Note: Status is not changed to SELECTED when selecting a COMPLETED process instance item. |
void |
tasksSelect(String instanceId,
String activityName,
int[] taskNumbers)
Deprecated. use tasksSelect(int[], String, String) instead |
void |
tasksUnselect(InstanceInfo instance,
int[] taskNumbers)
Uselects this process instance item. Process instance items that are not selected by any participant can be processed by any participant in the role of the current activity. Repeatable process instance items can be selected even if they have already been completed. Note: Status is not changed to PENDING when unselecting a COMPLETED process instance item. |
void |
tasksUnselect(int[] taskNumbers,
String activityName,
String instanceId)
Uselects this process instance item. Process instance items that are not selected by any participant can be processed by any participant in the role of the current activity. Repeatable process instance items can be selected even if they have already been completed. Note: Status is not changed to PENDING when unselecting a COMPLETED process instance item. |
void |
tasksUnselect(String instanceId,
String activityName,
int[] taskNumbers)
Deprecated. use tasksUnselect(int[], String, String) instead |
String |
toString()
Returns the name of the class. |
void |
updateSecurityToken(String tokenType,
Object token)
Updates the current session security token type and token. |
void |
updateUserLocale(Locale locale)
Deprecated. use participantUpdateLocale(java.util.Locale) instead |
void |
updateUserPassword(String oldPassword,
String newPassword)
Deprecated. use participantUpdatePassword(String, String) instead |
void |
updateUserTimeZone(TimeZone timeZone)
Deprecated. use participantUpdateTimeZone(java.util.TimeZone) instead |
ProcessServiceAdminSession |
upgradeToAdminSession()
Creates an administration session based on this ProcessServiceSession . |
VarDefinition |
variableGet(String variableId)
Gets a VarDefinition from the loaded processes in this session. |
VarDefinitionList |
variablesGet()
Returns all the variable definitions from all the processes in this session. |
EditableView |
viewCreate(ViewType viewType,
String viewId,
String[] assignedProcesses)
Creates an EditableView. |
EditableView |
viewEdit(View view)
Gets an EditableView from a View. |
View |
viewGet(String viewId)
Returns the View specified by viewId. |
ActivityList |
viewGetActivity(ActivityView view)
Deprecated. The ActivityScope is deprecated |
ActivityList |
viewGetApplications(ApplicationsView view)
Returns all Global Activities (Activity.GLOBAL and Activity.GLOBAL_CREATION) for the specified ApplicationsView. |
ActivityList |
viewGetApplications(String applicationViewId)
Returns all the Global Activities for a given ApplicationsView |
AttachmentList |
viewGetAttachments(AttachmentsView view)
Gets the Attachments from this AttachmentsView. |
Map<String,View> |
viewGetChildren(String viewId)
Gets the children views of the view specified by view Id. |
InstanceInfoList |
viewGetInstances(InstancesView view)
Gets the InstanceInfos from the specified instances view. |
InstanceInfoList |
viewGetInstances(String viewId)
Gets the InstanceInfos from the specified instances view. |
View |
viewGetParent(String viewId)
Gets the parent View of the specified View. |
View |
viewGetParent(View view)
Gets the parent View of the specified View. |
String |
viewGetParentId(String viewId)
Gets the parent id of the specified view. |
boolean |
viewHasNewInstances(String viewId)
Returns true if this view has new instances since the last access. |
View |
viewRefresh(String viewId)
Forces the reload of the specified View. |
void |
viewRemove(String viewId)
Removes the view specified by viewId. |
fuego.collections.lists.StringList |
viewsGetIds()
Gets all the viewIds available to the current participant. |
boolean |
viewsHaveNewInstances()
Returns true if any view has new instances since the last access to it. |
void |
viewsSetDefaultOrder(String variable,
boolean ascendingOrder)
Sets the default sort order for instance views. |
void |
viewStore(View view)
Stores the specified view. |
Field Detail |
---|
static final long serialCheck
static final long serialVersionUID
Method Detail |
---|
ProcessService getProcessService()
ProcessService
used to create this session.
ProcessService
used to create this session.@Deprecated Activity[] getGlobalActivities(Process[] processes, int taskType, boolean hasInstanceAccess) throws BatchOperationException
processesGetGlobalActivities(ProcessIdSet, int, boolean)
instead
processes
- array of processes to check for global activities. Cannot be null
.taskType
- one of Task.CIL, Task.COMPONENT, Task.DECISION, Task.DISPLAY, Task.DISPLAY_INSTANCE,
Task.EXTERNAL, Task.INPUT, Task.PROCEDURE, Task.SCREENFLOW, Task.SHOW_DASHBOARD,
Task.SHOW_PROCESS_IMAGE or Task.SHOW_WORKLOAD.hasInstanceAccess
- whether the global activity has instance access or not.
BatchOperationException
- if the session could not perform the operation over every process.ApplicationsNotAvailableException
if not all activities requested
are available.ActivityList processesGetGlobalActivities(ProcessIdSet processes, int taskType, boolean hasInstanceAccess) throws BatchOperationException
processes
- ProcessIdSet
of processes to check for global activities. Cannot be null
.taskType
- one of Task.CIL, Task.COMPONENT, Task.DECISION, Task.DISPLAY, Task.DISPLAY_INSTANCE,
Task.EXTERNAL, Task.INPUT, Task.PROCEDURE, Task.SCREENFLOW, Task.SHOW_DASHBOARD,
Task.SHOW_PROCESS_IMAGE or Task.SHOW_WORKLOAD.hasInstanceAccess
- whether the global activity has instance access or not.
BatchOperationException
- if the session could not perform the operation over every process.ApplicationsNotAvailableException
if not all activities requested
are available.Task
,
Activity.hasInstanceAccess()
,
processesGetGlobalActivities(fuego.papi.collections.ProcessIdSet)
,
processesGetApplications(fuego.papi.collections.ProcessIdSet)
@Deprecated Activity[] getGlobalActivities(Process[] processes) throws BatchOperationException
processesGetGlobalActivities(ProcessIdSet)
instead
processes
- array of processes to check for global activities. Cannot be null
.
BatchOperationException
- if the session could not perform the operation over every process.ApplicationsNotAvailableException
if not all activities requested
are available.ApplicationsNotAvailableInProcessException
if the operation
could not be performed on a process.ActivityList processesGetGlobalActivities(ProcessIdSet processes) throws BatchOperationException
processes
- ProcessIdSet
of processes to check for global activities. Cannot be null
.
BatchOperationException
- if the session could not perform the operation over every process.ApplicationsNotAvailableException
if not all activities requested
are available.ApplicationsNotAvailableInProcessException
if the operation
could not be performed on a process.ActivityList processesGetGlobalActivities(ProcessIdSet processes, boolean hasInstanceAccess) throws BatchOperationException
processes
- ProcessIdSet
of processes to check for global activities. Cannot be null
.hasInstanceAccess
- BatchOperationException
- if the session could not perform the operation over every process.ApplicationsNotAvailableException
if not all activities requested
are available.ApplicationsNotAvailableInProcessException
if the operation
could not be performed on a process.ActivityList processesGetApplications(ProcessIdSet processes) throws BatchOperationException
processes
- ProcessIdSet
of processes to check for applications. Cannot be null
.
BatchOperationException
- if the session could not perform the operation over every process.ApplicationsNotAvailableException
if not all activities requested
are available.ApplicationsNotAvailableInProcessException
if the operation
could not be perform on a process.@Deprecated Activity[] getGlobalActivities(String[] processIds, int activityType, boolean hasInstanceAccess) throws BatchOperationException, OperationException
processesGetGlobalActivities(ProcessIdSet, int, boolean)
instead.
processIds
- array of processes to check for global activities. Cannot be null
.activityType
- one of Activity.GLOBAL_AUTOMATIC, Activity.GLOBAL_CREATION or Activity.GLOBAL.hasInstanceAccess
- whether the global activity has access to instance variables.
BatchOperationException
- if the session could not perform the operation over every process.ApplicationsNotAvailableException
if not all activities requested
are available.ApplicationsNotAvailableInProcessException
if the operation
could not be perform on a process.OperationException
- if the session could not perform the operation.@Deprecated Activity[] getGlobalActivities(String[] processIds) throws BatchOperationException, OperationException
processesGetGlobalActivities(fuego.papi.collections.ProcessIdSet)
instead.
processIds
- array of processIds to check for global activities. Cannot be null
.
OperationException
- if the session could not perform the operation.
BatchOperationException
- if the session could not perform the operation over every process.ApplicationsNotAvailableException
if not all activities requested
are available.ApplicationsNotAvailableInProcessException
if the operation
could not be perform on a process.boolean instanceHasAttachments(String instanceId) throws OperationException
true
if the specified instance has attachments.
instanceId
- Id of the instance to check for attachments. Cannot be null
.
true
if the specified instance has attachments.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process of the instance is not available.InstanceNotFoundException
if the instance does not exist.Attachment
boolean instanceHasAttachments(InstanceInfo instance) throws OperationException
true
if the specified instance has attachments.
instance
- Instance to check for attachments. Cannot be null
.
true
if the specified instance has attachments.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process of the instance is not available.InstanceNotFoundException
if the instance does not exist.Attachment
boolean instanceHasNotes(String instanceId) throws OperationException
true
if the specified instance has notes.
instanceId
- Id of the instance to check for notes. Cannot be null
.
true
if the specified instance has notes.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process of the instance is not available.InstanceNotFoundException
if the instance does not exist.boolean instanceHasNotes(InstanceInfo instance) throws OperationException
true
if the specified instance has notes.
instance
- Instance to check for notes. Cannot be null
.
true
if the specified instance has notes.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process of the instance is not available.InstanceNotFoundException
if the instance does not exist.@Deprecated void setCanReceiveMail(boolean canReceiveMail) throws OperationException
participantEnableMailReception(boolean)
instead
canReceiveMail
- true
if the current participant can receive mail
OperationException
- if the session could not perform the operation.void participantEnableMailReception(boolean enableMailReception) throws OperationException
enableMailReception
- true
if the current participant can receive mail
OperationException
- if the session could not perform the operation.@Deprecated boolean isChangeParticipantPasswordSupported() throws OperationRuntimeException
participantChangePasswordEnabled()
instead
true
if the directory supports changing the participant password.
true
if the directory supports changing the participant password
OperationRuntimeException
- if the session could not perform the operation.boolean participantChangePasswordEnabled() throws OperationRuntimeException
true
if the directory supports changing the current participant password.
true
if the directory supports changing the current participant password
OperationRuntimeException
- if the session could not perform the operation.@Deprecated List getDelegateParticipants(InstanceStamp instance) throws OperationException, BatchOperationException
instanceGetParticipants(String, String, ParticipantFor)
instead.
An instance can only be assigned if the interactive acitivity has been defined as assignable in Studio
and only participants who have been given permission to delegate in Process Administrator
can assign instances to participants with a lower category in the same role.
Role category is also assigned in Process Administrator.
This operation is NOT supported in a federated environment.
instance
- InstanceStamp to get the list of participants; cannot be null
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existBatchOperationException
- if the session could not perform the operation on the instanceInstancesException
if not all instances are available to
perform the operation.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceInfoList activityGetGrabbableInstances(String activityName, String processId) throws OperationException, BatchOperationException
activityName
- name of the grab activity; cannot be null
processId
- process identification where the activity is.
OperationException
- if the session could not perform the operationProcessNotAvailableException
if the process is not availableBatchOperationException
- if the session could not perform the operation on every activityProcessesNotAvailableException
if not all instances are available to
perform the operation..InstancesNotAvailableInEngineException
if the engine where
a process was deployes is not available.ProcessNotAvailableException
if a process is not available.InstanceInfoList activityGetGrabbableInstances(Activity activity) throws OperationException, BatchOperationException
activity
- Grab activity; cannot be null
OperationException
- if the session could not perform the operationProcessNotAvailableException
if the process is not availableBatchOperationException
- if the session could not perform the operation on every activityProcessesNotAvailableException
if not all instances are available to
perform the operation..InstancesNotAvailableInEngineException
if the engine where
a process was deployes is not available.ProcessNotAvailableException
if a process is not available.@Deprecated ParticipantList instanceGetParticipants(String instanceId, ParticipantFor participantFor) throws OperationException, BatchOperationException
instanceGetParticipants(String, String, ParticipantFor, String, int)
instead
An instance can only be assigned if the interactive acitivity has been defined as assignable in Studio
and only participants who have been given permission to delegate in Process Administrator
can assign instances to participants with a lower category in the same role.
Role category is also assigned in Process Administrator.
instanceId
- Instance Identification to get the list of participants; cannot be null
participantFor
- the assignment that you want to execute (delegate, escalate, reassign or reassign to peer).
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existBatchOperationException
- if the session could not perform the operation on the instanceInstancesException
if not all instances are available to
perform the operation.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.@Deprecated ParticipantList instanceGetParticipants(String instanceId, String activityName, ParticipantFor participantFor) throws OperationException, BatchOperationException
instanceGetParticipants(String, String, ParticipantFor, String, int)
instead
An instance can only be assigned if the interactive acitivity has been defined as assignable in Studio
and only participants who have been given permission to delegate in Process Administrator
can assign instances to participants with a lower category in the same role.
Role category is also assigned in Process Administrator.
instanceId
- Id of the instance to get the list of participants; cannot be null
activityName
- Activity name where yous suppose that the instance is.participantFor
- the assignation that you want to do (delegate, escalate, reassign or reassign to peer).
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existBatchOperationException
- if the session could not perform the operation on the instanceInstancesException
if not all instances are available to
perform the operation.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.ParticipantList instanceGetParticipants(String instanceId, String activityName, ParticipantFor participantFor, String filter, int max) throws OperationException, BatchOperationException
An instance can only be assigned if the interactive acitivity has been defined as assignable in Studio
and only participants who have been given permission to delegate in Process Administrator
can assign instances to participants with a lower category in the same role.
Role category is also assigned in Process Administrator.
instanceId
- Id of the instance to get the list of participants; cannot be null
activityName
- Activity name where yous suppose that the instance is.participantFor
- the assignation that you want to do (delegate, escalate, reassign or reassign to peer).filter
- pattern used to filter participantsmax
- maximum number of participants to be returned; if it is exceeded, MaxSizeParticipantsExceededException
will be thrown
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existBatchOperationException
- if the session could not perform the operation on the instanceInstancesException
if not all instances are available to
perform the operation.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.ParticipantList instanceGetParticipants(InstanceInfo instance, ParticipantFor participantFor) throws OperationException, BatchOperationException
An instance can only be assigned if the interactive activity has been defined as assignable in Studio
and only participants who have been given permission to delegate in Process Administrator
can assign instances to participants with a lower category in the same role.
Role category is also assigned in Process Administrator.
instance
- InstanceInfo to get the list of participants; cannot be null
participantFor
- the assignation that you want to do (delegate, escalate, reassign or reassign to peer).
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existBatchOperationException
- if the session could not perform the operation on the instanceInstancesException
if not all instances are available to
perform the operation.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.@Deprecated ParticipantList instancesGetParticipants(InstanceActivityPairSet instanceActivityPairSet, ParticipantFor participantFor) throws OperationException, BatchOperationException
instancesGetParticipants(fuego.papi.collections.InstanceActivityPairSet, ParticipantFor, String, int)
instead
An instance can only be assigned if the interactive activity has been defined as assignable in Studio
and only participants who have been given permission to delegate in Process Administrator
can assign instances to participants with a lower category in the same role.
Role category is also assigned in Process Administrator.
instanceActivityPairSet
- set of Instance-Activity pairs with the instances to get the list
of participants; cannot be null
participantFor
- the assignation that you want to do (delegate, escalate, reassign or reassign to peer).
OperationException
- if the session could not perform the operation.PrivilegedOperationException
if the participant does not have
permissions to perform the operation.BatchOperationException
- if the session could not perform the operation on the instanceInstancesException
if not all instances are available to
perform the operation.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the pair specify.ParticipantList instancesGetParticipants(InstanceActivityPairSet instanceActivityPairSet, ParticipantFor participantFor, String filter, int max) throws OperationException, BatchOperationException
An instance can only be assigned if the interactive activity has been defined as assignable in Studio
and only participants who have been given permission to delegate in Process Administrator
can assign instances to participants with a lower category in the same role.
Role category is also assigned in Process Administrator.
instanceActivityPairSet
- set of Instance-Activity pairs with the instances to get the list
of participants; cannot be null
participantFor
- the assignation that you want to do (delegate, escalate, reassign or reassign to peer).filter
- pattern used to filter participantsmax
- maximum number of participants to be returned; if it is exceeded, MaxSizeParticipantsExceededException
will be thrown
OperationException
- if the session could not perform the operation.PrivilegedOperationException
if the participant does not have
permissions to perform the operation.BatchOperationException
- if the session could not perform the operation on the instanceInstancesException
if not all instances are available to
perform the operation.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the pair specify.void attachmentCheckIn(Attachment attachment, String remarks, File file) throws OperationException
attachment
- the attachment to check in; cannot be null
remarks
- version-specific remarks to add to the attachment; cannot be null
;
the maximum length of remarks is Attachment.REMARK_LENGTH
file
- file to check in for the new attachment version; cannot be null
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInvalidAttachmentArgumentLengthException
if the remarks argument
of the attachment exceeds the limit of the argument lengthAttachmentFileNotFoundException
if the file does not existAttachmentOperationException
if the attachment could not be checked invoid attachmentCheckIn(String attachmentId, String remarks, File file) throws OperationException
attachmentId
- id of the attachment to check in; cannot be null
remarks
- version-specific remarks to add to the attachment; cannot be null
;
the maximum length of remarks is Attachment.REMARK_LENGTH
file
- file to check in for the new attachment version; cannot be null
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInvalidAttachmentArgumentLengthException
if the remarks argument
of the attachment exceeds the limit of the argument lengthAttachmentFileNotFoundException
if the file does not existAttachmentOperationException
if the attachment could not be checked invoid attachmentCheckOut(Attachment attachment, String folder) throws OperationException
attachment
- attachment to write; cannot be null
folder
- folder where the file will be written;
this directory must already exist; if this is a relative directory, it is
relative to where the PAPI program is running
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableAttachmentOperationException
if the attachment could not be written to the
specified directory, if a version lock has not been obtained, or if the current participant does not
hold the version lock@Deprecated String getActiveProcessId(String process)
processGetActiveVersion(String)
instead
process
- full process id in the format "/OrganizationalUnit/ProcessName#Variation-Mayor.minor" or
consolidated process Id in the format "/OrganizationalUnit/ProcessName".
Cannot be null
.
String processGetActiveVersion(String process)
process
- full process id in the format "/OrganizationalUnit/ProcessName#Variation-Mayor.minor" or
consolidated process Id in the format "/OrganizationalUnit/ProcessName".
Cannot be null
.
@Deprecated String[] getActiveProcessIdsByView(View view)
View.getAssignedProcesses()
and then use processGetActiveVersion(String)
over each process in the array.
view
- View to check for active processes. Cannot be null
.
@Deprecated String getActivityDocumentation(String activityId, Locale locale) throws OperationException
activityGetDocumentation(Activity, Locale)
instead
activityId
- Id of the activity that contains the localized documentation. Cannot be null
.locale
- locale of the localized documentation. Cannot be null
.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not available.ActivityNotFoundException
if the activity does not exist.String activityGetDocumentation(String activityName, String processId, Locale locale) throws OperationException
activityName
- The activity to obtain the documentation.processId
- The process where the activity is.locale
- Locale for the documentation.
OperationException
- if a problem occured while getting the process information.
ProcessNotAvailableException
- is the process referenced by activityID
is not valid.String activityGetDocumentation(Activity activity, Locale locale) throws OperationException
activity
- Activity that contains the localized documentation. Cannot be null
.locale
- locale of the localized documentation. Cannot be null
.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not available.ActivityNotFoundException
if the activity does not exist.Activity.getDocumentationMap()
@Deprecated Activity getActivityForView(ActivityView view)
view
- ActivityView to test.
Activity
associated with this ActivityView.@Deprecated ActivityList viewGetActivity(ActivityView view)
view
- ActivityView to test.
ActivityList
with all versions of the activity associated with this ActivityView.@Deprecated String[] getAllProcessVersions(String process)
processGetAllVersions(String)
instead
process
- process Id or consolidated process Id. Cannot be null
.
@Deprecated String[] getAllProcessVersions(String[] processes)
processesGetAllVersions(fuego.papi.collections.ProcessIdSet)
instead
processes
- Process identification or consolidated processes identification
to obtain versions.
fuego.collections.lists.StringList processGetAllVersions(String process)
process
- process Id or consolidated process Id. Cannot be null
.
fuego.collections.lists.StringList processesGetAllVersions(ProcessIdSet processes)
processes
- Process identification or consolidated processes identification
to obtain versions.
@Deprecated Activity[] getApplicationsByView(ApplicationsView view) throws OperationException, BatchOperationException
viewGetApplications(ApplicationsView)
instead
view
- applications view to check. Cannot be null
.
OperationException
- if the session could not perform the operation.
BatchOperationException
- if the session could not perform the operation over every view.ApplicationsNotAvailableException
if not all applications
(activities) requested are available.ApplicationsNotAvailableInProcessException
if the
process is not available.ActivityList viewGetApplications(ApplicationsView view) throws OperationException, BatchOperationException
view
- applications view to check. Cannot be null
.
OperationException
- if the session could not perform the operation.
BatchOperationException
- if the session could not perform the operation over every view.ApplicationsNotAvailableException
if not all applications
(activities) requested are available.ApplicationsNotAvailableInProcessException
if the
process is not available.View.getAssignedProcesses()
,
processesGetApplications(fuego.papi.collections.ProcessIdSet)
ActivityList viewGetApplications(String applicationViewId) throws OperationException, BatchOperationException
applicationViewId
- View Id of the View to obtain the applications.
OperationException
- if the operation fails
BatchOperationException
- if the operation fails@Deprecated Attachment getAttachment(String attachmentId) throws OperationException
attachmentGet(String)
instead
attachmentId
- attachment Id. Cannot be null
.
OperationException
- if the session was unable to retrieve this attachment.ProcessNotAvailableException
if the process is not available.AttachmentNotFoundException
if the attachment does not exist.Attachment attachmentGet(String attachmentId) throws OperationException
attachmentId
- attachment Id. Cannot be null
.
OperationException
- if the session was unable to retrieve this attachment.ProcessNotAvailableException
if the process is not available.AttachmentNotFoundException
if the attachment does not exist.@Deprecated Attachment getAttachmentLastVersion(String attachmentId) throws OperationException
attachmentGetLastVersion(String)
instead
attachmentId
- Id of the attachment to retrieve. Cannot be null
.
OperationException
- if the session was unable to retrieve the last version of the attachment.ProcessNotAvailableException
if the process is not available.AttachmentNotFoundException
if the attachment does not exist.Attachment attachmentGetLastVersion(String attachmentId) throws OperationException
attachmentId
- Id of the attachment to retrieve. Cannot be null
.
OperationException
- if the session was unable to retrieve the last version of the attachment.ProcessNotAvailableException
if the process is not available.AttachmentNotFoundException
if the attachment does not exist.@Deprecated Attachment[] getAttachmentVersions(String attachmentId) throws OperationException
attachmentGetAllVersions(String)
instead
A new attachment version is created when an attachment is checked out and a new version is checked in.
attachmentId
- Id of the attachment to test. Cannot be null
.
OperationException
- if the session was unable to retrieve the all versions of the attachment.ProcessNotAvailableException
if the process is not available.AttachmentNotFoundException
if the attachment does not exist.AttachmentList attachmentGetAllVersions(String attachmentId) throws OperationException
A new attachment version is created when an attachment is checked out and a new version is checked in.
attachmentId
- Id of the attachment to test. Cannot be null
.
OperationException
- if the session was unable to retrieve the all versions of the attachment.ProcessNotAvailableException
if the process is not available.AttachmentNotFoundException
if the attachment does not exist.to get the last attachment.
@Deprecated Attachment[] getAttachmentsByInstance(String instanceId) throws OperationException
instanceGetAttachments(String)
instead
instanceId
- Id of the instance to test. Cannot be null
.
OperationException
- if the session was unable to retrieve the attachments for the instance.ProcessNotAvailableException
if the process is not available.AttachmentNotFoundException
if the attachment does not exist.AttachmentList instanceGetAttachments(String instanceId) throws OperationException
instanceId
- Identificator of the instance where to gather all the attachments
OperationException
- if the operation failsAttachmentList instanceGetAttachments(InstanceInfo instance) throws OperationException
instance
- Instance to test. Cannot be null
.
OperationException
- if the session was unable to retrieve the attachments for the instance.ProcessNotAvailableException
if the process is not available.AttachmentNotFoundException
if the attachment does not exist.@Deprecated Attachment[] getAttachmentsByView(AttachmentsView view) throws BatchOperationException
viewGetAttachments(AttachmentsView)
instead
view
- attachments view. An attachment view is a view of checked-out attachments. Cannot be null
.
BatchOperationException
- if the session could not perform the operation over every process.AttachmentsNotAvailableException
if not all the attachments
requested are available.AttachmentsNotAvailableInProcessException
if the operation
could not be perform on a process.AttachmentList viewGetAttachments(AttachmentsView view) throws BatchOperationException
view
- attachments view. An attachment view is a view of checked-out attachments. Cannot be null
.
BatchOperationException
- if the session could not perform the operation over every process.AttachmentsNotAvailableException
if not all the attachments
requested are available.AttachmentsNotAvailableInProcessException
if the operation
could not be perform on a process.@Deprecated String[] getBookmarks() throws OperationException
instancesGetBookmarks()
instead
OperationException
- if the session was unable to retrieve the bookmarks.fuego.collections.lists.StringList instancesGetBookmarks() throws OperationException
OperationException
- if the session was unable to retrieve the bookmarks.instancesAddBookmark(fuego.papi.collections.InstanceActivityPairSet)
@Deprecated Calendar getCalendar()
participantCalendar()
instead
Calendar participantCalendar() throws OperationException
OperationException
- if the session was unable ot retrive the participant calendar.@Deprecated Map getChildrenViews(String viewId)
viewGetChildren(String)
instead
viewId
- Id of View to check for children. Cannot be null
.
Map<String,View> viewGetChildren(String viewId)
viewId
- Id of View to check for children. Cannot be null
.
@Deprecated Consult getConsult(String instanceId) throws OperationException
instanceGetLastConsult(InstanceInfo)
instead
null
if there is no consultation.
instanceId
- instance Id to check. Cannot be null
.
null
if there is no Consult.
OperationException
- if the session was unable to retrieve the consultations for the instance.Consult instanceGetLastConsult(String instanceId) throws OperationException
null
if there is no consultation.
instanceId
- instance Id to check. Cannot be null
.
null
if there is no Consult.
OperationException
- if the session was unable to retrieve the consultations for the instance.Consult instanceGetLastConsult(InstanceInfo instance) throws OperationException
null
if there is no consultation.
instance
- Instance to check. Cannot be null
.
null
if there is no Consult.
OperationException
- if the session was unable to retrieve the consultations for the instance.instancesAddConsult(fuego.papi.collections.InstanceActivityPairSet, String, String)
@Deprecated String[] getConsults() throws OperationException
instancesGetConsults()
instead
OperationException
- if the session was unable to retrieve the consultations.fuego.collections.lists.StringList instancesGetConsults() throws OperationException
OperationException
- if the session was unable to retrieve the consultations.@Deprecated void setDefaultOrderByForViews(String variable, boolean ascendingOrder) throws InvalidVariableIdException
viewsSetDefaultOrder(String, boolean)
instead
variable
- an Id from one of the VarDefinitions specified in VarDefinition.createInstanceDefaults()
or an External VarDefinition added to a Process. Cannot be null.
ascendingOrder
- ascending if true
descending if false
.
Throws:
InvalidVariableIdException
- if the variable does not exists.
viewsSetDefaultOrder
void viewsSetDefaultOrder(String variable,
boolean ascendingOrder)
throws InvalidVariableIdException
- Sets the default sort order for instance views.
- Parameters:
variable
- an Id from one of the VarDefinitions specified in VarDefinition.createInstanceDefaults()
or an External VarDefinition added to a Process. Cannot be
null.
ascendingOrder
- ascending if true
descending if false
.
Throws:
InvalidVariableIdException
- if the variable does not exists.
getDefaultPresentation
@Deprecated
Presentation getDefaultPresentation(PresentationType presentationType)
- Deprecated. use
presentationGetDefault(PresentationType)
instead
- Gets the predefined default Presentation for the specified PresentationType.
- Parameters:
presentationType
- one of the static PresentationType
. Cannot be null
.
- Returns:
- default
Presentation
for the specified presentationType.
presentationGetDefault
Presentation presentationGetDefault(PresentationType presentationType)
- Gets the predefined default Presentation for the specified PresentationType.
- Parameters:
presentationType
- one of the static PresentationType
. Cannot be null
.
- Returns:
- default
Presentation
for the specified presentationType.
getDefaultPresentation
@Deprecated
Presentation getDefaultPresentation(ViewType viewType)
- Deprecated. use
presentationGetDefault(ViewType)
instead
- Gets the default Presentation for the specified viewType.
- Parameters:
viewType
- one of the static ViewType
. Cannot be null
.
- Returns:
- default
Presentation
for the specified viewType.
presentationGetDefault
Presentation presentationGetDefault(ViewType viewType)
- Gets the default Presentation for the specified viewType.
- Parameters:
viewType
- one of the static ViewType
. Cannot be null
.
- Returns:
- default
Presentation
for the specified viewType.
getEditableView
@Deprecated
EditableView getEditableView(View view)
throws ViewOperationException
- Deprecated. use
viewEdit(View)
instead
- Gets an EditableView from a View. A view cannot be edited directly; first call this method, then make
changes on the view, and then call ProcessServiceSession.storeView(View) to store the view.
You could edit a view only if you are the owner or the view is not read only.
- Parameters:
view
- readable view. Cannot be null
.
- Returns:
- Editable view if the view is readable; otherwise
null
.
- Throws:
ViewOperationException
- if the session could not get the editable view.
viewEdit
EditableView viewEdit(View view)
throws ViewOperationException
- Gets an EditableView from a View. A view cannot be edited directly; first call this method, then make
changes on the view, and then call ProcessServiceSession.viewStore(View) to store the view.
You could edit a view only if you are the owner or the view is not read only.
- Parameters:
view
- readable view. Cannot be null
.
- Returns:
- Editable view if the view is readable; otherwise
null
.
- Throws:
ViewOperationException
- if the session could not get the editable view.- See Also:
viewStore(View)
getGrabActivitiesForInstance
@Deprecated
Activity[] getGrabActivitiesForInstance(InstanceInfo instance)
throws OperationException
- Deprecated. use
instanceGrabbableFrom(InstanceInfo)
instead
- Gets all the grab activities that can grab this instance.
- Parameters:
instance
- InstanceInfo to check. Cannot be null
.
- Returns:
- Array of activities that can grab this instance, or a zero-length array if there are no grab activities.
- Throws:
OperationException
- if the session was unable to retrieve the activities.
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not available.
InstanceNotFoundException
if the instance does not exist.
instanceGrabbableFrom
ActivityList instanceGrabbableFrom(String instanceId)
throws OperationException
- Gets all the grab activities that can grab this instance.
- Parameters:
instanceId
- Instance identification to check. Cannot be null
.
- Returns:
- List of activities that can grab this instance, or a zero-length array if there are no grab activities.
- Throws:
OperationException
- if the session was unable to retrieve the activities.
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not available.
InstanceNotFoundException
if the instance does not exist.
instanceGrabbableFrom
ActivityList instanceGrabbableFrom(InstanceInfo instance)
throws OperationException
- Gets all the grab activities that can grab this instance.
- Parameters:
instance
- InstanceInfo to check. Cannot be null
.
- Returns:
- List of activities that can grab this instance, or a zero-length array if there are no grab activities.
- Throws:
OperationException
- if the session was unable to retrieve the activities.
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not available.
InstanceNotFoundException
if the instance does not exist.
getHost
@Deprecated
String getHost()
- Deprecated. use
participantHost()
instead
- Returns the host where the owner of this session is connected from.
- Returns:
- the host where the owner of this session is connected from.
participantHost
String participantHost()
- Returns the host where the owner of this session is connected from.
- Returns:
- the host where the owner of this session is connected from.
getInstance
@Deprecated
InstanceInfo getInstance(InstanceStamp stamp)
throws OperationException
- Deprecated. use
processGetInstance(String, String)
instead
- Gets the InstanceInfo specified by this InstanceStamp.
This operation is NOT supported in a federated environment.
- Parameters:
stamp
- InstanceStamp, which contains the instanceId and activityName. Cannot be null
.
- Returns:
- InstanceInfo specified by this instanceStamp.
- Throws:
OperationException
- if the session was unable to retrieve the instance.
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not available.
ProcessControlNotAvailableException
if the remote process is
not available.
InstanceNotFoundException
if the instance in this instanceStamp could
not be found.
InstanceNotInActivityException
if the instance in this instanceStamp
is no longer in the specified Activity.
processGetInstance
InstanceInfo processGetInstance(String instanceId,
String activityName)
throws OperationException
- Gets the InstanceInfo specified by this Instance identification and the activity where the instance
is supposed to be.
- Parameters:
instanceId
- Instance identification of the required process instance.activityName
- Activity name where the instance is supposed to be.
- Returns:
- InstanceInfo specified by this instanceStamp.
- Throws:
OperationException
- if the session was unable to retrieve the instance.
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not available.
ProcessControlNotAvailableException
if the remote process is
not available.
InstanceNotFoundException
if the instance could not be found.
InstanceNotInActivityException
if the instance is no longer in the specified Activity.
getInstance
@Deprecated
InstanceInfo getInstance(String instanceId)
throws OperationException
- Deprecated. use
processGetInstance(String)
instead
- Gets the InstanceInfo specified by instanceId.
- Parameters:
instanceId
- Id of instance to retrieve. Cannot be null
.
- Returns:
- InstanceInfo specified by instanceId.
- Throws:
OperationException
- if the session was unable to retrieve the instance.
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not available.
ProcessControlNotAvailableException
if the remote process is
not available.
InstanceNotFoundException
if the instance in this instance Id could
not be found.
processGetInstance
InstanceInfo processGetInstance(String instanceId)
throws OperationException
- Gets the InstanceInfo specified by instanceId.
- Parameters:
instanceId
- Id of instance to retrieve. Cannot be null
.
- Returns:
- InstanceInfo specified by instanceId.
- Throws:
OperationException
- if the session was unable to retrieve the instance.
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not available.
ProcessControlNotAvailableException
if the remote process is
not available.
InstanceNotFoundException
if the instance in this instance Id could
not be found.
getInstanceByCorrelation
@Deprecated
InstanceInfo getInstanceByCorrelation(String processId,
String correlationName,
Object[] correlationValues)
throws OperationException
- Deprecated. use
processGetInstanceByCorrelation(String, String, Object[])
instead
- Gets the instance specified by the process id, correlation name, and correlation values.
Correlations are set during Argument Mapping in Studio. Unlike arguments, there is no way
to retrieve the correlation name or values programmatically.
- Parameters:
processId
- id of process to check. Cannot be null
.correlationName
- correlation name. Cannot be null
.correlationValues
- correlation values.
- Returns:
- instance specified by the process id, correlation name, and correlation values.
- Throws:
OperationException
- if the session was unable to retrieve the the instance.
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process requested is not available.
ProcessControlNotAvailableException
if the remote process is
not available.
InstanceNotFoundException
if the instance could not be found.
processGetInstanceByCorrelation
InstanceInfo processGetInstanceByCorrelation(String processId,
String correlationName,
Object[] correlationValues)
throws OperationException
- Gets the instance specified by the process id, correlation name, and correlation values.
Correlations are set during Argument Mapping in Studio. Unlike arguments, there is no way
to retrieve the correlation name or values programmatically.
- Parameters:
processId
- id of process to check. Cannot be null
.correlationName
- correlation name. Cannot be null
.correlationValues
- correlation values.
- Returns:
- instance specified by the process id, correlation name, and correlation values.
- Throws:
OperationException
- if the session was unable to retrieve the the instance.
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process requested is not available.
ProcessControlNotAvailableException
if the remote process is
not available.
InstanceNotFoundException
if the instance could not be found.
getInstanceData
@Deprecated
DynamicObject getInstanceData(String instanceId)
throws OperationException
- Deprecated. use
instanceGetData(String)
instead
- Gets the instance component associated with this instance.
The instance component is the instance of the class generated during the deployment.
- Parameters:
instanceId
- instance to check. Cannot be null
.
- Returns:
- DynamicObject containing instance component.
- Throws:
OperationException
- if the session was unable to retrieve the instance data.
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process requested is not available.
ProcessControlNotAvailableException
if the remote process is
not available.
InstanceNotFoundException
if the instance could not be found.
instanceGetData
DynamicObject instanceGetData(String instanceId)
throws OperationException
- Gets the instance component associated with this instance identification.
The instance component is the instance of the class generated during the deployment.
- Parameters:
instanceId
- Instance identification of the instance to check. Cannot be null
.
- Returns:
- DynamicObject containing instance component.
- Throws:
OperationException
- if the session was unable to retrieve the instance data.
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process requested is not available.
ProcessControlNotAvailableException
if the remote process is
not available.
InstanceNotFoundException
if the instance could not be found.
instanceGetData
DynamicObject instanceGetData(InstanceInfo instance)
throws OperationException
- Gets the instance component associated with this instance.
The instance component is the instance of the class generated during the deployment.
- Parameters:
instance
- instance to check. Cannot be null
.
- Returns:
- DynamicObject containing instance component.
- Throws:
OperationException
- if the session was unable to retrieve the instance data.
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process requested is not available.
ProcessControlNotAvailableException
if the remote process is
not available.
InstanceNotFoundException
if the instance could not be found.
getInstanceEvents
@Deprecated
InstanceEvent[] getInstanceEvents(String instanceId)
throws OperationException
- Deprecated. use
instanceGetEvents(String)
instead
- Returns the InstanceEvents for the specified instanceId.
- Parameters:
instanceId
- instance Id to check. Cannot be null
.
InstanceEvents
for the specified instanceId.
OperationException
- if the session was unable to retrieve the instance events.ProcessNotAvailableException
if the process requested is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance could not be found.InstanceEventList instanceGetEvents(String instanceId) throws OperationException
instanceId
- instance Id to check. Cannot be InstanceEvents
for the specified instanceId.
OperationException
- if the session was unable to retrieve the instance events.ProcessNotAvailableException
if the process requested is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance could not be found.InstanceEventList instanceGetEvents(InstanceInfo instance) throws OperationException
instance
- instance to check. Cannot be InstanceEvents
for the specified instanceId.
OperationException
- if the session was unable to retrieve the instance events.ProcessNotAvailableException
if the process requested is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance could not be found.@Deprecated Note[] getInstanceNotes(String instanceId) throws OperationException
instanceGetNotes(String)
instead
instanceId
- Id of instance to check for notes. Cannot be null
.
OperationException
- if the session was unable to retrieve the instance notes.ProcessNotAvailableException
if the process requested is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance could not be found.NoteList instanceGetNotes(String instanceId) throws OperationException
instanceId
- Id of instance to check for notes. Cannot be null
.
OperationException
- if the session was unable to retrieve the instance notes.ProcessNotAvailableException
if the process requested is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance could not be found.NoteList instanceGetNotes(InstanceInfo instance) throws OperationException
instance
- Instance to check for notes. Cannot be null
.
OperationException
- if the session was unable to retrieve the instance notes.ProcessNotAvailableException
if the process requested is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance could not be found.@Deprecated InstanceInfo[] getInstances(String processId) throws OperationException
processGetInstances(String)
instead
InstanceInfo
s from the specified Process.
processId
- process Id. Cannot be null
.OperationException
- if the session was unable to retrieve the process instances.ProcessNotAvailableException
if the process requested is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceInfoList processGetInstances(String process) throws OperationException
InstanceInfo
s from the specified Process or Consolidated Process.
process
- process id or consolidated process id. Cannot be null
.OperationException
- if the session was unable to retrieve the process instances.ProcessNotAvailableException
if the process requested is not available.ProcessControlNotAvailableException
if the remote process is
not available.@Deprecated InstanceInfo[] getInstancesByFilter(String[] processIds, Filter filter) throws BatchOperationException
processesGetInstancesByFilter(fuego.papi.collections.ProcessIdSet, Filter)
instead
InstanceInfo
s from the specified ProcessIds and match with the specified Filter.
processIds
- process Ids. Cannot be null
.filter
- Filter to restrict and order the instances returned. Cannot be null
.
BatchOperationException
- if the session could not perform the operation over every process.FilterBatchOperationException
if not all instances requested
are available.InstancesNotAvailableInEngineException
if the engine where
a process was deployes is not available.ProcessNotAvailableException
if a process is not available.InstanceInfoList processesGetInstancesByFilter(ProcessIdSet processes, Filter filter) throws BatchOperationException
InstanceInfo
s from the specified ProcessIds and match with the specified Filter.
Ex.
// Search instances which begin with a specific string in an external variable value and // stay in a specific activity. Filter filter = ProcessService.createFilter(); filter.setSearchScope(ParticipantScope.ALL_IN_ROLE, StatusScope.INPROCESS); filter.setMatchAll(true); filter.addAttribute(session.getVar("MyExternalVariable"), Comparison.BEGIN_WITH, "Fuego"); filter.addAttribute(session.getVar(VarDefinition.ACTIVITY_ID, Comparison.IS, "ActivityName"); ProcessIdSet processSet = ProcessIdSet.create(); processSet.add(session.processesGetAllVersions("/OU/MyProcess")); // Search instances. InstanceInfo[] instances = session.getInstancesByFilter(processSet, filter);
processes
- ProcessIdSet
with all processes where the filter will be executed.
Cannot be null
.filter
- Filter to restrict and order the instances returned. Cannot be null
.
BatchOperationException
- if the session could not perform the operation over every process.FilterBatchOperationException
if not all instances requested
are available.InstancesNotAvailableInEngineException
if the engine where
a process was deployes is not available.ProcessNotAvailableException
if a process is not available.@Deprecated InstanceInfo[] getInstancesByView(InstancesView view) throws OperationException, BatchOperationException
viewGetInstances(InstancesView)
instead
Ex.
// Gets the view to obtain its instances InstancesView instancesView = (InstancesView) session.getView("MyInstancesViewId"); // Search instances. InstanceInfo[] instances = session.getInstancesByView(instancesView);
view
- View to retrieve instances from. Cannot be null
.
OperationException
- if the session was unable to retrieve the process instances.ProcessNotAvailableException
if a process in the view is not available.ProcessControlNotAvailableException
if the remote process is
not available.BatchOperationException
- if the session could not perform the operation over every process.FilterBatchOperationException
if not all instances requested
are available.InstancesNotAvailableInEngineException
if the engine where
a process was deployes is not available.ProcessNotAvailableException
if a process is not available.InstanceInfoList viewGetInstances(String viewId) throws OperationException, BatchOperationException
Ex.
// Search instances. InstanceInfo[] instances = session.getInstancesByView("/MyViewId");
viewId
- View Id to retrieve instances from. Cannot be null
.
OperationException
- if the session was unable to retrieve the process instances.ProcessNotAvailableException
if a process in the view is not available.ProcessControlNotAvailableException
if the remote process is
not available.BatchOperationException
- if the session could not perform the operation over every process.FilterBatchOperationException
if not all instances requested
are available.InstancesNotAvailableInEngineException
if the engine where
a process was deployes is not available.ProcessNotAvailableException
if a process is not available.InstanceInfoList viewGetInstances(InstancesView view) throws OperationException, BatchOperationException
Ex.
// Gets the view to obtain its instances InstancesView instancesView = (InstancesView) session.getView("MyInstancesViewId"); // Search instances. InstanceInfo[] instances = session.getInstancesByView(instancesView);
view
- View to retrieve instances from. Cannot be null
.
OperationException
- if the session was unable to retrieve the process instances.ProcessNotAvailableException
if a process in the view is not available.ProcessControlNotAvailableException
if the remote process is
not available.BatchOperationException
- if the session could not perform the operation over every process.FilterBatchOperationException
if not all instances requested
are available.InstancesNotAvailableInEngineException
if the engine where
a process was deployes is not available.ProcessNotAvailableException
if a process is not available.@Deprecated void setLocale(Locale locale) throws OperationException
participantUpdateLocale(Locale)
instead
locale
- for receiving messages from PAPI. Cannot be null
.
OperationException
- if the session was unable to set the new locale.void participantUpdateLocale(Locale locale) throws OperationException
locale
- new participant locale;
OperationException
- if the session could not perform the operation@Deprecated Locale getLocale()
participantLocale()
instead
Locale participantLocale() throws OperationException
OperationException
- if the session could not perform the operation@Deprecated Note getNote(String noteId) throws OperationException
noteGet(String)
instead
noteId
- Id of the note to retrieve. Cannot be null
.
OperationException
- if the session was unable to retrieve the note.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.Note noteGet(String noteId) throws OperationException
noteId
- Id of the note to retrieve. Cannot be null
.
OperationException
- if the session was unable to retrieve the note.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.boolean isOpened()
true
if this session is open.close()
String organization()
fuego.collections.lists.StringList organizations()
@Deprecated String getOrganization()
organization()
instead
@Deprecated View getParentView(View view) throws OperationException
viewGetParent(String)
instead
view
- child view. Cannot be null
.
null
if the specified view does not have a parent.
OperationException
- if the session was unable to retrieve the parent view.ViewOperationException
if was unable tor retrieve the parent view.View viewGetParent(String viewId) throws OperationException
viewId
- View Id of the child view. Cannot be null
.
null
if the specified view does not have a parent.
OperationException
- if the session was unable to retrieve the parent view.ViewOperationException
if was unable tor retrieve the parent view.View viewGetParent(View view) throws OperationException
view
- child view. Cannot be null
.
null
if the specified view does not have a parent.
OperationException
- if the session was unable to retrieve the parent view.ViewOperationException
if was unable tor retrieve the parent view.@Deprecated String getParentViewId(String viewId)
View.getParentId()
instead.
null
if the view does not have parent.
viewId
- Id of the view to obtain its parent id.
null
if the view does not have parent.String viewGetParentId(String viewId)
null
if the view does not have parent.
viewId
- Id of the view to obtain its parent id.
null
if the view does not have parent.View.getParentId()
@Deprecated Participant getParticipant()
participantCurrent()
instead
Participant participantCurrent()
@Deprecated Participant getParticipant(String uid) throws OperationException
participantFind(String)
instead
uid
- Uid of participant. Cannot be null
.
OperationException
- if the session was unable to retrieve the participant.ParticipantException
if was unable to retrieve the participant.ParticipantNotFoundException
if the participant does not exit.Participant participantFind(String uid) throws OperationException
uid
- Uid of participant. Cannot be null
.
OperationException
- if the session was unable to retrieve the participant.ParticipantException
if was unable to retrieve the participant.ParticipantNotFoundException
if the participant does not exit.@Deprecated Presentation getPresentation(String presentationId)
presentationGet(String)
instead
presentationId
- Presentation Id. Cannot be null
.
Presentation presentationGet(String presentationId)
presentationId
- Presentation Id. Cannot be null
.
@Deprecated Presentation getPresentation(PresentationType presentationType, String presentationId) throws OperationException
presentationGet(PresentationType, String)
instead
If presentationId is "default", returns the default presentation for presentationType.
presentationType
- one of the static PresentationTypes. Cannot be null
.presentationId
- Id of presentation to retrieve. Cannot be null
.
OperationException
- if the session was unable to retrieve the presentation.PresentationNotFoundException
if the presentation does not exist.Presentation presentationGet(PresentationType presentationType, String presentationId) throws OperationException
If presentationId is "default", returns the default presentation for presentationType.
presentationType
- one of the static PresentationTypes. Cannot be null
.presentationId
- Id of presentation to retrieve. Cannot be null
.
OperationException
- if the session was unable to retrieve the presentation.PresentationNotFoundException
if the presentation does not exist.@Deprecated Presentation getPresentation(ViewType viewType, String presentationId) throws OperationException
presentationGet(ViewType, String)
instead
If presentationId is "default", returns the default presentation for presentationType.
viewType
- one of the static ViewTypes. Cannot be null
.presentationId
- Id of presentation to retrieve. Cannot be null
.
OperationException
- if the session was unable to retrieve the presentation.PresentationNotFoundException
if the presentation does not exist.Presentation presentationGet(ViewType viewType, String presentationId) throws OperationException
If presentationId is "default", returns the default presentation for presentationType.
viewType
- one of the static ViewTypes. Cannot be null
.presentationId
- Id of presentation to retrieve. Cannot be null
.
OperationException
- if the session was unable to retrieve the presentation.PresentationNotFoundException
if the presentation does not exist.@Deprecated String[] getPresentationIds(PresentationType presentationType) throws OperationException
presentationsGetIds(PresentationType)
instead
presentationType
- one of the static PresentationTypes. Cannot be null
.
OperationException
- if the session was unable to retrieve the presentations.fuego.collections.lists.StringList presentationsGetIds(PresentationType presentationType) throws OperationException
presentationType
- one of the static PresentationTypes. Cannot be null
.
OperationException
- if the session was unable to retrieve the presentations.@Deprecated Process getProcess(int processIn)
processGet(int)
instead. 'In' is not a valid identifier in all environments. Use process id instead.
processIn
- process identification number.
@Deprecated Process processGet(int processIn)
processIn
- process identification number.
@Deprecated Process getProcess(String processId) throws OperationException
processGet(String)
instead
processId
- Process identification or Consolidated process identification for the active process.
Note: It must not be a null value.
ProcessNotAvailableException
- the process can't be reached
NullPointerException
- if processId is null.
OperationException
Process
Process processGet(String processId) throws OperationException
processId
- Process identification or Consolidated process identification for the active process.
Note: It must not be a null value.
ProcessNotAvailableException
- the process can't be reached
NullPointerException
- if processId is null.
OperationException
Process
@Deprecated ProcessDiagram getProcessDiagram(String processId) throws OperationException
processGetDiagram(String)
instead
processId
- Id of the process for this ProcessDiagram. Cannot be null
. If the Id is in the
format "/OrganizationalUnit/ProcessName#Variation-Mayor.minor" it will use that specific process,
and if the id is in the format "/OrganizationalUnit/ProcessName" (consolidated process id)
it will get the active process from this consolidated id.
OperationException
- if the session was unable to retrieve the process diagram.ProcessNotAvailableException
if the process is not available.@Deprecated ProcessDiagram getProcessDiagram(int processIn) throws OperationException
processGetDiagram(Process)
instead
processIn
- process identification number.
OperationException
- if the session was unable to retrieve the process diagram.ProcessNotAvailableException
if the process is not available.@Deprecated ProcessDiagram getProcessDiagram(Process process) throws OperationException
processGetDiagram(Process)
instead
process
- Process. Cannot be null
.
OperationException
- if the session was unable to retrieve the process diagram.ProcessNotAvailableException
if the process is not available.ProcessDiagram
ProcessDiagram processGetDiagram(String processId) throws OperationException
processId
- Id of the process for this ProcessDiagram. Cannot be null
. If the Id is in the
format "/OrganizationalUnit/ProcessName#Variation-Mayor.minor" it will use that specific process,
and if the id is in the format "/OrganizationalUnit/ProcessName" (consolidated process id)
it will get the active process from this consolidated id.
OperationException
- if the session was unable to retrieve the process diagram.ProcessNotAvailableException
if the process is not available.ProcessDiagram
ProcessDiagram processGetDiagram(Process process) throws OperationException
process
- the process for this ProcessDiagram. Cannot be null
.
OperationException
- if the session was unable to retrieve the process diagram.ProcessNotAvailableException
if the process is not available.ProcessDiagram
@Deprecated String getProcessDocumentation(String processId, Locale locale) throws OperationException
processGetDocumentation(String, Locale)
instead
The process documentation is retrieved from the engine and stored in the returned path, along with the images used by the documentation. The HTML file is always stored using UTF-8 encoding.
processId
- Id of the process to check. Cannot be null
.locale
- of the requested documentation. Cannot be null
.
null
if there is no documentation
for the specified locale.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not available.String processGetDocumentation(String processId, Locale locale) throws OperationException
The process documentation is retrieved from the engine and stored in the returned path, along with the images used by the documentation. The HTML file is always stored using UTF-8 encoding.
processId
- Id of the process to check. Cannot be null
.locale
- of the requested documentation. Cannot be null
.
null
if there is no documentation
for the specified locale.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not available.@Deprecated String getProcessId(InstanceInfo instance)
instanceGetProcessId(InstanceInfo)
instead
instance
- InstanceInfo to check. Cannot be null
.
String instanceGetProcessId(InstanceInfo instance)
instance
- InstanceInfo to check. Cannot be null
.
String instanceGetProcessId(String instanceId)
instanceId
- InstanceId to check. Cannot be null
.
Object instanceGetVariable(InstanceInfo instance, String variableId)
instance
- The instance to obtain the variable value.variableId
- The variable identification to obtain its value in the given instance.
Object instanceGetVariable(String instanceId, String variableId)
instanceId
- The instanceId of the instance to obtain the variable value.variableId
- The variable identification to obtain its value in the given instance.
@Deprecated String getProcessId(int processIn) throws ProcessNotAvailableException
processGetId(int)
instead
processIn
- process identification number
ProcessNotAvailableException
- if the process is not available.String processGetId(int processIn) throws ProcessNotAvailableException
processIn
- process identification number
ProcessNotAvailableException
- if the process is not available.@Deprecated String[] getProcessIds()
processesGetIds()
instead
fuego.collections.lists.StringList processesGetIds()
@Deprecated String[] getProcessIds(boolean onlyActiveProcess)
processesGetIds(boolean)
instead
onlyActiveProcess
- if true
, then only active processes. If false
, then active
and deprecated processes.
fuego.collections.lists.StringList processesGetIds(boolean onlyActiveProcess)
onlyActiveProcess
- if true
, then only active processes. If false
, then active
and deprecated processes.
@Deprecated String getProcessImage(String processId)
processGetDiagram(Process)
instead
processId
- Id of the process for this process image
@Deprecated int getProcessIn(String processId) throws ProcessNotAvailableException
processId
- process Id. Cannot be null
.
ProcessNotAvailableException
- if the process is not available.@Deprecated int processGetIn(String processId) throws ProcessNotAvailableException
processId
- process Id. Cannot be null
.
ProcessNotAvailableException
- if the process is not available.@Deprecated Process[] getProcesses(boolean force) throws BatchOperationException
processesGet(boolean)
instead
force
- true
to return all processes. And false
to return only loaded process
and do not throw exceptions if the load process failed.
BatchOperationException
- if not all deployed processes are available.ProcessesNotAvailableException
if not all processes available.ProcessNotAvailableException
if a process is not available.ProcessList processesGet(boolean force) throws BatchOperationException
force
- true
to return all processes. And false
to return only loaded process
and do not throw exceptions if the load process failed.
BatchOperationException
- if not all deployed processes are available.ProcessesNotAvailableException
if not all processes available.ProcessNotAvailableException
if a process is not available.@Deprecated Process[] getProcesses(boolean onlyActiveProcess, boolean force) throws BatchOperationException
processesGet(boolean, boolean)
instead
onlyActiveProcess
- true
gets only active processes. false
gets active and
deprecated processes.force
- true
returns all processes, and throw exceptions if the load process failed.
false
returns only loaded process and do not throw exceptions if the load
process failed.
BatchOperationException
- if not all deployed processes are available.ProcessesNotAvailableException
if not all processes available.ProcessNotAvailableException
if a process is not available.ProcessList processesGet(boolean onlyActiveProcess, boolean force) throws BatchOperationException
onlyActiveProcess
- true
gets only active processes. false
gets active and
deprecated processes.force
- true
returns all processes, and throw exceptions if the load process failed.
false
returns only loaded process and do not throw exceptions if the load
process failed.
BatchOperationException
- if not all deployed processes are available.ProcessesNotAvailableException
if not all processes available.ProcessNotAvailableException
if a process is not available.@Deprecated void setTimeZone(TimeZone timezone)
participantUpdateTimeZone(TimeZone)
instead
timezone
- new TimeZone.void participantUpdateTimeZone(TimeZone timezone) throws OperationException
timezone
- new participant time zone;
OperationException
- if the session could not perform the operation@Deprecated TimeZone getTimeZone()
participantTimeZone()
instead
TimeZone participantTimeZone() throws OperationException
OperationException
- if the session could not perform the operation.@Deprecated VarDefinition getVar(String variableId)
variableGet(String)
instead
variableId
- Id of VarDefinition associated with a Process.
null
if there is no matching VarDefinition.VarDefinition variableGet(String variableId)
variableId
- Id of VarDefinition associated with a Process.
null
if there is no matching VarDefinition.@Deprecated VarDefinition[] getVars()
variablesGet()
instead
VarDefinitionList variablesGet()
@Deprecated View getView(String viewId) throws OperationException
viewGet(String)
instead
viewId
- view Id. Cannot be null
. To retrieve the default inbox view, use View.INBOX_DEFAULT_ID
OperationException
- if the session could not retreive the view.ViewNotFoundException
if the view does not exist.View viewGet(String viewId) throws OperationException
viewId
- view Id. Cannot be null
. To retrieve the default inbox view, use View.INBOX_DEFAULT_ID
OperationException
- if the session could not retreive the view.ViewNotFoundException
if the view does not exist.@Deprecated String[] getViewIds() throws OperationException, BatchOperationException
viewsGetIds()
instead
OperationException
- if the session could not perform the operation.
BatchOperationException
- if the session could not retrieve all view ids.fuego.collections.lists.StringList viewsGetIds() throws OperationException, BatchOperationException
OperationException
- if the session could not perform the operation.
BatchOperationException
- if the session could not retrieve all view ids.@Deprecated String[] getVisibleActivities(String processId) throws OperationException
processGetVisibleActivities(String)
instead
processId
- the process to search for visible activities. Cannot be null
. If the Id is in
the format "/OrganizationalUnit/ProcessName#Variation-Mayor.minor" it will use that specific
process, and if the id is in the format "/OrganizationalUnit/ProcessName" (consolidated
process id) it will get the active process from this consolidated id.
OperationException
- if the session could not retrieve the activities.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.ActivityList processGetVisibleActivities(String processId) throws OperationException
processId
- the process to search for visible activities. Cannot be null
. If the Id is in
the format "/OrganizationalUnit/ProcessName#Variation-Mayor.minor" it will use that specific
process, and if the id is in the format "/OrganizationalUnit/ProcessName" (consolidated
process id) it will get the active process from this consolidated id.
OperationException
- if the session could not retrieve the activities.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.@Deprecated Attachment[] getWorkingAttachments(String processId) throws OperationException
processGetWorkingAttachments(String)
instead
processId
- Id of process to check for locked attachments. Cannot be null
.
OperationException
- if the session could not retrieve the working attachemnts.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.AttachmentList processGetWorkingAttachments(String processId) throws OperationException
processId
- Id of process to check for locked attachments. Cannot be null
.
OperationException
- if the session could not retrieve the working attachemnts.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.void close()
For reuse this session you need recreate it.
@Deprecated Presentation createPresentation(PresentationType presentationType, String id, Presentation.Column[] columns) throws ViewOperationException
presentationCreate(PresentationType, String, Presentation.Column[])
instead
presentationType
- one of the static PresentationType
.id
- presentation id. Cannot be null
or contain any of the characters listed
in ProcessService.invalidIdCharacters()
.columns
- array of Presentation.Column listing the columns to display. Cannot be null
.
getPresentation(String)
.
ViewOperationException
- if the session could not craete the presentation.Presentation presentationCreate(PresentationType presentationType, String id, Presentation.Column[] columns) throws ViewOperationException
presentationType
- one of the static PresentationType
.id
- presentation id. Cannot be null
or contain any of the characters listed
in ProcessService.invalidIdCharacters()
.columns
- array of Presentation.Column listing the columns to display. Cannot be null
.
getPresentation(String)
.
ViewOperationException
- if the session could not craete the presentation.EditablePresentation presentationEdit(Presentation presentation) throws ViewOperationException
You could edit a view only if you are the owner or the view is not read only.
presentation
- readable presentation. Cannot be null
.
null
.
ViewOperationException
- if the session could not get the editable presentation.presentationStore(Presentation)
@Deprecated InstanceInfo createProcessInstance(String targetProcessId, Arguments arguments) throws OperationException
processCreateInstance(String, Arguments)
instead
targetProcessId
- id of process to create the instance in. If the Id is in the format
"/OrganizationalUnit/ProcessName#Variation-Mayor.minor" it will use that specific process,
and if the id is in the format "/OrganizationalUnit/ProcessName" (consolidated process id)
it will get the active process from this consolidated id.arguments
- arguments defined in the Begin activity of the process specified by targetProcessId. Get
the arguments by calling Process.getArgumentSets().
OperationException
- if the session could not create the new instance.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.ParticipantNotInRoleException
if the participant does not have
roles in the process.NoPermissionException
if the participant does not have the
execution permission.ProcessOperationException
if the execution fails.InstanceInfo processCreateInstance(String targetProcessId, Arguments arguments) throws OperationException
Ex.
String participantId = "myAlias"; String password = "myPassword"; ProcessService service = ProcessService.create(new java.util.Properties()); ConnectionPassport passport = service.createPassport(participantId); passport.setPassword(password); passport.fillPassport(); ProcessServiceSession session = service.createSession(passport, "localhost"); String processId = "MyProcessId"; String argumentName = "MyArgument"; Object argumentValue = new Object(); Arguments arguments = Arguments.create(); arguments.putArgument(argumentName, argumentValue); session.createProcessInstance(processId, arguments);
targetProcessId
- id of process to create the instance in. If the Id is in the format
"/OrganizationalUnit/ProcessName#Variation-Mayor.minor" it will use that specific process,
and if the id is in the format "/OrganizationalUnit/ProcessName" (consolidated process id)
it will get the active process from this consolidated id.arguments
- arguments defined in the Begin activity of the process specified by targetProcessId. Get
the arguments by calling Process.getArgumentSets().
OperationException
- if the session could not create the new instance.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.ParticipantNotInRoleException
if the participant does not have
roles in the process.NoPermissionException
if the participant does not have the
execution permission.ProcessOperationException
if the execution fails.processCreateInstance(String, String, Arguments)
@Deprecated InstanceInfo createProcessInstance(String targetProcessId, String argumentsSetName, Arguments arguments) throws OperationException
processCreateInstance(String, String, Arguments)
instead
Ex.
String participantId = "myAlias"; String password = "myPassword"; ProcessService service = ProcessService.create(new java.util.Properties()); ConnectionPassport passport = service.createPassport(participantId); passport.setPassword(password); passport.fillPassport(); ProcessServiceSession session = service.createSession(passport, "localhost"); String processId = "MyProcessId"; String argumentsSet = "BeginIn"; String argumentName = "MyArgument"; Object argumentValue = new Object(); Arguments arguments = Arguments.create(); arguments.putArgument(argumentName, argumentValue); session.createProcessInstance(processId, argumentsSet, arguments);
targetProcessId
- Id of process to create the instance in. If the Id is in the format
"/OrganizationalUnit/ProcessName#Variation-Mayor.minor" it will use that specific process,
and if the id is in the format "/OrganizationalUnit/ProcessName" (consolidated process id)
it will get the active process from this consolidated id.argumentsSetName
- name of argument set defined in the Begin activity of the process specified by
targetProcessId.arguments
- arguments defined in the Begin activity of the process specified by targetProcessId. Get
the arguments by calling Process.getArgumentSets().
OperationException
- if the session could not create the new instance.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.ParticipantNotInRoleException
if the participant does not have
roles in the process.NoPermissionException
if the participant does not have the
execution permission.ProcessOperationException
if the execution fails.InstanceInfo processCreateInstance(String targetProcessId, String argumentsSetName, Arguments arguments) throws OperationException
Ex.
String participantId = "myAlias"; String password = "myPassword"; ProcessService service = ProcessService.create(new java.util.Properties()); ConnectionPassport passport = service.createPassport(participantId); passport.setPassword(password); passport.fillPassport(); ProcessServiceSession session = service.createSession(passport, "localhost"); String processId = "MyProcessId"; String argumentsSet = "BeginIn"; String argumentName = "MyArgument"; Object argumentValue = new Object(); Arguments arguments = Arguments.create(); arguments.putArgument(argumentName, argumentValue); session.createProcessInstance(processId, argumentsSet, arguments);
targetProcessId
- Id of process to create the instance in. If the Id is in the format
"/OrganizationalUnit/ProcessName#Variation-Mayor.minor" it will use that specific process,
and if the id is in the format "/OrganizationalUnit/ProcessName" (consolidated process id)
it will get the active process from this consolidated id.argumentsSetName
- name of argument set defined in the Begin activity of the process specified by
targetProcessId.arguments
- arguments defined in the Begin activity of the process specified by targetProcessId. Get
the arguments by calling Process.getArgumentSets().
OperationException
- if the session could not create the new instance.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.ParticipantNotInRoleException
if the participant does not have
roles in the process.NoPermissionException
if the participant does not have the
execution permission.ProcessOperationException
if the execution fails.processCreateInstance(String, Arguments)
InstanceInfo processCreateInstance(String targetProcessId, String argumentsSetName, Arguments arguments, String name, String description, String remarks, File file, String contentType, Locale locale) throws OperationException, IOException
OperationException
IOException
InstanceInfo processCreateInstance(String targetProcessId, String argumentsSetName, Arguments arguments, String name, String description, String remarks, File file, String contentType, Locale locale, AttachmentStorageType storageType) throws OperationException, IOException
OperationException
IOException
@Deprecated EditableView createView(ViewType viewType, String viewId, String[] assignedProcesses) throws OperationException
viewCreate(ViewType, String, String[])
instead
If the viewType is ViewType.APPLICATIONS, an EditableApplicationsView will be created.
If the viewType is ViewType.ATTACHMENTS, an EditableAttachmentsView will be created.
If the viewType is ViewType.INSTANCES an EditableInstancesView will be created.
If the viewType is not one of the specified ViewTypes, throws a InvalidViewTypeException.
Before calling this method, check that the viewId does not contain any of the characters in
ProcessService.invalidIdCharacters()
.
Note that the created view cannot be retrieved by its viewId until storeView(View)
is called.
viewType
- one of the static ViewType
.viewId
- view Id. Cannot be null
. Check that the view Id does not contain any of
the characters in ProcessService.invalidIdCharacters()
.assignedProcesses
- ids of processes to assign to this view. Cannot be null
.
OperationException
- if the session could not create the editable view.EditableView viewCreate(ViewType viewType, String viewId, String[] assignedProcesses) throws OperationException
If the viewType is ViewType.APPLICATIONS, an EditableApplicationsView will be created.
If the viewType is ViewType.ATTACHMENTS, an EditableAttachmentsView will be created.
If the viewType is ViewType.INSTANCES an EditableInstancesView will be created.
If the viewType is not one of the specified ViewTypes, throws a InvalidViewTypeException.
Before calling this method, check that the viewId does not contain any of the characters in
ProcessService.invalidIdCharacters()
.
Note that the created view cannot be retrieved by its viewId until storeView(View)
is called.
viewType
- one of the static ViewType
.viewId
- view Id. Cannot be null
. Check that the view Id does not contain any of
the characters in ProcessService.invalidIdCharacters()
.assignedProcesses
- ids of processes to assign to this view. Cannot be null
.
OperationException
- if the session could not create the editable view.ProcessService.invalidIdCharacters()
,
View.getAssignedProcesses()
,
storeView(View)
View viewRefresh(String viewId) throws OperationException
viewId
- Id of the view to reload. Cannot be null
.
OperationException
- if the session could not refresh the view.Presentation presentationRefresh(String presentationId) throws OperationException
presentationId
- Id of the presentation to reload. Cannot be null
.
OperationException
- if the session could not refresh the presentation.@Deprecated GlobalExecution customRunGlobalActivity(String activityId, Arguments arguments) throws OperationException
activityPostApplication(String, String, Arguments)
instead
activityId
- id of the Global activity. Cannot be null
.arguments
- arguments of the global activity. To get the names of the arguments, call
Activity.getTask()[0], then Task.getArguments(), then TaskArgument.isOut() to check
that the argument is an output argument. For global creation activities, only output
arguments are used.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.ActivityNotFoundException
if the activity does not existParticipantNotInRoleException
if the participant does not have
roles of the activity.NoPermissionException
if the participant does not have the
execution permission.ProcessOperationException
if the execution fails.GlobalExecution activityPostApplication(String activityName, String processId, Arguments arguments) throws OperationException
Ex.
// Define the arguments of the activity. Arguments arguments = Arguments.create(); argument.putArgument("MyStringArgument", "StringValue"); argument.putArgument("MyIntegerArgument", 1000); String targetProcess = "/OU/MyProcessName"; String targetActivityName = "MyGlobalActivity"; // Execute the activity. GlobalExecution execution = session.activityPostApplication(targetActivityName, targetProcess, arguments); for (Invocation inv = execution.next(); inv != null; inv = execution.next()) { execution.setInvocationResult(inv.invoke()); } // Call getArguments() so argument replacement is performed execution.getArguments(); // Get the output arguments String myOutputStringArgument = (String) arguments.getArgument("MyOutputStringArgument"); String result = (String) arguments.getArgument(Arguments.RESULT); // Get instance info created InstanceInfo instance = execution.getReturnValue();
activityName
- The name of the Global activity to execute. Cannot be null
.processId
- The id of the process where the activity is.arguments
- arguments of the global activity. To get the names of the arguments, call
Activity.getTask()[0], then Task.getArguments(), then TaskArgument.isOut() to check
that the argument is an output argument. For global creation activities, only output
arguments are used.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.ActivityNotFoundException
if the activity does not existParticipantNotInRoleException
if the participant does not have
roles of the activity.NoPermissionException
if the participant does not have the
execution permission.ProcessOperationException
if the execution fails.processesGetApplications(fuego.papi.collections.ProcessIdSet)
,
Task.getArguments()
,
activityExecuteApplication(String, String)
GlobalExecution activityPostApplication(Activity activity, Arguments arguments) throws OperationException
Ex.
// Define the arguments of the activity. Arguments arguments = Arguments.create(); argument.putArgument("MyStringArgument", "StringValue"); argument.putArgument("MyIntegerArgument", 1000); String targetProcess = "/OU/MyProcessName"; String targetActivityName = "MyGlobalActivity"; // Get the active process. Process process = session.processGet(targetProcess); Activity activity = process.getActivity(targetActivityName); // Execute the activity. GlobalExecution execution = session.activityPostApplication(activity, arguments); for (Invocation inv = execution.next(); inv != null; inv = execution.next()) { execution.setInvocationResult(inv.invoke()); } // Call getArguments() so argument replacement is performed execution.getArguments(); // Get the output arguments String myOutputStringArgument = (String) arguments.getArgument("MyOutputStringArgument"); String result = (String) arguments.getArgument(Arguments.RESULT); // Get instance info created InstanceInfo instance = execution.getReturnValue();
activity
- The name of the Global activity to execute. Cannot be null
.arguments
- arguments of the global activity. To get the names of the arguments, call
Activity.getTask()[0], then Task.getArguments(), then TaskArgument.isOut() to check
that the argument is an output argument. For global creation activities, only output
arguments are used.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.ActivityNotFoundException
if the activity does not existParticipantNotInRoleException
if the participant does not have
roles of the activity.NoPermissionException
if the participant does not have the
execution permission.ProcessOperationException
if the execution fails.processesGetApplications(fuego.papi.collections.ProcessIdSet)
,
Task.getArguments()
@Deprecated boolean hasNewInstances(String viewId)
viewHasNewInstances(String)
instead
viewId
- id of the view to check for new instances.
true
if this view has new instances.boolean viewHasNewInstances(String viewId)
viewId
- id of the view to check for new instances.
true
if this view has new instances.@Deprecated boolean hasNewInstances() throws OperationException
true
if any view has new instances.
OperationException
- if the session could not perform the operation.boolean viewsHaveNewInstances() throws OperationException
true
if any view has new instances.
OperationException
- if the session could not perform the operation.@Deprecated void refresh(InstanceInfo instanceInfo) throws OperationException
instanceRefresh(InstanceInfo)
instead
instanceInfo
- InstanceInfo to reload. Cannot be null
.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance does not exist.InstanceInfo instanceRefresh(InstanceInfo instanceInfo) throws OperationException
instanceInfo
- InstanceInfo to reload. Cannot be null
.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance does not exist.InstanceInfo instanceRefresh(String instanceId) throws OperationException
instanceId
- Id for the instance to reload. Cannot be null
.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance does not exist.void instanceStoreProperty(InstanceInfo instanceInfo, String key, String value) throws OperationException
instanceInfo
- The instance that will store the property.key
- The property key.value
- The property value.
OperationException
- if the property could not be stored successfully.void instanceStoreProperty(String instanceId, String key, String value) throws OperationException
instanceId
- Id of the instance that will store the property.key
- The property key.value
- The property value.
OperationException
- if the property could not be stored successfully.String instanceRetrieveProperty(InstanceInfo instanceInfo, String key) throws OperationException
instanceInfo
- The instance that stores the property.key
- The property key.
OperationException
- if the property could not be retrieved successfully.String instanceRetrieveProperty(String instanceId, String key) throws OperationException
instanceId
- Id of the instance that stores the property.key
- The property key.
OperationException
- if the property could not be retrieved successfully.@Deprecated Map retrieveRoleProperties(String roleId, String category) throws OperationException
roleRetrieveProperties(String, String)
instead
roleId
- role to check. Cannot be null
.category
- properties category
OperationException
- if the session could not retrieve the properties.Map roleRetrieveProperties(String roleId, String category) throws OperationException
roleId
- role to check. Cannot be null
.category
- properties category
OperationException
- if the session could not retrieve the properties.@Deprecated Map retrieveUserProperties(String category) throws OperationException
participantRetrieveProperties(String)
instead
category
- properties category
OperationException
- if the session could not retrieve the properties.Map participantRetrieveProperties(String category) throws OperationException
category
- properties category
OperationException
- if the session could not retrieve the properties.@Deprecated String retrieveUserStringProperty(String category, String key) throws PropertyOperationException
participantRetrieveProperty(String, String)
instead
category
- properties categorykey
- property key
PropertyOperationException
- if the session could not retrieve the properties.String participantRetrieveProperty(String category, String key) throws PropertyOperationException
category
- properties categorykey
- property key
PropertyOperationException
- if the session could not retrieve the properties.@Deprecated InstanceInfo runGlobalActivity(String activityId) throws OperationException
activityExecuteApplication(String, String)
instead
This is the same as runGlobalActivity(activityId, null). The global activity cannot interact with a user;
if user interaction is required, use activityPostApplication(String, String, Arguments)
.
activityId
- Id of the global activity to run. Cannot be null
.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.ActivityNotFoundException
if the activity does not existParticipantNotInRoleException
if the participant does not have
roles of the activity.NoPermissionException
if the participant does not have the
execution permission.ProcessOperationException
if the execution fails.InstanceInfo activityExecuteApplication(String activityName, String processId) throws OperationException
This is the same as runGlobalActivity(activityId, null). The global activity cannot interact with a user;
if user interaction is required, use activityPostApplication(String, String, Arguments)
.
activityName
- Name of the global activity to run. Cannot be null
.processId
- The id of the process where the activity is.OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.ActivityNotFoundException
if the activity does not existParticipantNotInRoleException
if the participant does not have
roles of the activity.NoPermissionException
if the participant does not have the
execution permission.ProcessOperationException
if the execution fails.InstanceInfo activityExecuteApplication(Activity activity) throws OperationException
This is the same as runGlobalActivity(activityId, null). The global activity cannot interact with a user;
if user interaction is required, use activityPostApplication(String, String, Arguments)
.
activity
- The global activity to run. Cannot be null
.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.ActivityNotFoundException
if the activity does not existParticipantNotInRoleException
if the participant does not have
roles of the activity.NoPermissionException
if the participant does not have the
execution permission.ProcessOperationException
if the execution fails.@Deprecated InstanceInfo runGlobalActivity(String activityId, Arguments arguments) throws OperationException
activityExecuteApplication(String, String, Arguments)
instead
The global activity cannot interact with a user; if user interaction is required, use
activityExecuteApplication(String, String, Arguments)
.
activityId
- Id of the global activity to run. Cannot be null
.arguments
- arguments of the global activity. To get the names of the arguments,
call Activity.getTask()[0], then Task.getArguments(), then TaskArgument.isOut() to check that
the argument is an output argument. For global creation activities, only output arguments are
used. In Studio, these are the arguments associated with the CIL
(Component Integration Language) method associated with this Global Activity.
null
for a Global Activity.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.ActivityNotFoundException
if the activity does not existParticipantNotInRoleException
if the participant does not have
roles of the activity.NoPermissionException
if the participant does not have the
execution permission.ProcessOperationException
if the execution fails.InstanceInfo activityExecuteApplication(String activityName, String processId, Arguments arguments) throws OperationException
The global activity cannot interact with a user; if user interaction is required, use
activityExecuteApplication(String, String, Arguments)
.
activityName
- Name of the global activity to run. Cannot be null
.processId
- The id of the process where the activity is.arguments
- arguments of the global activity. To get the names of the arguments,
call Activity.getTask()[0], then Task.getArguments(), then TaskArgument.isOut() to check that
the argument is an output argument. For global creation activities, only output arguments are
used. In Studio, these are the arguments associated with the CIL
(Component Integration Language) method associated with this Global Activity.
null
for a Global Activity.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.ActivityNotFoundException
if the activity does not existParticipantNotInRoleException
if the participant does not have
roles of the activity.NoPermissionException
if the participant does not have the
execution permission.ProcessOperationException
if the execution fails.InstanceInfo activityExecuteApplication(Activity activity, Arguments arguments) throws OperationException
The global activity cannot interact with a user; if user interaction is required, use
activityExecuteApplication(String, String, Arguments)
.
activity
- The global activity to run. Cannot be null
.arguments
- arguments of the global activity. To get the names of the arguments,
call Activity.getTask()[0], then Task.getArguments(), then TaskArgument.isOut() to check that
the argument is an output argument. For global creation activities, only output arguments are
used. In Studio, these are the arguments associated with the CIL
(Component Integration Language) method associated with this Global Activity.
null
for a Global Activity.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.ActivityNotFoundException
if the activity does not existParticipantNotInRoleException
if the participant does not have
roles of the activity.NoPermissionException
if the participant does not have the
execution permission.ProcessOperationException
if the execution fails.@Deprecated void runProcess(String targetProcessId, String argumentsSetName, Arguments arguments, long timeout) throws OperationException
processRun(String, String, Arguments, long)
instead
If the instance reaches the end before the specified timeout elapses, arguments will contain the output arguments of the process; otherwise this method will throw an InstanceTimeoutException.
The specified process cannot contain any interactive activities.
Note that the current participant must have the same role as the begin activity.
targetProcessId
- Id of the process for the new process instance. If the Id is in the format
"/OrganizationalUnit/ProcessName#Variation-Mayor.minor" it will use that specific
process, and if the id is in the format "/OrganizationalUnit/ProcessName" (consolidated
process id) it will get the active process from this consolidated id.argumentsSetName
- name of the argument set to use. The default argument set is "BeginIn".arguments
- arguments containing the arguments specified by argumentSetName. Use Arguments.create()
to create the arguments.timeout
- how much time to wait for the instance to reach the end activity. a value of zero (0L)
means unlimited.
OperationException
- if the session could not perform the operation.InstanceTimeoutException
if the specified timeout elapses before the
instance reaches the end.InstanceAbortedException
if the output arguments are null
.void processRun(String targetProcessId, String argumentsSetName, Arguments arguments, long timeout) throws OperationException
If the instance reaches the end before the specified timeout elapses, arguments will contain the output arguments of the process; otherwise this method will throw an InstanceTimeoutException.
The specified process cannot contain any interactive activities.
Note that the current participant must have the same role as the begin activity.
Ex.
// Select the arguments to pass. String argumentsSet = "ArgumentsSet"; // Define the arguments of the activity. Arguments arguments = Arguments.create(); argument.putArgument("MyStringArgument", "StringValue"); argument.putArgument("MyIntegerArgument", 1000); // Select the time out long timeout = 1000L * 60L * 3L; // wait 3 minutes. // Execute Process. session.processRun("/OU/ProcessName#Variation-1.0", argumentsSet, arguments, timeout); // Get the output arguments String myOutputStringArgument = (String) arguments.getArgument("MyOutputStringArgument"); String result = (String) arguments.getArgument(Arguments.RESULT);
targetProcessId
- Id of the process for the new process instance. If the Id is in the format
"/OrganizationalUnit/ProcessName#Variation-Mayor.minor" it will use that specific
process, and if the id is in the format "/OrganizationalUnit/ProcessName" (consolidated
process id) it will get the active process from this consolidated id.argumentsSetName
- name of the argument set to use. The default argument set is "BeginIn".arguments
- arguments containing the arguments specified by argumentSetName. Use Arguments.create()
to create the arguments.timeout
- how much time to wait for the instance to reach the end activity. a value of zero (0L)
means unlimited.
OperationException
- if the session could not perform the operation.InstanceTimeoutException
if the specified timeout elapses before the
instance reaches the end.InstanceAbortedException
if the output arguments are null
.@Deprecated Participant[] searchParticipantsByName(String name) throws OperationException
participantFindByName(String)
instead
name
- name to match by substring. Cannot be null
.
OperationException
- if the session was unable to retrieve the participants.ParticipantException
if was unable to retrieve the participants.Participant
ParticipantList participantFindByName(String name) throws OperationException
name
- name to match by substring. Cannot be null
.
OperationException
- if the session was unable to retrieve the participants.ParticipantException
if was unable to retrieve the participants.Participant
@Deprecated void sendNotification(String targetInstanceOrProcessId, String activityName, String targetArgumentsSetName, Arguments notification, String sourceInstanceId) throws OperationException
processSendNotification(String, String, String, Arguments, String)
instead
targetInstanceOrProcessId
- instance to receive the notification. Cannot be null
.activityName
- activity to send the notification from. Cannot be null
.targetArgumentsSetName
- name of the desired target argument set. Use null
for the default set.notification
- set of arguments to send as notification. Use
Process.getArgumentSets(String)
with activityName to get the argument sets.sourceInstanceId
- instance sending the notification. Use null
for external notifications.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.ActivityNotFoundException
if the activity does not existProcessOperationException
if the execution fails.Process.getArgumentSets(String)
@Deprecated void sendNotification(String targetInstanceOrProcessId, String activityName, String targetArgumentsSetName, Arguments notification) throws OperationException
processSendNotification(String, String, String, Arguments)
instead
targetInstanceOrProcessId
- instance to receive the notification. Cannot be null
.activityName
- activity to send the notification from. Cannot be null
.targetArgumentsSetName
- name of the desired target argument set. Use null
for the default set.notification
- set of arguments to send as notification. Use
Process.getArgumentSets(String)
with activityName to get the argument sets.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.ActivityNotFoundException
if the activity does not existProcessOperationException
if the execution fails.Process.getArgumentSets(String)
void processSendNotification(String targetInstanceOrProcessId, String activityName, String targetArgumentsSetName, Arguments notification, String sourceInstanceId) throws OperationException
targetInstanceOrProcessId
- instance to receive the notification. Cannot be null
.activityName
- activity to send the notification from. Cannot be null
.targetArgumentsSetName
- name of the desired target argument set. Use null
for the default set.notification
- set of arguments to send as notification. Use
Process.getArgumentSets(String)
with activityName to get the argument sets.sourceInstanceId
- instance sending the notification. Use null
for external notifications.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.ActivityNotFoundException
if the activity does not existProcessOperationException
if the execution fails.Process.getArgumentSets(String)
void processSendNotification(String targetInstanceOrProcessId, String activityName, String targetArgumentsSetName, Arguments notification) throws OperationException
targetInstanceOrProcessId
- instance to receive the notification. Cannot be null
.activityName
- activity to send the notification from. Cannot be null
.targetArgumentsSetName
- name of the desired target argument set. Use null
for the default set.notification
- set of arguments to send as notification. Use
Process.getArgumentSets(String)
with activityName to get the argument sets.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.ActivityNotFoundException
if the activity does not existProcessOperationException
if the execution fails.Process.getArgumentSets(String)
@Deprecated List getEscalateParticipants(InstanceStamp instance) throws OperationException, BatchOperationException
instanceGetParticipants(String, String, ParticipantFor)
instead.
An instance can only be assigned if the interactive acitivity has been defined as assignable in Studio and only participants who have been given permission to escalate in Process Administrator can assign instances to participants with a higher category in the same role. Role category is also assigned in Process Administrator. This operation is NOT supported in a federated environment.
instance
- InstanceStamp to get the list of participants; cannot be null
OperationException
- if the session could not perform the operationProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existBatchOperationException
- if the session could not perform the operation on the instanceInstancesException
if not all instances are available to
perform the operation.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.@Deprecated InstanceInfo[] getGrabbableInstances(String activityId) throws OperationException, BatchOperationException
activityGetGrabbableInstances(String, String)
instead.
The complete activity ID or the consolidated activity ID can be used.
activityId
- ID of the grab activity; cannot be null
OperationException
- if the session could not perform the operationProcessNotAvailableException
if the process is not availableBatchOperationException
- if the session could not perform the operation on every activityProcessesNotAvailableException
if not all instances are available to
perform the operation..InstancesNotAvailableInEngineException
if the engine where
a process was deployes is not available.ProcessNotAvailableException
if a process is not available.@Deprecated List getParticipantsForInstance(InstanceStamp instance) throws OperationException, BatchOperationException
instanceGetParticipants(String, String, ParticipantFor)
instead.
instance
- InstanceStamp to get the list of participants; cannot be null
OperationException
- if the session could not perform the operationProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existBatchOperationException
- if the session could not perform the operation on the instanceInstancesException
if not all participants are available to
perform the operation.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.@Deprecated void addBookmarks(InstanceStamp[] instancesStamp) throws OperationException
instancesAddBookmark(InstanceActivityPairSet)
instead
instancesStamp
- array of InstanceStamps; a bookmark will be added for each InstanceStamp;
cannot be null.
OperationException
- if the session could not bookmark the instancesvoid instancesAddBookmark(InstanceActivityPairSet instanceActivityPairs) throws OperationException
instanceActivityPairs
- Instances to add to the bookmark. Cannot be null.
OperationException
- if the session could not bookmark the instances@Deprecated void checkInAttachment(Attachment attachment, String remarks, File file) throws OperationException
attachmentCheckIn(Attachment, String, File)
instead
attachment
- the attachment to check in; cannot be null
remarks
- version-specific remarks to add to the attachment; cannot be null
;
the maximum length of remarks is Attachment.REMARK_LENGTH
file
- file to check in for the new attachment version; cannot be null
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInvalidAttachmentArgumentLengthException
if the remarks argument
of the attachment exceeds the limit of the argument lengthAttachmentFileNotFoundException
if the file does not existAttachmentOperationException
if the attachment could not be checked in@Deprecated void checkOutAttachment(Attachment attachment, String directory) throws OperationException
attachmentCheckOut(Attachment, String)
instead
attachment
- attachment to write; cannot be null
directory
- directory where the file will be written;
this directory must already exist; if this is a relative directory, it is
relative to where the PAPI program is running
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableAttachmentOperationException
if the attachment could not be written to the
specified directory, if a version lock has not been obtained, or if the current participant does not
hold the version lock@Deprecated void checkOutAttachmentToStream(Attachment attachment, OutputStream stream) throws OperationException
attachmentCheckOutToStream(Attachment, OutputStream)
instead
attachment
- attachment to write; cannot be null
stream
- OutputStream to write the attachment to; cannot be null
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableAttachmentOperationException
if the attachment could not be written to the
specified directory, if a version lock has not been obtained, or if the current participant does not
hold the version lockvoid attachmentCheckOutToStream(Attachment attachment, OutputStream stream) throws OperationException
Simplified example within a servlet:
//get a process service session ProcessServiceSession processSession = ...; //get the attachment id, probably from an InstanceInfo String attachmentId = ...; //get the attachment associated with this attachmentId Attachment attachment = processSession.getAttachment(attachmentId); //check out the attachment processSession.obtainEditionLock(attachment); //get the output stream OutputStream outputStream = response.getOutputStream; //set the appropriate headers response.setContentType(attachment.getContentType()); //put the filename in quotes response.setHeader("Content-Disposition", "attachment; filename=\"" + attachment.getName() + "\""); //write the file to the output stream processSession.checkOutAttachmentToStream(attachment, outputStream);
attachment
- attachment to write; cannot be null
stream
- OutputStream to write the attachment to; cannot be null
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableAttachmentOperationException
if the attachment could not be written to the
specified directory, if a version lock has not been obtained, or if the current participant does not
hold the version lockvoid attachmentCheckOutToStream(String attachmentId, OutputStream stream) throws OperationException
attachmentId
- id of the attachment to write; cannot be null
stream
- OutputStream to write the attachment to; cannot be null
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableAttachmentOperationException
if the attachment could not be written to the
specified directory, if a version lock has not been obtained, or if the current participant does not
hold the version lock@Deprecated InstanceInfo commitExternalActivity(String instanceStampId, int taskIn, Arguments args) throws OperationException
activityCommit(String, String, Arguments)
instead
instanceStampId
- instance stamp that identifies the target instance; cannot be null
taskIn
- identification number of task to executeargs
- arguments to be passed to the commit method of the external activity;
null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance in the instance stamp
does not existActivityNotFoundException
if the activity in the instance stamp
does not exist.InstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution fails@Deprecated InstanceInfo commitExternalActivity(String instanceId, String activityName, Arguments args) throws OperationException
activityCommit(String, String, Arguments)
instead
instanceId
- instance ID that identifies the target instance; cannot be null
activityName
- Activity name that identifies the activity to execute; cannot be null
args
- arguments to be passed to the commit method of the external activity;
null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existInstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution failsInstanceInfo activityCommit(String activityName, String instanceId, Arguments args) throws OperationException
activityName
- Activity name of the activity to execute. Cannot be null
.instanceId
- Instance identification that you use to execute the activity. Cannot be null
.args
- arguments to be passed to the commit method of the external activity;
null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance in the instance stamp
does not existActivityNotFoundException
if the activity in the instance stamp
does not exist.InstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution failsInstanceInfo activityCommit(Activity activity, InstanceInfo instance, Arguments args) throws OperationException
activity
- Activity to execute. Cannot be null
.instance
- Instance that you use to execute the activity. Cannot be null
.args
- arguments to be passed to the commit method of the external activity;
null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance in the instance stamp
does not existActivityNotFoundException
if the activity in the instance stamp
does not exist.InstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution fails@Deprecated InstanceInfo commitExternalActivity(String instanceId, String activityName, int taskIn, Arguments args) throws OperationException
activityCommit(String, String, Arguments)
instead.
instanceId
- instance ID that identifies the target instance; cannot be null
activityName
- activity name that identifies the activity to execute; cannot be null
taskIn
- identification number of task to executeargs
- arguments to be passed to the commit method of the external activity
null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existInstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution fails@Deprecated void abortActivity(String instanceId, String activityName, int taskIn) throws OperationException
activityAbort(String, int, String)
instead
instanceId
- Id of the instance. Cannot be null
.activityName
- name of activity. Cannot be null
.taskIn
- task identification number of the Task to be aborted.
OperationException
- if the session could not perform the operation.void activityAbort(String activityName, String instanceId) throws OperationException
activityName
- name of activity. Cannot be null
.instanceId
- Id of the instance. Cannot be null
.
OperationException
- if the session could not perform the operation.@Deprecated void activityAbort(Activity activity, InstanceId instanceId) throws OperationException
activityAbort(Activity, InstanceInfo)
activity
- Activity where the task was defined. Cannot be null
.instanceId
- InstanceId to abort main task. Cannot be null
.
OperationException
- if the session could not perform the operation.void activityAbort(Activity activity, InstanceInfo instance) throws OperationException
activity
- Activity where the task was defined. Cannot be null
.instance
- Instance to abort main task. Cannot be null
.
OperationException
- if the session could not perform the operation.void activityAbort(String activityName, int taskIn, String instanceId) throws OperationException
activityName
- name of activity. Cannot be null
.taskIn
- task identification number of the Task to be aborted.instanceId
- Id of the instance. Cannot be null
.
OperationException
- if the session could not perform the operation.@Deprecated void activityAbort(Activity activity, int taskIn, InstanceId instanceId) throws OperationException
activityAbort(Activity, int, InstanceInfo)
activity
- Activity where the task was defined. Cannot be null
.taskIn
- Task identification number of the Task to be aborted.instanceId
- InstanceId to abort task. Cannot be null
.
OperationException
- if the session could not perform the operation.void activityAbort(Activity activity, int taskIn, InstanceInfo instance) throws OperationException
activity
- Activity where the task was defined. Cannot be null
.taskIn
- Task identification number of the Task to be aborted.instance
- Instance to abort task. Cannot be null
.
OperationException
- if the session could not perform the operation.@Deprecated TaskExecution customRunActivity(String instanceId, String activityName, int taskIn, Arguments args) throws OperationException
activityPost(String, String, int, Arguments)
instead
instanceId
- instance ID that identifies the InstanceInfo to execute; cannot be null
.activityName
- activity name that identifies the target activity to execute; cannot be null
taskIn
- task identification number of the task to executeargs
- arguments to pass to the task; null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existInstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution failsTaskExecution activityPost(String activityName, String instanceId, int taskToExecute, Arguments args) throws OperationException
Ex.
// Define the arguments of the activity. Arguments arguments = Arguments.create(); argument.putArgument("MyStringArgument", "StringValue"); argument.putArgument("MyIntegerArgument", 1000); // Search the instance to execute. Filter filter = ProcessService.createFilter(); filter.setMatchAll(true); filter.addAttribute(session.getVar("OrderNumber"), Comparison.IS, new Integer(12345)); filter.addAttribute(session.getVar(VarDefinition.ACTIVITY_ID, Comparison.IS, "ActivityToExecute"); ProcessIdSet processes = ProcessIdSet.create(); processSet.add(session.processGetAllVersions("/OU/MyProcess")); InstanceInfoList instances = session.processesGetInstancesByFilter(processes, filter); Instance instance = instances.get(0); // Select the task to execute. Activity activity = instance.getActivity(); Task task = activity.getTask("TaskToExecute"); // Execute the activity. TaskExecution execution = session.activityPost(instance.getActivityName(), instance.getId(), task.getIn(), arguments); for (Invocation inv = execution.next(); inv != null; inv = execution.next()) { execution.setInvocationResult(inv.invoke()); } // Call getArguments() so argument replacement is performed execution.getArguments(); // Get the output arguments String myOutputStringArgument = (String) arguments.getArgument("MyOutputStringArgument"); String result = (String) arguments.getArgument(Arguments.RESULT);
activityName
- activity name that identifies the target activity to execute; cannot be null
instanceId
- instance ID that identifies the InstanceInfo to execute; cannot be null
.taskToExecute
- task identification number of the task to executeargs
- arguments to pass to the task; null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existInstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution failsTaskExecution activityPost(Activity activity, InstanceInfo instance, int taskToExecute, Arguments args) throws OperationException
activity
- Activity to execute task.instance
- Instance uses to execute the activity.taskToExecute
- Task number of the activity to be executed.args
- Arguments to pass the task.
OperationException
- if the operation fails.@Deprecated TaskExecution customRunActivity(String instanceId, String activityName, Arguments args) throws OperationException
activityPost(String, String, Arguments)
instead
instanceId
- instance ID that identifies the InstanceInfo to execute; cannot be null
activityName
- activity name that identifies the target activity to execute; cannot be null
args
- arguments to pass to the task; null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existInstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution failsTaskExecution activityPost(String activityName, String instanceId, Arguments args) throws OperationException
Ex. Interactive activity
// Define the arguments of the activity. Arguments arguments = Arguments.create(); argument.putArgument("MyStringArgument", "StringValue"); argument.putArgument("MyIntegerArgument", 1000); // Search the instance to execute. Filter filter = ProcessService.createFilter(); filter.setMatchAll(true); filter.addAttribute(session.getVar("OrderNumber"), Comparison.IS, new Integer(12345)); filter.addAttribute(session.getVar(VarDefinition.ACTIVITY_ID, Comparison.IS, "ActivityToExecute"); ProcessIdSet processes = ProcessIdSet.create(); processSet.add(session.processGetAllVersions("/OU/MyProcess")); InstanceInfoList instances = session.processesGetInstancesByFilter(processes, filter); Instance instance = instances.get(0); // Execute the activity. TaskExecution execution = session.activityPost(instance.getActivityName(), instance.getId(), arguments); for (Invocation inv = execution.next(); inv != null; inv = execution.next()) { execution.setInvocationResult(inv.invoke()); } // Call getArguments() so argument replacement is performed execution.getArguments(); // Get the output arguments String myOutputStringArgument = (String) arguments.getArgument("MyOutputStringArgument"); String result = (String) arguments.getArgument(Arguments.RESULT);
Ex. Global interactive activity with instance access.
// Define the arguments of the activity. Arguments arguments = Arguments.create(); argument.putArgument("MyStringArgument", "StringValue"); argument.putArgument("MyIntegerArgument", 1000); // Search the instance to execute. Filter filter = ProcessService.createFilter(); filter.setMatchAll(true); filter.addAttribute(session.getVar("OrderNumber"), Comparison.IS, new Integer(12345)); filter.addAttribute(session.getVar(VarDefinition.ACTIVITY_ID, Comparison.IS, "ActivityWhereTheInstanceIs"); ProcessIdSet processes = ProcessIdSet.create(); processSet.add(session.processGetAllVersions("/OU/MyProcess")); InstanceInfoList instances = session.processesGetInstancesByFilter(processes, filter); Instance instance = instances.get(0); // Execute the activity. TaskExecution execution = session.activityPost("GlobalActivityToExecute", instance.getId(), arguments); for (Invocation inv = execution.next(); inv != null; inv = execution.next()) { execution.setInvocationResult(inv.invoke()); } // Call getArguments() so argument replacement is performed execution.getArguments(); // Get the output arguments String myOutputStringArgument = (String) arguments.getArgument("MyOutputStringArgument"); String result = (String) arguments.getArgument(Arguments.RESULT);
activityName
- activity name that identifies the target activity to execute; cannot be null
instanceId
- instance ID that identifies the InstanceInfo to execute; cannot be null
args
- arguments to pass to the task; null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existInstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution failsactivityPost(Activity, InstanceInfo, Arguments)
TaskExecution activityPost(Activity activity, InstanceInfo instance, Arguments args) throws OperationException
Ex.
// Define the arguments of the activity. Arguments arguments = Arguments.create(); argument.putArgument("MyStringArgument", "StringValue"); argument.putArgument("MyIntegerArgument", 1000); // Search the instance to execute. Filter filter = ProcessService.createFilter(); filter.setMatchAll(true); filter.addAttribute(session.getVar("OrderNumber"), Comparison.IS, new Integer(12345)); filter.addAttribute(session.getVar(VarDefinition.ACTIVITY_ID, Comparison.IS, "ActivityToExecute"); ProcessIdSet processes = ProcessIdSet.create(); processSet.add(session.processGetAllVersions("/OU/MyProcess")); InstanceInfoList instances = session.processesGetInstancesByFilter(processes, filter); Instance instance = instances.get(0); Process process = session.getProcess(instance.getProcessIn()); Activity activity = process.getActivity(instance.getActivityName()); // Execute the activity. TaskExecution execution = session.activityPost(activity, instance, arguments); for (Invocation inv = execution.next(); inv != null; inv = execution.next()) { execution.setInvocationResult(inv.invoke()); } // Call getArguments() so argument replacement is performed execution.getArguments(); // Get the output arguments String myOutputStringArgument = (String) arguments.getArgument("MyOutputStringArgument"); String result = (String) arguments.getArgument(Arguments.RESULT);
activity
- Target activity to execute; cannot be null
instance
- InstanceInfo to execute; cannot be null
args
- arguments to pass to the task; null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existInstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution fails@Deprecated TaskExecution customRunGlobal(String instanceId, String activityName, Arguments args) throws OperationException
activityPost(String, String, Arguments)
instead
instanceId
- instance ID that identifies the InstanceInfo to execute; cannot be null
activityName
- activity name that identifies the target activity to execute; cannot be null
args
- arguments to pass to the task; null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution failsTaskExecution customRunTask(String instanceStampId, int taskIn, Arguments args) throws OperationException
activityPost(String, String, int, Arguments)
instead.
instanceStampId
- instance stamp that identifies the target instance; cannot be null
taskIn
- identification number of task to executeargs
- arguments to pass to the task; null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existInstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution failsvoid instanceAttach(InstanceInfo instanceInfo, String name, String description, String remarks, File file) throws OperationException, IOException
The content type is set to null
.
instanceInfo
- InstanceInfo to attach the file to; cannot be null
name
- name of the attachment; cannot be null
; the maximum length of the name is
Attachment.FILENAME_LENGTH
description
- brief description of the attachment; cannot be null
; the maximum length of the
description is Attachment.DESCRIPT_LENGTH
remarks
- version-specific remarks to add to the attachment; cannot be null
; the maximum
length of remarks is Attachment.REMARK_LENGTH
file
- file to attach to this instance; cannot be null
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existInvalidAttachmentArgumentLengthException
if the name, description,
or remarks argument of the attachment exceeds the limit of the argument lengthAttachmentFileNotFoundException
if the file does not existAttachmentOperationException
if the attachment failsNoPermissionException
if this participant does not have permission
to attach the file to the instance.IOException
- if an I/O error occursvoid instanceAttach(InstanceInfo instanceInfo, String name, String description, String remarks, File file, String contentType) throws OperationException, IOException
instanceInfo
- InstanceInfo to attach the file to; cannot be null
name
- name of the attachment; cannot be null
; the maximum length of the name is
Attachment.FILENAME_LENGTH
description
- brief description of the attachment; cannot be null
; the maximum length of the
description is Attachment.DESCRIPT_LENGTH
remarks
- version-specific remarks to add to the attachment; cannot be null
; the maximum
length of remarks is Attachment.REMARK_LENGTH
file
- file to attach to this instance; cannot be null
contentType
- content type of the file, e.g. "text/html" or "application/ms-word"; cannot be null
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existInvalidAttachmentArgumentLengthException
if the name, description,
or remarks argument of the attachment exceeds the limit of the argument lengthAttachmentFileNotFoundException
if the file does not existAttachmentOperationException
if the attachment failsNoPermissionException
if this participant does not have permission
to attach the file to the instance.IOException
- if an I/O error occursvoid instanceAttach(InstanceInfo instanceInfo, String name, String description, String remarks, File file, String contentType, Locale locale) throws OperationException, IOException
instanceInfo
- InstanceInfo to attach the file to; cannot be null
name
- name of the attachment; cannot be null
; the maximum length of the name is
Attachment.FILENAME_LENGTH
description
- brief description of the attachment; cannot be null
; the maximum length of the
description is Attachment.DESCRIPT_LENGTH
remarks
- version-specific remarks to add to the attachment; cannot be null
; the maximum
length of remarks is Attachment.REMARK_LENGTH
file
- file to attach to this instance; cannot be null
contentType
- content type of the file, e.g. "text/html" or "application/ms-word"; cannot be null
locale
- locale in which the document has been written
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existInvalidAttachmentArgumentLengthException
if the name, description,
or remarks argument of the attachment exceeds the limit of the argument lengthAttachmentFileNotFoundException
if the file does not existAttachmentOperationException
if the attachment failsNoPermissionException
if this participant does not have permission
to attach the file to the instance.IOException
- if an I/O error occursvoid instanceAttach(String instanceId, String name, String description, String remarks, File file, String contentType, Locale locale) throws OperationException, IOException
instanceId
- id of the instance to attach the file to; cannot be null
name
- name of the attachment; cannot be null
; the maximum length of the name is
Attachment.FILENAME_LENGTH
description
- brief description of the attachment; cannot be null
; the maximum length of the
description is Attachment.DESCRIPT_LENGTH
remarks
- version-specific remarks to add to the attachment; cannot be null
; the maximum
length of remarks is Attachment.REMARK_LENGTH
file
- file to attach to this instance; cannot be null
contentType
- content type of the file, e.g. "text/html" or "application/ms-word"; cannot be null
locale
- locale in which the document has been written
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existInvalidAttachmentArgumentLengthException
if the name, description,
or remarks argument of the attachment exceeds the limit of the argument lengthAttachmentFileNotFoundException
if the file does not existAttachmentOperationException
if the attachment failsNoPermissionException
if this participant does not have permission
to attach the file to the instance.IOException
- if an I/O error occursvoid instanceAttach(InstanceInfo instanceInfo, String name, String description, String remarks, File file, String contentType, Locale locale, AttachmentStorageType storageType) throws OperationException, IOException
instanceInfo
- InstanceInfo to attach the file to; cannot be null
name
- name of the attachment; cannot be null
; the maximum length of the name is
Attachment.FILENAME_LENGTH
description
- brief description of the attachment; cannot be null
; the maximum length of the
description is Attachment.DESCRIPT_LENGTH
remarks
- version-specific remarks to add to the attachment; cannot be null
; the maximum
length of remarks is Attachment.REMARK_LENGTH
file
- file to attach to this instance; cannot be null
contentType
- content type of the file, e.g. "text/html" or "application/ms-word"; cannot be null
locale
- locale in which the document has been writtenstorageType
- AttachmentStorageType indicating the external repository type where the attachment content will be stored.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existInvalidAttachmentArgumentLengthException
if the name, description,
or remarks argument of the attachment exceeds the limit of the argument lengthAttachmentFileNotFoundException
if the file does not existAttachmentOperationException
if the attachment failsNoPermissionException
if this participant does not have permission
to attach the file to the instance.IOException
- if an I/O error occursvoid instanceAttach(String instanceId, String name, String description, String remarks, File file, String contentType, Locale locale, AttachmentStorageType storageType) throws OperationException, IOException
instanceId
- id of the instance to attach the file to; cannot be null
name
- name of the attachment; cannot be null
; the maximum length of the name is
Attachment.FILENAME_LENGTH
description
- brief description of the attachment; cannot be null
; the maximum length of the
description is Attachment.DESCRIPT_LENGTH
remarks
- version-specific remarks to add to the attachment; cannot be null
; the maximum
length of remarks is Attachment.REMARK_LENGTH
file
- file to attach to this instance; cannot be null
contentType
- content type of the file, e.g. "text/html" or "application/ms-word"; cannot be null
locale
- locale in which the document has been writtenstorageType
- AttachmentStorageType indicating the external repository type where the attachment content will be stored.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existInvalidAttachmentArgumentLengthException
if the name, description,
or remarks argument of the attachment exceeds the limit of the argument lengthAttachmentFileNotFoundException
if the file does not existAttachmentOperationException
if the attachment failsNoPermissionException
if this participant does not have permission
to attach the file to the instance.IOException
- if an I/O error occursvoid instanceLinkExternalAttachment(InstanceInfo instanceInfo, String externalId, AttachmentStorageType storageType) throws OperationException, IOException
instanceInfo
- InstanceInfo to attach the file to; cannot be null
externalId
- Id for the external attachment. Will be used to retrieve the attachment content from the external storage.storageType
- AttachmentStorageType that indicates the external repository type where the existing external attachment content is stored.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existInvalidAttachmentArgumentLengthException
if the externalId argument
exceeds the limit of the argument lengthAttachmentOperationException
if the attachment failsNoPermissionException
if this participant does not have permission
to attach the file to the instance.IOException
- if an I/O error occursvoid instanceLinkExternalAttachment(String instanceId, String externalId, AttachmentStorageType storageType) throws OperationException, IOException
instanceId
- id of the instance to attach the file to; cannot be null
externalId
- Id for the external attachment. Will be used to retrieve the attachment content from the external storage.storageType
- AttachmentStorageType that indicates the external repository type where the existing external attachment content is stored.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existInvalidAttachmentArgumentLengthException
if the externalId argument
exceeds the limit of the argument lengthAttachmentOperationException
if the attachment failsNoPermissionException
if this participant does not have permission
to attach the file to the instance.IOException
- if an I/O error occursActivityList instanceGetGlobalActivities(String instanceId) throws OperationException
instanceId
- Instance indentification of the instance to check.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityList instanceGetGlobalActivities(InstanceInfo instance) throws OperationException
instance
- Instance to check.
OperationException
- if the session could not perform the operation.ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existboolean instanceCanBeAborted(String instanceId) throws OperationException
true
if the instance can be aborted.
An instance can be aborted if the interactive activity has been defined as abortable in Studio and the participant has been given permission to abort in the Process Administrator.
instanceId
- Instance id to verify that the instance can be aborted
true
if the instance can be aborted
OperationException
- if the session was unable to retrieve the instance.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance in this instance Id could
not be found.boolean instanceCanBeAborted(InstanceInfo instance)
true
if the instance can be aborted.
An instance can be aborted if the interactive activity has been defined as abortable in Studio and the participant has been given permission to abort in the Process Administrator.
instance
- InstanceInfo to verify that the instance can be aborted
true
if the instance can be abortedboolean instanceCanBeSentBack(String instanceId) throws OperationException
true
if the instance can be routed back.
An instance can be routed back if it is outside of the main process flow in an exception flow, grab flow, or interruption flow.
instanceId
- Instance id to verify that the instance can be routed back
true
if the instance can be routed back
OperationException
- if the session was unable to retrieve the instance.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance in this instance Id could
not be found.boolean instanceCanBeSentBack(InstanceInfo instance)
true
if the instance can be routed back.
An instance can be routed back if it is outside of the main process flow in an exception flow, grab flow, or interruption flow.
instance
- InstanceInfo to verify that the instance can be routed back
true
if the instance can be routed back@Deprecated boolean instanceCanBeBack(InstanceInfo instance)
instanceCanBeSentBack(InstanceInfo)
instead.
true
if the instance can be routed back.
An instance can be routed back if it is outside of the main process flow in an exception flow, grab flow, or interruption flow.
instance
- InstanceInfo to verify that the instance can be routed back
true
if the instance can be routed backboolean instanceCanBeProcessed(String instanceId) throws OperationException
true
if the instance can be processed.
Processed means that the main task associated with this instance can be executed.
instanceId
- Instance id to verify that the instance can be processed
true
if the instance can be processed
OperationException
- if the session was unable to retrieve the instance.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance in this instance Id could
not be found.boolean instanceCanBeProcessed(InstanceInfo instance)
true
if the instance can be processed.
Processed means that the main task associated with this instance can be executed.
instance
- InstanceInfo to verify that the instance can be processed
true
if the instance can be processedboolean instanceCanBeReassigned(String instanceId) throws OperationException
true
if the instance can be reassigned.
An instance can be reassigned if the interactive activity has been defined as reassignable in Studio and the participant has been given permission to reassign in Process Administrator, or if the instance is selected and the participant has been given permission to escalate or delegate in Process Administrator.
instanceId
- Instance id to verify that the instance can be reassigned
true
if the instance can be reassigned
OperationException
- if the session was unable to retrieve the instance.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance in this instance Id could
not be found.boolean instanceCanBeReassigned(InstanceInfo instance)
true
if the instance can be reassigned.
An instance can be reassigned if the interactive activity has been defined as reassignable in Studio and the participant has been given permission to reassign in Process Administrator, or if the instance is selected and the participant has been given permission to escalate or delegate in Process Administrator.
instance
- InstanceInfo to verify that the instance can be reassigned
true
if the instance can be reassigned@Deprecated boolean instanceCanBeReassign(InstanceInfo instance)
instanceCanBeReassigned(InstanceInfo)
instead.
true
if the instance can be reassigned.
An instance can be reassigned if the interactive activity has been defined as reassignable in Studio and the participant has been given permission to reassign in Process Administrator, or if the instance is selected and the participant has been given permission to escalate or delegate in Process Administrator.
instance
- InstanceInfo to verify that the instance can be reassigned
true
if the instance can be reassignedboolean instanceCanBeDelegated(String instanceId) throws OperationException
true
if the instance can be delegated.
An instance can be delegated if the interactive activity has been defined as reassignable in Studio and the participant has been given permission to delegate in Process Administrator.
instanceId
- Id of the instance to check if the instance can be delegated
true
if the instance can be delegated
OperationException
- if the session was unable to retrieve the instance.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance in this instance Id could
not be found.boolean instanceCanBeDelegated(InstanceInfo instance)
true
if the instance can be delegated.
An instance can be delegated if the interactive activity has been defined as reassignable in Studio and the participant has been given permission to delegate in Process Administrator.
instance
- InstanceInfo to check if the instance can be delegated
true
if the instance can be delegated@Deprecated boolean instanceCanBeDelegate(InstanceInfo instance)
instanceCanBeDelegated(InstanceInfo)
instead.
true
if the instance can be delegated.
An instance can be delegated if the interactive activity has been defined as reassignable in Studio and the participant has been given permission to delegate in Process Administrator.
instance
- InstanceInfo to check if the instance can be delegated
true
if the instance can be delegatedboolean instanceCanBeEscalated(String instanceId) throws OperationException
true
if this instance can be escalated.
An instance can be escalated if the interactive activity has been defined as reassignable in Studio and the participant has been given permission to escalate in Process Administrator.
instanceId
- Id of the instance to check if the instance can be escalated
true
if the instance can be escalated
OperationException
- if the session was unable to retrieve the instance.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance in this instance Id could
not be found.boolean instanceCanBeEscalated(InstanceInfo instance)
true
if this instance can be escalated.
An instance can be escalated if the interactive activity has been defined as reassignable in Studio and the participant has been given permission to escalate in Process Administrator.
instance
- InstanceInfo to check if the instance can be escalated
true
if the instance can be escalated@Deprecated boolean instanceCanBeEscalate(InstanceInfo instance)
instanceCanBeEscalated(InstanceInfo)
instead.
true
if this instance can be escalated.
An instance can be escalated if the interactive activity has been defined as reassignable in Studio and the participant has been given permission to escalate in Process Administrator.
instance
- InstanceInfo to check if the instance can be escalated
true
if the instance can be escalatedboolean instanceCanBeReassignedToPeer(String instanceId) throws OperationException
true
if this instance can be reassigned to a peer.
An instance can be reassigned to a peer if the interactive activity has been defined as reassignable in Studio and the participant has been given permission for peer assignment in Process Administrator.
instanceId
- Id of the instance to check if the instance can be reassigned to a peer
true
if the instance can be reassigned to a peer
OperationException
- if the session was unable to retrieve the instance.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance in this instance Id could
not be found.boolean instanceCanBeReassignedToPeer(InstanceInfo instance)
true
if this instance can be reassigned to a peer.
An instance can be reassigned to a peer if the interactive activity has been defined as reassignable in Studio and the participant has been given permission for peer assignment in Process Administrator.
instance
- InstanceInfo to check if the instance can be reassigned to a peer
true
if the instance can be reassigned to a peerboolean instanceCanBeResumed(String instanceId) throws OperationException
true
if the instance can be resumed.
An instance can be resumed if the instance is suspended and the participant has been given permission to suspend in Process Administrator.
instanceId
- Instance id to verify that the instance can be resumed
true
if the instance can be resumed
OperationException
- if the session was unable to retrieve the instance.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance in this instance Id could
not be found.boolean instanceCanBeResumed(InstanceInfo instance)
true
if the instance can be resumed.
An instance can be resumed if the instance is suspended and the participant has been given permission to suspend in Process Administrator.
instance
- InstanceInfo to verify that the instance can be resumed
true
if the instance can be resumedboolean instanceCanBeSelected(String instanceId) throws OperationException
true
if the instance can be selected by the current participant.
An instance can be selected if all items of the instance are currently unselected or selected by the current participant.
instanceId
- Instance id to verify that the instance can be selected
true
if the instance can be selected by the current participant
OperationException
- if the session was unable to retrieve the instance.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance in this instance Id could
not be found.boolean instanceCanBeSelected(InstanceInfo instance)
true
if the instance can be selected by the current participant.
An instance can be selected if all items of the instance are currently unselected or selected by the current participant.
instance
- InstanceInfo to verify that the instance can be selected
true
if the instance can be selected by the current participantboolean instanceCanBeSent(String instanceId) throws OperationException
true
if the instance can be sent.
An instance can be sent if all mandatory items of the instance are currently completed and the articipant has been given permission to route in Process Administrator.
instanceId
- Instance id to verify that the instance can be sent
true
if the instance can be sent
OperationException
- if the session was unable to retrieve the instance.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance in this instance Id could
not be found.boolean instanceCanBeSent(InstanceInfo instance)
true
if the instance can be sent.
An instance can be sent if all mandatory items of the instance are currently completed and the articipant has been given permission to route in Process Administrator.
instance
- InstanceInfo to verify that the instance can be sent
true
if the instance can be sentboolean instanceCanBeSuspended(String instanceId) throws OperationException
true
if the instance can be suspended.
An instance can be suspended if the interactive activity has been defined as suspendable in Studio, the instance is running, and the participant has been given permission to suspend in Process Administrator.
instanceId
- Instance id to verify that the instance can be suspended
true
if the instance can be suspended
OperationException
- if the session was unable to retrieve the instance.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance in this instance Id could
not be found.boolean instanceCanBeSuspended(InstanceInfo instance)
true
if the instance can be suspended.
An instance can be suspended if the interactive activity has been defined as suspendable in Studio, the instance is running, and the participant has been given permission to suspend in Process Administrator.
instance
- InstanceInfo to verify that the instance can be suspended
true
if the instance can be suspendedboolean instanceCanBeUngrabbed(String instanceId) throws OperationException
true
if the instance can be ungrabbed.
An instance can be ungrabbed if the instance is grabbed and the participant has been given permission to grab in Process Administrator.
instanceId
- Instance id to verify that the instance can be ungrabbed
true
if the instance can be ungrabbed
OperationException
- if the session was unable to retrieve the instance.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance in this instance Id could
not be found.boolean instanceCanBeUngrabbed(InstanceInfo instance)
true
if the instance can be ungrabbed.
An instance can be ungrabbed if the instance is grabbed and the participant has been given permission to grab in Process Administrator.
instance
- InstanceInfo to verify that the instance can be ungrabbed
true
if the instance can be ungrabbedboolean instanceCanBeUnselected(String instanceId) throws OperationException
true
if the instance can be unselected by the current participant
An instance can be unselected if the instance is currently selected by the participant
instanceId
- Instance id to verify that the instance can be unselected
true
if the instance can be unselected by the current participant
OperationException
- if the session was unable to retrieve the instance.ProcessNotAvailableException
if the process is not available.ProcessControlNotAvailableException
if the remote process is
not available.InstanceNotFoundException
if the instance in this instance Id could
not be found.boolean instanceCanBeUnselected(InstanceInfo instance)
true
if the instance can be unselected by the current participant
An instance can be unselected if the instance is currently selected by the participant
instance
- InstanceInfo to verify that the instance can be unselected
true
if the instance can be unselected by the current participant@Deprecated void instanceReassign(InstanceStamp instance, String participant) throws OperationException, BatchOperationException
instanceReassign(String, String, String)
instead
An instance can be reassigned if the interactive activity has been defined as reassignable in Studio and the current participant has been given permission to reassign in Process Administrator. This operation is NOT supported in a federated environment.
instance
- InstanceStamp of instance to be reassigned; cannot be null
participant
- UID of participant to reassign the instance to; cannot be null
OperationException
- if the session could not perform the operation.PrivilegedOperationException
if the participant does not have
permissions to perform the operation.BatchOperationException
- if the session could not perform the operation on every object
May be one of the following subclasses of BatchOperationException:
InstancesException
if the operation fails.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceSelectDisableException
if an instance can not be reassigned
because the activity where the instance is can not be select.InstanceNotRunningException
if an instance is not running.InstanceAlreadySelectedException
if an instance is selected by
other participant (not by current participant).ParticipantNotInTargetRoleException
if the target participant does
not have the role where the instance is.void instanceReassign(String instanceId, String activityName, String participant) throws OperationException, BatchOperationException
An instance can be reassigned if the interactive activity has been defined as reassignable in Studio and the current participant has been given permission to reassign in Process Administrator.
instanceId
- Instance id of instance to be reassigned; cannot be null
activityName
- The activity name of the activity where the instance suposse is.participant
- UID of participant to reassign the instance to; cannot be null
OperationException
- if the session could not perform the operation.PrivilegedOperationException
if the participant does not have
permissions to perform the operation.BatchOperationException
- if the session could not perform the operation on every object
May be one of the following subclasses of BatchOperationException:
InstancesException
if the operation fails.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceSelectDisableException
if an instance can not be reassigned
because the activity where the instance is can not be select.InstanceNotRunningException
if an instance is not running.InstanceAlreadySelectedException
if an instance is selected by
other participant (not by current participant).ParticipantNotInTargetRoleException
if the target participant does
not have the role where the instance is.void instanceReassign(InstanceInfo instance, String participant) throws OperationException, BatchOperationException
An instance can be reassigned if the interactive activity has been defined as reassignable in Studio and the current participant has been given permission to reassign in Process Administrator.
instance
- Instance to be reassigned; cannot be null
participant
- UID of participant to reassign the instance to; cannot be null
OperationException
- if the session could not perform the operation.PrivilegedOperationException
if the participant does not have
permissions to perform the operation.BatchOperationException
- if the session could not perform the operation on every object
May be one of the following subclasses of BatchOperationException:
InstancesException
if the operation fails.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceSelectDisableException
if an instance can not be reassigned
because the activity where the instance is can not be select.InstanceNotRunningException
if an instance is not running.InstanceAlreadySelectedException
if an instance is selected by
other participant (not by current participant).ParticipantNotInTargetRoleException
if the target participant does
not have the role where the instance is.@Deprecated void instancesAbort(InstanceStamp[] instances) throws OperationException, BatchOperationException
instancesAbort(InstanceActivityPairSet)
instead
An instance can be aborted if the interactive activity has been defined as abortable in Studio and
the participant has been given permission to abort in Process Administrator.
Note that only instances in interactive activities can be aborted.
This operation is NOT supported in a federated environment.
instances
- array of InstanceStamp specifying the instances to be aborted; cannot be null
OperationException
- if the session could not perform the operation.PrivilegedOperationException
if the participant does not have
permissions to perform the operation.BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceNotRunningException
if an instance is not running.InstanceAlreadyTerminatedException
if an instance is terminated.void instancesAbort(InstanceActivityPairSet instanceActivityPairs) throws OperationException, BatchOperationException
An instance can be aborted if the interactive activity has been defined as abortable in Studio and
the participant has been given permission to abort in Process Administrator.
Note that only instances in interactive activities can be aborted.
instanceActivityPairs
- InstanceSet specifying the instances to be aborted; cannot be null
OperationException
- if the session could not perform the operation.PrivilegedOperationException
if the participant does not have
permissions to perform the operation.BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceNotRunningException
if an instance is not running.InstanceAlreadyTerminatedException
if an instance is terminated.@Deprecated void instancesAddConsult(InstanceStamp[] instances, String consult, String toParticipant) throws OperationException, BatchOperationException
instancesAddConsult(InstanceActivityPairSet, String, String)
instead
instances
- consult will be added to each InstanceStamp in this array; cannot be null
consult
- remark to include in consult; cannot be null
toParticipant
- UID of participant to be consulted; cannot be null
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.void instancesAddConsult(InstanceActivityPairSet instanceActivityPairs, String consult, String toParticipant) throws OperationException, BatchOperationException
instanceActivityPairs
- consult will be added to each instance in this InstanceSet; cannot be null
consult
- remark to include in consult; cannot be null
toParticipant
- UID of participant to be consulted; cannot be null
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.@Deprecated void instancesAddNote(InstanceStamp[] instances, String note) throws OperationException, BatchOperationException
instancesAddNote(InstanceActivityPairSet, String)
instead
instances
- note will be added to each InstanceStamp in this array; cannot be null
note
- note content; cannot be null
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.void instancesAddNote(InstanceActivityPairSet instanceActivityPairs, String note) throws OperationException, BatchOperationException
instanceActivityPairs
- note will be added to each instance in this InstanceSet; cannot be null
note
- note content; cannot be null
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.@Deprecated void instancesGrab(InstanceStamp[] instances, String grabActivityName) throws OperationException, BatchOperationException
instancesGrab(InstanceActivityPairSet, String)
instead
An instance can be grabbed if it is running, the interactive activity has been defined as grabbable in Studio, and the participant has been given permission to grab in Process Administrator. This operation is NOT supported in a federated environment.
instances
- array of InstanceStamps to grab; cannot be null
grabActivityName
- name of the grab activity; cannot be null
OperationException
- if the session could not perform the operation.PrivilegedOperationException
if the participant does not have
permissions to perform the operation.BatchOperationException
- if the session could not perform the operation for each instance.InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.NoValidTransitionAvailableException
if an instance can no be
grabbed to the grab activity.InstanceNotRunningException
if an instance is not running.ParticipantNotInTargetRoleException
if the target participant does
not have the role where the instance is.void instancesGrab(InstanceActivityPairSet instanceActivityPairs, String grabActivityName) throws OperationException, BatchOperationException
An instance can be grabbed if it is running, the interactive activity has been defined as grabbable in Studio, and the participant has been given permission to grab in Process Administrator.
instanceActivityPairs
- InstanceSet of instances to grab; cannot be null
grabActivityName
- name of the grab activity; cannot be null
OperationException
- if the session could not perform the operation.PrivilegedOperationException
if the participant does not have
permissions to perform the operation.BatchOperationException
- if the session could not perform the operation for each instance.InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.NoValidTransitionAvailableException
if an instance can no be
grabbed to the grab activity.InstanceNotRunningException
if an instance is not running.ParticipantNotInTargetRoleException
if the target participant does
not have the role where the instance is.@Deprecated void instancesResume(InstanceStamp[] instances) throws OperationException, BatchOperationException
instancesResume(fuego.papi.collections.InstanceActivityPairSet)
instead
An instance can be resumed if it is suspended and the participant has been given permission to suspend in Process Administrator. This operation is NOT supported in a federated environment.
instances
- array of InstanceStamps to resume; cannot be null
OperationException
- if the session could not perform the operation.
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceNotSuspendedException
if an instance is not suspended.void instancesResume(InstanceActivityPairSet instanceActivityPairs) throws OperationException, BatchOperationException
An instance can be resumed if it is suspended and the participant has been given permission to suspend in Process Administrator.
instanceActivityPairs
- InstanceSet of instances to resume; cannot be null
OperationException
- if the session could not perform the operation.
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceNotSuspendedException
if an instance is not suspended.void instancesReassign(InstanceActivityPairSet instanceActivityPairSet, String participant) throws OperationException, BatchOperationException
An instance can be reassigned if the interactive activity has been defined as reassignable in Studio and the current participant has been given permission to reassign in Process Administrator.
instanceActivityPairSet
- InstanceSet of instances to be reassigned; cannot be null
participant
- UID of participant to reassign the instances to; cannot be null
OperationException
- if the session could not perform the operation.PrivilegedOperationException
if the participant does not have
permissions to perform the operation.BatchOperationException
- if the session could not perform the operation on every object
May be one of the following subclasses of BatchOperationException:
InstancesException
if the operation fails.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceSelectDisableException
if an instance can not be reassigned
because the activity where the instance is can not be select.InstanceNotRunningException
if an instance is not running.InstanceAlreadySelectedException
if an instance is selected by
other participant (not by current participant).ParticipantNotInTargetRoleException
if the target participant does
not have the role where the instance is.@Deprecated void instancesSelect(InstanceStamp[] instances) throws OperationException, BatchOperationException
instancesSelect(fuego.papi.collections.InstanceActivityPairSet)
instead
An instance can be selected if all items of the instance are currently unselected or selected by
the current participant.
Note that only instances in interactive activities can be selected.
This operation is NOT supported in a federated environment.
instances
- array of InstanceStamps to select; cannot be null
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceSelectDisableException
if an instance can not be reassigned
because the activity where the instance is can not be select.InstanceNotRunningException
if an instance is not running.InstanceAlreadySelectedException
if an instance is selected by
other participant (not by current participant).ParticipantNotInTargetRoleException
if the target participant does
not have the role where the instance is.InstanceAlreadySelectedException
if the instance is selected.void instancesSelect(InstanceActivityPairSet instanceActivityPairs) throws OperationException, BatchOperationException
An instance can be selected if all items of the instance are currently unselected or selected by
the current participant.
Note that only instances in interactive activities can be selected.
instanceActivityPairs
- InstanceSet of Instances to select; cannot be null
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceSelectDisableException
if an instance can not be reassigned
because the activity where the instance is can not be select.InstanceNotRunningException
if an instance is not running.InstanceAlreadySelectedException
if an instance is selected by
other participant (not by current participant).ParticipantNotInTargetRoleException
if the target participant does
not have the role where the instance is.InstanceAlreadySelectedException
if the instance is selected.@Deprecated void instancesSend(InstanceStamp[] instances) throws OperationException, BatchOperationException
instancesSend(InstanceActivityPairSet)
instead
An instance can be sent if all mandatory items of the instance are currently completed and the articipant
has been given permission to route in Process Administrator.
Note that only instances in interactive activities can be sent.
This operation is NOT supported in a federated environment.
instances
- array of InstanceStamps to route; cannot be null
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceNotRunningException
if an instance is not running.NotUniqueTransitionException
if an instance has more than one
target activity.NoValidTransitionAvailableException
if an instance does not have
target activities.void instancesSend(InstanceActivityPairSet instanceActivityPairs) throws OperationException, BatchOperationException
An instance can be sent if all mandatory items of the instance are currently completed and the articipant
has been given permission to route in Process Administrator.
Note that only instances in interactive activities can be sent.
instanceActivityPairs
- InstanceSet of Instances to route; cannot be null
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceNotRunningException
if an instance is not running.NotUniqueTransitionException
if an instance has more than one
target activity.NoValidTransitionAvailableException
if an instance does not have
target activities.@Deprecated void instancesSendBack(InstanceStamp[] instances, boolean skip) throws OperationException, BatchOperationException
instancesSendBack(InstanceActivityPairSet, boolean)
instead
An instance can be sent back if it is outside of the main process flow in an exception flow or an interruption flow. This operation is NOT supported in a federated environment.
instances
- array of InstanceStamps to route; cannot be null
skip
- if true
, skip the activity which threw the exception or the activity which
was interrupted
OperationException
- if the session could not perform the operation.
BatchOperationException
- if the session could not perform the operation for each instance.InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceNotRunningException
if an instance is not running.void instancesSendBack(InstanceActivityPairSet instanceActivityPairs, boolean skip) throws OperationException, BatchOperationException
An instance can be sent back if it is outside of the main process flow in an exception flow or an interruption flow.
instanceActivityPairs
- InstanceSet of Instances to route; cannot be null
skip
- if true
, skip the activity which threw the exception or the activity which
was interrupted
OperationException
- if the session could not perform the operation.
BatchOperationException
- if the session could not perform the operation for each instance.InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceNotRunningException
if an instance is not running.@Deprecated void instancesSendTo(InstanceStamp[] instances, String activityName, String participant) throws OperationException, BatchOperationException
instancesSendTo(InstanceActivityPairSet, String, String)
instead
An instance can be sent if all mandatory items of the instance are currently completed and the participant
has been given permission to route in Process Administrator.
Note that only instances in interactive activities can be sent.
This operation is NOT supported in a federated environment.
instances
- array of InstanceStamps to route; cannot be null
activityName
- name of activity to route to; cannot be null
participant
- UID of participant to route to; cannot be null
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instanceInstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceNotRunningException
if an instance is not running.NoValidTransitionAvailableException
if an instance does not have
transition to the target activity.ParticipantNotInTargetRoleException
if the target participant does
not have the role where the instance will be sent.void instancesSendTo(InstanceActivityPairSet instanceActivityPairs, String activityName, String participant) throws OperationException, BatchOperationException
An instance can be sent if all mandatory items of the instance are currently completed and the participant
has been given permission to route in Process Administrator.
Note that only instances in interactive activities can be sent.
instanceActivityPairs
- InstanceSet of Instances to route; cannot be null
activityName
- name of activity to route to; cannot be null
participant
- UID of participant to route to; cannot be null
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instanceInstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceNotRunningException
if an instance is not running.NoValidTransitionAvailableException
if an instance does not have
transition to the target activity.ParticipantNotInTargetRoleException
if the target participant does
not have the role where the instance will be sent.@Deprecated void instancesSendTo(InstanceStamp[] instances, String activityName) throws OperationException, BatchOperationException
instancesSendTo(InstanceActivityPairSet, String)
instead
An instance can be sent if all mandatory items of the instance are currently completed and the participant
has been given permission to route in Process Administrator.
Note that only instances in interactive activities can be sent.
This operation is NOT supported in a federated environment.
instances
- array of InstanceStamps to route; cannot be null
activityName
- name of activity to route to; cannot be null
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instanceInstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceNotRunningException
if an instance is not running.NoValidTransitionAvailableException
if an instance does not have
transition to the target activity.void instancesSendTo(InstanceActivityPairSet instanceActivityPairs, String activityName) throws OperationException, BatchOperationException
An instance can be sent if all mandatory items of the instance are currently completed and the participant
has been given permission to route in Process Administrator.
Note that only instances in interactive activities can be sent.
instanceActivityPairs
- InstanceSet of Instances to route; cannot be null
activityName
- name of activity to route to; cannot be null
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instanceInstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceNotRunningException
if an instance is not running.NoValidTransitionAvailableException
if an instance does not have
transition to the target activity.@Deprecated void instancesSuspend(InstanceStamp[] instances) throws OperationException, BatchOperationException
instancesSuspend(InstanceActivityPairSet)
instead
instances
- array of InstanceStamps to suspend; cannot be null
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceNotRunningException
if an instance is not running.InstanceAlreadySuspendedException
if an instance is suspended.void instancesSuspend(InstanceActivityPairSet instanceActivityPairs) throws OperationException, BatchOperationException
instanceActivityPairs
- InstanceSet of Instances to suspend; cannot be null
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceNotRunningException
if an instance is not running.InstanceAlreadySuspendedException
if an instance is suspended.@Deprecated ParticipantsForActivities instancesTargetParticipants(InstanceStamp[] instances) throws OperationException, BatchOperationException
instancesGetTargetParticipants(InstanceActivityPairSet)
instead
instances
- array of InstanceStamps to check for participants; cannot be null
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceNotRunningException
if an instance is not running.@Deprecated ParticipantsForActivities instancesGetTargetParticipants(InstanceActivityPairSet instanceActivityPairs) throws OperationException, BatchOperationException
instancesGetTargetActivities(fuego.papi.collections.InstanceActivityPairSet)
and instancesGetTargetParticipantsForActivity(fuego.papi.collections.InstanceActivityPairSet, java.lang.String, java.lang.String, int)
instead.
instanceActivityPairs
- InstanceSet of Instances to check for participants; cannot be null
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceNotRunningException
if an instance is not running.Map instancesGetTargetParticipantsForActivity(InstanceActivityPairSet instanceActivityPairs, String activityName, String filter, int max) throws OperationException
instanceActivityPairs
- InstanceActivityPairs with the instances to be queried, which must belong to the same processactivityName
- the activity name for the activity where the instance will be sentfilter
- pattern used to search for the participantsmax
- maximum number of participants to be returned; if it is exceeded, MaxSizeParticipantsExceededException
will be thrown
OperationException
- if the session could not perform the operationProcessNotAvailableException
if the process of an instance is not
availableInstanceNotFoundException
if an instance was not foundInstancesNotFromSameProcessException
if not every instance belongs to the same processfuego.collections.lists.StringList instancesGetTargetActivities(InstanceActivityPairSet instanceActivityPairs) throws BatchOperationException
instanceActivityPairs
- set of Instance-Activity pairs with the instances to be queried
BatchOperationException
- if the session could not perform the operation for each instanceInstancesException
if not all instances are available to
perform the operation.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstancesNotFromSameProcessException
if instances belong to different processes.ActivityList instancesGetTargetActivitiesList(InstanceActivityPairSet instanceActivityPairs) throws BatchOperationException
instanceActivityPairs
- set of Instance-Activity pairs with the instances to be queried
BatchOperationException
- if the session could not perform the operation for each instanceInstancesException
if not all instances are available to
perform the operation.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstancesNotFromSameProcessException
if instances belong to different processes.@Deprecated void instancesUngrab(InstanceStamp[] instances) throws OperationException, BatchOperationException
instancesUngrab(InstanceActivityPairSet)
instead
An instance can be ungrabbed if the instance is grabbed and the participant has been given permission to grab in Process Administrator. This operation is NOT supported in a federated environment.
instances
- array of InstanceStamps to ungrab; cannot be null
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceNotRunningException
if an instance is not running.InstanceNotGrabbedException
if an instance is not grabbad.InstanceSuspendedException
if an instance is suspended.void instancesUngrab(InstanceActivityPairSet instanceActivityPairs) throws OperationException, BatchOperationException
An instance can be ungrabbed if the instance is grabbed and the participant has been given permission to grab in Process Administrator.
instanceActivityPairs
- InstanceSet of Instances to ungrab; cannot be null
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceNotRunningException
if an instance is not running.InstanceNotGrabbedException
if an instance is not grabbad.InstanceSuspendedException
if an instance is suspended.@Deprecated void instancesUnselect(InstanceStamp[] instances) throws OperationException, BatchOperationException
instancesUnselect(InstanceActivityPairSet)
instead
An instance can be unselected if the instance is currently selected by the current participant. This operation is NOT supported in a federated environment.
instances
- array of InstanceStamps to unselect; cannot be null
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceSelectDisableException
if an instance can not be reassigned
because the activity where the instance is can not be select.InstanceNotRunningException
if an instance is not running.InstanceSelectedByOtherException
if an instance is selected by
other participant (not by current participant).void instancesUnselect(InstanceActivityPairSet instanceActivityPairs) throws OperationException, BatchOperationException
An instance can be unselected if the instance is currently selected by the current participant.
instanceActivityPairs
- InstanceSet of Instances to unselect; cannot be null
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation for each instance
May be one of the following subclasses of BatchOperationException:
InstancesException
if the session could not perform the
operation on every instance.InstanceOperationException
if the operation fails on an
instance.InstanceNotFoundException
if an instance not exist.InstanceNotInActivityException
if an instance is no
longer in activity where the stamp specify.InstanceSelectDisableException
if an instance can not be reassigned
because the activity where the instance is can not be select.InstanceNotRunningException
if an instance is not running.InstanceSelectedByOtherException
if an instance is selected by
other participant (not by current participant).@Deprecated void obtainEditionLock(Attachment attachment) throws OperationException
attachmentEdit(Attachment)
instead
To write the checked-out attachment to a file, use
checkOutAttachment(Attachment, String)
.
To write the checked-out attachment to an OutputStream, use
checkOutAttachmentToStream(Attachment, java.io.OutputStream)
.
attachment
- attachment to receive the lock; cannot be null
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableAttachmentOperationException
if the version lock failsvoid attachmentEdit(Attachment attachment) throws OperationException
To write the checked-out attachment to a file, use
checkOutAttachment(Attachment, String)
.
To write the checked-out attachment to an OutputStream, use
checkOutAttachmentToStream(Attachment, java.io.OutputStream)
.
attachment
- attachment to acquire the lock for; cannot be null
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableAttachmentOperationException
if the version lock failsvoid attachmentEdit(String attachmentId) throws OperationException
To write the checked-out attachment to a file, use
checkOutAttachment(Attachment, String)
.
To write the checked-out attachment to an OutputStream, use
checkOutAttachmentToStream(Attachment, java.io.OutputStream)
.
attachmentId
- id of the attachment to acquire the lock for; cannot be null
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableAttachmentOperationException
if the version lock fails@Deprecated Arguments prepareExternalActivity(String instanceStampId, int taskIn, Arguments args) throws OperationException
activityPrepare(String, String, Arguments)
instead
instanceStampId
- instance stamp ID that identifies the target instance; cannot be null
taskIn
- task identification number of the task to executeargs
- input arguments passed to the external activity; null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existInstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution fails@Deprecated Arguments prepareExternalActivity(String instanceId, String activityName, int taskIn, Arguments args) throws OperationException
activityPrepare(String, String, Arguments)
instead
instanceId
- ID that identifies the target instance; cannot be null
activityName
- name of the target activity; cannot be null
taskIn
- task identification number of the task to executeargs
- input arguments passed to the external activity; null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existInstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution failsArguments activityPrepare(String activityName, String instanceId, Arguments args) throws OperationException
activityName
- name of the target activity; cannot be null
instanceId
- ID that identifies the target instance; cannot be null
args
- input arguments passed to the external activity; null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existInstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution failsArguments activityPrepare(Activity activity, InstanceInfo instance, Arguments args) throws OperationException
activity
- the target activity; cannot be null
instance
- the target instance; cannot be null
args
- input arguments passed to the external activity; null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existInstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution fails@Deprecated void releaseEditionLock(Attachment attachment, File file) throws OperationException
attachmentRelease(Attachment, File)
instead
attachment
- the version lock on the attachment will be released; cannot be null
file
- local file to be removed; cannot be null
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableAttachmentOperationException
if the lock release failsvoid attachmentRelease(Attachment attachment, File file) throws OperationException
attachment
- the version lock on the attachment will be released; cannot be null
file
- local file to be removed; cannot be null
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableAttachmentOperationException
if the lock release fails@Deprecated void releaseEditionLock(Attachment attachment) throws OperationException
attachmentRelease(Attachment)
instead
attachment
- the version lock will be released for the attachment; cannot be null
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableAttachmentOperationException
if the lock release failsvoid attachmentRelease(Attachment attachment) throws OperationException
attachment
- the version lock will be released for the attachment; cannot be null
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableAttachmentOperationException
if the lock release failsvoid attachmentRelease(String attachmentId) throws OperationException
attachmentId
- the version lock will be released for the attachment with the specified Id; cannot be null
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableAttachmentOperationException
if the lock release fails@Deprecated void removeBookmarks(InstanceStamp[] instancesStamp) throws OperationException
instancesRemoveBookmark(InstanceActivityPairSet)
instead
instancesStamp
- array of InstanceStamps to remove from the bookmarks; cannot be null
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availablevoid instancesRemoveBookmark(InstanceActivityPairSet instanceActivityPairs) throws OperationException
instanceActivityPairs
- InstanceSet of Instances to remove from the bookmarks; cannot be null
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not available@Deprecated void removePresentation(String presentationId) throws OperationException
presentationRemove(String)
instead
presentationId
- ID of presentation to remove; if the ID does not match a presentation,
this method will have no effect; if a view referenced the specified presentationId,
the view will be set to use the default presentation ID; default presentation IDs
cannot be removed
OperationException
- if the session could not perform the operationvoid presentationRemove(String presentationId) throws OperationException
presentationId
- ID of presentation to remove; if the ID does not match a presentation,
this method will have no effect; if a view referenced the specified presentationId,
the view will be set to use the default presentation ID; default presentation IDs
cannot be removed
OperationException
- if the session could not perform the operation@Deprecated void removeView(String viewId) throws OperationException
viewRemove(String)
instead
viewId
- ID of the view to remove; default views cannot be removed; if the current participant is
not the owner of the view, the view will not be removed
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ViewHasChildrenException
if the view has children which owner is
the current participant.void viewRemove(String viewId) throws OperationException
viewId
- ID of the view to remove; default views cannot be removed; if the current participant is
not the owner of the view, the view will not be removed
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ViewHasChildrenException
if the view has children which owner is
the current participant.@Deprecated InstanceInfo runActivity(String instanceStampId, Arguments args) throws OperationException
activityExecute(String, String, Arguments)
instead
The task cannot interact with the end user. For interactive tasks, use customRunActivity. This operation is NOT supported in a federated environment.
instanceStampId
- ID of the InstanceStamp that contains the instance and activity name;
cannot be null
args
- arguments to pass to the task; null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existInstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution fails.TaskNotFoundException
if the task not exist.InstanceSentByAbortActionException
if the instance was aborted
after the execution (Instance.action = Action.ABORT).InstanceSentByBackOrSkipActionException
if the instance was sent
back or skip (Instance.action = Action.BACK or Instance.action = Action.SKIP).InstanceSentByThrowException
if the instance was sent to exception
catcher (by user defined exception).@Deprecated InstanceInfo runActivity(String instanceStampId, int taskIn, Arguments args) throws OperationException
activityExecute(String, String, int, Arguments)
instead
instanceStampId
- Instance stamp id to execute task.taskIn
- Task number of the activity to execute.args
- Arguments to pass the task. Null means no Arguments.
OperationException
- if the operation fails.@Deprecated InstanceInfo runActivity(String instanceId, String activityName, Arguments args) throws OperationException
activityExecute(String, String, Arguments)
instead
instanceId
- Instance to execute task.activityName
- Instance activity name.args
- Arguments to pass the task. Null means no Arguments.
OperationException
- if the operation fails.InstanceInfo activityExecute(Activity activity, InstanceInfo instance, Arguments args) throws OperationException
The task cannot interact with the end user. For interactive tasks, use customRunActivity.
Ex.
// Define the arguments of the activity. Arguments arguments = Arguments.create(); argument.putArgument("MyStringArgument", "StringValue"); argument.putArgument("MyIntegerArgument", 1000); // Search the instance to execute. Filter filter = ProcessService.createFilter(); filter.setMatchAll(true); filter.addAttribute(session.getVar("OrderNumber"), Comparison.IS, new Integer(12345)); filter.addAttribute(session.getVar(VarDefinition.ACTIVITY_ID, Comparison.IS, "ActivityToExecute"); ProcessIdSet processes = ProcessIdSet.create(); processes.add(session.processGetAllVersions("/OU/MyProcess"); InstanceList instances = session.processesInstancesByFilter(processes, filter); Instance instance = instances.get(0); // Get activity Process process = session.processGet(instance.getProcessIn()); Activity activity = process.getActivity("ActivityToExecute"); // Execute the activity. InstanceInfo instance = session.activityExecute(activity, instance, arguments); // Get the output arguments String myOutputStringArgument = (String) arguments.getArgument("MyOutputStringArgument"); String result = (String) arguments.getArgument(Arguments.RESULT);
activity
- the target activity; cannot be null
instance
- the target instance; cannot be null
args
- arguments to pass to the task; null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existInstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution fails.TaskNotFoundException
if the task not exist.InstanceSentByAbortActionException
if the instance was aborted
after the execution (Instance.action = Action.ABORT).InstanceSentByBackOrSkipActionException
if the instance was sent
back or skip (Instance.action = Action.BACK or Instance.action = Action.SKIP).InstanceSentByThrowException
if the instance was sent to exception
catcher (by user defined exception).InstanceInfo activityExecute(String activityName, String instanceId, Arguments args) throws OperationException
The task cannot interact with the end user. For interactive tasks, use customRunActivity.
Ex.
// Define the arguments of the activity. Arguments arguments = Arguments.create(); argument.putArgument("MyStringArgument", "StringValue"); argument.putArgument("MyIntegerArgument", 1000); // Search the instance to execute. Filter filter = ProcessService.createFilter(); filter.setMatchAll(true); filter.addAttribute(session.getVar("OrderNumber"), Comparison.IS, new Integer(12345)); filter.addAttribute(session.getVar(VarDefinition.ACTIVITY_ID, Comparison.IS, "ActivityToExecute"); ProcessIdSet processes = ProcessIdSet.create(); processes.add(session.processGetAllVersions("/OU/MyProcess"); InstanceList instances = session.processesInstancesByFilter(processes, filter); Instance instance = instances.get(0); // Execute the activity. InstanceInfo instance = session.activityExecute(instance.activityName(), instance.getId(), arguments); // Get the output arguments String myOutputStringArgument = (String) arguments.getArgument("MyOutputStringArgument"); String result = (String) arguments.getArgument(Arguments.RESULT);
activityName
- name of the target activity; cannot be null
instanceId
- ID that identifies the target instance; cannot be null
args
- arguments to pass to the task; null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existInstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution fails.TaskNotFoundException
if the task not exist.InstanceSentByAbortActionException
if the instance was aborted
after the execution (Instance.action = Action.ABORT).InstanceSentByBackOrSkipActionException
if the instance was sent
back or skip (Instance.action = Action.BACK or Instance.action = Action.SKIP).InstanceSentByThrowException
if the instance was sent to exception
catcher (by user defined exception).InstanceInfo activityExecute(String activityName, String instanceId, int taskToExecute, Arguments args) throws OperationException
The task cannot interact with the end user. For interactive tasks, use customRunActivity.
Ex.
// Define the arguments of the activity. Arguments arguments = Arguments.create(); argument.putArgument("MyStringArgument", "StringValue"); argument.putArgument("MyIntegerArgument", 1000); // Search the instance to execute. Filter filter = ProcessService.createFilter(); filter.setMatchAll(true); filter.addAttribute(session.getVar("OrderNumber"), Comparison.IS, new Integer(12345)); filter.addAttribute(session.getVar(VarDefinition.ACTIVITY_ID, Comparison.IS, "ActivityToExecute"); ProcessIdSet processes = ProcessIdSet.create(); processes.add(session.processGetAllVersions("/OU/MyProcess"); InstanceList instances = session.processesInstancesByFilter(processes, filter); Instance instance = instances.get(0); // Get activity Process process = session.processGet(instance.getProcessIn()); Activity activity = process.getActivity("ActivityToExecute"); Task taskToExecute = activity.getTask("TaskToExecute"); // Execute the activity. InstanceInfo instance = session.activityExecute(instance.activityName(), instance.getId(), taskToExecute.getIn(), arguments); // Get the output arguments String myOutputStringArgument = (String) arguments.getArgument("MyOutputStringArgument"); String result = (String) arguments.getArgument(Arguments.RESULT);
activityName
- name of the target activity; cannot be null
instanceId
- ID that identifies the target instance; cannot be null
taskToExecute
- task identification number of the task to executeargs
- arguments to pass to the task; null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existInstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution failsTaskNotFoundException
if the task not exist.InstanceSentByAbortActionException
if the instance was aborted
after the execution (Instance.action = Action.ABORT).InstanceSentByBackOrSkipActionException
if the instance was sent
back or skip (Instance.action = Action.BACK or Instance.action = Action.SKIP).InstanceSentByThrowException
if the instance was sent to exception
catcher (by user defined exception).@Deprecated InstanceInfo runActivity(String instanceId, String activityName, int taskIn, Arguments args) throws OperationException
activityExecute(String, String, int, Arguments)
instead
The task cannot interact with the end user. For interactive tasks, use customRunActivity.
instanceId
- ID of the instance to execute; cannot be null
activityName
- name of the activity; cannot be null
;
the main task of this activity will be executedtaskIn
- task identification number of the task to executeargs
- arguments to pass to the task; null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existInstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution failsTaskNotFoundException
if the task not exist.InstanceSentByAbortActionException
if the instance was aborted
after the execution (Instance.action = Action.ABORT).InstanceSentByBackOrSkipActionException
if the instance was sent
back or skip (Instance.action = Action.BACK or Instance.action = Action.SKIP).InstanceSentByThrowException
if the instance was sent to exception
catcher (by user defined exception).InstanceInfo activityExecute(Activity activity, InstanceInfo instance, int taskToExecute, Arguments args) throws OperationException
The task cannot interact with the end user. For interactive tasks, use customRunActivity.
Ex.
// Define the arguments of the activity. Arguments arguments = Arguments.create(); argument.putArgument("MyStringArgument", "StringValue"); argument.putArgument("MyIntegerArgument", 1000); // Search the instance to execute. Filter filter = ProcessService.createFilter(); filter.setMatchAll(true); filter.addAttribute(session.getVar("OrderNumber"), Comparison.IS, new Integer(12345)); filter.addAttribute(session.getVar(VarDefinition.ACTIVITY_ID, Comparison.IS, "ActivityToExecute"); ProcessIdSet processes = ProcessIdSet.create(); processes.add(session.processGetAllVersions("/OU/MyProcess"); InstanceList instances = session.processesInstancesByFilter(processes, filter); Instance instance = instances.get(0); // Get activity Process process = session.processGet(instance.getProcessIn()); Activity activity = process.getActivity("ActivityToExecute"); Task taskToExecute = activity.getTask("TaskToExecute"); // Execute the activity. InstanceInfo instance = session.activityExecute(activity, instance, taskToExecute.getIn(), arguments); // Get the output arguments String myOutputStringArgument = (String) arguments.getArgument("MyOutputStringArgument"); String result = (String) arguments.getArgument(Arguments.RESULT);
activity
- target activity; cannot be null
instance
- target instance; cannot be null
taskToExecute
- task identification number of the task to executeargs
- arguments to pass to the task; null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existInstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution failsTaskNotFoundException
if the task not exist.InstanceSentByAbortActionException
if the instance was aborted
after the execution (Instance.action = Action.ABORT).InstanceSentByBackOrSkipActionException
if the instance was sent
back or skip (Instance.action = Action.BACK or Instance.action = Action.SKIP).InstanceSentByThrowException
if the instance was sent to exception
catcher (by user defined exception).InstanceInfo activityExecute(Activity activity, InstanceInfo instance, Task taskToExecute, Arguments args) throws OperationException
The task cannot interact with the end user. For interactive tasks, use customRunActivity.
Ex.
// Define the arguments of the activity. Arguments arguments = Arguments.create(); argument.putArgument("MyStringArgument", "StringValue"); argument.putArgument("MyIntegerArgument", 1000); // Search the instance to execute. Filter filter = ProcessService.createFilter(); filter.setMatchAll(true); filter.addAttribute(session.getVar("OrderNumber"), Comparison.IS, new Integer(12345)); filter.addAttribute(session.getVar(VarDefinition.ACTIVITY_ID, Comparison.IS, "ActivityToExecute"); ProcessIdSet processes = ProcessIdSet.create(); processes.add(session.processGetAllVersions("/OU/MyProcess"); InstanceList instances = session.processesInstancesByFilter(processes, filter); Instance instance = instances.get(0); // Get activity Process process = session.processGet(instance.getProcessIn()); Activity activity = process.getActivity("ActivityToExecute"); Task taskToExecute = activity.getTask("TaskToExecute"); // Execute the activity. InstanceInfo instance = session.activityExecute(activity, instance, taskToExecute, arguments); // Get the output arguments String myOutputStringArgument = (String) arguments.getArgument("MyOutputStringArgument"); String result = (String) arguments.getArgument(Arguments.RESULT);
activity
- target activity; cannot be null
instance
- target instance; cannot be null
taskToExecute
- task to executeargs
- arguments to pass to the task; null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existInstanceNotInActivityException
if the instance is not in the
activityNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution failsTaskNotFoundException
if the task not exist.InstanceSentByAbortActionException
if the instance was aborted
after the execution (Instance.action = Action.ABORT).InstanceSentByBackOrSkipActionException
if the instance was sent
back or skip (Instance.action = Action.BACK or Instance.action = Action.SKIP).InstanceSentByThrowException
if the instance was sent to exception
catcher (by user defined exception).@Deprecated InstanceInfo runGlobal(String instanceId, String activityName, Arguments args) throws OperationException
activityExecute(String, String, Arguments)
instead
The global activity cannot interact with the end user. For interactive tasks, use customRunGlobal.
instanceId
- ID of instance to execute; cannot be null
activityName
- name of activity to execute; cannot be null
args
- arguments to pass to the activity; null
means no arguments
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not availableInstanceNotFoundException
if the instance does not existActivityNotFoundException
if the activity does not existNoPermissionException
if the participant session does not have
the execution permissionActivityFailedException
if the execution fails@Deprecated void storePresentation(Presentation presentation) throws OperationException
presentationStore(Presentation)
instead
presentation
- presentation to store; cannot be null
OperationException
- if the session could not perform the operationvoid presentationStore(Presentation presentation) throws OperationException
presentation
- presentation to store; cannot be null
OperationException
- if the session could not perform the operation@Deprecated void storeUserProperties(String category, Map<String,Object> properties) throws OperationException
#participantStoreProperties(String, Map)
instead
category
- properties categoryproperties
- a Map with all properties to store (Map.key - property key; Map.value - property value).
OperationException
- if the session could not store the properties.void putSessionProperty(String key, Object value)
key
- Key used to put the session scope property.value
- The value of the session property.Object getSessionProperty(String key)
key
- The key that was used to put the property.
void participantStoreProperties(String category, Map<String,Object> properties) throws OperationException
category
- properties categoryproperties
- a Map with all properties to store (Map.key - property key; Map.value - property value).
OperationException
- if the session could not store the properties.void participantStoreProperty(String category, String key, Object value) throws OperationException
category
- properties categorykey
- Key for the property being storedvalue
- Value for the property being stored
OperationException
- if the session could not store the properties.@Deprecated void storeView(View view) throws OperationException
viewStore(View)
instead
Until a view is stored, View.isTransient()
will return true and the view will not be retrievable
using viewGet(String)
.
view
- view to store; cannot be null
OperationException
- if the session could not perform the operationvoid viewStore(View view) throws OperationException
Until a view is stored, View.isTransient()
will return true and the view will not be retrievable
using viewGet(String)
.
view
- view to store; cannot be null
OperationException
- if the session could not perform the operationboolean taskCanBeProcessed(int taskNumber, String activityName, String instanceId) throws OperationException
A task can be executed if the task is not completed or it has been defined as repeatable in Studio.
taskNumber
- task identification number to checkactivityName
- name of the activity of the task.instanceId
- Instance id of the instance to check; cannot be null
true if the specified task for this instance can be executed by the current participant
Throws:
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not available
InstanceNotFoundException
if the instance does not exist
InstanceNotInActivityException
if the instance is not in the
activity
taskCanBeProcessed
boolean taskCanBeProcessed(InstanceInfo instance,
int taskNumber)
- Returns true if the specified task for this instance can be executed by the current participant.
A task can be executed if the task is not completed or it has been defined as repeatable in Studio.
- Parameters:
instance
- InstanceInfo to check; cannot be null
taskNumber
- task identification number to check
- Returns:
true if the specified task for this instance can be executed by the current participant
taskCanBeSelected
boolean taskCanBeSelected(int taskNumber,
String activityName,
String instanceId)
throws OperationException
- Returns true if the specified task for this instance can be selected by the current participant.
Note that only process instance items in interactive activities can be selected.
- Parameters:
taskNumber
- task identification number to checkactivityName
- name of the activity of the task.instanceId
- Instance id of the instance to check; cannot be null
- Returns:
true if the specified task for this instance can be selected by the current participant
Throws:
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not available
InstanceNotFoundException
if the instance does not exist
InstanceNotInActivityException
if the instance is not in the
activity
taskCanBeSelected
boolean taskCanBeSelected(InstanceInfo instance,
int taskNumber)
- Returns true if the specified task for this instance can be selected by the current participant.
Note that only process instance items in interactive activities can be selected.
- Parameters:
instance
- InstanceInfo to check; cannot be null
taskNumber
- task identification number to check
- Returns:
true if the specified task for this instance can be selected by the current participant
taskCanBeUnselected
boolean taskCanBeUnselected(int taskNumber,
String activityName,
String instanceId)
throws OperationException
- Returns
true
if the specified task for this instance can be unselected by the current participant.
Note that only process instance items in interactive activities can be unselected.
- Parameters:
taskNumber
- task identification number to checkactivityName
- name of the activity of the task.instanceId
- Instance id of the instance to check; cannot be null
- Returns:
true if the specified task for this instance can be unselected by the current participant
Throws:
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not available
InstanceNotFoundException
if the instance does not exist
InstanceNotInActivityException
if the instance is not in the
activity
taskCanBeUnselected
boolean taskCanBeUnselected(InstanceInfo instance,
int taskNumber)
- Returns
true
if the specified task for this instance can be unselected by the current participant.
Note that only process instance items in interactive activities can be unselected.
- Parameters:
instance
- InstanceInfo to check; cannot be null
taskNumber
- task identification number to check
- Returns:
true if the specified task for this instance can be unselected by the current participant
tasksSelect
@Deprecated
void tasksSelect(String instanceId,
String activityName,
int[] taskNumbers)
throws OperationException,
BatchOperationException
- Deprecated. use
tasksSelect(int[], String, String)
instead
- Selects a process instance item.
Selected items can only be processed by the participant which has them selected.
Repeatable process instance items can be selected even if they have already been completed
Note: Status is not changed to SELECTED when selecting a COMPLETED process instance item.
- Parameters:
instanceId
- ID of the instance for which tasks will be selected; cannot be null
activityName
- name of the activity that containf the tasks to select; cannot be null
taskNumbers
- array of task identification numbers to select
- Throws:
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation on every task
May be one of the following subclasses of BatchOperationException:
TasksException
if the session could not perform the
operation on every task
tasksSelect
void tasksSelect(int[] taskNumbers,
String activityName,
String instanceId)
throws OperationException,
BatchOperationException
- Selects a process instance item.
Selected items can only be processed by the participant which has them selected.
Repeatable process instance items can be selected even if they have already been completed
Note: Status is not changed to SELECTED when selecting a COMPLETED process instance item.
- Parameters:
taskNumbers
- array of task identification numbers to selectactivityName
- name of the activity that containf the tasks to select; cannot be null
instanceId
- ID of the instance for which tasks will be selected; cannot be null
- Throws:
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation on every task
May be one of the following subclasses of BatchOperationException:
TasksException
if the session could not perform the
operation on every task
tasksSelect
void tasksSelect(InstanceInfo instance,
int[] taskNumbers)
throws OperationException,
BatchOperationException
- Selects a process instance item.
Selected items can only be processed by the participant which has them selected.
Repeatable process instance items can be selected even if they have already been completed
Note: Status is not changed to SELECTED when selecting a COMPLETED process instance item.
- Parameters:
instance
- the instance for which tasks will be selected; cannot be null
taskNumbers
- array of task identification numbers to select
- Throws:
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation on every task
May be one of the following subclasses of BatchOperationException:
TasksException
if the session could not perform the
operation on every task
tasksUnselect
@Deprecated
void tasksUnselect(String instanceId,
String activityName,
int[] taskNumbers)
throws OperationException,
BatchOperationException
- Deprecated. use
tasksUnselect(int[], String, String)
instead
- Uselects this process instance item.
Process instance items that are not selected by any participant can be processed by any participant
in the role of the current activity.
Repeatable process instance items can be selected even if they have already been completed.
Note: Status is not changed to PENDING when unselecting a COMPLETED process instance item.
- Parameters:
instanceId
- ID of instance for which tasks will be unselected; cannot be null
activityName
- name of the activity that contains the tasks to unselect; cannot be null
taskNumbers
- array of task identification numbers to unselect
- Throws:
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation on every task
May be one of the following subclasses of BatchOperationException:
TasksException
if the session could not perform the
operation on every task
tasksUnselect
void tasksUnselect(int[] taskNumbers,
String activityName,
String instanceId)
throws OperationException,
BatchOperationException
- Uselects this process instance item.
Process instance items that are not selected by any participant can be processed by any participant
in the role of the current activity.
Repeatable process instance items can be selected even if they have already been completed.
Note: Status is not changed to PENDING when unselecting a COMPLETED process instance item.
- Parameters:
taskNumbers
- array of task identification numbers to unselectinstanceId
- ID of instance for which tasks will be unselected; cannot be null
activityName
- name of the activity that contains the tasks to unselect; cannot be null
- Throws:
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation on every task
May be one of the following subclasses of BatchOperationException:
TasksException
if the session could not perform the
operation on every task
tasksUnselect
void tasksUnselect(InstanceInfo instance,
int[] taskNumbers)
throws OperationException,
BatchOperationException
- Uselects this process instance item.
Process instance items that are not selected by any participant can be processed by any participant
in the role of the current activity.
Repeatable process instance items can be selected even if they have already been completed.
Note: Status is not changed to PENDING when unselecting a COMPLETED process instance item.
- Parameters:
instance
- Instance for which tasks will be unselected; cannot be null
taskNumbers
- array of task identification numbers to unselect
- Throws:
OperationException
- if the session could not perform the operation
BatchOperationException
- if the session could not perform the operation on every task
May be one of the following subclasses of BatchOperationException:
TasksException
if the session could not perform the
operation on every task
getId
String getId()
- Returns the session identification assigned to this session or null
if this session does not have identification.
- Returns:
- session id
toString
String toString()
- Returns the name of the class.
- Overrides:
toString
in class Object
- Returns:
- name of the class
updateUserPassword
@Deprecated
void updateUserPassword(String oldPassword,
String newPassword)
throws OperationException
- Deprecated. use
participantUpdatePassword(String, String)
instead
- Updates the current participant password.
This method has no effect if isChangeParticipantPasswordSupported()
returns false
.
- Parameters:
oldPassword
- old participant password; cannot be null
newPassword
- new participant password; cannot be null
- Throws:
OperationException
- if the session could not perform the operation
participantUpdatePassword
void participantUpdatePassword(String oldPassword,
String newPassword)
throws OperationException
- Updates the current participant password.
This method has no effect if isChangeParticipantPasswordSupported()
returns false
.
- Parameters:
oldPassword
- old participant password; cannot be null
newPassword
- new participant password; cannot be null
- Throws:
OperationException
- if the session could not perform the operation
prepareExternalActivity
@Deprecated
Arguments prepareExternalActivity(String instanceId,
String activityName,
Arguments args)
throws OperationException
- Deprecated. use
activityPrepare(String, String, Arguments)
instead
- Executes the prepare method for the main task of the activity given an instanceId and an activityId.
- Parameters:
instanceId
- ID that identifies the target instance; cannot be null
activityName
- name of the target activity; cannot be null
args
- input arguments passed to the external activity; null
means no arguments
- Returns:
- Arguments returned by the external activity
- Throws:
OperationException
- if the session could not perform the operation
May be one of the following subclasses of OperationException:
ProcessNotAvailableException
if the process is not available
InstanceNotFoundException
if the instance does not exist
ActivityNotFoundException
if the activity does not exist
InstanceNotInActivityException
if the instance is not in the
activity
NoPermissionException
if the participant session does not have
the execution permission
ActivityFailedException
if the execution fails
addHistories
@Deprecated
void addHistories(InstanceStamp[] instancesStamp)
throws OperationException
- Deprecated.
- Throws:
OperationException
instancesAddHistory
void instancesAddHistory(InstanceActivityPairSet instances)
throws OperationException
- Throws:
OperationException
getSecureEngines
Map<String,?> getSecureEngines()
updateUserLocale
@Deprecated
void updateUserLocale(Locale locale)
throws OperationException
- Deprecated. use
participantUpdateLocale(java.util.Locale)
instead
- Updates the current participant locale and stores it.
- Parameters:
locale
- new participant locale;
- Throws:
OperationException
- if the session could not perform the operation
updateUserTimeZone
@Deprecated
void updateUserTimeZone(TimeZone timeZone)
throws OperationException
- Deprecated. use
participantUpdateTimeZone(java.util.TimeZone)
instead
- Updates the current participant time zone and stores it.
- Parameters:
timeZone
- new participant time zone;
- Throws:
OperationException
- if the session could not perform the operation
getUserLocale
@Deprecated
Locale getUserLocale()
throws OperationException
- Deprecated. use
participantLocale()
instead
- Returns the current participant Locale.
- Returns:
- the current participant locale;
- Throws:
OperationException
- if the session could not perform the operation
getUserTimeZone
@Deprecated
TimeZone getUserTimeZone()
throws OperationException
- Deprecated. use
participantTimeZone()
instead
- Returns the current participant Time Zone.
- Returns:
- the current participant time zone;
- Throws:
OperationException
- if the session could not perform the operation
upgradeToAdminSession
ProcessServiceAdminSession upgradeToAdminSession()
throws NoPermissionException
- Creates an administration session based on this
ProcessServiceSession
.
The session's participant must be an administrator for this method to succeed.
- Returns:
- a ProcessServiceAdminSession representing an administration session for the session's participant
- Throws:
NoPermissionException
- if the session's participant is not an administrator.
objectClassInstanceFetchByName
ObjectClassInstance objectClassInstanceFetchByName(String objectClass,
String name)
throws OperationException
- Retrieves an instance of the specified object class and name.
- Parameters:
objectClass
- the object classname
- the object class instance name
- Returns:
- the instance of the object class with the specified name
- Throws:
OperationException
- if the administration session could not perform the operation
objectClassInstanceFetchByRolesAndParticipants
ObjectClassInstance[] objectClassInstanceFetchByRolesAndParticipants(String objectClass,
String[] roles,
String[] participants)
throws OperationException
- Retrieves an array of instances for the specified object class that is visible to any of the roles and participants.
This method will retrieve all instances that have at least one of the specified roles or participants. It's not necessary to have assigned all the roles and participants.
- Parameters:
objectClass
- the object classroles
- the list of roles to filter instancesparticipants
- the list of participants to filter instances
- Returns:
- the instances of the object class assigned to any of the specified roles or participants.
- Throws:
OperationException
- if the administration session could not perform the operation
objectClassInstanceFetchByRoles
ObjectClassInstance[] objectClassInstanceFetchByRoles(String objectClass,
String[] roles)
throws OperationException
- Retrieves an array of instances for the specified object class that is visible to any of the roles.
This method will retrieve all instances that have at least one of the specified roles. It's not necessary to have assigned all the roles.
- Parameters:
objectClass
- the object classroles
- the list of roles to filter instances
- Returns:
- the instances of the object class assigned to any of the specified roles.
- Throws:
OperationException
- if the administration session could not perform the operation
objectClassInstanceFetchByParticipants
ObjectClassInstance[] objectClassInstanceFetchByParticipants(String objectClass,
String[] participants)
throws OperationException
- Retrieves an array of instances for the specified object class that is visible to any of the participants.
This method will retrieve all instances that have at least one of the specified participants. It's not necessary to have assigned all the participants.
- Parameters:
objectClass
- the object classparticipants
- the list of participants to filter instances
- Returns:
- the instances of the object class assigned to any of the specified participants.
- Throws:
OperationException
- if any error occurs accessing the object
updateSecurityToken
void updateSecurityToken(String tokenType,
Object token)
- Updates the current session security token type and token.
- Parameters:
tokenType
- the new token typetoken
- the new token object
Overview
Package
Class
Tree
Deprecated
Index
Help
BPM Process API
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
© Copyright 1996-2008 Oracle Corporation