bobocep.cep.action.common.multi.BoboActionMultiSequential

class bobocep.cep.action.common.multi.BoboActionMultiSequential(name: str, actions: List[bobocep.cep.action.action.BoboAction], stop_on_fail: bool, *args, **kwargs)[source]

Bases: bobocep.cep.action.common.multi.BoboActionMulti

An abstract sequential multi action.

__init__(name: str, actions: List[bobocep.cep.action.action.BoboAction], stop_on_fail: bool, *args, **kwargs)[source]
Parameters
  • name – The action name.

  • actions – The list of actions to execute.

  • stop_on_fail – If True, the multi-action stops processing its action list if its current action fails. If False, it continues to process its remaining actions. Note: failure of any action in its list will cause the multi-action’s success to be False.

  • args – Action arguments.

  • kwargs – Action keyword arguments.

execute(event: bobocep.cep.event.complex.BoboEventComplex) Tuple[bool, List[Tuple[bool, Any]]][source]
Parameters

event – The complex event that triggered the action.

Returns

A tuple containing: whether all actions were successful; and a list of the output from each individual action.

property name: str
Returns

Action name.