public class ProcTaskResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ProcTaskResult() |
Modifier and Type | Method and Description |
---|---|
void |
addOutcome(java.lang.String outcome,
java.util.UUID userId)
Adds a new decision to the result
|
int |
count(java.lang.String outcome)
Returns a number of process actors who finished the task with a given outcome.
|
boolean |
exists(java.lang.String outcome)
Checks whether someone completed the task with a given outcome
|
java.util.Map<java.lang.String,java.util.List<java.util.UUID>> |
getOutcomes() |
public void addOutcome(java.lang.String outcome, java.util.UUID userId)
outcome
- outcome nameuserId
- id of the user who made a decisionpublic int count(java.lang.String outcome)
outcome
- outcome namepublic boolean exists(java.lang.String outcome)
outcome
- outcome namepublic java.util.Map<java.lang.String,java.util.List<java.util.UUID>> getOutcomes()