|
ALBPM Process API (PAPI) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Contains the metadata of a particular Process.
Operations on a process can be done through ProcessServiceSession.
| Method Summary | |
void |
activate()
For internal use only. |
boolean |
containsDocumentation(Locale locale)
Returns if the process contains documentation for an specific locale. |
void |
deprecate()
For internal use only. |
Activity[] |
getActivities()
Gets all activities of the process. |
String[] |
getActivitiesForParticipant(Participant participant)
Gets the visible activities in the process for the given participant |
String[] |
getActivitiesForRoles(String[] roles)
Gets all activities in the process that can be see for these roles |
Activity |
getActivity(String activity)
Gets an specified activity in the process. |
String[] |
getApplicationRoles()
Gets all roles with global activities (not include global automatic) in the process. |
ArgumentSet[] |
getArgumentSets()
Gets all ArgumentSet for the begin activity of the process. |
ArgumentSet[] |
getArgumentSets(String activity)
Gets all ArgumentSet for a given activity name. |
Activity |
getBeginActivity()
Gets the begin activity of the process. |
int |
getCatalogIn()
Gets the process' catalog identification number. |
String |
getConsolidatedId()
Gets the consolidated process Id. A process id is of the form: |
String |
getDeployedEngine()
Gets the engine Id where the process was deployed. |
String |
getDescription(Locale locale)
Gets the process' localized description. If the localized process' description is not available, its name is returned. |
String |
getDocumentation(Locale locale)
Deprecated. use ProcessServiceNESession.getProcessDocumentation(String, java.util.Locale) |
Map |
getDocumentationMap()
For internal use only. |
String |
getFolderName()
Gets the name of the process folder into the working folder. |
String[] |
getGlobalCreationRoles()
Gets all roles Ids with global creation activities (not include global automatic) in the process. |
Activity[] |
getGrabActivitiesForActivity(String activityId)
Gets all grab activities where the instances in the given activity can be grabbed. |
String |
getId()
Gets the process' id. A process id is of the form: |
int |
getIn()
Gets the process' identification number. The process identification number is the unique number generated during the deploy. |
String[] |
getInteractiveRoles()
Gets all roles with interactive activities in the process. |
String |
getLabel(Locale locale)
Returns the process' localized label. If the localized process' label is not available, its name is returned. |
Map |
getLabels()
Deprecated. use getLabel(java.util.Locale) instead. |
String |
getLabelWithOU(Locale locale)
Returns the process' localized label with the organizational unit. If the process is deployed in the root OU, then it is the same label, but if the process is deployed in another ou, then the result is : label (ou) |
String |
getLabelWithOUForParticipant(Locale locale,
Participant participant)
Returns the process' localized label with the organizational unit for a given participant. If the process is deployed in the root OU, then it is the same label, but if the process is deployed in another ou, then the result is : label (ou) |
long |
getLastNewsTimestamp()
For internal use only. |
Activity[] |
getMeasurements()
Gets all measurements activities of the process. |
String |
getName()
Gets the process' name |
String |
getOrganizationUnit()
Gets the organization unit where the process is deployed |
String[] |
getRoles()
Gets all roles in the process. |
VarDefinition[] |
getVars()
Gets the external variables of the process. |
String |
getVersion()
Gets the process version. |
boolean |
hasApplicationRole(String roleId)
Returns if the process has global activity (not include global automatic) in the specific role. |
boolean |
hasGlobalCreationRole(String roleId)
Returns if the process has global creation activity in the specific role. |
boolean |
hasInteractiveRole(String roleId)
Returns if the process has an interactive activity in the specific role. |
boolean |
hasLocalDocumentation()
Returns if the process contains documentation stored in the folder name. |
boolean |
hasRole(String role)
Checks if the process contains the specific role identification. |
boolean |
isActive()
Returns true if the process is active.A process is active if it is not deprecated or undeployed. |
boolean |
isAutomatic()
Returns if the process contains only automatic activities. |
boolean |
isOnline()
Returns true if the process is online.A process is online if you could perform operation over it. |
boolean |
isVisibleTo(Participant participant)
Returns true if the participant has any role in the process, otherwise false. |
void |
setLastNewsTimestamp(long timestamp)
For internal use only. |
| Methods inherited from interface fuego.papi.MDObject |
setDocumentation |
| Method Detail |
public int getCatalogIn()
public boolean isActive()
true if the process is active.
true if the process is activepublic Activity[] getActivities()
public String[] getActivitiesForParticipant(Participant participant)
participant - the participant to filter the activities.
public String[] getActivitiesForRoles(String[] roles)
roles - roles to filter the activities.
public Activity getActivity(String activity)
activity - name or Id of required activity
null if not found.public String[] getApplicationRoles()
public ArgumentSet[] getArgumentSets()
public ArgumentSet[] getArgumentSets(String activity)
activity - name of the activity to obtain the ArgumentSet.
public boolean isAutomatic()
true if the process contains only automatic activities.public Activity getBeginActivity()
public String getConsolidatedId()
"/OrganizationalUnit/ProcessName".
public String getDeployedEngine()
public String getDescription(Locale locale)
getDescription in interface MDObjectlocale - the desired locale.
getName()public String getDocumentation(Locale locale)
ProcessServiceNESession.getProcessDocumentation(String, java.util.Locale)
null is returned.
This method do not load the process documentation, it just returns what was previously loaded by
ProcessServiceNESession.getProcessDocumentation(String, java.util.Locale).
getDocumentation in interface MDObjectlocale - the desired locale.
ProcessServiceNESession.getProcessDocumentation(java.lang.String, java.util.Locale)public Map getDocumentationMap()
public String getFolderName()
getFolderName in interface MDObjectpublic String[] getGlobalCreationRoles()
public Activity[] getGrabActivitiesForActivity(String activityId)
activityId - activity identification to obtain the grab activities.
public String getId()
"/OrganizationalUnit/ProcessName#Variation-Mayor.minor".
getId in interface MDObjectpublic int getIn()
public String[] getInteractiveRoles()
public String getLabel(Locale locale)
getLabel in interface MDObjectlocale - the desired locale
getName()public String getLabelWithOU(Locale locale)
locale - the desired locale
getLabel(Locale locale)
public String getLabelWithOUForParticipant(Locale locale,
Participant participant)
locale - the desired localeparticipant - the participant to use
getLabel(Locale locale)public Map getLabels()
getLabel(java.util.Locale) instead.
public void setLastNewsTimestamp(long timestamp)
timestamp - last news timestamp.public long getLastNewsTimestamp()
public Activity[] getMeasurements()
public String getName()
getName in interface MDObjectpublic boolean isOnline()
true if the process is online.
true if the process is onlinepublic String getOrganizationUnit()
public String[] getRoles()
public VarDefinition[] getVars()
VarDefinitionpublic String getVersion()
public boolean isVisibleTo(Participant participant)
true if the participant has any role in the process, otherwise false.
participant - participant to check.
true if the participant has any role in the process.public void activate()
public boolean containsDocumentation(Locale locale)
containsDocumentation in interface MDObjectlocale - specific java.util.Locale to verify if the process contains documentation for that language.
true if the process conatins documentation for that java.util.Localepublic void deprecate()
public boolean hasApplicationRole(String roleId)
roleId - Role identification.
true if the process has a global activity in the role id given.public boolean hasGlobalCreationRole(String roleId)
roleId - Role identification.
true if the process has a creation activity in the role id given.public boolean hasInteractiveRole(String roleId)
roleId - Role identification.
true if the process has an interactive activity in the role id given.public boolean hasLocalDocumentation()
hasLocalDocumentation in interface MDObjecttrue if the process contains documentation stored.public boolean hasRole(String role)
role - Role identification.
true if the process has the role given.
|
ALBPM Process API (PAPI) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||