# process_starter

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

# Prologue

Useful callback to start as many processes as you wish.

# Configuration

Each configuration could be scalar or variables which will be resolved via LPL.

events:

	# Event's name
	on_step_end:

		#  Callback's name
		process_starter:
			config:

				# Required
				# Template from the new process will be created
				template: 6
				template: variable.template

				# Required
				# Creator of the new process
				creator: null # means step resolver
				creator: 6
				creator: user.id

				# Optional
				# Parent variable to store references of created processes (subprocesses)
				reference: "'processes'"

				# Optional
				# Number of movements (next-clicks) on the new process
				next: 2
				next: nextMoves

				# Optional
				# Attache tags onto the new process
				tags: ["'vip'"]
				tags: parentTags

				# Optional
				# Replace users in the roles in the new process
				roles:
					technician: [4,44,6]
					admin: 2
					webmaster: customer.webmasters

				# Optional
				# Data for the new process
				# Hint: keys are variable names of subprocess, values are scalar values or variables from mother 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

# 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]
	admin: 2
	webmaster: customer.webmasters
1
2
3
4

In this example it starts 3 processes with user 4, 44 and 6 in technician role.