|
ALBPM 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()
Return the activity for this instance |
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. |
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 String |
getId()
Return the instance identification. |
abstract InstanceActivityPair |
getInstanceActivityPair()
Deprecated. Do not use this method. |
abstract int |
getInternalState()
|
long |
getKey()
|
static long |
getKey(String instanceId)
|
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 current task |
abstract int |
getTaskIn(int taskNumber)
Returns the task identification number for the task number. |
abstract int |
getTaskInternalStatus(int taskNumber)
|
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)
Package method |
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, 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()
Activity
public 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()
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()
@Deprecated public abstract InstanceStamp getStamp()
getInstanceActivityPair()
instead.
public abstract InstanceActivityPair getInstanceActivityPair()
public abstract int getTaskCount()
public abstract int getTaskIn(int taskNumber)
taskNumber
- Task Number to obtein the Task Identification Number.
public abstract int getTaskInternalStatus(int taskNumber)
public abstract String getTaskLastExecutionParticipant(int taskNumber)
taskNumber
- Task Number to obtein the participant Id
public abstract Time getTaskLastExecutionTime(int taskNumber)
taskNumber
- Task Number to obtein the Time
public abstract String getTaskParticipantId(int taskNumber)
taskNumber
- Task Number to obtein the participant Id
public abstract int getTaskRetryCounter(int taskNumber)
public abstract boolean isTaskRunning(int taskNumber)
taskNumber
-
public abstract boolean isTaskSelected(int taskNumber)
taskNumber
-
public abstract String getTaskStatusDescription(int taskNumber, Locale locale)
taskNumber
- The task number.locale
- The locale for the description of the status.
public abstract boolean isTaskValid(int taskNumber)
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
@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 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()
ProcessInstanceState
public 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.
Task
public abstract Task getTask(String taskId)
taskId
- Task identification
Task
public abstract boolean isTaskCompleted(int taskNumber)
taskNumber
-
public abstract void invalidateTask(int taskNumber)
taskNumber
- Task index in the task arraypublic static String makeGlobalId(String organization, String processId, int instanceIn, int threadIn)
makeId(java.lang.String,int,int)
public static String makeId(String processId, int instanceIn, int threadIn)
processId
- instanceIn
- threadIn
-
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 final boolean isSelectedBy(String participantId)
public long getKey()
public String toString()
InstanceId
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
|
ALBPM Process API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |