--- alias: user-guide-business-workflow-task-create-notification render_macros: false description: "This task creates notifications triggered by resource state changes, defining conditions and actions" --- # Create Notification The task allows the user to Create a Notification. ![Screenshot showing a business workflow task for creating a notification.](images/business_workflow_task_create_notification.png) ??? example "Example" Trigger: - Task Name: `Resource.ChangeState.Post` - Meaning: After a Resource changes state. Condition: - Input Expression: `{{$ResourceChangeStatePost_1.Resource.Type=="Critical" && $ResourceChangeStatePost_1.NewState=="Unscheduled Down"}}` - Meaning: If the Resource that changed state was of Type `"Critical"` and it transitioned to the `"Unscheduled Down"` state. Action: - Settings: - Name: [Empty] - Type: General - Title: Resource is Down - Details: A Critical Resource is down! - Severity: Warning - Assignment: Everyone - Applicable Filter: Resource - Mode: Manual Single User - Input (for resource): Packer-01 - Meaning: A notification with the configured settings will appear in the Resource Packer-01 Resource View, whenever a Resource of type Critical transitions to Unscheduled Down state. ## Behavior The user will define the same values available when creating a notification. ## Settings | Name | Data Type | Description | | ------------------------------- | ------------------- | ----------------------------------------------------------------------------------------- | | `Name` | `String` | The Notification name | | `Description` | `String` | The Notification description | | `Type` | `LookupTableValue` | The Notification type. The list is taken from the lookup table NotificationType | | `Title` | `String` | The Notification title | | `Details` | `HTML` | The Notification details | | `Severity` | `LookupTableValue` | The Notification severity. The list is taken from the lookup table NotificationSeverity | | `Assignment` | `Enum` | The Notification assignment | | `Employee` | `Employee` | The Notification employee if the Assignment is set to Employee | | `Role` | `Role` | The Notification role if the Assignment is set to Role | | `SendEmailToAssignedParty` | `Boolean` | The Notification setting for the assigned party | | `SendEmailToDistributionList` | `String` | The Notification email distribution list | | `ApplicableFilter` | `Enum` | The Notification visibility filter to be applied | | `Mode` | `Enum` | The Notification clearance mode | | `ValidTo` | `DateTime` | The Notification clearance validity period | ## Inputs | Name | Data Type | Description |Expression| | --------------- | ---------- | ---------------------- |---| | `Facility` | `Facility` | The Facility context |- ``| | `Area` | `Area` | The Area context |- ``| | `Resource` | `Resource` | The Resource context |- ``| | `Step` | `Step` | The Step context |- ``| | `Material` | `Material` | The Material context |- ``| ## Remarks Nothing to add.