fuego.papi
Class ParticipantsForActivities
java.lang.Object
fuego.papi.ParticipantsForActivities
- All Implemented Interfaces:
- Serializable
public class ParticipantsForActivities
- extends Object
- implements Serializable
Used to match group of Paticipants with Activities.
This object can be obtained from two different ways:
1. Asking specifically to the ProcessServiceSession through the method @see ProcessServiceSession#instancesTargetParticipants(InstanceStamp[])
2. From the @see fuego.papi.exception.InstancesExceptio#getParticipantsForActivities(), thrown by the ProcessServiceSession#instancesSendTo((InstanceStamp[], String, String)
, because the instance could not be routed to the given Participant and Activity.
- See Also:
- Serialized Form
activities_d
public String[] activities_d
participants_d
public String[][] participants_d
ParticipantsForActivities
public ParticipantsForActivities()
ParticipantsForActivities
public ParticipantsForActivities(String[] activities,
String[][] participants)
intersecParticipantsForActivities
public static ParticipantsForActivities intersecParticipantsForActivities(ParticipantsForActivities source,
ParticipantsForActivities toAdd)
- Intersect the participantsForActivities Source with the toAdd ones.
- Parameters:
source
- Source ParticipantsForActivities
toAdd
- ParticipantsForActivities
to add to the source
- Returns:
- new
ParticipantsForActivities
with the intersection of the source
and toAdd
.
mergeParticipantsForActivities
public static ParticipantsForActivities mergeParticipantsForActivities(ParticipantsForActivities source,
ParticipantsForActivities toAdd)
- Merges the participantsForActivities Source with the toAdd ones.
- Parameters:
source
- Source ParticipantsForActivities
toAdd
- ParticipantsForActivities
to add to the source
- Returns:
- new
ParticipantsForActivities
with the union of the source
and toAdd
.
getActivities
public String[] getActivities()
- Gets the activities array
- Returns:
- activities in this
ParticipantsForActivities
object.
getParticipants
public String[] getParticipants(int activityIndex)
- Gets the participants array for a given Activity
- Parameters:
activityIndex
- the position in the activities array retrieved by @see #getActivities()
- Returns:
- participants associated to the
activityIndex
.
© Copyright 1996/2005 Fuego Inc. All Rights Reserved