|
Fuego Process API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Method Summary | |
void |
addBookmarks(InstanceStamp[] instancesStamp)
|
void |
checkInAttachment(Attachment attachment,
String remarks,
File file)
This methods checks in the attachment passed as argument. If successful, this will always generate a new attachment version. |
void |
checkOutAttachment(Attachment attachment,
String directory)
This methods checks out an attachment for a given instance. |
void |
checkOutAttachmentToStream(Attachment attachment,
OutputStream stream)
This methods checks out an attachment for a given instance to a outputStream |
InstanceInfo |
commitExternalActivity(String instanceStampId,
int taskIn,
Arguments args)
Executes the commit method of an external activity. |
InstanceInfo |
commitExternalActivity(String instanceId,
String activityName,
Arguments args)
Executes the commit method of an external activity. |
InstanceInfo |
commitExternalActivity(String instanceId,
String activityName,
int taskIn,
Arguments args)
Executes the commit method of an external activity. |
TaskExecution |
customRunActivity(String instanceId,
String activityName,
Arguments args)
Executes the activity task over the instance. |
TaskExecution |
customRunActivity(String instanceId,
String activityName,
int taskIn,
Arguments args)
Executes the activity task number over the instance. |
TaskExecution |
customRunGlobal(String instanceId,
String activityName,
Arguments args)
Executes the activity over the instance. |
TaskExecution |
customRunTask(String instanceStampId,
int taskIn,
Arguments args)
Executes the activity task number over the instance. |
TaskExecution |
customRunTask(String instanceId,
String activityName,
int taskIn,
Arguments args)
Deprecated. use customRunActivity(String,String,int,Arguments) instead |
List |
getDelegateParticipants(InstanceStamp instance)
Returns a List with participant for the given instance |
List |
getEscalateParticipants(InstanceStamp instance)
Returns a List with participant for the given instance |
InstanceInfo[] |
getGrabbableInstances(String activityId)
This method returns all the instances that can be grabbed from the given grab activity. |
List |
getParticipantsForInstance(InstanceStamp instance)
Returns a List of Participants that user can reassign, the instance, to. |
void |
instanceAttach(InstanceInfo instanceInfo,
String name,
String description,
String remarks,
File file)
This methods attachs a new file attachment to a process instance. |
void |
instanceAttach(InstanceInfo instanceInfo,
String name,
String description,
String remarks,
File file,
String contentType)
This methods attachs a new file attachment to a process instance. |
boolean |
instanceCanBeAborted(InstanceInfo instance)
Returns if the given instance can be aborted |
boolean |
instanceCanBeBack(InstanceInfo instance)
Returns if the given instance can be routed back |
boolean |
instanceCanBeProcessed(InstanceInfo instance)
Returns if the given instance can be processed |
boolean |
instanceCanBeReassign(InstanceInfo instance)
Return if the given instance is Reasignable. |
boolean |
instanceCanBeResumed(InstanceInfo instance)
Returns if the given instance can be resumed |
boolean |
instanceCanBeSelected(InstanceInfo instance)
Returns true if the process instance can be selected by the current participant A process instance is selectable if all items are currently unselected or selected by the current participant |
boolean |
instanceCanBeSent(InstanceInfo instance)
Returns if the given instance can be sent |
boolean |
instanceCanBeSuspended(InstanceInfo instance)
Returns if the given instance can be suspended |
boolean |
instanceCanBeUngrabbed(InstanceInfo instance)
Return if the instance is ungrabbed or not |
boolean |
instanceCanBeUnselected(InstanceInfo instance)
Returns if the given instance can be unselected |
void |
instanceReassign(InstanceStamp instances,
String participant)
This method REASSIGN the instance to the specify participant. |
void |
instancesAbort(InstanceStamp[] instances)
This method aborts a group of instances, but this is done in the engine side to improve performance |
void |
instancesAddConsult(InstanceStamp[] instances,
String remark,
String toParticipant)
Adds a consult to this process instance |
void |
instancesAddNote(InstanceStamp[] instances,
String note)
Adds a note to this process instance |
void |
instancesGrab(InstanceStamp[] instances,
String grabActivityName)
This method grabs a group of instances in an Activity, but this is done in the engine side to improve performance |
void |
instancesResume(InstanceStamp[] instances)
This method resumes a group of instances, but this is done in the engine side to improve performance |
void |
instancesSelect(InstanceStamp[] instances)
This method selects a group of instances, but this is done in the engine side to improve performance |
void |
instancesSend(InstanceStamp[] instances)
This method routes a group of instances, but this is done in the engine side to improve performance |
void |
instancesSendBack(InstanceStamp[] instances,
boolean skip)
This method routes back a group of instances, but this is done in the engine side to improve performance |
void |
instancesSendTo(InstanceStamp[] instances,
String activityName)
This method routes a group of instances to an Activity, but this is done in the engine side to improve performance. |
void |
instancesSendTo(InstanceStamp[] instances,
String activityName,
String participant)
This method routes a group of instances to an Activity and for a given Participant, but this is done in the engine side to improve performance |
void |
instancesSuspend(InstanceStamp[] instances)
This method suspends a group of instances, but this is done in the engine side to improve performance |
ParticipantsForActivities |
instancesTargetParticipants(InstanceStamp[] instances)
This method return the participants who can recieve this group of instances |
void |
instancesUngrab(InstanceStamp[] instances)
This method ungrabs a group of instances in an Activity, but this is done in the engine side to improve performance |
void |
instancesUnselect(InstanceStamp[] instances)
This method unselects a group of instances, but this is done in the engine side to improve performance |
boolean |
isChangeParticipantPasswordSupported()
Determines whether the directory supports changing the participant password. |
boolean |
isExclusive()
Returns if this session is exlusive or not. |
void |
obtainEditionLock(Attachment attachment)
This method tries to obtain an edition lock over an attachment for a given participant. |
Arguments |
prepareExternalActivity(String instanceStampId,
int taskIn,
Arguments args)
Executes the prepare method of an external activity. |
Arguments |
prepareExternalActivity(String instanceId,
String activityName,
Arguments args)
Executes the prepare method of an external activity. |
Arguments |
prepareExternalActivity(String instanceId,
String activityName,
int taskIn,
Arguments args)
Executes the prepare method of an external activity. |
void |
releaseEditionLock(Attachment attachment)
This methods releases the edition lock over this attachment |
void |
releaseEditionLock(Attachment attachment,
File file)
This methods releases the edition lock over this attachment |
void |
removeBookmarks(InstanceStamp[] instancesStamp)
|
void |
removePresentation(String presentationId)
Removes the presentation from the internal table and from the Participant properties. |
void |
removeView(String viewId)
Removes the view from the internal table and from the Participant properties. |
InstanceInfo |
runActivity(String instanceStampId,
Arguments args)
Executes the activity task over the instance. |
InstanceInfo |
runActivity(String instanceStampId,
int taskIn,
Arguments args)
Executes the activity task number over the instance. |
InstanceInfo |
runActivity(String instanceId,
String activityName,
Arguments args)
Executes the activity task over the instance. |
InstanceInfo |
runActivity(String instanceId,
String activityName,
int taskIn,
Arguments args)
Executes the activity task number over the instance. |
InstanceInfo |
runGlobal(String instanceId,
String activityName,
Arguments args)
Executes the activity over the instance. |
void |
runTask(String instanceStampId,
int taskIn,
Arguments args)
Deprecated. use runActivity(String,int,Arguments) instead. |
void |
runTask(String instanceId,
String activityName,
int taskIn,
Arguments args)
Deprecated. use runActivity(String, String, int, Arguments) instead |
void |
setCanReceiveMail(boolean canReceiveMail)
This method sets if the user can receive mail. |
void |
storePresentation(Presentation presentation)
Stores the presentation in an internal table and in the Participant properties (as XML). |
void |
storeUserProperties(String category,
Map properties)
Stores user directory properties |
void |
storeView(View view)
Stores the View in an internal table and in the Participant properties. |
boolean |
taskCanBeProcessed(InstanceInfo instance,
int taskNumber)
Returns whether or not the process instance item is currently available to be selected, runned or completed by the user logged to the ProcessDirectory Returns true if the process instance item is currently available to be selected, runned or completed by the user logged to the ProcessDirectory |
boolean |
taskCanBeSelected(InstanceInfo instance,
int taskNumber)
Returns whether or not this process instance item is selectable. |
boolean |
taskCanBeUnselected(InstanceInfo instance,
int taskNumber)
Returns whether or not this process instance item is unselectable. |
void |
tasksSelect(String instanceId,
String activityName,
int[] taskNumbers)
Selects this process instance item. |
void |
tasksUnselect(String instanceId,
String activityName,
int[] taskNumbers)
Uselects this process instance item. |
String |
toString()
Returns an about message |
void |
updateUserPassword(String oldPassword,
String newPassword)
This method changes the password of the user |
| Method Detail |
public void setCanReceiveMail(boolean canReceiveMail)
throws OperationException
canReceiveMail - If true the user can receive mail or if false the
user can not mail.
OperationException
public boolean isChangeParticipantPasswordSupported()
throws OperationRuntimeException
OperationRuntimeException
public List getDelegateParticipants(InstanceStamp instance)
throws OperationException,
BatchOperationException
instance -
OperationException
BatchOperationException
public List getEscalateParticipants(InstanceStamp instance)
throws OperationException,
BatchOperationException
instance -
OperationException
BatchOperationExceptionpublic boolean isExclusive()
isExclusive in interface ProcessServiceNESession
public InstanceInfo[] getGrabbableInstances(String activityId)
throws OperationException,
BatchOperationException
activityId - The id of the grab activity.
OperationException
BatchOperationException
public List getParticipantsForInstance(InstanceStamp instance)
throws OperationException,
BatchOperationException
instance -
OperationException
BatchOperationException
public void addBookmarks(InstanceStamp[] instancesStamp)
throws OperationException
OperationException
public void checkInAttachment(Attachment attachment,
String remarks,
File file)
throws OperationException
attachment - The attachment to check inremarks - The remarks for this new attachment version.file - The file for the attachment.
AttachmentOperationException
OperationException
public void checkOutAttachment(Attachment attachment,
String directory)
throws OperationException
attachment - The attachment to check out.directory - where the attachment is to be write to.
OperationException
public void checkOutAttachmentToStream(Attachment attachment,
OutputStream stream)
throws OperationException
stream - is where the content will be written to
OperationException
public InstanceInfo commitExternalActivity(String instanceStampId,
int taskIn,
Arguments args)
throws OperationException
instanceStampId - instance stamp that identifies the target instancetaskIn - task number that we want to executeargs - arguments to be passed to the commit method of the external activity.
OperationException
public InstanceInfo commitExternalActivity(String instanceId,
String activityName,
Arguments args)
throws OperationException
instanceId - instance id that identifies the target instanceactivityName - activity id where the instance is expected to beargs - arguments to be passed to the commit method of the external activity.
OperationException
public InstanceInfo commitExternalActivity(String instanceId,
String activityName,
int taskIn,
Arguments args)
throws OperationException
instanceId - instance id that identifies the target instanceactivityName - activity id where the instance is expected to betaskIn - task number that we want to executeargs - arguments to be passed to the commit method of the external activity.
OperationException
public TaskExecution customRunActivity(String instanceId,
String activityName,
int taskIn,
Arguments args)
throws OperationException
instanceId - Instance on which the task must be executed.activityName - Instance activity name.taskIn - Task number of the activity to be executed.args - Arguments to pass the task.
OperationExceptioncustomRunActivity(String,String,Arguments)
public TaskExecution customRunActivity(String instanceId,
String activityName,
Arguments args)
throws OperationException
customRunActivity(String,String,int,Arguments)
instanceId - Instance on which the task must be executed.activityName - Instance activity name.args - Arguments to pass the task.
OperationExceptioncustomRunActivity(String,String,int,Arguments)
public TaskExecution customRunGlobal(String instanceId,
String activityName,
Arguments args)
throws OperationException
instanceId - Instance on which the activity must be executed.activityName - Activity name to execute.args - Arguments to pass the activity. Null means no Arguments.
OperationException
public TaskExecution customRunTask(String instanceId,
String activityName,
int taskIn,
Arguments args)
throws OperationException
customRunActivity(String,String,int,Arguments) instead
instanceId - Instance on which the task must be executed.activityName - Instance activity name.taskIn - Task number of the activity to be executed.args - Arguments to pass the task.
OperationException
public TaskExecution customRunTask(String instanceStampId,
int taskIn,
Arguments args)
throws OperationException
instanceStampId - Instance stamp id to execute task.taskIn - Task number of the activity to execute.args - Arguments to pass the task.
OperationException
public void instanceAttach(InstanceInfo instanceInfo,
String name,
String description,
String remarks,
File file)
throws NoPermissionException,
OperationException,
IOException
instanceInfo - The instance where to attach the file.name - The name of the attachment.description - A brief description of the attachment.remarks - Some remarks to add to the attachment.file - The file to attach to the given instance.
NoPermissionException - If this participant has no permission to attach the file to the instance.
OperationException
IOExceptioninstanceAttach(InstanceInfo, String, String, String, java.io.File, String)
public void instanceAttach(InstanceInfo instanceInfo,
String name,
String description,
String remarks,
File file,
String contentType)
throws NoPermissionException,
OperationException,
IOException
instanceInfo - The instance where to attach the file.name - The name of the attachment.description - A brief description of the attachment.remarks - Some remarks to add to the attachment.file - The file to attach to the given instance.contentType - The file content type
NoPermissionException - If this participant has no permission to attach the file to the instance.
OperationException
IOExceptionpublic boolean instanceCanBeAborted(InstanceInfo instance)
public boolean instanceCanBeBack(InstanceInfo instance)
public boolean instanceCanBeProcessed(InstanceInfo instance)
public boolean instanceCanBeReassign(InstanceInfo instance)
instance -
public boolean instanceCanBeResumed(InstanceInfo instance)
public boolean instanceCanBeSelected(InstanceInfo instance)
instance -
public boolean instanceCanBeSent(InstanceInfo instance)
public boolean instanceCanBeSuspended(InstanceInfo instance)
public boolean instanceCanBeUngrabbed(InstanceInfo instance)
instance - InstanceInfo to test.public boolean instanceCanBeUnselected(InstanceInfo instance)
public void instanceReassign(InstanceStamp instances,
String participant)
throws OperationException,
BatchOperationException
instances - An iterator with the instances to be selectedparticipant - The participant to asign the instance
OperationException
BatchOperationException
public void instancesAbort(InstanceStamp[] instances)
throws OperationException,
BatchOperationException
instances - An iterator with the instances to be aborted
BatchOperationException - exception containing a map with the exceptions
thrown by the instances that could not been aborted
OperationException
public void instancesAddConsult(InstanceStamp[] instances,
String remark,
String toParticipant)
throws OperationException,
BatchOperationException
instances - remark - toParticipant -
NoPermissionException
BatchOperationException
OperationException
public void instancesAddNote(InstanceStamp[] instances,
String note)
throws OperationException,
BatchOperationException
instances - note -
NoPermissionException
BatchOperationException
OperationException
public void instancesGrab(InstanceStamp[] instances,
String grabActivityName)
throws OperationException,
BatchOperationException
instances - An iterator with the instances to be grabbedgrabActivityName - The activity where to grab the instances from.
BatchOperationException - exception containing a map with the exceptions thrown by the instances
that could not been grabbed
OperationException
public void instancesResume(InstanceStamp[] instances)
throws OperationException,
BatchOperationException
instances - An iterator with the instances to be resumed
BatchOperationException - exception containing a map with the exceptions thrown by the instances
that could not been resumed
OperationException
public void instancesSelect(InstanceStamp[] instances)
throws OperationException,
BatchOperationException
instances - An iterator with the instances to be selected
BatchOperationException - exception containing a map with the exceptions thrown by the instances
that could not been selected
OperationException
public void instancesSend(InstanceStamp[] instances)
throws OperationException,
BatchOperationException
instances - An iterator with the instances to be routed
BatchOperationException - exception containing a map with the exceptions thrown by the instances
that could not been routed
OperationException
public void instancesSendBack(InstanceStamp[] instances,
boolean skip)
throws OperationException,
BatchOperationException
instances - An iterator with the instances to be routed backskip - A boolean flag to skip or not the activity which threw the exception
BatchOperationException - exception containing a map with the exceptions thrown by the instances
that could not been routed back
OperationException
public void instancesSendTo(InstanceStamp[] instances,
String activityName,
String participant)
throws OperationException,
BatchOperationException
instances - An iterator with the instances to be routedactivityName - The activity where to route the instancesparticipant - The particpant whose route the instances
BatchOperationException - exception containing a map with the exceptions thrown by the instances
that could not been routed
OperationException
public void instancesSendTo(InstanceStamp[] instances,
String activityName)
throws OperationException,
BatchOperationException
instances - An iterator with the instances to be routedactivityName - The activity where to route the instances
BatchOperationException - exception containing a map with the exceptions thrown by the instances
that could not been routed
OperationException
public void instancesSuspend(InstanceStamp[] instances)
throws OperationException,
BatchOperationException
instances - An iterator with the instances to be suspended
BatchOperationException - exception containing a map with the exceptions thrown by the instances
that could not been suspended
OperationException
public ParticipantsForActivities instancesTargetParticipants(InstanceStamp[] instances)
throws OperationException,
BatchOperationException
instances - An iterator with the instances to be queried
BatchOperationException
OperationException
public void instancesUngrab(InstanceStamp[] instances)
throws OperationException,
BatchOperationException
instances - An iterator with the instances to be ungrabbed
BatchOperationException - exception containing a map with the exceptions thrown by the instances
that could not been grabBed
OperationException
public void instancesUnselect(InstanceStamp[] instances)
throws OperationException,
BatchOperationException
instances - An iterator with the instances to be unselected
BatchOperationException - exception containing a map with the exceptions thrown by the instances
that could not been unselected
OperationException
public void obtainEditionLock(Attachment attachment)
throws OperationException
attachment - The atachment where to obtain the lock
AttachmentEditionNotPossibleException
AttachmentOperationException
OperationException
public Arguments prepareExternalActivity(String instanceStampId,
int taskIn,
Arguments args)
throws OperationException
instanceStampId - instance stamp that identifies the target instancetaskIn - task number that we want to executeargs - input arguments passed to the external activity.
OperationException
public Arguments prepareExternalActivity(String instanceId,
String activityName,
Arguments args)
throws OperationException
instanceId - instance id that identifies the target instanceactivityName - activity id where the instance is expected to beargs - input arguments passed to the external activity.
OperationException
public Arguments prepareExternalActivity(String instanceId,
String activityName,
int taskIn,
Arguments args)
throws OperationException
instanceId - instance id that identifies the target instanceactivityName - activity id where the instance is expected to betaskIn - task number that we want to executeargs - input arguments passed to the external activity.
OperationException
public void releaseEditionLock(Attachment attachment,
File file)
throws OperationException
attachment - The attachment where to release the lockfile - The local file to be removed
OperationException
public void releaseEditionLock(Attachment attachment)
throws OperationException
attachment - The attachment where to release the lock
OperationException
public void removeBookmarks(InstanceStamp[] instancesStamp)
throws OperationException
OperationException
public void removePresentation(String presentationId)
throws OperationException
presentationId -
OperationException
public void removeView(String viewId)
throws OperationException
viewId -
OperationException
public InstanceInfo runActivity(String instanceStampId,
Arguments args)
throws OperationException
instanceStampId - Instance stamp id to execute task.args - Arguments to pass the task. Null means no Arguments.
OperationExceptionrunActivity(String,int,Arguments),
runActivity(String,String,Arguments),
runActivity(String,String, int, Arguments)
public InstanceInfo runActivity(String instanceStampId,
int taskIn,
Arguments args)
throws OperationException
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.
OperationExceptionrunActivity(String,Arguments),
runActivity(String,String,Arguments),
runActivity(String,String, int, Arguments)
public InstanceInfo runActivity(String instanceId,
String activityName,
Arguments args)
throws OperationException
instanceId - Instance to execute task.activityName - Instance activity name.args - Arguments to pass the task. Null means no Arguments.
OperationExceptionrunActivity(String,String,int,Arguments),
#runActivity(String, Arguments)),
#runActivity(String, int, Arguments))
public InstanceInfo runActivity(String instanceId,
String activityName,
int taskIn,
Arguments args)
throws OperationException
instanceId - Instance to execute task.activityName - Instance activity name.taskIn - Task number of the activity to execute.args - Arguments to pass the task. Null means no Arguments.
OperationExceptionrunActivity(String,String,Arguments),
#runActivity(String, Arguments)),
#runActivity(String, int, Arguments))
public InstanceInfo runGlobal(String instanceId,
String activityName,
Arguments args)
throws OperationException
instanceId - Instance on which the activity must be executed.activityName - Activity name to execute.args - Arguments to pass the activity. Null means no Arguments.
OperationException
public void runTask(String instanceId,
String activityName,
int taskIn,
Arguments args)
throws OperationException
runActivity(String, String, int, Arguments) instead
instanceId - Instance to execute task.activityName - Instance activity name.taskIn - Task number of the activity to execute.args - Arguments to pass the task. Null means no Arguments.
OperationException
public void runTask(String instanceStampId,
int taskIn,
Arguments args)
throws OperationException
runActivity(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
public void storePresentation(Presentation presentation)
throws OperationException
presentation - Presentation to store
PropertyOperationException
ViewOperationException - the child InvalidViewTypeException is thrown
OperationException
public void storeUserProperties(String category,
Map properties)
throws OperationException
storeUserProperties in interface ProcessServiceNESessioncategory - properties -
PropertyOperationException
OperationException
public void storeView(View view)
throws OperationException
view - view to store
PropertyOperationException
ViewOperationException - the child InvalidViewTypeException is thrown
OperationException
public boolean taskCanBeProcessed(InstanceInfo instance,
int taskNumber)
instance - taskNumber -
public boolean taskCanBeSelected(InstanceInfo instance,
int taskNumber)
instance - taskNumber -
public boolean taskCanBeUnselected(InstanceInfo instance,
int taskNumber)
instance - taskNumber -
public void tasksSelect(String instanceId,
String activityName,
int[] taskNumbers)
throws OperationException,
BatchOperationException
instanceId - activityName - taskNumbers -
OperationException
BatchOperationException
public void tasksUnselect(String instanceId,
String activityName,
int[] taskNumbers)
throws OperationException,
BatchOperationException
instanceId - activityName - taskNumbers -
OperationException
BatchOperationExceptionpublic String toString()
public void updateUserPassword(String oldPassword,
String newPassword)
throws OperationException
oldPassword - Old user passwordnewPassword - New user password
OperationException
|
Fuego Process API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||