|
ALBPM Process API (PAPI) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Handles different kinds of information using presentations.
There are three different kinds of views, depending on the information to be presented:
views for instances, views for applications, and views for attachments. Each view type has its own presentation type.
This view cannot be modified. To modify views, use EditableView instead.
ProcessServiceNESession#createView(viewType, viewId, assignedProcesses) and
ProcessServiceSession.storeView(View).
Example to get the list of instance IDs for all views:
String[] viewIds = processServiceSession.getViewIds();
for (int i=0; i < viewIds.length; i++) {
View view = processServiceSession.getView(viewIds[i]);
if (view.getType().isType(ViewType.INSTANCES))
{
InstanceInfo[] instances = processServiceSession.getInstancesByView((InstancesView)view);
for (int j=0; j < instances.length;j++) {
System.out.println(instances[j].getId())
}
}
}
fuego.papi.ViewType,
Presentation,
fuego.papi.PresentationType,
ProcessServiceNESession,
ProcessServiceSession| Field Summary | |
static String |
APPLICATIONS_DEFAUTL_ID
|
static String |
ATTACHMENTS_DEFAULT_ID
|
static String |
BOOKMARK_DEFAULT_ID
|
static String |
CONSULTATIONS_DEFAUTL_ID
|
static String |
DEFAULT_OWNER
|
static String |
HISTORY_DEFAUTL_ID
|
static String |
HISTORY_TODAY_DEFAULT_ID
|
static String |
INBOX_DEFAULT_ID
|
| Method Summary | |
String[] |
getAssignedProcesses()
Gets the processes assigned to this view. |
String[] |
getAssignedRoles()
Gets the roles assigned to this view. |
String |
getId()
Gets the view ID. |
String |
getLabel(Locale locale)
Gets the label for the given locale. |
String |
getOwner()
Gets the participant ID of the creator of this view. |
String |
getParentId()
Gets parent view ID. |
String |
getPresentation()
Gets the presentation ID assigned to this view. |
PresentationType |
getPresentationType()
Gets the type of the presentation assigned to this view. |
ViewType |
getType()
Gets the type of the view |
boolean |
hasType(ViewType viewType)
Returns true if the view is a subtype of the specified view type. |
boolean |
isCustom()
Returns true if this view is a user-created view. |
boolean |
isHidden()
Returns true if this view is hidden. |
boolean |
isReadOnly()
Returns true if this view is read only. |
boolean |
isTransient()
Returns true if this view was stored. |
| Field Detail |
public static final String APPLICATIONS_DEFAUTL_ID
public static final String ATTACHMENTS_DEFAULT_ID
public static final String BOOKMARK_DEFAULT_ID
public static final String CONSULTATIONS_DEFAUTL_ID
public static final String DEFAULT_OWNER
public static final String HISTORY_DEFAUTL_ID
public static final String HISTORY_TODAY_DEFAULT_ID
public static final String INBOX_DEFAULT_ID
| Method Detail |
public String[] getAssignedProcesses()
Process.getId()public String[] getAssignedRoles()
Process.getRoles()public boolean isCustom()
true if this view is a user-created view.
true if this view is a user-created viewpublic boolean isHidden()
true if this view is hidden.
true if this view is hiddenpublic String getId()
public String getLabel(Locale locale)
locale - the desired locale
public String getOwner()
Participant.getUid()public String getParentId()
null.
null if the view does not have a parent viewgetId()public String getPresentation()
Presentation.getId()public PresentationType getPresentationType()
Presentation.getType(),
PresentationTypepublic boolean isReadOnly()
true if this view is read only.
true if this view is read onlypublic boolean isTransient()
true if this view was stored.
true if this view was storedpublic ViewType getType()
ViewTypepublic boolean hasType(ViewType viewType)
true if the view is a subtype of the specified view type.
viewType - parent view type
true if it is a subtype of the specified typeViewType
|
ALBPM Process API (PAPI) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||