Skip to main content

Function: isReliefCommand()

isReliefCommand(command, lease): boolean

True for a command that answers work the service already granted (BP7, CX2): a RECORD_LOCAL_ACTIVITY of a granted local activity, ACCEPT_UPDATE or REJECT_UPDATE of an update the lease delivered, and every COMPLETE_UPDATE (it can only finish an update the run accepted, which eventsForCommands checks against the history). Such commands are accepted even when the flag that enables new requests of their kind is off, so turning a flag off never strands work that was already started.

Parameters​

command​

WorkflowCommand

lease​

CommandRelief

Returns​

boolean