|
ALBPM Process API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfuego.papi.SearchScope
public class SearchScope
This class represent the scope to execute a search over the instances.
The SearchScope limits the context where the filter will be executed.
For example:
If you want to execute a filter over all instances of the process.
SearchScope searchScope = new SearchScope(fuego.papi.ParticipantScope.ALL,
fuego.papi.StatusScope.ALL,
null);
If you want to execute a filter over all instances in an specific activity.
SearchScope searchScope = new SearchScope(fuego.papi.ParticipantScope.ALL,
fuego.papi.StatusScope.ALL,
activityName);
If you want to execute a filter over all instances in the process for a particular participant.
SearchScope searchScope = new SearchScope(fuego.papi.ParticipantScope.PARTICIPANT,
fuego.papi.StatusScope.ALL,
activityName);
If you want to execute a filter over all running instances in the process.
SearchScope searchScope = new SearchScope(fuego.papi.ParticipantScope.ALL,
fuego.papi.StatusScope.ONLY_INPROCESS,
activityName);
Filter
,
ParticipantScope
,
StatusScope
,
Serialized FormConstructor Summary | |
---|---|
SearchScope(ParticipantScope participantScope,
StatusScope statusScope)
This constructor create a new SearchScope with a specific participant and status scope and empty activity scope. |
|
SearchScope(ParticipantScope participantScope,
StatusScope statusScope,
String activityScope)
This constructor create a new SearchScope with a specific participant and status and activity scope. |
Method Summary | |
---|---|
static SearchScope |
create()
|
String |
getActivityScope()
Returns the activity scope of this search. |
ParticipantScope |
getParticipantScope()
Returns the participant scope of this search. |
StatusScope |
getStatusScope()
Returns the status scope of this search. |
void |
setActivityScope(String activityScope)
Sets a new activity scope |
void |
setParticipantScope(ParticipantScope participantScope)
Sets a new participant scope. |
void |
setStatusScope(StatusScope statusScope)
Sets a new status scope. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchScope(ParticipantScope participantScope, StatusScope statusScope)
participantScope
- The participant scope to searchstatusScope
- The status scope to searchParticipantScope
,
StatusScope
public SearchScope(ParticipantScope participantScope, StatusScope statusScope, String activityScope)
participantScope
- The participant scope to searchstatusScope
- The status scope to searchactivityScope
- The activity scope (activity name)ParticipantScope
,
StatusScope
Method Detail |
---|
public static SearchScope create()
public void setActivityScope(String activityScope)
activityScope
- Activity name to refine the searchpublic String getActivityScope()
public void setParticipantScope(ParticipantScope participantScope)
participantScope
- The participant scope to refine the search.ParticipantScope
public ParticipantScope getParticipantScope()
ParticipantScope
public void setStatusScope(StatusScope statusScope)
statusScope
- The status scope to refine the search.StatusScope
public StatusScope getStatusScope()
StatusScope
|
ALBPM Process API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |