|
ALBPM Process API (PAPI) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfuego.processmodel.Activity
fuego.papi.Activity
Activity in a Process. An activity can be a global automatic activity, a global activity, an interactive activity,
or an automatic activity. The methods in this class largely correspond to properties in Studio:
Activity.AUTOMATIC = 1 << 0Activity.INTERACTIVE = 1 << 1Activity.GLOBAL = 1 << 2Activity.CREATION = 1 << 3Activity.GRAB = 1 << 4Activity.BEGIN = 1 << 5 | AUTOMATICActivity.END = 1 << 6 | AUTOMATICActivity.SPLIT = 1 << 7 | AUTOMATICActivity.SPLIT_N = 1 << 8 | SPLITActivity.JOIN = 1 << 9 | AUTOMATICActivity.SUBPROCESS = 1 << 10 | AUTOMATICActivity.PROCESS_CREATION = 1 << 11 | AUTOMATICActivity.TERMINATION_WAIT = 1 << 12 : AUTOMATICActivity.PROCESS_NOTIFICATION = 1 << 13 | AUTOMATICActivity.NOTIFICATION_WAIT = 1 << 14 | AUTOMATICActivity.SUBFLOW = 1 << 15 | AUTOMATICActivity.GROUP = 1 << 16 | AUTOMATICActivity.INTERACTIVE_COMPONENT_CALL = 1 << 17Activity.CONDITIONAL = 1 << 18 | AUTOMATICActivity.COMPENSATE = 1 << 19 | AUTOMATICActivity.GLOBAL_AUTOMATIC = GLOBAL | AUTOMATICActivity.GLOBAL_CREATION = GLOBAL | CREATION | INTERACTIVEActivity.INTERACTIVE_GRAB = GRAB | INTERACTIVE
| Field Summary |
| Fields inherited from class fuego.processmodel.Activity |
AUTOMATIC, BEGIN, COMPENSATE, CONDITIONAL, CREATION, END, GLOBAL, GLOBAL_AUTOMATIC, GLOBAL_CREATION, GRAB, GROUP, INTERACTIVE, INTERACTIVE_COMPONENT_CALL, INTERACTIVE_GRAB, JOIN, NOTIFICATION_WAIT, PROCESS_CREATION, PROCESS_NOTIFICATION, SPLIT, SPLIT_N, SUBFLOW, SUBPROCESS, TERMINATION_WAIT |
| Constructor Summary | |
Activity()
|
|
| Method Summary | |
abstract boolean |
canBeGrabbedBy(Activity grabActivity)
Returns if this activity can be grabbed by the specified activity. If grabActivity is a defined grab, it must have an incoming transition from this activity. |
abstract boolean |
canBeSeenByParticipant(Participant participant)
Returns if the specified Participants can see this activity. |
abstract boolean |
canBeSeenByRole(String role)
Returns if this activity can be seen by the specified role. |
abstract boolean |
canGrab(String sourceActivity)
Returns if this activity can grab from the activity specified by the given Id. |
abstract boolean |
containsDocumentation(Locale locale)
Returns if this activity contains documentation in the specified locale. |
abstract String |
getActivityName()
Gets the activity name. |
static String |
getActivityName(String activityId)
Gets the activity name from the activity id. |
abstract String |
getDescription(Locale locale)
Gets the localized activity description. |
abstract String |
getDocumentation(Locale locale)
Deprecated. use ProcessServiceNESession.getActivityDocumentation(String, java.util.Locale) instead. |
abstract Map |
getDocumentationMap()
Gets the documentation map. |
abstract String |
getFolderName()
Gets the name of the activity folder in the documentation folder. |
abstract String |
getId()
Gets the activity Id. The activity Id is in the format "ProcessId/ActivityName" |
abstract int |
getIn()
Gets the activity identification number. The activity identification number is the name generated for this activity during the deployment face. |
abstract String |
getLabel(Locale locale)
Gets the localized activity label. The activity label is listed as Name in Studio. |
abstract Map |
getLabels()
Deprecated. use getLabel(Locale) instead. |
abstract Process |
getProcess()
Gets the parent process for this activity. |
abstract String |
getProcessId()
Gets the parent process Id for this activity. |
static String |
getProcessId(String activityId)
Gets the parent process Id for the specified activity Id. |
abstract String |
getRole()
Gets the role associated with this activity or null if the activity does not have role associated. The associated role is the 'swimlane' where this activity was placed in Studio. |
abstract Activity[] |
getSourceActivitiesForGrab()
Gets the activities that this grab activity can grab from. If this is not a grab activity, returns a 0-length array. |
abstract Task |
getTask(int taskNumber)
Gets the Task associated with this index. |
abstract Task |
getTask(String taskId)
Gets the Task associated with this taskId. |
abstract Task[] |
getTasks()
Gets all Tasks associated with this activity. |
abstract Object |
getVar(String variableId,
Locale locale)
Gets the value of a VarDefinition associated with this Activity, given the VarDefinition id and locale. |
abstract VarDefinition[] |
getVars()
Gets all the VarDefinitions associated with this activity. The VarDefinitions for an Activity include VarDefinition.PROCESS_ID, VarDefinition.DESCRIPTION_ID and VarDefinition.TASK_ID. |
abstract boolean |
hasInstanceAccess()
Returns if this activity is a global activity and if this global activity has instance access. hasInstanceAccess corresponds to "Has Instance Access" in Studio. |
abstract boolean |
hasLocalDocumentation()
Returns if this activity contains documentation in the documentation folder. |
abstract boolean |
hasOutgoingTransitions()
Returns if this activity has unconditional or conditional transitions to another activity. |
abstract boolean |
hasTransitionsToInteractiveActivities()
Returns if this activity has a transition to an interactive activity. |
abstract boolean |
isAbortEnabled()
Returns if instances in this activity can be aborted. |
abstract boolean |
isActive()
Returns if this activity belongs to an active process. |
abstract boolean |
isAutoCompleteEnabled()
Returns if this activity will automatically be completed after all mandatory tasks are successfully processed. |
abstract boolean |
isInstancePresentation()
Returns if this activity is a global activity, and if this global activity can be used to customize rendered instance information. |
abstract boolean |
isOnline()
Returns if the parent process is online. |
abstract boolean |
isReassignEnabled()
Returns if instances of this activity can be assigned. An instance can be assigned in this activity if this activity has been defined as Assignable in Studio To determine if a participant has the rights to assign an instance in this activity, use ProcessServiceSession.instanceCanBeReassign(InstanceInfo). |
abstract boolean |
isResaignEnabled()
Deprecated. This method name was spelled incorrectly; the intent was is isReassignEnabled(). To ensure
backward comparability, the spelling has not been corrected. Use isReassignEnabled() instead. |
abstract boolean |
isSelectEnabled()
Returns if instances in this activity can be selected. An instance can be selected in this activity if this activity has been defined as Selectable in Studio To determine if a participant has the rights to select an instance in this activity, use ProcessServiceSession.instanceCanBeSelected(InstanceInfo). |
abstract boolean |
isSuspendEnabled()
Returns if instances in this activity can be suspended. This corresponds to the Suspendable property in Studio. To determine if a participant has the rights to suspend an instance in this activity, use ProcessServiceSession.instanceCanBeSuspended(InstanceInfo). |
abstract boolean |
isUserSelectsTransitionEnabled()
Returns if the user (participant) can select the transition to route the instance. Corresponds to the activity property "User selects transition" in Studio. |
static String |
makeId(String processId,
String activityName)
Builds the activityId from the processId and the activityName. activityId = "processId/activityName". |
abstract void |
setDocumentation(Locale locale,
String html)
Sets the activity documentation for the specified locale. |
abstract void |
setDocumentationMap(Map documentationMap)
Sets a map of activity documentation. |
| Methods inherited from class fuego.processmodel.Activity |
getName, getType, hasType |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface fuego.papi.MDObject |
getName |
| Constructor Detail |
public Activity()
| Method Detail |
public abstract boolean isAbortEnabled()
ProcessServiceSession.instanceCanBeAborted(InstanceInfo).
true if instances in this activity can be aborted.public abstract boolean isActive()
true if this activity belongs to an active process.Process.isActive()public abstract boolean isAutoCompleteEnabled()
true if this activity will automatically be completed.public abstract String getDocumentation(Locale locale)
ProcessServiceNESession.getActivityDocumentation(String, java.util.Locale) instead.
getDocumentation in interface MDObjectlocale - for localized documentation.
public abstract String getFolderName()
getFolderName in interface MDObjectProcessService.getUserDocumentationFolder()public abstract String getId()
getId in interface MDObjectpublic abstract int getIn()
public abstract boolean isInstancePresentation()
true if this activity is a global activity, and if this global activity can be used to
customize rendered instance informationActivity.getType()public abstract boolean isOnline()
true if this activity is online.Process.isOnline()public abstract Process getProcess()
Process for this activity.public abstract String getProcessId()
public abstract boolean isResaignEnabled()
isReassignEnabled(). To ensure
backward comparability, the spelling has not been corrected. Use isReassignEnabled() instead.
ProcessServiceSession.instanceCanBeReassign(InstanceInfo).
true if instances of this activity can be assigned.public abstract boolean isReassignEnabled()
ProcessServiceSession.instanceCanBeReassign(InstanceInfo).
true if instances of this activity can be assigned.public abstract boolean hasInstanceAccess()
true if this activity is a global activity and if this global activity has instance access.public abstract String getActivityName()
getLabel(java.util.Locale)public abstract String getDescription(Locale locale)
getDescription in interface MDObjectgetDescription in class Activitylocale - requested locale. Cannot be null.
public abstract String getLabel(Locale locale)
getLabel in interface MDObjectlocale - requested locale. Cannot be null.
public abstract Map getLabels()
getLabel(Locale) instead.
public abstract String getRole()
public abstract boolean isSelectEnabled()
ProcessServiceSession.instanceCanBeSelected(InstanceInfo).
true if instances in this activity can be selected.public abstract Activity[] getSourceActivitiesForGrab()
public abstract boolean isSuspendEnabled()
ProcessServiceSession.instanceCanBeSuspended(InstanceInfo).
true if instances in this activity can be suspended.public abstract Task getTask(int taskNumber)
taskNumber - 0-based index of the task.
InvalidTaskNumberException - if it is an invalid task number.public abstract Task getTask(String taskId)
taskId - task Id
null if there is no task associated with this taskId.public abstract Task[] getTasks()
public abstract boolean isUserSelectsTransitionEnabled()
true if the user (participant) can select the transition to route the instance.public abstract boolean hasLocalDocumentation()
hasLocalDocumentation in interface MDObjecttrue if this activity contains documentation in the documentation folder.getFolderName()public abstract boolean hasOutgoingTransitions()
true if this activity has unconditional or conditional transitions to another activity.public abstract boolean hasTransitionsToInteractiveActivities()
true if this activity has a trandition to an interactive activity.
public abstract void setDocumentation(Locale locale,
String html)
setDocumentation in interface MDObjectlocale - locale for this documentation. Cannot be null.html - html documentation Cannot be null.public abstract void setDocumentationMap(Map documentationMap)
documentationMap - map of String locale suffixes and documentation. Cannot be null.public abstract Map getDocumentationMap()
public abstract Object getVar(String variableId,
Locale locale)
throws InvalidVariableIdException
variableId - VarDefinition Id. Cannot be null.locale - locale for this VarDefinition value. Cannot be null.
InvalidVariableIdExceptionpublic abstract VarDefinition[] getVars()
public abstract boolean canBeGrabbedBy(Activity grabActivity)
grabActivity - activity to test if it can grab the current activity.
true if this activity can be grabbed by the specified activity.public abstract boolean canBeSeenByParticipant(Participant participant)
participant - participant to test if they can see this activity.
true if the specified participant can see this activity.public abstract boolean canBeSeenByRole(String role)
role - name of the role to test. Cannot be null.
true if this activity can be seen by the specified role.public abstract boolean canGrab(String sourceActivity)
sourceActivity - Id of the source activity. Cannot be null.
true if this activity can grab from the activity specified by the given Id.public abstract boolean containsDocumentation(Locale locale)
containsDocumentation in interface MDObjectlocale - locale to test. Cannot be null.
true if this activity contains documentation in the specified locale.public static String getProcessId(String activityId)
activityId - activity Id. Cannot be null.
public static String getActivityName(String activityId)
activityId - activity id. Cannot be null.
public static String makeId(String processId,
String activityName)
processId - process idactivityName - activity name.
getId()
|
ALBPM Process API (PAPI) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||