handle_obs_conditions_changes_act.txt 464 Bytes
@startuml

title Handle observation conditions changes

(*) --> "Get PLC status in DB"
	--> "Get all OBS and TBP sequences"
	--> "Compare each sequence requirements to obs conditions"
	--> if "Sequence is observable"
		--> [True] "Set sequence status to OBS"
		--> ===1===
	else
		--> [False] "Set sequence status to TBP"
		--> ===1===
	endif
	--> if "At least one sequence's status changed"
		--> [Yes] "Start scheduling"
		--> (*)
	else
		--> (*)
	endif

@enduml