class SequenceListener implements CaseChangeListener

The sequence-listener looks for CiviCase XML tags with "". If a change is made to any record in case-type which uses "", then it attempts to add the next step in the sequence.

Methods

singleton(bool $reset = FALSE)

No description

static 
onCaseChange_static( $event)

No description

mixed
onCaseChange( $event)

No description

getSequenceXml(SimpleXMLElement $xml)

Find the ActivitySet which defines the pipeline.

createActivity( $analyzer, $actXML)

No description

Details

at line 21
static SequenceListener singleton(bool $reset = FALSE)

Parameters

bool $reset Whether to forcibly rebuild the entire container.

Return Value

SequenceListener

at line 31
static onCaseChange_static( $event)

Parameters

$event

at line 41
mixed onCaseChange( $event)

Parameters

$event

Return Value

mixed

Exceptions

CiviCRM_API3_Exception

at line 90
SimpleXMLElement|NULL getSequenceXml(SimpleXMLElement $xml)

Find the ActivitySet which defines the pipeline.

Parameters

SimpleXMLElement $xml

Return Value

SimpleXMLElement|NULL

at line 112
createActivity( $analyzer, $actXML)

Parameters

$analyzer The case being analyzed -- to which we want to add an activity.
$actXML the tag which describes the new activity