# Callback (process_starter)

Start new processes (subprocesses)

# Description

# Multiple

To start more process just mark the role name with * at the end. It starts as much processes as much is users in the technician role and each process will contain 1 user in technician role.

roles: technician*: [4,44,6] # starts 3 processes with user 4, 44 and 6 in technician role

# Config

process_starter:

	config:

		# Required | Type: int | Default: null
		# ID of template from which will be new process created
		#
		### Examples
		### - {output($variable["template"])}
		template: 6

		# Required | Type: int | Default: null
		# ID of user which should be used as process creator
		#
		### Examples
		### - null
		### - 6
		### - {output($__user->id)}
		creator: "By default is step resolver used"

		# Optional | Type: int | Default: 0
		# Number of movements (next-clicks) on the new process
		next: 2

		# Optional | Type: string | Default: null
		# Actual (parent) process variable to store references of created processes (subprocesses)
		reference: "myvar"

		# Optional | Type: array | Default: []
		# Attach tags onto the new process
		tags: ["foo", "bar"]

		# Optional | Type: array | Default: []
		# Replace users in the roles in the new process
		#
		### Note
		### There is special meaning of *
		roles: null

		# Optional | Type: array | Default: []
		# Set data into variables of the new process
		#
		### Note
		### Keys are variable names of the new process, values are raw data (with possible use of expressions to e.g get data from parent process.
		variables: {
			text: "some static text"
			customer:
				name: {$customers[0]->name}
		}
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