UserTaskTrigger
A trigger that triggers when a UserTask reaches a given state.
Use it to chain tasks, e.g. start a sensing task when a survey is done.
- Inheritance
-
- Object
- Serializable
- TriggerConfiguration
- UserTaskTrigger
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
UserTaskTrigger.fromJson
UserTaskTrigger
- required String taskName,
- UserTaskState triggerCondition = UserTaskState.done,
Creates a UserTaskTrigger.
Properties
fromJsonFunction
The function which can convert a JSON string to an object of this type.
taskName
getter/setter pair
The name of the task to look for, matching TaskConfiguration.name.
triggerCondition
getter/setter pair
The user task state that fires this trigger. Default is UserTaskState.done.
Methods
toJson
Return a JSON encoding of this object.