trabajo-afectivo/db/seeds/core_workflow.rb

63 lines
1.4 KiB
Ruby

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
CoreWorkflow.create_if_not_exists(
name: 'base - hide pending time on non pending states',
object: 'Ticket',
condition_saved: {
'custom.module': {
operator: 'match all modules',
value: [
'CoreWorkflow::Custom::PendingTime',
],
},
},
perform: {
'custom.module': {
execute: ['CoreWorkflow::Custom::PendingTime']
},
},
changeable: false,
created_by_id: 1,
updated_by_id: 1,
)
CoreWorkflow.create_if_not_exists(
name: 'base - admin sla options',
object: 'Sla',
condition_saved: {
'custom.module': {
operator: 'match all modules',
value: [
'CoreWorkflow::Custom::AdminSla',
],
},
},
perform: {
'custom.module': {
execute: ['CoreWorkflow::Custom::AdminSla']
},
},
changeable: false,
created_by_id: 1,
updated_by_id: 1,
)
CoreWorkflow.create_if_not_exists(
name: 'base - core workflow',
object: 'CoreWorkflow',
condition_saved: {
'custom.module': {
operator: 'match all modules',
value: [
'CoreWorkflow::Custom::AdminCoreWorkflow',
],
},
},
perform: {
'custom.module': {
execute: ['CoreWorkflow::Custom::AdminCoreWorkflow']
},
},
changeable: false,
created_by_id: 1,
updated_by_id: 1,
)