Skip to content

NoUserTaskTrigger

A trigger that triggers only if a UserTask with taskName is NOT already on the task list.

Typically used to make sure that a specific task is always on the task list. The NoUserTaskTriggerExecutor checks immediately on resume and then once per minute, re-adding the task whenever it is done or expired.

Inheritance
Annotations

Constructors

NoUserTaskTrigger.fromJson

NoUserTaskTrigger.fromJson(
  1. Map<String, dynamic> json
)

NoUserTaskTrigger

NoUserTaskTrigger({
  1. required String taskName,
})

Creates a NoUserTaskTrigger that triggers if taskName is not on the task list.

Properties

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

taskName

String taskName
getter/setter pair

The name of the task to look for, matching TaskConfiguration.name.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.