# sudo_reopener

Name sudo_reopener
Type panel
Version 1.0
Since 2020-04-24

# Prologue

Sudo reopener allows anyone with permissions reopen already completed process.

# Preview

# Configuration

sudo_reopener:
	render: {width: 6}
	config:

		# Optional | Default - null => without confirmation
		# Shows confirm box before action is performed
		confirm: "Really? Think about it!"

		ui:
			# Required
			# Button's title
			title: "Make me a boss"

			# Optional | Default - null
			description: "Set yourself as a boss, but be careful!"

			# Optional | Default - null => blue default color
			# Css colors
			color: green

		# Required
		# Defines process step where to go after click
		step: lets_talk

		# Optional | Default - []]
		# Custom callbacks attached to this action button
		callbacks:
			wall_writer:
				config:
					expression: '"Process " ~_process.id~ " reopened"'
					severity: 1
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

Rules & laws

  • there will be no event called on target step
    • there is no transition between current and target step, so it's only internal change
  • callbacks will be trigger in context of target step
    • at first, we change active step and then trigger callbacks