String party = value.getString("partyId");
String role = value.getString("roleTypeId");
java.sql.Timestamp from = value.getTimestamp("fromDate");
WfAssignment a = WfFactory.getWfAssignment(getDelegator(), runtimeKey(), party, role, from);
if (validStatus.contains(a.status())) {
// if we find one set this to true
foundOne = true;
} else {
// if we must completeAll / assignAll and this one fails return false
if ((type == CHECK_COMPLETE && completeAll) || (type == CHECK_ASSIGN && acceptAll))