|
ALBPM Process API (PAPI) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfuego.papi.InstanceId
fuego.papi.InstanceInfo
Contains information about Process instances.
To get an individual InstanceInfo, useProcessServiceNESession.getInstance(String).ProcessServiceNESession.getInstancesByView(InstancesView).
| Field Summary |
| Fields inherited from class fuego.papi.InstanceId |
NAME_SEPARATOR, ORGANIZATION_SEPARATOR |
| Constructor Summary | |
InstanceInfo()
|
|
| Method Summary | |
abstract Activity |
getActivity()
Gets the Activity for this instance. |
abstract Time |
getActivityDeadline()
Gets the deadline to complete the current activity. |
abstract String |
getActivityId()
Gets the Id of the Activity for this instance. |
abstract String |
getActivityName()
Gets the name of the Activity for this instance. |
abstract int |
getAuthor()
Gets the identification number of the instance creator. |
abstract String |
getAuthorId()
Gets the Participant Uid of the instance author. |
Time |
getCreationTime()
Gets the instance creation time. |
abstract Time |
getDeadline()
Gets the deadline for this instance in its current activity. The deadline is the minor between the activity deadline and the process deadline. |
abstract String |
getDescription()
Gets the instance description. |
abstract String |
getId()
Gets the instance Id. |
abstract int |
getInternalState()
For internal use only. |
abstract int |
getNumberOfThreads()
Gets the number of threads (copies) this instance has. |
abstract int |
getParentThreadIn()
Gets the thread identification number of the parent thread. |
abstract String |
getParticipantId()
Gets the Uid of the participant who has selected this instance. |
abstract int |
getParticipantIn()
Gets the identification number of the participant who has selected this instance. |
abstract int |
getPendingTaskIn()
Gets the Task identification number of the pending Task that must be re-run. This is only used when this instance is in an automatic activity. |
abstract int |
getPriority()
Gets the instance priority. |
abstract Process |
getProcess()
Deprecated. Method getProcess is deprecated. WARNING: Do not invoke this method without previously initializing the ProcessService. Use getProcessId() and then
ProcessServiceNESession.getProcess(String) instead. |
abstract Time |
getProcessDeadline()
Gets the instance process deadline. |
abstract String |
getProcessId()
Gets the process Id of this instance. WARNING: Do not invoke this method without previously initializating the ProcessService. |
abstract Time |
getReceptionTime()
Gets the Time when this process instance reached the current activity. |
abstract String |
getRoleId()
Gets the role identification of this instance. |
abstract int |
getRoleIn()
Gets the role identification number of this instance |
abstract InstanceStamp |
getStamp()
Gets the instanceStamp. |
static InstanceStamp |
getStamp(String stampId)
Creates an InstanceStamp from the specified stampId. |
static InstanceStamp |
getStamp(String instanceId,
String activityName)
Creates an InstanceStamp for the specified instanceId and activityName. |
abstract InstanceStamp |
getStampForActivity(String activityName)
Creates an InstanceStamp for the specified activityName. |
abstract int |
getStatus()
Gets the instance status. |
abstract String |
getStatusDescription(Locale locale)
Gets the instance status description for the specified locale. |
abstract Task |
getTask(int taskNumber)
Gets the Task corresponding to taskNumber. |
abstract Task |
getTask(String taskId)
Gets the Task corresponding to the specified taskId. |
abstract int |
getTaskCount()
Gets the current taskIndex. |
abstract int |
getTaskIn(int taskNumber)
Gets the Task identification number for the specified taskNumber. |
abstract int |
getTaskInternalStatus(int taskNumber)
For internal use only. |
abstract String |
getTaskLastExecutionParticipant(int taskNumber)
Gets the UID of the last participant UID to execute the specified Task. |
abstract Time |
getTaskLastExecutionTime(int taskNumber)
Gets the last time execution of the specified Task. |
abstract String |
getTaskParticipantId(int taskNumber)
Gets the UID of the participant who has selected the specified Task. |
abstract int |
getTaskRetryCounter(int taskNumber)
Gets the retryCounter for the specified Task. Retry counter is the quantity of times that the task was executed and failed. |
abstract Task[] |
getTasks()
Gets the Tasks associated with this process instance. |
abstract String |
getTaskStatusDescription(int taskNumber,
Locale locale)
Gets the Task status description for the specified taskNumber and locale. |
abstract Object |
getVar(String variableId)
Gets the not localized value of the VarDefinition specified by variableId. |
abstract Object |
getVar(String variableId,
Locale locale)
Gets the localized value of the VarDefinition specified by locale and variableId. |
abstract boolean |
hasPendingTasks()
Returns true if the process instance has mandatory Tasks that have not been run. |
abstract boolean |
hasRepeatableTasks()
Returns true if the process instance has any repeatable Tasks. |
abstract void |
invalidateTask(int taskNumber)
Invalidates the specific task index |
abstract boolean |
isAborted()
Returns true if this process instance is aborted. |
abstract boolean |
isActivityCompleted()
Returns true if the Activity for this instance has been completed. |
abstract boolean |
isCompleted()
Returns true if this process instance has been completed. Completed means that the process instance is in the End activity. |
abstract boolean |
isException()
Returns true if this instance is an Exception. An instance could be in an Exception if the instance is in an Exception, Grab or Interrupted flow. |
abstract boolean |
isExecuting()
Returns true if this instance is executing. An instance is executing if the instance is processing at this moment. |
abstract boolean |
isGrabbed()
Returns true if this instance is grabbed. |
abstract boolean |
isPending()
Returns true if this instance is pending. An instance is pending if not all mandatory task for the activity where the instance is were executed. |
abstract boolean |
isRunning()
Returns true if the process instance is running. |
abstract boolean |
isSelected()
Returns true if the process instance is selected. |
boolean |
isSelectedBy(String participantId)
Returns true if this instance is selected by the Participant specified by participantId. |
abstract boolean |
isSuspended()
Returns true if this process instance is suspended. |
abstract boolean |
isTaskCompleted(int taskNumber)
Returns true if the Task specified by taskNumber has been completed. |
abstract boolean |
isTaskRunning(int taskNumber)
Returns true if the specified Task is running. |
abstract boolean |
isTaskSelected(int taskNumber)
Returns true if the specified Task has been selected. |
abstract boolean |
isTaskValid(int taskNumber)
Returns true if the specified taskNumber is valid. |
static String |
makeGlobalId(String organization,
String processId,
int instanceIn,
int threadIn)
Returns a String in the format of makeId() + ORGANIZATION_SEPARATOR + organization. |
static String |
makeId(String processId,
int instanceIn,
int threadIn)
Returns a String in the format processId + NAME_SEPARATOR + instanceIn + NAME_SEPARATOR + threadIn. |
String |
toString()
Returns a String containing the process identification number, the instance identification number, and the thread identification number. |
| Methods inherited from class fuego.papi.InstanceId |
compare, compareTo, equals, equals, getInstanceId, getInstanceId, getInstanceIn, getInstanceIn, getOrganization, getProcessId, getProcessIn, getThreadIn, getThreadIn, hashCode, isProcessId, isValidInstanceId, makeGlobalId, makeId, makeId |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public InstanceInfo()
| Method Detail |
public abstract Activity getActivity()
Activitypublic abstract boolean isActivityCompleted()
true if the Activity for this instance has been completed.public abstract Time getActivityDeadline()
null if there is no deadline for the current activity.public abstract String getActivityId()
Activity.getId()public abstract String getActivityName()
public abstract int getAuthor()
public abstract String getAuthorId()
public abstract boolean isCompleted()
true if this process instance has been completed.public abstract Time getDeadline()
public abstract String getDescription()
public abstract boolean isException()
true if this instance is an Exception.public abstract boolean isExecuting()
true if this instance is executing.public abstract boolean isGrabbed()
public abstract String getId()
makeId(java.lang.String,int,int)public abstract int getInternalState()
public abstract int getNumberOfThreads()
public abstract int getParentThreadIn()
public abstract String getParticipantId()
null if the instance is not selected.public abstract int getParticipantIn()
public abstract boolean isPending()
true if the process instance is pendingpublic abstract int getPendingTaskIn()
public abstract int getPriority()
public abstract Process getProcess()
getProcessId() and then
ProcessServiceNESession.getProcess(String) instead.
public abstract Time getProcessDeadline()
public abstract String getProcessId()
public abstract Time getReceptionTime()
public abstract String getRoleId()
public abstract int getRoleIn()
public abstract boolean isRunning()
public abstract boolean isSelected()
true if the process instance is selected.public abstract InstanceStamp getStamp()
public abstract int getTaskCount()
InstanceOutOfSyncException - if the instance is out of sync with the engine.
This could happen if you set the property 'Do not load tasks when a filter is executed'.public abstract int getTaskIn(int taskNumber)
taskNumber - task index.
InstanceOutOfSyncException - if the instance is out of sync with the engine.
This could happen if you set the property 'Do not load tasks when a filter is executed'.public abstract int getTaskInternalStatus(int taskNumber)
taskNumber -
InstanceOutOfSyncException - if the instance is out of sync with the engine.
This could happen if you set the property 'Do not load tasks when a filter is executed'.public abstract String getTaskLastExecutionParticipant(int taskNumber)
taskNumber - Task index.
null if the Task has not been executed.
InstanceOutOfSyncException - if the instance is out of sync with the engine.
This could happen if you set the property 'Do not load tasks when a filter is executed'.public abstract Time getTaskLastExecutionTime(int taskNumber)
taskNumber - Task index.
null if the Task has not been executed.
InstanceOutOfSyncException - if the instance is out of sync with the engine.
This could happen if you set the property 'Do not load tasks when a filter is executed'.public abstract String getTaskParticipantId(int taskNumber)
taskNumber - Task index.
null if the specified Task has not
been selected.
InstanceOutOfSyncException - if the instance is out of sync with the engine.
This could happen if you set the property 'Do not load tasks when a filter is executed'.public abstract int getTaskRetryCounter(int taskNumber)
taskNumber - task number
InstanceOutOfSyncException - if the instance is out of sync with the engine.
This could happen if you set the property 'Do not load tasks when a filter is executed'.public abstract boolean isTaskRunning(int taskNumber)
taskNumber - task index.
true true if the specified Task is running.
InstanceOutOfSyncException - if the instance is out of sync with the engine.
This could happen if you set the property 'Do not load tasks when a filter is executed'.public abstract boolean isTaskSelected(int taskNumber)
taskNumber - task index.
true if the specified task has been selected.
InstanceOutOfSyncException - if the instance is out of sync with the engine.
This could happen if you set the property 'Do not load tasks when a filter is executed'.
public abstract String getTaskStatusDescription(int taskNumber,
Locale locale)
taskNumber - task index.locale - Locale to use
InstanceOutOfSyncException - if the instance is out of sync with the engine.
This could happen if you set the property 'Do not load tasks when a filter is executed'.public abstract boolean isTaskValid(int taskNumber)
taskNumber - task index.
true if the specified taskNumber is >= 0 && <= getTasks().length.
InstanceOutOfSyncException - if the instance is out of sync with the engine.
This could happen if you set the property 'Do not load tasks when a filter is executed'.public abstract Task[] getTasks()
public abstract Object getVar(String variableId,
Locale locale)
variableId - VarDefinition Id.locale - Locale to use
public abstract Object getVar(String variableId)
variableId - VarDefinition Id.
public abstract boolean hasPendingTasks()
InstanceOutOfSyncException - if the instance is out of sync with the engine.
This could happen if you set the property 'Do not load tasks when a filter is executed'.public abstract boolean hasRepeatableTasks()
InstanceOutOfSyncException - if the instance is out of sync with the engine.
This could happen if you set the property 'Do not load tasks when a filter is executed'.public abstract boolean isAborted()
public abstract InstanceStamp getStampForActivity(String activityName)
activityName - activity name to use for the returned InstanceStamp.
public abstract int getStatus()
ProcessInstanceStatepublic abstract String getStatusDescription(Locale locale)
locale - locale to use for status description.
public abstract boolean isSuspended()
public abstract Task getTask(int taskNumber)
taskNumber - Task index.
Taskpublic abstract Task getTask(String taskId)
taskId - Task identification
Taskpublic abstract boolean isTaskCompleted(int taskNumber)
taskNumber - task index.
InstanceOutOfSyncException - if the instance is out of sync with the engine.
This could happen if you set the property 'Do not load tasks when a filter is executed'.public abstract void invalidateTask(int taskNumber)
taskNumber - Task index.
public static String makeGlobalId(String organization,
String processId,
int instanceIn,
int threadIn)
organization - organization name.processId - process identification.instanceIn - instance identification number.threadIn - thread identification number.
makeId(java.lang.String,int,int)
public static String makeId(String processId,
int instanceIn,
int threadIn)
processId - process identification.instanceIn - instance identification number.threadIn - thread identification number.
InstanceId.makeId(String, int, int)
public static InstanceStamp getStamp(String instanceId,
String activityName)
instanceId - instance Id to use for the returned InstanceStamp.activityName - activity name to use for the returned InstanceStamp.
public static InstanceStamp getStamp(String stampId)
stampId - Id to use to create the InstanceStamp.
public Time getCreationTime()
public final boolean isSelectedBy(String participantId)
participantId - Uid of Participant to check.
public String toString()
toString in class InstanceId
|
ALBPM Process API (PAPI) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||