AQL functions for state

Слайд 2

instruction-aggregate-state(instruction_identifier)
Returns the aggregated state of the given INSTRUCTION as a String
current-state(activity_identifier)

instruction-aggregate-state(instruction_identifier) Returns the aggregated state of the given INSTRUCTION as a String

Returns the current state of the given ACTIVITY as a String

Two functions for state

Слайд 3

Examples

SELECT i
FROM INSTRUCTION i
WHERE instruction-aggregate-state(i) = 'ACTIVE'

SELECT ac
FROM INSTRUCTION i

Examples SELECT i FROM INSTRUCTION i WHERE instruction-aggregate-state(i) = 'ACTIVE' SELECT ac
CONTAINS ACTIVITY ac
WHERE current-state(ac) = 'ACTIVE'

Слайд 4

PRE-ACTIVE
initial state
No activity in active, inactive or terminated state
ACTIVE
At least one Activity

PRE-ACTIVE initial state No activity in active, inactive or terminated state ACTIVE
is active
INACTIVE
All Activities are inactive
TERMINATED
All Activities are terminated (completed, cancelled, aborted )

INSTRUCTION AGGREGATED STATE

Слайд 5

ACTIVITY – CURRENT STATE




ACTIVITY – CURRENT STATE Returns the ‘rubric’ of the instruction states terminology









Returns the ‘rubric’ of the instruction states terminology