commerce_order.workflows.yml 2.08 KB
Newer Older
1
2
order_default:
  id: order_default
3
  group: commerce_order
4
  label: 'Default'
5
  states:
6
7
8
9
10
11
12
13
14
15
16
17
18
19
    draft:
      label: Draft
    completed:
      label: Completed
    canceled:
      label: Canceled
  transitions:
    place:
      label: 'Place order'
      from: [draft]
      to: completed
    cancel:
      label: 'Cancel order'
      from: [draft]
20
      to: canceled
21

22
23
order_default_validation:
  id: order_default_validation
24
  group: commerce_order
25
26
27
28
29
30
31
32
33
34
35
36
37
38
  label: 'Default, with validation'
  states:
    draft:
      label: Draft
    validation:
      label: Validation
    completed:
      label: Completed
    canceled:
      label: Canceled
  transitions:
    place:
      label: 'Place order'
      from: [draft]
39
      to: validation
40
41
42
43
44
45
46
    validate:
      label: 'Validate order'
      from: [validation]
      to: completed
    cancel:
      label: 'Cancel order'
      from: [draft, validation]
47
      to: canceled
48

49
50
order_fulfillment:
  id: order_fulfillment
51
  group: commerce_order
pcambra's avatar
pcambra committed
52
  label: 'Fulfillment'
53
54
55
56
57
58
59
60
61
62
63
64
65
  states:
    draft:
      label: Draft
    fulfillment:
      label: Fulfillment
    completed:
      label: Completed
    canceled:
      label: Canceled
  transitions:
    place:
      label: 'Place order'
      from: [draft]
66
      to: fulfillment
67
68
69
70
71
72
73
    fulfill:
      label: 'Fulfill order'
      from: [fulfillment]
      to: completed
    cancel:
      label: 'Cancel order'
      from: [draft, fulfillment]
74
      to: canceled
75

76
77
order_fulfillment_validation:
  id: order_fulfillment_validation
78
  group: commerce_order
pcambra's avatar
pcambra committed
79
  label: 'Fulfillment, with validation'
80
81
82
  states:
    draft:
      label: Draft
83
84
85
    validation:
      label: Validation
    fulfillment:
86
      label: Fulfillment
87
88
89
90
91
    completed:
      label: Completed
    canceled:
      label: Canceled
  transitions:
92
93
94
    place:
      label: 'Place order'
      from: [draft]
95
      to: validation
96
    validate:
97
      label: 'Validate order'
98
      from: [validation]
99
      to: fulfillment
100
    fulfill:
101
      label: 'Fulfill order'
102
103
104
      from: [fulfillment]
      to: completed
    cancel:
105
106
      label: 'Cancel order'
      from: [draft, validation, fulfillment]
107
      to: canceled