public class OfferInteraction extends AbstractInteraction
Modifier and Type | Field and Description |
---|---|
static int |
ROLE_PARAM |
static int |
USER_PARAM |
_initiator, _ownerTaskID, SYSTEM_INITIATED, USER_INITIATED
Constructor and Description |
---|
OfferInteraction() |
OfferInteraction(int initiator) |
OfferInteraction(java.lang.String ownerTaskID) |
Modifier and Type | Method and Description |
---|---|
void |
addConstraint(AbstractConstraint c) |
void |
addConstraints(java.util.Set constraints) |
void |
addFilter(AbstractFilter f) |
void |
addFilters(java.util.Set filters) |
boolean |
addInputParam(java.lang.String name,
int type) |
void |
addInputParams(java.util.Map pMap) |
void |
addParticipant(Participant p)
variation of the above
|
void |
addParticipant(java.lang.String id)
Adds a participant to the initial distribution list
|
void |
addParticipants(java.util.Set pSet) |
void |
addParticipantsByID(java.util.Set idSet) |
void |
addParticipantsByID(java.lang.String idList) |
void |
addParticipantUnchecked(java.lang.String id) |
void |
addRole(Role r) |
void |
addRole(java.lang.String rid) |
void |
addRoles(java.util.Set rSet) |
void |
addRoles(java.lang.String roleList) |
void |
addRoleUnchecked(java.lang.String rid) |
java.util.Set<AbstractConstraint> |
getConstraints() |
java.util.Set<Participant> |
getDistributionSet() |
java.util.Set<java.lang.String> |
getDynParamNames() |
java.util.Set<AbstractFilter> |
getFilters() |
java.util.Set<Participant> |
getParticipants() |
java.util.Set<Role> |
getRoles() |
void |
parse(Element e,
Namespace nsYawl) |
java.util.Set<Participant> |
performOffer(WorkItemRecord wir)
Takes the initial distribution set of participants, then expands any roles and/or
dynamic parameters to their 'set of participants' equivalents, then applies the
specified filters and/or constraints, and returns the final distribution set of
participants.
|
void |
setFamiliarParticipantTask(java.lang.String taskid) |
java.lang.String |
toXML() |
void |
withdrawOffer(WorkItemRecord wir,
java.util.Set<Participant> offeredSet) |
getInitiator, getInitiatorString, getOwnerTaskID, isSystemInitiated, parseInitiator, parseParams, setInitiator, setOwnerTaskID
public static final int USER_PARAM
public static final int ROLE_PARAM
public OfferInteraction()
public OfferInteraction(java.lang.String ownerTaskID)
public OfferInteraction(int initiator)
initiator
- - either AbstractInteraction.SYSTEM_INITIATED or
AbstractInteraction.USER_INITIATEDpublic void addParticipant(java.lang.String id)
id
- - the id of the participantpublic void addParticipantUnchecked(java.lang.String id)
public void addParticipant(Participant p)
p
- - the Participant object to add to the initial distribution listpublic void addParticipantsByID(java.lang.String idList)
public void addParticipantsByID(java.util.Set idSet)
public void addParticipants(java.util.Set pSet)
public void addRole(java.lang.String rid)
public void addRoleUnchecked(java.lang.String rid)
public void addRole(Role r)
public void addRoles(java.lang.String roleList)
public void addRoles(java.util.Set rSet)
public boolean addInputParam(java.lang.String name, int type)
public void addInputParams(java.util.Map pMap)
public void addFilters(java.util.Set filters)
public void addFilter(AbstractFilter f)
public void addConstraints(java.util.Set constraints)
public void addConstraint(AbstractConstraint c)
public void setFamiliarParticipantTask(java.lang.String taskid)
public java.util.Set<Participant> getParticipants()
public java.util.Set<Role> getRoles()
public java.util.Set<AbstractFilter> getFilters()
public java.util.Set<AbstractConstraint> getConstraints()
public java.util.Set<Participant> getDistributionSet()
public java.util.Set<java.lang.String> getDynParamNames()
public java.util.Set<Participant> performOffer(WorkItemRecord wir)
wir
- the workitem being offeredpublic void withdrawOffer(WorkItemRecord wir, java.util.Set<Participant> offeredSet)
public void parse(Element e, Namespace nsYawl) throws ResourceParseException
ResourceParseException
public java.lang.String toXML()
Copyright © 2004-2014 The YAWL Foundation.