# Panel (process_list)

Process list renders formatted list of processes

# Screenshots

process_list

# Config

process_list:

	config:

		# Filter processes
		filter:

			# Sort processes
			sort:

				# Optional | Type: string | Default: process
				# Sort field
				#
				### Examples
				### - process
				### - modified
				### - step
				### - expiration
				### - resolver
				### - creator
				### - start
				### - plan
				### - async
				field: "modified"

				# Optional | Type: string | Default: asc
				# Sort direction
				direction: "desc"

			# Required | Type: mixed[] | Default: []
			# Inbox criteria to filter processes by
			#
			### Examples
			### - {"id": 555}
			### - {"process": [12]}
			### - {"!process": [13]}
			### - {"creator": 44}
			### - {"!creator": 15}
			### - {"expiration": "2020-05-05"}
			### - {">expiration": "2020-05-05"}
			### - {"<expiration": "2020-05-05"}
			### - {"expirationRelative": "2020-05-05"}
			### - {">expirationRelative": "2020-05-05"}
			### - {"<expirationRelative": "2020-05-05"}
			### - {"start": "2020-05-05"}
			### - {">start": "2020-05-05"}
			### - {"<start": "2020-05-05"}
			### - {"startRelative": "2020-05-05"}
			### - {">startRelative": "2020-05-05"}
			### - {"<startRelative": "2020-05-05"}
			### - {"processState": 2} (1 - pending, 2 - active, 10 - complete)
			### - {"!processState": 2}
			### - {"stepState": 2} (1 - pending, 2 - active, 10 - complete)
			### - {"!stepState": 2}
			### - {"resolver": [6]}
			### - {"!resolver": [6]}
			### - {"possibleResolver": 4}
			### - {"reader": 4}
			### - {"supervisor": 4}
			### - {"tag": vip}
			### - {"!tag": vip}
			### - {"stepType": [1,3]} (1 - start, 2 - manual, 3 - auto, 4 - async, 7 - summary, 8 - end user, 9 - end)
			### - {"!stepType": [1,3]}
			### - {"stepName": "step name"}
			### - {"!stepName" "step name"}
			### - {"expired": "2020-05-05"}
			### - {"file": 0}
			### - {"calendarFrom": "2020-05-05"}
			### - {"calendarTo": "2020-05-05"}
			### - {"variables": {variable:"with", "!variable":"{$__user->id}"}
			### - {"fulltext":"hello world"}
			criteria: []

			# Optional | Type: int|null | Default: null
			# Limit processes
			#
			### Note
			### Limit processes number or null for no limit
			limit: 20

			# Optional | Type: int | Default: 0
			# Skip first x processes
			offset: 0

			# Optional | Type: bool | Default: true
			# Apply ACL for current logged user
			acl: true

			# Optional | Type: bool | Default: false
			# Allow current process
			self: false

		# UI
		ui:

			# Required | Type: string | Default: null
			# Row content representing a step
			#
			### Note
			### Content is defined as lattenizer expression. There are `$_process` and `$_step` variables available.
			content: """
				{syntax off}
				<div class="flex items-center w-full max-w-xl p-2 -mx-2 hover:bg-gray-100">
					<span class="w-16 font-medium leading-tight text-left text-gray-700">#{$_process->id}</span>
					<span class="flex-1 pr-4 font-bold leading-tight">{$_process->templateProcess->name}</span>
					<span class="flex-1 pr-4 font-medium leading-tight text-gray-700">{$_step->templateStep->title}</span>
				</div>
			"""

			# Optional | Type: string | Default: No processes found.
			# No processes found placeholder
			placeholder: "No processes found."

			# Optional | Type: string | Default: null
			# Panel title
			title: "Panel title"

			# Optional | Type: string | Default: null
			# Panel description
			description: "Panel description"
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120