public class WFTransition
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
protected java.util.Set<WFRole> |
roleSet |
protected WFState |
source |
protected WFState |
target |
Constructor and Description |
---|
WFTransition(WFState source,
WFState target,
WFRole role)
Creates a new transition between two states for a given group
|
Modifier and Type | Method and Description |
---|---|
void |
addRole(WFRole role)
Adds a role to this transition
|
boolean |
checkRule(ObjectIntTreeMap grpVoteMap,
java.util.TreeSet<Member> mbrVoteSet,
Publication publication,
Member loggedMember)
Perform the rule
|
boolean |
contains(WFRole role)
Check if a given role can perform this transition
|
java.util.Set<WFRole> |
getRoleSet() |
WFState |
getSource() |
WFState |
getTarget() |
void |
removeRole(WFRole role)
Removes a role to this transition
|
java.lang.String |
toString() |
public static final java.lang.String REVISION
protected WFState source
protected WFState target
protected java.util.Set<WFRole> roleSet
public java.lang.String toString()
toString
in class java.lang.Object
public boolean contains(WFRole role)
role
- the rolepublic void addRole(WFRole role)
role
- the role to addpublic void removeRole(WFRole role)
role
- the role to addpublic boolean checkRule(ObjectIntTreeMap grpVoteMap, java.util.TreeSet<Member> mbrVoteSet, Publication publication, Member loggedMember)
grpVoteMap
- contains the votes for the state changembrVoteSet
- contains the members who have votedpublication
- the publicationloggedMember
- the member who performs this rulepublic WFState getSource()
public WFState getTarget()
public java.util.Set<WFRole> getRoleSet()
Copyright © 2001-2017 Jalios SA. All Rights Reserved.