ALBPM Process API

fuego.papi
Class ParticipantsForActivities

java.lang.Object
  extended by 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

Field Summary
 String[] activities_d
           
 String[][] participants_d
           
 
Constructor Summary
ParticipantsForActivities()
           
ParticipantsForActivities(String[] activities, String[][] participants)
           
 
Method Summary
 String[] getActivities()
          Gets the activities array
 String[] getParticipants(int activityIndex)
          Gets the participants array for a given Activity
static ParticipantsForActivities intersecParticipantsForActivities(ParticipantsForActivities source, ParticipantsForActivities toAdd)
          Intersect the participantsForActivities Source with the toAdd ones.
static ParticipantsForActivities mergeParticipantsForActivities(ParticipantsForActivities source, ParticipantsForActivities toAdd)
          Merges the participantsForActivities Source with the toAdd ones.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

activities_d

public String[] activities_d

participants_d

public String[][] participants_d
Constructor Detail

ParticipantsForActivities

public ParticipantsForActivities()

ParticipantsForActivities

public ParticipantsForActivities(String[] activities,
                                 String[][] participants)
Method Detail

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.

ALBPM Process API

© Copyright 1996/2005 Fuego Inc. All Rights Reserved