# discussion_writer

Name discussion_writer
Type callback
Version 1.0
Since 2020-01-01

# Prologue

Inserts new comment to process discussion.

# Configuration

events:

	# Event's name
	on_step_start:

		# Callback's name
		discussion_writer:
			config:

				# Required
				# Comment message with full latte support
				comment: "Customer #{$customer_id} was processed."

				# Optional | Default - active step resolver or process creator
				# Accepts integer with user id or use LPL to provide user id (f.e. users[0], user_id etc.)
				# LPL support
				creator: user_id

				# Optional | Default - normal (possible values: normal | system)
				# Writes normal or system type message to discussion.
				type: normal

				# Optional | Default - {}
				# Configure notification
				notification:

					# Optional | Default - true
					# Enables/disables all notifications
					enabled: false

					# Optional | Default - null
					# Change mail subject
					# Full lattenizer support
					# There is special variable available:
					# {$_discussion} with two properties: comment and author
					subject: "New message in process #{$_process->id} from {$_discussion->author->fullname}"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36