|
BPM Process API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfuego.papi.InstanceId
fuego.papi.InstanceInfo
public abstract class InstanceInfo
| Field Summary |
|---|
| Fields inherited from class fuego.papi.InstanceId |
|---|
NAME_SEPARATOR, ORGANIZATION_SEPARATOR |
| Constructor Summary | |
|---|---|
InstanceInfo()
|
|
| Method Summary | |
|---|---|
abstract Activity |
getActivity()
Deprecated. use ProcessServiceSession.processGet(String) and then call Process.getActivity(String) instead. |
abstract Time |
getActivityDeadline()
Returns the deadline to complete the current activity |
abstract String |
getActivityId()
Returns the activity identification of this instance |
abstract String |
getActivityName()
Returns the activity name of this instance |
abstract int |
getAuthor()
Return the instance creator. |
abstract String |
getAuthorId()
Return the instance author id. null means no Participant, "ENGINE" means automatic/engine participant |
Time |
getCreationTime()
Instance creation time. |
abstract Time |
getDeadline()
Returns the deadline for this instance in its current activity |
abstract String |
getDescription()
Returns the instance description. |
abstract Object |
getExternalVariable(String variableId)
Returns the value of any external variable by id. |
abstract Object |
getExternalVariable(String variableId,
Locale locale)
Returns the value of any external variable by id for a given locale. |
abstract String |
getId()
Return the instance identification. |
abstract InstanceActivityPair |
getInstanceActivityPair()
This method creates and returns an InstanceActivityPair which is needed in order to perform any operation with this instance. |
abstract int |
getInternalState()
|
long |
getKey()
Private method. |
static long |
getKey(String instanceId)
|
abstract Object |
getNormalVariable(String variableId)
Returns the value of any normal variable by id. |
abstract int |
getNumberOfThreads()
Returns the number of threads (copies) this instance has. |
abstract int |
getParentThreadIn()
Returns the parent instance thread identification number |
abstract String |
getParticipantId()
Returns the participant selecting this instance. |
abstract int |
getParticipantIn()
Returns the participant identification number of this instance |
abstract int |
getPendingTaskIn()
Gets the pending task number of the task that must be re-run. |
abstract int |
getPriority()
Returns the instance's priority |
abstract Process |
getProcess()
Deprecated. use ProcessServiceSession.processGet(String) or ProcessServiceSession.processGet(int) instead |
abstract Time |
getProcessDeadline()
Returns the instance process deadline. |
abstract String |
getProcessId()
Rerturns the process Id of this instance. |
abstract Time |
getReceptionTime()
Time when this process instance reached the current activity |
abstract String |
getRoleId()
Returns the role identification of this instance |
abstract int |
getRoleIn()
Returns the role identification number of this instance |
abstract InstanceStamp |
getStamp()
Deprecated. Do not use this method. Use getInstanceActivityPair() instead. |
static InstanceStamp |
getStamp(String stampId)
Deprecated. Use InstanceActivityPair.valueOf(String) instead. |
static InstanceStamp |
getStamp(String instanceId,
String activityName)
Deprecated. Use InstanceActivityPair.valueOf(String, String) instead. |
abstract InstanceStamp |
getStampForActivity(String activityName)
Deprecated. Use getInstanceActivityPair() instead. |
abstract int |
getStatus()
Returns the instance status |
abstract String |
getStatusDescription(Locale locale)
Returns the instance status desciption |
abstract Task |
getTask(int taskNumber)
Returns the metadata task for the specific task index |
abstract Task |
getTask(String taskId)
Returns the metadata task for the specific task id |
abstract int |
getTaskCount()
This method returns the quantity of tasks for this instance. |
abstract int |
getTaskIn(int taskNumber)
Returns the task identification number for the task number. |
abstract int |
getTaskInternalStatus(int taskNumber)
Returns an integer describing the current state of this process instance item. |
abstract String |
getTaskLastExecutionParticipant(int taskNumber)
Return the last participant UID that execute the specific task. |
abstract Time |
getTaskLastExecutionTime(int taskNumber)
Return the last time execution of the specific task. |
abstract String |
getTaskParticipantId(int taskNumber)
Rerturns the participant selecting the task. |
abstract int |
getTaskRetryCounter(int taskNumber)
Returns the retryCounter for the passed task |
abstract Task[] |
getTasks()
Returns the metadata task for the task in this instace |
abstract String |
getTaskStatusDescription(int taskNumber,
Locale locale)
Returns the task status desciption |
abstract Object |
getVar(String variableId)
Deprecated. use getVariable(String) instead |
abstract Object |
getVar(String variableId,
Locale locale)
Deprecated. use getVariable(String, java.util.Locale) instead |
abstract Object |
getVariable(String variableId)
Returns the value of any variable by id. |
abstract Object |
getVariable(String variableId,
Locale locale)
Returns the value of any variable by id for a given locale. |
abstract boolean |
hasPendingTasks()
This methods returns true if the process instance has mandatory items that still need to be runned. |
abstract boolean |
hasRepeatableTasks()
This methods returns true if the process instance has any repeatable item. |
abstract void |
invalidateTask(int taskNumber)
This method invalidates the specific task index |
abstract boolean |
isAborted()
Returns whether or not the process instance is aborted |
abstract boolean |
isActivityCompleted()
Returns whether or not the process instance has the activity completed |
abstract boolean |
isCompleted()
Returns whether or not the process instance is completed |
abstract boolean |
isException()
Returns whether or not the process instance is an exception |
abstract boolean |
isExecuting()
Returns if this instance is executing or not. |
abstract boolean |
isGrabbed()
Returns whether or not the process instance is grabbed |
abstract boolean |
isPending()
Returns whether or not the process instance is pending |
abstract boolean |
isRunning()
Returns whether or not the process instance is running |
abstract boolean |
isSelected()
Returns if this instance is selected or not. |
boolean |
isSelectedBy(String participantId)
Returns if this instance was selected by the given participant. |
abstract boolean |
isSuspended()
Returns whether or not the process instance is suspended |
abstract boolean |
isTaskCompleted(int taskNumber)
Returns whether or not this process instance item is already completed |
abstract boolean |
isTaskRunning(int taskNumber)
Returns whether or not the process instance item is being executed |
abstract boolean |
isTaskSelected(int taskNumber)
Returns whether or not this process instance item is currently selected Note: Repeatable items can be selected even if they have already been completed |
abstract boolean |
isTaskValid(int taskNumber)
Returns if the specific task index is valid or not in this instance |
static String |
makeGlobalId(String organization,
String processId,
int instanceIn,
int threadIn)
Builds the id in the way instanceId+ORGANIZATION_SEPARATOR+organization. If it is needed to build an instanceId, use makeId() instead. To get the Organization use getOrganization, to obtain the instanceId alone use getInstanceId. |
static String |
makeId(String processId,
int instanceIn,
int threadIn)
Build the instance id based on the different values. instanceId = "PrcessId/InstanceIn/ThreadIn" |
static long |
makeKey(int instanceIn,
int threadIn)
|
String |
toString()
Returns a string representation of the object. |
| Methods inherited from class fuego.papi.InstanceId |
|---|
compare, compareTo, equals, equals, getInstanceId, getInstanceId, getInstanceIn, getInstanceIn, getLocalInstanceId, getLocalProcessId, 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 |
|---|
@Deprecated public abstract Activity getActivity()
ProcessServiceSession.processGet(String) Process.getActivity(String) instead.
Activitypublic abstract boolean isActivityCompleted()
public abstract Time getActivityDeadline()
public abstract String getActivityId()
public abstract String getActivityName()
public abstract int getAuthor()
public abstract String getAuthorId()
public abstract boolean isCompleted()
public abstract Time getDeadline()
public abstract String getDescription()
public abstract boolean isException()
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()
public abstract int getParticipantIn()
public abstract boolean isPending()
public abstract int getPendingTaskIn()
public abstract int getPriority()
@Deprecated public abstract Process getProcess()
ProcessServiceSession.processGet(String) ProcessServiceSession.processGet(int) 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 this instance is selected@Deprecated public abstract InstanceStamp getStamp()
getInstanceActivityPair() instead.
public abstract InstanceActivityPair getInstanceActivityPair()
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 Number to obtein the Task Identification 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 int getTaskInternalStatus(int taskNumber)
taskNumber - Task Number to obtain the Task state..
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'.InstanceItemStatepublic abstract String getTaskLastExecutionParticipant(int taskNumber)
taskNumber - Task Number to obtein the participant Id
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 Number to obtein the Time
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 Number to obtein the participant Id
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 to obtain the retry counter.
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.
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.
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 - The task number.locale - The locale for the description of the status.
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 task is valid.
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()
Task
@Deprecated
public abstract Object getVar(String variableId,
Locale locale)
getVariable(String, java.util.Locale) instead
variableId - The id of the variable whose value is required.locale - The locale to use for those variables which can be localized.
List of localizable variables: @see VarDefinition#ACTIVITY_ID
public abstract Object getVariable(String variableId,
Locale locale)
variableId - The id of the variable whose value is required.locale - The locale to use for those variables which can be localized.
List of localizable variables: @see VarDefinition#ACTIVITY_ID
public abstract Object getExternalVariable(String variableId,
Locale locale)
throws InvalidVariableIdException
variableId - The id of the external variable whose value is required.locale - The locale to use for those variables which can be localized.
List of localizable variables: @see VarDefinition#ACTIVITY_ID
InvalidVariableIdException - if the external variable id not exist.@Deprecated public abstract Object getVar(String variableId)
getVariable(String) instead
variableId - The id of the variable whose value is required
public abstract Object getVariable(String variableId)
variableId - The id of the variable whose value is required
public abstract Object getExternalVariable(String variableId)
throws InvalidVariableIdException
variableId - The id of the variable whose value is required
InvalidVariableIdException - if the external variable id not exist.
public abstract Object getNormalVariable(String variableId)
throws InvalidVariableIdException
variableId - The id of the normal variable whose value is required
InvalidVariableIdException - if the normal variable id not exist.public abstract boolean hasPendingTasks()
public abstract boolean hasRepeatableTasks()
public abstract boolean isAborted()
@Deprecated public abstract InstanceStamp getStampForActivity(String activityName)
getInstanceActivityPair() instead.
activityName - The name of the activity where this instance is suposed to be.
public abstract int getStatus()
ProcessInstanceStatepublic abstract String getStatusDescription(Locale locale)
locale - The locale for the description of the status.
public abstract boolean isSuspended()
public abstract Task getTask(int taskNumber)
taskNumber - Task index for obtein the metadata.
Taskpublic abstract Task getTask(String taskId)
taskId - Task identification
Taskpublic abstract boolean isTaskCompleted(int taskNumber)
taskNumber - number of the task to check.
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 in the task array
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 static String makeGlobalId(String organization,
String processId,
int instanceIn,
int threadIn)
organization - the organization of the process.processId - the process id where the instance was created.instanceIn - the instance number.threadIn - the thread (copy) number of the instance.
makeId(java.lang.String,int,int)
public static String makeId(String processId,
int instanceIn,
int threadIn)
processId - the process id where the instance was created.instanceIn - the instance number.threadIn - the thread (copy) number of the instance.
getId()
@Deprecated
public static InstanceStamp getStamp(String instanceId,
String activityName)
InstanceActivityPair.valueOf(String, String) instead.
instanceId - The is of the instance that will be inside the stamp.activityName - The name of the activity where this instance is suposed to be.
@Deprecated public static InstanceStamp getStamp(String stampId)
InstanceActivityPair.valueOf(String) instead.
stampId - The identificator of the stamp (instanceId/activityName).
public static long getKey(String instanceId)
public static long makeKey(int instanceIn,
int threadIn)
public Time getCreationTime()
public boolean isSelectedBy(String participantId)
participantId - Participant Id to check.
true is the participant has selected the instance.
Package methodpublic long getKey()
public String toString()
toString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
toString in class InstanceId
|
BPM Process API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||