public class RuleUtils extends Object
| Constructor and Description |
|---|
RuleUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List |
entityResultToParamActions(EntityResult erActions) |
static List |
findActionsByEvent(IEvent event,
String actionId)
List of actions matching
actionType in Event. |
static List |
findActionsByTypeAndField(IRules rules,
String eventType,
Hashtable filterEvents,
String eventField,
String actionType)
List of actions matching event type and event field
actionType in Event. |
static List |
findEventsByField(IRules rules,
String field)
List of events matching
type and field. |
static List |
findEventsByFieldAndType(IRules rules,
String field,
String type)
List of events matching
type and field. |
static List |
findEventsByType(IRules rules,
String type)
List of events matching
type. |
static boolean |
matchAttributes(Hashtable attributeList,
Hashtable attrsToMatch) |
static EntityResult |
paramActionsToEntityResult(List paramActions) |
public static List findEventsByType(IRules rules, String type)
type. If type is "" or null returns
all events for these rules.public static List findEventsByField(IRules rules, String field)
type and field. If type
is "" or null returns all events for these rules.public static List findEventsByFieldAndType(IRules rules, String field, String type)
type and field. If type
is "" or null returns all events for these rules.public static List findActionsByEvent(IEvent event, String actionId)
actionType in Event. If actionType
is "" or null returns all actions for this event. This method does not
take account conditions.public static List findActionsByTypeAndField(IRules rules, String eventType, Hashtable filterEvents, String eventField, String actionType)
actionType in Event. If actioType is "" or null returns all
actions matching this eventType and eventField. This method does not take
account conditions.public static EntityResult paramActionsToEntityResult(List paramActions)
public static List entityResultToParamActions(EntityResult erActions)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.