ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a956f83d-93be-0d5a-51b9-0d0b64fc4776"], ["created_at", "2017-04-15 18:57:52.794609"], ["updated_at", "2017-04-15 18:57:52.794609"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11431], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "f6ad4791-2c6e-7428-d7c4-ab90b0d383eb"], ["created_at", "2017-04-15 18:57:52.809744"], ["updated_at", "2017-04-15 18:57:52.809744"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#index as HTML Parameters: {"process_template_id"=>"11431"} RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11431]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 24ms (Views: 8.0ms | ActiveRecord: 0.4ms) RailsWorkflow::OperationTemplate Load (0.5ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11431]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4bd492f9-f97c-697f-7c73-bb4f58f21371"], ["created_at", "2017-04-15 18:57:52.845856"], ["updated_at", "2017-04-15 18:57:52.845856"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11432], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "e6970db2-9ca9-3632-c7ef-c4ef9c87f326"], ["created_at", "2017-04-15 18:57:52.848422"], ["updated_at", "2017-04-15 18:57:52.848422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#show as HTML Parameters: {"process_template_id"=>"11432", "id"=>"10305"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10305]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11432]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "55381fe7-e1ce-cb2c-1f9c-5c59bc476e7b"], ["created_at", "2017-04-15 18:57:52.867362"], ["updated_at", "2017-04-15 18:57:52.867362"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6e6dce1e-9f23-7095-ce93-e7d73f03bb9a"], ["created_at", "2017-04-15 18:57:52.869665"], ["updated_at", "2017-04-15 18:57:52.869665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#new as HTML Parameters: {"process_template_id"=>"11434"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11434]] Unpermitted parameter: process_template_id Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 7ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5faaab29-f2f8-aa8d-2055-e8b51097d55a"], ["created_at", "2017-04-15 18:57:52.885528"], ["updated_at", "2017-04-15 18:57:52.885528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11435], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "feb827e2-20ef-374d-f667-d3b28855e4eb"], ["created_at", "2017-04-15 18:57:52.887746"], ["updated_at", "2017-04-15 18:57:52.887746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#edit as HTML Parameters: {"process_template_id"=>"11435", "id"=>"10306"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10306]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11435]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/edit.html.slim within layouts/rails_workflow/application (0.4ms) Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "fc8737c8-6623-ed2a-f09b-90703be62a0d"], ["created_at", "2017-04-15 18:57:52.907073"], ["updated_at", "2017-04-15 18:57:52.907073"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11436", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11436"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11436]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 11436], ["uuid", "e0738f05-9dfd-4982-4894-483c09d81d5d"], ["created_at", "2017-04-15 18:57:52.919561"], ["updated_at", "2017-04-15 18:57:52.919561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11436/operation_templates Completed 302 Found in 8ms (ActiveRecord: 1.0ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11436]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f95d8137-1a51-48db-2695-4b557b7752a0"], ["created_at", "2017-04-15 18:57:52.929841"], ["updated_at", "2017-04-15 18:57:52.929841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate') Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11437", "type"=>"RailsWorkflow::CustomOperationTemplate"}, "process_template_id"=>"11437"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11437]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 11437], ["uuid", "24956bd3-639d-762d-b38d-d31425487e0a"], ["created_at", "2017-04-15 18:57:52.952515"], ["updated_at", "2017-04-15 18:57:52.952515"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11437/operation_templates Completed 302 Found in 21ms (ActiveRecord: 1.1ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "95ac11a3-145f-8ff4-9645-ff7736c0617c"], ["created_at", "2017-04-15 18:57:52.962760"], ["updated_at", "2017-04-15 18:57:52.962760"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11438", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11438"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11438]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 11438], ["uuid", "07ed42a9-793f-e56a-a294-b46101c8824c"], ["created_at", "2017-04-15 18:57:52.972781"], ["updated_at", "2017-04-15 18:57:52.972781"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11438/operation_templates Completed 302 Found in 8ms (ActiveRecord: 1.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d0b72cd3-dd11-e8ff-7017-171201197ed3"], ["created_at", "2017-04-15 18:57:52.980271"], ["updated_at", "2017-04-15 18:57:52.980271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11439", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11439"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11439]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 11439], ["uuid", "81fce8a6-e018-8235-30d8-27ff98e1012f"], ["created_at", "2017-04-15 18:57:52.989051"], ["updated_at", "2017-04-15 18:57:52.989051"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11439/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.9ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "17129881-ace3-6588-a989-65a31b207c0b"], ["created_at", "2017-04-15 18:57:53.000678"], ["updated_at", "2017-04-15 18:57:53.000678"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "54200ce0-43c1-9d6d-3d2e-77bbe8542dc9"], ["created_at", "2017-04-15 18:57:53.005178"], ["updated_at", "2017-04-15 18:57:53.005178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "530cb2df-8d7a-74ab-95a6-c6d4a699022f"], ["created_at", "2017-04-15 18:57:53.009562"], ["updated_at", "2017-04-15 18:57:53.009562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11442], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "c9973600-a4cd-629c-4e66-5280bf7861be"], ["created_at", "2017-04-15 18:57:53.011754"], ["updated_at", "2017-04-15 18:57:53.011754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7a71a9c4-aff7-0246-9f2c-adb80462dedc"], ["created_at", "2017-04-15 18:57:53.015831"], ["updated_at", "2017-04-15 18:57:53.015831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11443], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "0b42bc20-e3c7-eee9-caac-8adf9adbc458"], ["created_at", "2017-04-15 18:57:53.017987"], ["updated_at", "2017-04-15 18:57:53.017987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11443", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11443", "id"=>"10312"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10312]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11443]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11443/operation_templates Completed 302 Found in 8ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e87877a6-2634-ba4f-c154-06eb45581c99"], ["created_at", "2017-04-15 18:57:53.035093"], ["updated_at", "2017-04-15 18:57:53.035093"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11444], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "a81dee73-0ce8-f550-a393-427c654b30e9"], ["created_at", "2017-04-15 18:57:53.037781"], ["updated_at", "2017-04-15 18:57:53.037781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11444", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11444", "id"=>"10313"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10313]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11444]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11444/operation_templates Completed 302 Found in 7ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "de2baeec-3b8f-d037-9f4b-0fc787a8387b"], ["created_at", "2017-04-15 18:57:53.055484"], ["updated_at", "2017-04-15 18:57:53.055484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11445], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "0db71242-4c6b-b49e-33fc-37821243bc48"], ["created_at", "2017-04-15 18:57:53.057669"], ["updated_at", "2017-04-15 18:57:53.057669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e8aed74e-114d-8ebd-1428-bf69d1a849f7"], ["created_at", "2017-04-15 18:57:53.062426"], ["updated_at", "2017-04-15 18:57:53.062426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11446], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "564fd16f-1511-9a7f-f3e2-cdcc6a1e9b15"], ["created_at", "2017-04-15 18:57:53.064564"], ["updated_at", "2017-04-15 18:57:53.064564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "35832d83-025a-f23c-94e7-8e215272df51"], ["created_at", "2017-04-15 18:57:53.068569"], ["updated_at", "2017-04-15 18:57:53.068569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11447], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "3e3b312d-9d0a-13ce-d7a8-a5928df8fcf9"], ["created_at", "2017-04-15 18:57:53.070582"], ["updated_at", "2017-04-15 18:57:53.070582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11447]] Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"11447", "id"=>"10316"} RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10316]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11447]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 10316]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11447/operation_templates Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f8507cfd-8f33-a800-15d5-8600e8945b06"], ["created_at", "2017-04-15 18:57:53.088886"], ["updated_at", "2017-04-15 18:57:53.088886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11448], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "e2724f6c-9c59-9e14-f5d3-6e3f86c5bf11"], ["created_at", "2017-04-15 18:57:53.091790"], ["updated_at", "2017-04-15 18:57:53.091790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"11448", "id"=>"10317"} RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10317]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11448]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 10317]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11448/operation_templates Completed 302 Found in 7ms (ActiveRecord: 1.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "rails_workflow_operations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "306fe486-34b9-9693-d8e0-98400a511511"], ["created_at", "2017-04-15 18:57:53.133441"], ["updated_at", "2017-04-15 18:57:53.133441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (0.3ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "a02869c1-d6a5-806f-3e68-840f3807b14e"], ["created_at", "2017-04-15 18:57:53.146686"], ["updated_at", "2017-04-15 18:57:53.146686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#show as HTML Parameters: {"id"=>"11450"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11450]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "bdf15797-5fd4-5883-1212-b8b8497595d8"], ["created_at", "2017-04-15 18:57:53.171218"], ["updated_at", "2017-04-15 18:57:53.171218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#edit as HTML Parameters: {"id"=>"11451"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11451]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "5cbda319-e105-ecd8-b900-5fab8c33bf93"], ["created_at", "2017-04-15 18:57:53.192958"], ["updated_at", "2017-04-15 18:57:53.192958"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11452/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.4ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "2d5cd0a0-afcf-ea60-0155-7eda6a2cb01f"], ["created_at", "2017-04-15 18:57:53.204862"], ["updated_at", "2017-04-15 18:57:53.204862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11453/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "cff5ee78-6d44-ff9c-c940-9e10cbc349ea"], ["created_at", "2017-04-15 18:57:53.230966"], ["updated_at", "2017-04-15 18:57:53.230966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11454/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.5ms) RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "bfe3c311-6e71-6078-98d9-812f0035a56f"], ["created_at", "2017-04-15 18:57:53.244157"], ["updated_at", "2017-04-15 18:57:53.244157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "68bdc023-eaf9-a6db-6846-c465b1324736"], ["created_at", "2017-04-15 18:57:53.248045"], ["updated_at", "2017-04-15 18:57:53.248045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"11456"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11456]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11456 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "e270b178-13c8-cbee-5ded-2f132509339b"], ["created_at", "2017-04-15 18:57:53.261750"], ["updated_at", "2017-04-15 18:57:53.261750"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"11457"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11457]] Unpermitted parameter: id  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11457 Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "c606d8dc-fe14-42f8-9429-73e8c3333e57"], ["created_at", "2017-04-15 18:57:53.277974"], ["updated_at", "2017-04-15 18:57:53.277974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "5313d7d7-5c00-a8fa-fe6e-bf3463f02238"], ["created_at", "2017-04-15 18:57:53.282156"], ["updated_at", "2017-04-15 18:57:53.282156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "adc1ef39-5a5e-f89d-67ba-4e776771dee1"], ["created_at", "2017-04-15 18:57:53.285898"], ["updated_at", "2017-04-15 18:57:53.285898"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"11460"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11460]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 11460]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 6ms (ActiveRecord: 1.1ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "1c315100-e1d3-10c8-1bd1-5ad547c76589"], ["created_at", "2017-04-15 18:57:53.301759"], ["updated_at", "2017-04-15 18:57:53.301759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"11461"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11461]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 11461]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0333c7ec-9c6b-31dd-0f02-a564771be9ec"], ["created_at", "2017-04-15 18:57:53.317067"], ["updated_at", "2017-04-15 18:57:53.317067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11462], ["created_at", "2017-04-15 18:57:53.325006"], ["updated_at", "2017-04-15 18:57:53.325006"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#index as HTML  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.4ms)  select status, cnt from ( select row_number() over (partition by status), count(*) over (partition by status) cnt, status from rails_workflow_processes)t where row_number = 1  Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 10ms (Views: 4.0ms | ActiveRecord: 0.9ms) RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" ASC LIMIT 30 OFFSET 0  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "115b11ee-2f4d-f3ba-15d4-8643196cfdb3"], ["created_at", "2017-04-15 18:57:53.345959"], ["updated_at", "2017-04-15 18:57:53.345959"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11463], ["created_at", "2017-04-15 18:57:53.348488"], ["updated_at", "2017-04-15 18:57:53.348488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#show as HTML Parameters: {"id"=>"5174"} RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5174]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0ae48db0-f12d-b0ef-f890-76f7fe401256"], ["created_at", "2017-04-15 18:57:53.366113"], ["updated_at", "2017-04-15 18:57:53.366113"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2013393a-87d7-95c6-4f42-6737e62069ff"], ["created_at", "2017-04-15 18:57:53.375629"], ["updated_at", "2017-04-15 18:57:53.375629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11465], ["created_at", "2017-04-15 18:57:53.377791"], ["updated_at", "2017-04-15 18:57:53.377791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#edit as HTML Parameters: {"id"=>"5175"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5175]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5466a4d4-7094-20f1-02ab-510cc9556dc8"], ["created_at", "2017-04-15 18:57:53.393876"], ["updated_at", "2017-04-15 18:57:53.393876"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_processes" Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11466"}} SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11466]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11466) [["id", 11466]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11466], ["created_at", "2017-04-15 18:57:53.410659"], ["updated_at", "2017-04-15 18:57:53.410659"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:57:53.413098"], ["id", 5176]] SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5176], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 18:57:53.422242"], ["updated_at", "2017-04-15 18:57:53.422242"]] RailsWorkflow::Context Load (0.4ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5176], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5176]] Redirected to http://test.host/workflow/processes/5176 Completed 302 Found in 32ms (ActiveRecord: 4.4ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e55ed89a-09cb-c4b5-8677-fffd24da6034"], ["created_at", "2017-04-15 18:57:53.434651"], ["updated_at", "2017-04-15 18:57:53.434651"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11467"}} SQL (0.5ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11467]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11467) [["id", 11467]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11467], ["created_at", "2017-04-15 18:57:53.444611"], ["updated_at", "2017-04-15 18:57:53.444611"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:57:53.446665"], ["id", 5177]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5177], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 18:57:53.448695"], ["updated_at", "2017-04-15 18:57:53.448695"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5177], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5177]] Redirected to http://test.host/workflow/processes/5177 Completed 302 Found in 15ms (ActiveRecord: 3.4ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "61a07680-758e-c130-4eb2-5cedcba2d48a"], ["created_at", "2017-04-15 18:57:53.457414"], ["updated_at", "2017-04-15 18:57:53.457414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11468"}} SQL (0.5ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11468]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11468) [["id", 11468]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11468], ["created_at", "2017-04-15 18:57:53.466380"], ["updated_at", "2017-04-15 18:57:53.466380"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:57:53.468359"], ["id", 5178]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5178], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 18:57:53.470374"], ["updated_at", "2017-04-15 18:57:53.470374"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5178], ["parent_type", "RailsWorkflow::Process"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5178]] Redirected to http://test.host/workflow/processes/5178 Completed 302 Found in 15ms (ActiveRecord: 3.4ms) RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" DESC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "676fe1bd-6c93-6c73-a2cc-66e6262e7cb5"], ["created_at", "2017-04-15 18:57:53.483874"], ["updated_at", "2017-04-15 18:57:53.483874"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "eca2822e-9808-1de8-85af-0f93a7173af6"], ["created_at", "2017-04-15 18:57:53.487541"], ["updated_at", "2017-04-15 18:57:53.487541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0b80eba5-4e21-aa92-2406-7231d0cb64f7"], ["created_at", "2017-04-15 18:57:53.490948"], ["updated_at", "2017-04-15 18:57:53.490948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11471], ["created_at", "2017-04-15 18:57:53.492687"], ["updated_at", "2017-04-15 18:57:53.492687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4288c79d-8e59-bc22-62fe-35e45500f697"], ["created_at", "2017-04-15 18:57:53.496014"], ["updated_at", "2017-04-15 18:57:53.496014"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11472], ["created_at", "2017-04-15 18:57:53.497892"], ["updated_at", "2017-04-15 18:57:53.497892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11472"}, "id"=>"5180"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5180]] Unpermitted parameter: id  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "15eecdb9-3314-4a3c-fa3f-65b4dd41d133"], ["created_at", "2017-04-15 18:57:53.510822"], ["updated_at", "2017-04-15 18:57:53.510822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11473], ["created_at", "2017-04-15 18:57:53.512724"], ["updated_at", "2017-04-15 18:57:53.512724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11473"}, "id"=>"5181"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5181]] Unpermitted parameter: id  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5ea98a08-8baa-168a-996f-297d186bd877"], ["created_at", "2017-04-15 18:57:53.527236"], ["updated_at", "2017-04-15 18:57:53.527236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11474], ["created_at", "2017-04-15 18:57:53.529220"], ["updated_at", "2017-04-15 18:57:53.529220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "64000e6e-589e-44ad-bbdd-6e4d16d76f6d"], ["created_at", "2017-04-15 18:57:53.532648"], ["updated_at", "2017-04-15 18:57:53.532648"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11475], ["created_at", "2017-04-15 18:57:53.534933"], ["updated_at", "2017-04-15 18:57:53.534933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "83ca52f9-87ea-d092-6db4-a3c4e2c259f4"], ["created_at", "2017-04-15 18:57:53.539023"], ["updated_at", "2017-04-15 18:57:53.539023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "55fe2098-1b98-09dd-296b-ffe333725bee"], ["created_at", "2017-04-15 18:57:53.542382"], ["updated_at", "2017-04-15 18:57:53.542382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5a01788b-f416-b9b2-7546-52dee971d42d"], ["created_at", "2017-04-15 18:57:53.545499"], ["updated_at", "2017-04-15 18:57:53.545499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11478], ["uuid", "b627cda1-a05f-b46f-f03f-d4f4abbbef86"], ["created_at", "2017-04-15 18:57:53.547890"], ["updated_at", "2017-04-15 18:57:53.547890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11478], ["dependencies", "[{\"id\":10318,\"statuses\":[2]}]"], ["uuid", "b1d44b08-e71c-83ea-6a3a-d317b07ab94c"], ["created_at", "2017-04-15 18:57:53.550485"], ["updated_at", "2017-04-15 18:57:53.550485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11478]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11478) [["id", 11478]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11478], ["created_at", "2017-04-15 18:57:53.556535"], ["updated_at", "2017-04-15 18:57:53.556535"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:57:53.558438"], ["id", 5184]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5184], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.560457"], ["updated_at", "2017-04-15 18:57:53.560457"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5184], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10318], ["process_id", 5184], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:53.573944"], ["updated_at", "2017-04-15 18:57:53.573944"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5867], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.575840"], ["updated_at", "2017-04-15 18:57:53.575840"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "08d58f70-3ffd-3bbe-ca4c-06ede576dde6"], ["created_at", "2017-04-15 18:57:53.581372"], ["updated_at", "2017-04-15 18:57:53.581372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11479], ["uuid", "403ee36b-5518-5fe9-eb43-7be7137ba53b"], ["created_at", "2017-04-15 18:57:53.583605"], ["updated_at", "2017-04-15 18:57:53.583605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11479], ["dependencies", "[{\"id\":10320,\"statuses\":[2]}]"], ["uuid", "3ef585ed-a93f-0e2f-d163-88046e4546b4"], ["created_at", "2017-04-15 18:57:53.585973"], ["updated_at", "2017-04-15 18:57:53.585973"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11479]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11479) [["id", 11479]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11479], ["created_at", "2017-04-15 18:57:53.591846"], ["updated_at", "2017-04-15 18:57:53.591846"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:57:53.593749"], ["id", 5185]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5185], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.595748"], ["updated_at", "2017-04-15 18:57:53.595748"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5185], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10320], ["process_id", 5185], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:53.599905"], ["updated_at", "2017-04-15 18:57:53.599905"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5868], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.601712"], ["updated_at", "2017-04-15 18:57:53.601712"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f32e8547-b5c7-fbdf-b316-4268c3c14789"], ["created_at", "2017-04-15 18:57:53.606303"], ["updated_at", "2017-04-15 18:57:53.606303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11480], ["uuid", "b241034e-26fe-cde4-c8c4-a8158ac900ba"], ["created_at", "2017-04-15 18:57:53.608558"], ["updated_at", "2017-04-15 18:57:53.608558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11480], ["dependencies", "[{\"id\":10322,\"statuses\":[2]}]"], ["uuid", "67de1e5c-4286-1dc8-e3f6-fe6766ebf3e2"], ["created_at", "2017-04-15 18:57:53.611001"], ["updated_at", "2017-04-15 18:57:53.611001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11480]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11480) [["id", 11480]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11480], ["created_at", "2017-04-15 18:57:53.616388"], ["updated_at", "2017-04-15 18:57:53.616388"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:57:53.618300"], ["id", 5186]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5186], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.620319"], ["updated_at", "2017-04-15 18:57:53.620319"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5186], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10322], ["process_id", 5186], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:53.624020"], ["updated_at", "2017-04-15 18:57:53.624020"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5869], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.625463"], ["updated_at", "2017-04-15 18:57:53.625463"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5186]] RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5186]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4063d482-a86e-4df4-0105-f72ec4de109d"], ["created_at", "2017-04-15 18:57:53.633151"], ["updated_at", "2017-04-15 18:57:53.633151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11481], ["uuid", "5d138177-0552-4b40-f025-56190c999ce7"], ["created_at", "2017-04-15 18:57:53.635522"], ["updated_at", "2017-04-15 18:57:53.635522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11481], ["dependencies", "[{\"id\":10324,\"statuses\":[2]}]"], ["uuid", "a359ec73-b2ef-32d6-4100-f803c0bc8e62"], ["created_at", "2017-04-15 18:57:53.637930"], ["updated_at", "2017-04-15 18:57:53.637930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11481]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11481) [["id", 11481]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11481], ["created_at", "2017-04-15 18:57:53.643416"], ["updated_at", "2017-04-15 18:57:53.643416"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:57:53.645341"], ["id", 5187]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5187], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.647155"], ["updated_at", "2017-04-15 18:57:53.647155"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5187], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10324], ["process_id", 5187], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:53.650789"], ["updated_at", "2017-04-15 18:57:53.650789"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5870], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.652310"], ["updated_at", "2017-04-15 18:57:53.652310"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7149b4ea-0d26-7c89-1d31-79e7519ab434"], ["created_at", "2017-04-15 18:57:53.657201"], ["updated_at", "2017-04-15 18:57:53.657201"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11482], ["uuid", "8b0b3e7e-6082-a0d1-2d97-d58a2063cc18"], ["created_at", "2017-04-15 18:57:53.659825"], ["updated_at", "2017-04-15 18:57:53.659825"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11482], ["dependencies", "[{\"id\":10326,\"statuses\":[2]}]"], ["uuid", "33b269bc-ddd5-c227-5d9c-623df4eda77f"], ["created_at", "2017-04-15 18:57:53.663098"], ["updated_at", "2017-04-15 18:57:53.663098"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11482]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11482) [["id", 11482]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11482], ["created_at", "2017-04-15 18:57:53.669605"], ["updated_at", "2017-04-15 18:57:53.669605"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:57:53.671599"], ["id", 5188]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5188], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.673422"], ["updated_at", "2017-04-15 18:57:53.673422"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5188], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10326], ["process_id", 5188], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:53.677012"], ["updated_at", "2017-04-15 18:57:53.677012"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5871], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.678509"], ["updated_at", "2017-04-15 18:57:53.678509"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5188]] RailsWorkflow::Context Load (0.4ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5871], ["parent_type", "RailsWorkflow::Operation"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e2eb7f65-abef-1999-0019-e1f0ac8cd8b4"], ["created_at", "2017-04-15 18:57:53.699633"], ["updated_at", "2017-04-15 18:57:53.699633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11483], ["uuid", "8664e489-26b6-06b8-3974-3be788683bbd"], ["created_at", "2017-04-15 18:57:53.702015"], ["updated_at", "2017-04-15 18:57:53.702015"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11483], ["dependencies", "[{\"id\":10328,\"statuses\":[2]}]"], ["uuid", "83a1e75a-35db-b09c-920c-968f2a603214"], ["created_at", "2017-04-15 18:57:53.704535"], ["updated_at", "2017-04-15 18:57:53.704535"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11483]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11483) [["id", 11483]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11483], ["created_at", "2017-04-15 18:57:53.710617"], ["updated_at", "2017-04-15 18:57:53.710617"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:57:53.712634"], ["id", 5189]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5189], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.714414"], ["updated_at", "2017-04-15 18:57:53.714414"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5189], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10328], ["process_id", 5189], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:53.717897"], ["updated_at", "2017-04-15 18:57:53.717897"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5872], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.719296"], ["updated_at", "2017-04-15 18:57:53.719296"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c205f8dc-dfc8-eb68-2401-7c0b88b964e3"], ["created_at", "2017-04-15 18:57:53.725226"], ["updated_at", "2017-04-15 18:57:53.725226"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11484], ["uuid", "d586fc8a-90ca-db68-96be-27fcc093ae91"], ["created_at", "2017-04-15 18:57:53.727919"], ["updated_at", "2017-04-15 18:57:53.727919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11484], ["dependencies", "[{\"id\":10330,\"statuses\":[2]}]"], ["uuid", "f66946af-c2ec-64b4-1117-1e5c12bf41b5"], ["created_at", "2017-04-15 18:57:53.730240"], ["updated_at", "2017-04-15 18:57:53.730240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11484]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11484) [["id", 11484]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11484], ["created_at", "2017-04-15 18:57:53.735724"], ["updated_at", "2017-04-15 18:57:53.735724"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:57:53.737754"], ["id", 5190]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5190], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.739730"], ["updated_at", "2017-04-15 18:57:53.739730"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5190], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10330], ["process_id", 5190], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:53.743435"], ["updated_at", "2017-04-15 18:57:53.743435"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5873], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.744806"], ["updated_at", "2017-04-15 18:57:53.744806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:53.747768"], ["id", 5190]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5190], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:53.751211"], ["id", 5873]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [98cc8fad-708f-41c1-aa4f-ce8e5aa21da9] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5873 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [98cc8fad-708f-41c1-aa4f-ce8e5aa21da9] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5873]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [98cc8fad-708f-41c1-aa4f-ce8e5aa21da9]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [98cc8fad-708f-41c1-aa4f-ce8e5aa21da9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [98cc8fad-708f-41c1-aa4f-ce8e5aa21da9] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5873], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [98cc8fad-708f-41c1-aa4f-ce8e5aa21da9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [98cc8fad-708f-41c1-aa4f-ce8e5aa21da9]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [98cc8fad-708f-41c1-aa4f-ce8e5aa21da9] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 5.07ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ef1962b4-67e1-02e7-105b-54fe6313f4a1"], ["created_at", "2017-04-15 18:57:53.761610"], ["updated_at", "2017-04-15 18:57:53.761610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11485], ["uuid", "19467065-0c30-9e51-0cc8-ff29e9727b7a"], ["created_at", "2017-04-15 18:57:53.764011"], ["updated_at", "2017-04-15 18:57:53.764011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11485], ["dependencies", "[{\"id\":10332,\"statuses\":[2]}]"], ["uuid", "8cbeeb80-8aaf-c615-fc93-6968e6ed8200"], ["created_at", "2017-04-15 18:57:53.766394"], ["updated_at", "2017-04-15 18:57:53.766394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11485]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11485) [["id", 11485]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11485], ["created_at", "2017-04-15 18:57:53.772180"], ["updated_at", "2017-04-15 18:57:53.772180"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:57:53.774159"], ["id", 5191]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5191], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.776114"], ["updated_at", "2017-04-15 18:57:53.776114"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5191], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10332], ["process_id", 5191], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:53.779751"], ["updated_at", "2017-04-15 18:57:53.779751"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5874], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.781186"], ["updated_at", "2017-04-15 18:57:53.781186"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:53.784208"], ["id", 5191]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5191], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:53.787449"], ["id", 5874]]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [21b601aa-72bb-49db-aaf6-4feeb3ec4c51] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5874 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [21b601aa-72bb-49db-aaf6-4feeb3ec4c51] RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5874]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [21b601aa-72bb-49db-aaf6-4feeb3ec4c51]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [21b601aa-72bb-49db-aaf6-4feeb3ec4c51]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [21b601aa-72bb-49db-aaf6-4feeb3ec4c51] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5874], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [21b601aa-72bb-49db-aaf6-4feeb3ec4c51]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [21b601aa-72bb-49db-aaf6-4feeb3ec4c51]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [21b601aa-72bb-49db-aaf6-4feeb3ec4c51] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 3.94ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5191]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a5d3834f-3369-e87f-b685-887ae70e0d3d"], ["created_at", "2017-04-15 18:57:53.797281"], ["updated_at", "2017-04-15 18:57:53.797281"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11486], ["uuid", "f4819fa1-35f8-00c1-9cde-4d3ebc968f59"], ["created_at", "2017-04-15 18:57:53.799665"], ["updated_at", "2017-04-15 18:57:53.799665"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11486], ["dependencies", "[{\"id\":10334,\"statuses\":[2]}]"], ["uuid", "5979991e-b4e8-6ccd-f2d2-bd2e1cb650b9"], ["created_at", "2017-04-15 18:57:53.802214"], ["updated_at", "2017-04-15 18:57:53.802214"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11486]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11486) [["id", 11486]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11486], ["created_at", "2017-04-15 18:57:53.807589"], ["updated_at", "2017-04-15 18:57:53.807589"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:57:53.809455"], ["id", 5192]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5192], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.811259"], ["updated_at", "2017-04-15 18:57:53.811259"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5192], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10334], ["process_id", 5192], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:53.814723"], ["updated_at", "2017-04-15 18:57:53.814723"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5875], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.816150"], ["updated_at", "2017-04-15 18:57:53.816150"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:53.819781"], ["id", 5192]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5192], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:53.822979"], ["id", 5875]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5875 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5875]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5875], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:57:53.828009"], ["updated_at", "2017-04-15 18:57:53.828520"], ["id", 5875]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5192]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11486]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11486]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10334]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5192]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10334]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5192], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81] SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:57:53.840958"], ["id", 5192]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5192]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [576201d1-27d6-449c-97ad-44df5ddc1f81] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 20.01ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5192]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 18:57:53.845902"], ["updated_at", "2017-04-15 18:57:53.846578"], ["id", 5875]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10334]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5192]]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5192], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:57:53.852769"], ["id", 5192]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5192]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "19b0708e-5abb-03d1-c850-83b106433aee"], ["created_at", "2017-04-15 18:57:53.857040"], ["updated_at", "2017-04-15 18:57:53.857040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11487], ["uuid", "b133a50b-c855-bde0-9c9a-49c5513d9244"], ["created_at", "2017-04-15 18:57:53.859262"], ["updated_at", "2017-04-15 18:57:53.859262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11487], ["dependencies", "[{\"id\":10336,\"statuses\":[2]}]"], ["uuid", "708c44f2-88b5-034e-4104-e818514e537b"], ["created_at", "2017-04-15 18:57:53.861622"], ["updated_at", "2017-04-15 18:57:53.861622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11487]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11487) [["id", 11487]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11487], ["created_at", "2017-04-15 18:57:53.867245"], ["updated_at", "2017-04-15 18:57:53.867245"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:57:53.869154"], ["id", 5193]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5193], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.871017"], ["updated_at", "2017-04-15 18:57:53.871017"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5193], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10336], ["process_id", 5193], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:53.874553"], ["updated_at", "2017-04-15 18:57:53.874553"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5876], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.875965"], ["updated_at", "2017-04-15 18:57:53.875965"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:53.879101"], ["id", 5193]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5193], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:53.882361"], ["id", 5876]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5876 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5876]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5876], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:57:53.887844"], ["updated_at", "2017-04-15 18:57:53.888351"], ["id", 5876]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5193]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11487]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11487]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10336]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5193]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10336]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10337], ["process_id", 5193], ["status", 0], ["dependencies", "[{\"operation_id\":5876,\"status\":2}]"], ["created_at", "2017-04-15 18:57:53.896677"], ["updated_at", "2017-04-15 18:57:53.896677"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5877], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.898097"], ["updated_at", "2017-04-15 18:57:53.898097"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:53.901504"], ["id", 5877]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5877 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5877]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5877], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:57:53.906056"], ["updated_at", "2017-04-15 18:57:53.906555"], ["id", 5877]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5193]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11487]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11487]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10337]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5193]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10337]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10336]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5193], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442] SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:57:53.915271"], ["id", 5193]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5193]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] [RailsWorkflow::OperationExecutionJob] [f5e13d91-0a2e-4190-bda1-76a266dbf442] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 14.34ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [215dab74-7450-4039-86aa-65686b0ce4a0] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 33.34ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5193]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 18:57:53.918739"], ["updated_at", "2017-04-15 18:57:53.919498"], ["id", 5876]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10336]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5193]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10337]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5193], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:57:53.925742"], ["id", 5193]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5193]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "26a1bbae-1902-9e13-fcb8-933c9d0849b9"], ["created_at", "2017-04-15 18:57:53.929646"], ["updated_at", "2017-04-15 18:57:53.929646"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11488], ["uuid", "72f54463-36a0-3e5d-130c-4fb6b4b1b84f"], ["created_at", "2017-04-15 18:57:53.932247"], ["updated_at", "2017-04-15 18:57:53.932247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11488], ["dependencies", "[{\"id\":10338,\"statuses\":[2]}]"], ["uuid", "4981a1d1-8694-26da-511f-8ec5954c4e43"], ["created_at", "2017-04-15 18:57:53.934588"], ["updated_at", "2017-04-15 18:57:53.934588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11488]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11488) [["id", 11488]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11488], ["created_at", "2017-04-15 18:57:53.940033"], ["updated_at", "2017-04-15 18:57:53.940033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:57:53.941692"], ["id", 5194]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5194], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.943532"], ["updated_at", "2017-04-15 18:57:53.943532"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5194], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10338], ["process_id", 5194], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:53.946939"], ["updated_at", "2017-04-15 18:57:53.946939"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5878], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.948267"], ["updated_at", "2017-04-15 18:57:53.948267"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:53.951404"], ["id", 5194]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5194], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:53.954095"], ["id", 5878]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5878 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5878]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5878], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:57:53.960723"], ["updated_at", "2017-04-15 18:57:53.961424"], ["id", 5878]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5194]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11488]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11488]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10338]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5194]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10338]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10339], ["process_id", 5194], ["status", 0], ["dependencies", "[{\"operation_id\":5878,\"status\":2}]"], ["created_at", "2017-04-15 18:57:53.969089"], ["updated_at", "2017-04-15 18:57:53.969089"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5879], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:53.970391"], ["updated_at", "2017-04-15 18:57:53.970391"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:53.973398"], ["id", 5879]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5879 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5879]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5879], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:57:53.977664"], ["updated_at", "2017-04-15 18:57:53.978168"], ["id", 5879]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5194]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11488]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11488]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10339]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5194]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10339]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10338]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5194], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:57:53.986198"], ["id", 5194]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5194]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] [RailsWorkflow::OperationExecutionJob] [485f6927-1df3-4baa-bc8e-404052e00c88] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 13.17ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [57a01f08-5cd5-4989-936d-5cd1ea784ad3] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 31.69ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5194]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 18:57:53.989431"], ["updated_at", "2017-04-15 18:57:53.990070"], ["id", 5878]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10338]] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5194]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10339]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5194], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:57:53.995880"], ["id", 5194]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5194]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 2], ["created_at", "2017-04-15 18:57:53.946939"], ["updated_at", "2017-04-15 18:57:53.990070"], ["completed_at", "2017-04-15 18:57:53.997804"], ["id", 5878]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "da3363bc-8578-13f8-6b61-d5cfce02fd04"], ["created_at", "2017-04-15 18:57:54.001555"], ["updated_at", "2017-04-15 18:57:54.001555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11489], ["uuid", "8dac4a75-4bcc-6790-b93f-0da9d1802468"], ["created_at", "2017-04-15 18:57:54.003685"], ["updated_at", "2017-04-15 18:57:54.003685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11489], ["dependencies", "[{\"id\":10340,\"statuses\":[2]}]"], ["uuid", "4cfa8ea7-1439-d948-bb68-efc4346a2072"], ["created_at", "2017-04-15 18:57:54.005888"], ["updated_at", "2017-04-15 18:57:54.005888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11489]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11489) [["id", 11489]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11489], ["created_at", "2017-04-15 18:57:54.011159"], ["updated_at", "2017-04-15 18:57:54.011159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:57:54.012967"], ["id", 5195]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5195], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:54.014822"], ["updated_at", "2017-04-15 18:57:54.014822"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5195], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10340], ["process_id", 5195], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:54.018317"], ["updated_at", "2017-04-15 18:57:54.018317"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5880], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:54.019739"], ["updated_at", "2017-04-15 18:57:54.019739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:54.022626"], ["id", 5195]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5195], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:54.025250"], ["id", 5880]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5880 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5880]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5880], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:57:54.030568"], ["updated_at", "2017-04-15 18:57:54.031149"], ["id", 5880]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5195]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11489]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11489]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10340]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5195]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10340]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10341], ["process_id", 5195], ["status", 0], ["dependencies", "[{\"operation_id\":5880,\"status\":2}]"], ["created_at", "2017-04-15 18:57:54.039107"], ["updated_at", "2017-04-15 18:57:54.039107"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5881], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:54.040481"], ["updated_at", "2017-04-15 18:57:54.040481"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:54.043786"], ["id", 5881]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5881 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5881]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5881], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:57:54.048197"], ["updated_at", "2017-04-15 18:57:54.048736"], ["id", 5881]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5195]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11489]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11489]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10341]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5195]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10341]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10340]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5195], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:57:54.063671"], ["id", 5195]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5195]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] [RailsWorkflow::OperationExecutionJob] [2e0b96f7-2c2e-41e9-aada-052264cae4b5] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 20.27ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5669cf18-2457-4342-9a9f-ff92eff5eca1] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 38.84ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5195]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 18:57:54.066760"], ["updated_at", "2017-04-15 18:57:54.067414"], ["id", 5880]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10340]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5195]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10341]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5195], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:57:54.073282"], ["id", 5195]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5195]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 6], ["created_at", "2017-04-15 18:57:54.018317"], ["updated_at", "2017-04-15 18:57:54.067414"], ["completed_at", "2017-04-15 18:57:54.075189"], ["id", 5880]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3f42f8f7-ea3b-d682-84a4-5a0794bce1ae"], ["created_at", "2017-04-15 18:57:54.079730"], ["updated_at", "2017-04-15 18:57:54.079730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11490], ["uuid", "8fce8425-ed72-62f3-9e05-046c5fbdf2de"], ["created_at", "2017-04-15 18:57:54.081875"], ["updated_at", "2017-04-15 18:57:54.081875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11490], ["dependencies", "[{\"id\":10342,\"statuses\":[2]}]"], ["uuid", "e224296d-386a-a70c-87b7-82f27dc0cb27"], ["created_at", "2017-04-15 18:57:54.084177"], ["updated_at", "2017-04-15 18:57:54.084177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11490]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11490) [["id", 11490]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11490], ["created_at", "2017-04-15 18:57:54.089991"], ["updated_at", "2017-04-15 18:57:54.089991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:57:54.091810"], ["id", 5196]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5196], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:54.093779"], ["updated_at", "2017-04-15 18:57:54.093779"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5196], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10342], ["process_id", 5196], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:54.097973"], ["updated_at", "2017-04-15 18:57:54.097973"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5882], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:54.099538"], ["updated_at", "2017-04-15 18:57:54.099538"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:54.102827"], ["id", 5196]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5196], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:54.105883"], ["id", 5882]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5882 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5882]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5882], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:57:54.110682"], ["updated_at", "2017-04-15 18:57:54.111209"], ["id", 5882]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5196]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11490]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11490]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10342]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5196]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10342]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10343], ["process_id", 5196], ["status", 0], ["dependencies", "[{\"operation_id\":5882,\"status\":2}]"], ["created_at", "2017-04-15 18:57:54.119207"], ["updated_at", "2017-04-15 18:57:54.119207"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5883], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:54.120571"], ["updated_at", "2017-04-15 18:57:54.120571"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:54.123672"], ["id", 5883]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5883 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5883]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5883], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:57:54.128902"], ["updated_at", "2017-04-15 18:57:54.129514"], ["id", 5883]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5196]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11490]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11490]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10343]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5196]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10343]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10342]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5196], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c] SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:57:54.137486"], ["id", 5196]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5196]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] [RailsWorkflow::OperationExecutionJob] [e4788415-2d45-4abf-b3d2-8cee4398e00c] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 14.45ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [9afa8754-0193-410f-b6e2-a7b3b5319736] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 32.11ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5196]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 18:57:54.141042"], ["updated_at", "2017-04-15 18:57:54.141701"], ["id", 5882]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10342]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5196]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10343]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5196], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:57:54.147668"], ["id", 5196]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5196]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 5], ["created_at", "2017-04-15 18:57:54.097973"], ["updated_at", "2017-04-15 18:57:54.141701"], ["completed_at", "2017-04-15 18:57:54.149585"], ["id", 5882]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'regular_user@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "regular_user@test.com"], ["encrypted_password", "$2a$04$R2EQHqYag75gLT5xi1MUUeaYNK3CpOn4d2qclzdqYrYwduA8eZicS"], ["role", "regular_user"], ["created_at", "2017-04-15 18:57:54.168253"], ["updated_at", "2017-04-15 18:57:54.168253"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'admin@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "admin@test.com"], ["encrypted_password", "$2a$04$slTyhPNvLHGb97A4EXqbQeEVJTO0acAyetBxYARAMHRgf8ru6ftti"], ["role", "admin"], ["created_at", "2017-04-15 18:57:54.173296"], ["updated_at", "2017-04-15 18:57:54.173296"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:57:54.177957"], ["updated_at", "2017-04-15 18:57:54.177957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "User Operation Template"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:57:54.180161"], ["id", 11491]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11491]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11491], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11491], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:57:54.185536"], ["updated_at", "2017-04-15 18:57:54.185536"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:54.188148"], ["id", 10344]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11491], ["uuid", nil]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11491], ["uuid", "4dd554e1-d4b0-5662-7006-64f7f949a425"], ["created_at", "2017-04-15 18:57:54.193110"], ["updated_at", "2017-04-15 18:57:54.193110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "uuid" = $1, "title" = $2, "dependencies" = $3, "operation_class" = $4, "async" = $5, "kind" = $6, "role" = $7, "instruction" = $8, "type" = $9, "partial_name" = $10, "updated_at" = $11 WHERE "rails_workflow_operation_templates"."id" = $12 [["uuid", "a8f26144-566e-55b2-ab6e-fd6cde034c1e"], ["title", "Regular User Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "regular_user"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:54.195227"], ["id", 10345]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "User Operation Template"]] SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11491]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11491) [["id", 11491]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11491], ["created_at", "2017-04-15 18:57:54.203494"], ["updated_at", "2017-04-15 18:57:54.203494"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "User Operation Template"], ["status", 0], ["updated_at", "2017-04-15 18:57:54.205389"], ["id", 5197]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5197], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 18:57:54.207265"], ["updated_at", "2017-04-15 18:57:54.207265"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5197], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Regular User Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 10345], ["process_id", 5197], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:54.222727"], ["updated_at", "2017-04-15 18:57:54.222727"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5884], ["body", "{}"], ["created_at", "2017-04-15 18:57:54.224657"], ["updated_at", "2017-04-15 18:57:54.224657"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Admin Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 10344], ["process_id", 5197], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:54.228342"], ["updated_at", "2017-04-15 18:57:54.228342"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5885], ["body", "{}"], ["created_at", "2017-04-15 18:57:54.229870"], ["updated_at", "2017-04-15 18:57:54.229870"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:54.232697"], ["id", 5197]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5197], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 18:57:54.235519"], ["id", 5885]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 18:57:54.237938"], ["id", 5884]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/workflow/operations" for 127.0.0.1 at 2017-04-15 22:57:54 +0400 Processing by RailsWorkflow::OperationsController#index as HTML RailsWorkflow::Operation Load (0.6ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."status" = 3 ORDER BY "rails_workflow_operations"."created_at" DESC RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5197]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10344]] CACHE (0.0ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5197]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10345]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operations/index.html.slim within layouts/rails_workflow/application (19.6ms) Completed 200 OK in 152ms (Views: 143.6ms | ActiveRecord: 1.6ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Started GET "/workflow/config" for 127.0.0.1 at 2017-04-15 22:57:54 +0400 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/application/_flash.html.slim (2.4ms) RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (13.1ms) Completed 200 OK in 16ms (Views: 15.2ms | ActiveRecord: 0.4ms) Started GET "/workflow/config/new" for 127.0.0.1 at 2017-04-15 22:57:54 +0400 Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/_form.html.slim (17.4ms) Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (22.8ms) Completed 200 OK in 26ms (Views: 25.4ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.484365"], ["updated_at", "2017-04-15 18:57:54.484365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:57:54.486514"], ["updated_at", "2017-04-15 18:57:54.486514"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5198], ["updated_at", "2017-04-15 18:57:54.487957"], ["id", 8738]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:54.492286"], ["updated_at", "2017-04-15 18:57:54.492286"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 18:57:54.494775"], ["updated_at", "2017-04-15 18:57:54.494775"]] SQL (0.4ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5886], ["updated_at", "2017-04-15 18:57:54.496672"], ["id", 8739]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "91e8b51f-2514-869b-5fae-6915a34223d9"], ["created_at", "2017-04-15 18:57:54.499712"], ["updated_at", "2017-04-15 18:57:54.499712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11492], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "ec99aaf5-cb0c-424a-6c1e-ec51ff1e7e71"], ["created_at", "2017-04-15 18:57:54.501625"], ["updated_at", "2017-04-15 18:57:54.501625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10346], ["process_id", 5198], ["status", 0], ["dependencies", "[{\"operation_id\":5886,\"status\":4}]"], ["created_at", "2017-04-15 18:57:54.512102"], ["updated_at", "2017-04-15 18:57:54.512102"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5887], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:54.513645"], ["updated_at", "2017-04-15 18:57:54.513645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.518030"], ["updated_at", "2017-04-15 18:57:54.518030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:57:54.519783"], ["updated_at", "2017-04-15 18:57:54.519783"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5199], ["updated_at", "2017-04-15 18:57:54.521134"], ["id", 8741]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 18:57:54.524217"], ["updated_at", "2017-04-15 18:57:54.524217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.527986"], ["updated_at", "2017-04-15 18:57:54.527986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:57:54.529673"], ["updated_at", "2017-04-15 18:57:54.529673"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5200], ["updated_at", "2017-04-15 18:57:54.530883"], ["id", 8743]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:57:54.533652"], ["updated_at", "2017-04-15 18:57:54.533652"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resource\":{\"id\":5888,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5200,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 18:57:54.535967"], ["updated_at", "2017-04-15 18:57:54.535967"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.541077"], ["updated_at", "2017-04-15 18:57:54.541077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:57:54.543035"], ["updated_at", "2017-04-15 18:57:54.543035"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5201], ["updated_at", "2017-04-15 18:57:54.544510"], ["id", 8745]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:57:54.548561"], ["updated_at", "2017-04-15 18:57:54.548561"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":5889,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5201,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 18:57:54.552011"], ["updated_at", "2017-04-15 18:57:54.552011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.557983"], ["updated_at", "2017-04-15 18:57:54.557983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:57:54.559984"], ["updated_at", "2017-04-15 18:57:54.559984"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5202], ["updated_at", "2017-04-15 18:57:54.561708"], ["id", 8747]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:57:54.565837"], ["updated_at", "2017-04-15 18:57:54.565837"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5890], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 18:57:54.569158"], ["updated_at", "2017-04-15 18:57:54.569158"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 8748]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.575124"], ["updated_at", "2017-04-15 18:57:54.575124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:57:54.577354"], ["updated_at", "2017-04-15 18:57:54.577354"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5203], ["updated_at", "2017-04-15 18:57:54.578909"], ["id", 8749]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:57:54.587307"], ["updated_at", "2017-04-15 18:57:54.587307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5891], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"resource\":{\"id\":5891,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5203,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 18:57:54.590417"], ["updated_at", "2017-04-15 18:57:54.590417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 8750]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5891]] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5203]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.596795"], ["updated_at", "2017-04-15 18:57:54.596795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:57:54.598712"], ["updated_at", "2017-04-15 18:57:54.598712"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5204], ["updated_at", "2017-04-15 18:57:54.600067"], ["id", 8751]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:57:54.603175"], ["updated_at", "2017-04-15 18:57:54.603175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":5892,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5204,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 18:57:54.605512"], ["updated_at", "2017-04-15 18:57:54.605512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 8752]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5892]] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5204]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.612382"], ["updated_at", "2017-04-15 18:57:54.612382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:57:54.614305"], ["updated_at", "2017-04-15 18:57:54.614305"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5205], ["updated_at", "2017-04-15 18:57:54.615683"], ["id", 8753]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7487a645-67e9-9e25-b922-936642bc36aa"], ["created_at", "2017-04-15 18:57:54.620220"], ["updated_at", "2017-04-15 18:57:54.620220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11493], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "a3a977c4-4006-d56a-7dea-07ed9f0ba025"], ["created_at", "2017-04-15 18:57:54.622418"], ["updated_at", "2017-04-15 18:57:54.622418"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10347], ["process_id", 5205], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:54.626126"], ["updated_at", "2017-04-15 18:57:54.626126"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5893], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.627912"], ["updated_at", "2017-04-15 18:57:54.627912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.631937"], ["updated_at", "2017-04-15 18:57:54.631937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:57:54.633861"], ["updated_at", "2017-04-15 18:57:54.633861"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5206], ["updated_at", "2017-04-15 18:57:54.635257"], ["id", 8755]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0d9e0636-5c76-2af1-a8aa-6f023be7db92"], ["created_at", "2017-04-15 18:57:54.639787"], ["updated_at", "2017-04-15 18:57:54.639787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11494], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "b9a63d0d-6882-7c6a-7b31-48433294c487"], ["created_at", "2017-04-15 18:57:54.642225"], ["updated_at", "2017-04-15 18:57:54.642225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10348], ["process_id", 5206], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:54.646462"], ["updated_at", "2017-04-15 18:57:54.646462"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5894], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.648578"], ["updated_at", "2017-04-15 18:57:54.648578"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.654269"], ["updated_at", "2017-04-15 18:57:54.654269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:57:54.656707"], ["updated_at", "2017-04-15 18:57:54.656707"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5207], ["updated_at", "2017-04-15 18:57:54.658245"], ["id", 8757]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "29c500e5-0cfe-60ef-acdf-ce9d0f46d44a"], ["created_at", "2017-04-15 18:57:54.662837"], ["updated_at", "2017-04-15 18:57:54.662837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11495], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "705bdd08-7b0d-1d43-acf9-76835069bf15"], ["created_at", "2017-04-15 18:57:54.665332"], ["updated_at", "2017-04-15 18:57:54.665332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10349], ["process_id", 5207], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:54.669364"], ["updated_at", "2017-04-15 18:57:54.669364"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5895], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.671355"], ["updated_at", "2017-04-15 18:57:54.671355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.675868"], ["updated_at", "2017-04-15 18:57:54.675868"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:57:54.678451"], ["updated_at", "2017-04-15 18:57:54.678451"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5208], ["updated_at", "2017-04-15 18:57:54.680122"], ["id", 8759]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "db6c7115-f47e-3fe9-f2ca-b94d98de198b"], ["created_at", "2017-04-15 18:57:54.686162"], ["updated_at", "2017-04-15 18:57:54.686162"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11496], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "37b7ca90-f11f-1b21-2d9c-eeb2eeef07e2"], ["created_at", "2017-04-15 18:57:54.688781"], ["updated_at", "2017-04-15 18:57:54.688781"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10350], ["process_id", 5208], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:54.693387"], ["updated_at", "2017-04-15 18:57:54.693387"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5896], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.695733"], ["updated_at", "2017-04-15 18:57:54.695733"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.701267"], ["updated_at", "2017-04-15 18:57:54.701267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:57:54.703307"], ["updated_at", "2017-04-15 18:57:54.703307"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5209], ["updated_at", "2017-04-15 18:57:54.704828"], ["id", 8761]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "bfc5194f-f084-370b-48f7-d0be99e0e7a7"], ["created_at", "2017-04-15 18:57:54.709562"], ["updated_at", "2017-04-15 18:57:54.709562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11497], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "2994826d-8b3c-953b-f46c-16c703ba06c4"], ["created_at", "2017-04-15 18:57:54.712033"], ["updated_at", "2017-04-15 18:57:54.712033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10351], ["process_id", 5209], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:54.716656"], ["updated_at", "2017-04-15 18:57:54.716656"]] SQL (0.1ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5897], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.718478"], ["updated_at", "2017-04-15 18:57:54.718478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.722435"], ["updated_at", "2017-04-15 18:57:54.722435"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:57:54.724629"], ["updated_at", "2017-04-15 18:57:54.724629"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5210], ["updated_at", "2017-04-15 18:57:54.726107"], ["id", 8763]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "bf76cc01-0e82-9f72-d114-ca58f09be1e9"], ["created_at", "2017-04-15 18:57:54.730389"], ["updated_at", "2017-04-15 18:57:54.730389"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11498], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "78b8e483-eeb9-a2b8-0654-01241a323c56"], ["created_at", "2017-04-15 18:57:54.732509"], ["updated_at", "2017-04-15 18:57:54.732509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10352], ["process_id", 5210], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:54.737127"], ["updated_at", "2017-04-15 18:57:54.737127"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5898], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.739018"], ["updated_at", "2017-04-15 18:57:54.739018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.743276"], ["updated_at", "2017-04-15 18:57:54.743276"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:57:54.745583"], ["updated_at", "2017-04-15 18:57:54.745583"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5211], ["updated_at", "2017-04-15 18:57:54.747714"], ["id", 8765]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d4a1a74a-753d-1b98-b8ec-f82e394f5924"], ["created_at", "2017-04-15 18:57:54.752627"], ["updated_at", "2017-04-15 18:57:54.752627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4e09741b-0700-1a51-8e7b-26d4e1b8a4b7"], ["created_at", "2017-04-15 18:57:54.754752"], ["updated_at", "2017-04-15 18:57:54.754752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11499], ["child_process_id", 11500], ["uuid", "59f7bcfb-5ce8-d0a4-98b1-b70e6798f28d"], ["created_at", "2017-04-15 18:57:54.757050"], ["updated_at", "2017-04-15 18:57:54.757050"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "96ce7fb2-f7cb-d639-5457-56f387198796"], ["created_at", "2017-04-15 18:57:54.760193"], ["updated_at", "2017-04-15 18:57:54.760193"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11501], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "295ab26c-c313-6f16-1c03-7da580d278e0"], ["created_at", "2017-04-15 18:57:54.762550"], ["updated_at", "2017-04-15 18:57:54.762550"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10354], ["process_id", 5211], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:54.767313"], ["updated_at", "2017-04-15 18:57:54.767313"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5899], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.768899"], ["updated_at", "2017-04-15 18:57:54.768899"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10353], ["process_id", 5211], ["status", 0], ["dependencies", "[{\"operation_id\":5899,\"status\":0}]"], ["created_at", "2017-04-15 18:57:54.773144"], ["updated_at", "2017-04-15 18:57:54.773144"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5900], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.774737"], ["updated_at", "2017-04-15 18:57:54.774737"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11500]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11500) [["id", 11500]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11500], ["created_at", "2017-04-15 18:57:54.781884"], ["updated_at", "2017-04-15 18:57:54.781884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:57:54.784031"], ["id", 5212]] SQL (0.5ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5212], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.786866"], ["updated_at", "2017-04-15 18:57:54.786866"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5212], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.792445"], ["updated_at", "2017-04-15 18:57:54.792445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:57:54.794287"], ["updated_at", "2017-04-15 18:57:54.794287"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5213], ["updated_at", "2017-04-15 18:57:54.795651"], ["id", 8769]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2bc8baa9-0a43-8236-8bd4-c357e18a6526"], ["created_at", "2017-04-15 18:57:54.799087"], ["updated_at", "2017-04-15 18:57:54.799087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11502], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "38248ca5-8d75-f99e-0ed6-5272b723b3f3"], ["created_at", "2017-04-15 18:57:54.801332"], ["updated_at", "2017-04-15 18:57:54.801332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10355], ["process_id", 5213], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:54.805200"], ["updated_at", "2017-04-15 18:57:54.805200"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5901], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.806946"], ["updated_at", "2017-04-15 18:57:54.806946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.811238"], ["updated_at", "2017-04-15 18:57:54.811238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:57:54.813294"], ["updated_at", "2017-04-15 18:57:54.813294"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5214], ["updated_at", "2017-04-15 18:57:54.814758"], ["id", 8771]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 18:57:54.819425"], ["updated_at", "2017-04-15 18:57:54.819425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f54633fe-5f4e-1123-842a-ad8108b86402"], ["created_at", "2017-04-15 18:57:54.823472"], ["updated_at", "2017-04-15 18:57:54.823472"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11503], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "090536c5-b743-49ee-7405-153f4f1adc68"], ["created_at", "2017-04-15 18:57:54.826079"], ["updated_at", "2017-04-15 18:57:54.826079"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5902], ["parent_type", "RailsWorkflow::Operation"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10356], ["process_id", 5214], ["status", 0], ["dependencies", "[{\"operation_id\":5902,\"status\":4}]"], ["created_at", "2017-04-15 18:57:54.831762"], ["updated_at", "2017-04-15 18:57:54.831762"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5903], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.833809"], ["updated_at", "2017-04-15 18:57:54.833809"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.838213"], ["updated_at", "2017-04-15 18:57:54.838213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:57:54.840288"], ["updated_at", "2017-04-15 18:57:54.840288"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5215], ["updated_at", "2017-04-15 18:57:54.841970"], ["id", 8773]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "92c04d32-a926-9ccb-9773-ff38d147f8e2"], ["created_at", "2017-04-15 18:57:54.845883"], ["updated_at", "2017-04-15 18:57:54.845883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11504], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "80b3ff3f-d1fa-c886-fcbf-338774320cec"], ["created_at", "2017-04-15 18:57:54.848301"], ["updated_at", "2017-04-15 18:57:54.848301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10357], ["process_id", 5215], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:57:54.852825"], ["updated_at", "2017-04-15 18:57:54.852825"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5904], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.854669"], ["updated_at", "2017-04-15 18:57:54.854669"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:57:54.859188"], ["updated_at", "2017-04-15 18:57:54.859188"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$kUJKtOBPZcOLbVO788Caru.6E1q2YW633J1UpY4NqCgjd4mFo1rYa"], ["created_at", "2017-04-15 18:57:54.864455"], ["updated_at", "2017-04-15 18:57:54.864455"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1532], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1532], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:57:54.866420"], ["updated_at", "2017-04-15 18:57:54.868249"], ["id", 5905]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:57:54.872125"], ["updated_at", "2017-04-15 18:57:54.872125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$NooARzMyJG65PN3omy4UEOZSZicsTFaBvyfZsqbRbKpY2hNKknrmm"], ["created_at", "2017-04-15 18:57:54.876735"], ["updated_at", "2017-04-15 18:57:54.876735"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1533], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1533], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:57:54.885801"], ["updated_at", "2017-04-15 18:57:54.887382"], ["id", 5906]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:57:54.889492"], ["updated_at", "2017-04-15 18:57:54.889492"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1533], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1533], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:57:54.890933"], ["updated_at", "2017-04-15 18:57:54.892181"], ["id", 5907]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5906]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:57:54.895991"], ["updated_at", "2017-04-15 18:57:54.895991"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$pteWcEBm.wG0K56ohQwdTuIxfkFdGqv2aNZlXOnpCNHzxLKOTzkcq"], ["created_at", "2017-04-15 18:57:54.900386"], ["updated_at", "2017-04-15 18:57:54.900386"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1534], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1534], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:57:54.901885"], ["updated_at", "2017-04-15 18:57:54.903096"], ["id", 5908]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "updated_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["assignment_id", nil], ["assignment_type", nil], ["is_active", "f"], ["updated_at", "2017-04-15 18:57:54.905020"], ["id", 5908]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:57:54.907941"], ["updated_at", "2017-04-15 18:57:54.907941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$v4owMfk6G.w9IsHIjq49bu/VO9YSLWyn4RMiSRSAFrwIoOcTOJqtS"], ["created_at", "2017-04-15 18:57:54.912161"], ["updated_at", "2017-04-15 18:57:54.912161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1535], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1535], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:57:54.914018"], ["updated_at", "2017-04-15 18:57:54.915518"], ["id", 5909]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$ukiKPTbbHJAhbvYCeHY8ou3NsYLCFPXv5xK/8zeZcFi7Kad/VVtDa"], ["created_at", "2017-04-15 18:57:54.920210"], ["updated_at", "2017-04-15 18:57:54.920210"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5909]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1535]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:57:54.925440"], ["updated_at", "2017-04-15 18:57:54.925440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$r/C.Nhu5S2tVMn9SFy17q.s7IK5hljaA7J5KWEuMqLZZCKPPf63MS"], ["created_at", "2017-04-15 18:57:54.929571"], ["updated_at", "2017-04-15 18:57:54.929571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1537], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1537], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:57:54.931001"], ["updated_at", "2017-04-15 18:57:54.932148"], ["id", 5910]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$yzGbg.PsfHZROu6pftFjC.xhCuui.vbssZjhmuPZRopLnA6H2ZuLu"], ["created_at", "2017-04-15 18:57:54.936233"], ["updated_at", "2017-04-15 18:57:54.936233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:57:54.939098"], ["updated_at", "2017-04-15 18:57:54.939098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$BuCescGHPZ7ZnEq7ZcQf/.4dYDXTdBZXoCBauk4ZHBROiSIUhAChi"], ["created_at", "2017-04-15 18:57:54.943208"], ["updated_at", "2017-04-15 18:57:54.943208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1539], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1539], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:57:54.944633"], ["updated_at", "2017-04-15 18:57:54.946150"], ["id", 5911]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$DXrm.1eJZT/hNsA5pVjYz.Q5IpB2FxeL.VHr/vYBN2QSp2OnKsKIe"], ["created_at", "2017-04-15 18:57:54.950887"], ["updated_at", "2017-04-15 18:57:54.950887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a121e566-507c-757f-d2dd-f39d9eee6d93"], ["created_at", "2017-04-15 18:57:54.954062"], ["updated_at", "2017-04-15 18:57:54.954062"]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "role", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11505], ["role", "admin"], ["uuid", "59a9f315-f905-b547-6bdf-e040e1caf7bb"], ["created_at", "2017-04-15 18:57:54.957978"], ["updated_at", "2017-04-15 18:57:54.957978"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "cedf029e-16d3-4849-b3cf-02cb71359083"], ["created_at", "2017-04-15 18:57:54.961028"], ["updated_at", "2017-04-15 18:57:54.961028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "group", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11506], ["group", "some_group"], ["uuid", "48274e13-7026-e0bf-fc42-d0227fb23c11"], ["created_at", "2017-04-15 18:57:54.962833"], ["updated_at", "2017-04-15 18:57:54.962833"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 10359], ["created_at", "2017-04-15 18:57:54.965480"], ["updated_at", "2017-04-15 18:57:54.965480"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 10358], ["created_at", "2017-04-15 18:57:54.968262"], ["updated_at", "2017-04-15 18:57:54.968262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$RMy377JwW4i9Z0glSqrk7eEs3EdyOYK.PNvgGItUyALHQjlSsiR2q"], ["role", "admin"], ["created_at", "2017-04-15 18:57:54.972335"], ["updated_at", "2017-04-15 18:57:54.972335"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'admin')  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'fake@email.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "fake@email.com"], ["encrypted_password", "$2a$04$sODNF6q9DvbYrTtaMg7QTuvt8/qvPHZDj.Hgj9Yog7rSky.hQHl6K"], ["role", "fake"], ["created_at", "2017-04-15 18:57:54.978889"], ["updated_at", "2017-04-15 18:57:54.978889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'fake') SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1541], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1541], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:57:54.982035"], ["updated_at", "2017-04-15 18:57:54.983290"], ["id", 5913]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."assignment_id" IS NULL  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:57:54.987114"], ["updated_at", "2017-04-15 18:57:54.987114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:57:54.988829"], ["updated_at", "2017-04-15 18:57:54.988829"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5914], ["updated_at", "2017-04-15 18:57:54.990016"], ["id", 8775]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 18:57:54.992067"], ["id", 5914]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:57:54.995740"], ["updated_at", "2017-04-15 18:57:54.995740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:57:54.998003"], ["updated_at", "2017-04-15 18:57:54.998003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:57:54.999661"], ["updated_at", "2017-04-15 18:57:54.999661"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5216], ["updated_at", "2017-04-15 18:57:55.000877"], ["id", 8776]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "child_process_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["child_process_id", 5216], ["updated_at", "2017-04-15 18:57:55.002798"], ["id", 5915]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:55.004542"], ["id", 5915]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5915 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5915]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273] RailsWorkflow::Process Load (0.5ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5216]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:57:55.008822"], ["id", 5216]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5216], ["status", 0]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5915], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273] SQL (0.6ms) INSERT INTO "rails_workflow_errors" ("parent_id", "parent_type", "message", "stack_trace", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["parent_id", 5915], ["parent_type", "RailsWorkflow::Operation"], ["message", "undefined method `save' for nil:NilClass"], ["stack_trace", "/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:60:in `execute_in_transaction'
\n/home/maxim/rails_workflow/app/jobs/rails_workflow/operation_execution_job.rb:12:in `perform'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:32:in `block in perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/i18n-0.7.0/lib/i18n.rb:257:in `with_locale'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/translation.rb:7:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:23:in `block (4 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `block in instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:22:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `block in tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:26:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:19:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_perform_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:31:in `perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:16:in `perform_now'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:28:in `starting'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:18:in `start'
\n/home/maxim/rails_workflow/spec/models/rails_workflow/operation_spec.rb:179:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `block in with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `block in with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:618:in `block in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-rails-3.4.2/lib/rspec/rails/adapters.rb:127:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:389:in `execute_with'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:620:in `block (2 levels) in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:621:in `run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:233:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:581:in `block in run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:543:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (3 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (2 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/configuration.rb:1680:in `with_suite_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:118:in `block in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/reporter.rb:77:in `report'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:117:in `run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:93:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:78:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:45:in `invoke'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/exe/rspec:4:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `kernel_load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:335:in `exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:20:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:11:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:32:in `block in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:24:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `
'"], ["created_at", "2017-04-15 18:57:55.016872"], ["updated_at", "2017-04-15 18:57:55.016872"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 135], ["parent_type", "RailsWorkflow::Error"], ["body", "{\"parent\":{\"id\":5915,\"class\":\"RailsWorkflow::Operation\"},\"target\":{\"id\":5915,\"class\":\"RailsWorkflow::Operation\"},\"method\":\"execute_in_transaction\"}"], ["created_at", "2017-04-15 18:57:55.021257"], ["updated_at", "2017-04-15 18:57:55.021257"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 135], ["parent_type", "RailsWorkflow::Error"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5915]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5915]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5915]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 4], ["updated_at", "2017-04-15 18:57:55.027272"], ["id", 5915]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1de4795d-bf36-4bdf-84ed-dfe95d125273] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 22.78ms RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5216]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 2], ["completed_at", "2017-04-15 18:57:55.031735"], ["created_at", "2017-04-15 18:57:55.032370"], ["updated_at", "2017-04-15 18:57:55.032370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 6], ["completed_at", "2017-04-15 18:57:55.036191"], ["created_at", "2017-04-15 18:57:55.036725"], ["updated_at", "2017-04-15 18:57:55.036725"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 5], ["completed_at", "2017-04-15 18:57:55.040655"], ["created_at", "2017-04-15 18:57:55.041325"], ["updated_at", "2017-04-15 18:57:55.041325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "46ae723c-5b1e-f579-b902-a919733ad205"], ["created_at", "2017-04-15 18:57:55.045923"], ["updated_at", "2017-04-15 18:57:55.045923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 11507], ["uuid", "bcddb431-a508-b949-e63d-c19415460fe4"], ["created_at", "2017-04-15 18:57:55.047822"], ["updated_at", "2017-04-15 18:57:55.047822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::TestProcess"], ["uuid", "8d0a958d-a807-d0be-e87a-412260d6cc60"], ["created_at", "2017-04-15 18:57:55.051950"], ["updated_at", "2017-04-15 18:57:55.051950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("type", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "RailsWorkflow::TestProcess"], ["template_id", 11508], ["created_at", "2017-04-15 18:57:55.057503"], ["updated_at", "2017-04-15 18:57:55.057503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:57:55.059368"], ["id", 5217]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5217], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 18:57:55.061195"], ["updated_at", "2017-04-15 18:57:55.061195"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5217], ["parent_type", "RailsWorkflow::Process"]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11508]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::Process"], ["uuid", "ed11fd6c-cbb4-afa9-d528-f2876a174618"], ["created_at", "2017-04-15 18:57:55.066047"], ["updated_at", "2017-04-15 18:57:55.066047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11509], ["uuid", "43235d31-84a4-ae06-7e8f-d40b5e4e62d7"], ["created_at", "2017-04-15 18:57:55.068192"], ["updated_at", "2017-04-15 18:57:55.068192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11509], ["dependencies", "[{\"id\":10361,\"statuses\":[2]}]"], ["uuid", "db7352ff-e0bc-83b5-4694-6a6f6bc9acd6"], ["created_at", "2017-04-15 18:57:55.070595"], ["updated_at", "2017-04-15 18:57:55.070595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11509]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11509) [["id", 11509]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "cabc17d2-6408-94ba-2090-d025d34d0d3e"], ["created_at", "2017-04-15 18:57:55.079611"], ["updated_at", "2017-04-15 18:57:55.079611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "badf556e-542e-4e42-bf85-38f0e650b69c"], ["created_at", "2017-04-15 18:57:55.081615"], ["updated_at", "2017-04-15 18:57:55.081615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "cc001933-1e3c-dfb4-a220-537c82db736a"], ["created_at", "2017-04-15 18:57:55.083370"], ["updated_at", "2017-04-15 18:57:55.083370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11511], ["child_process_id", 11512], ["uuid", "4adf9614-3491-4163-c862-a8f359ef53d5"], ["created_at", "2017-04-15 18:57:55.085392"], ["updated_at", "2017-04-15 18:57:55.085392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11510]] SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 11510], ["updated_at", "2017-04-15 18:57:55.088490"], ["id", 10363]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11510]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11512]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7e2e7859-c9db-c42d-6d68-6c4aa83d53ae"], ["created_at", "2017-04-15 18:57:55.095332"], ["updated_at", "2017-04-15 18:57:55.095332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3df4cd48-8ab1-acb5-e06f-373119e5ae08"], ["created_at", "2017-04-15 18:57:55.097324"], ["updated_at", "2017-04-15 18:57:55.097324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11514], ["uuid", "1278f216-d9ac-7668-d280-9cfa22e7f59a"], ["created_at", "2017-04-15 18:57:55.098920"], ["updated_at", "2017-04-15 18:57:55.098920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11513]] SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 11513], ["updated_at", "2017-04-15 18:57:55.101624"], ["id", 10364]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11513]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:57:55.109029"], ["updated_at", "2017-04-15 18:57:55.109029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:57:55.110784"], ["id", 11515]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11515]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11515], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11515], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 18:57:55.114504"], ["updated_at", "2017-04-15 18:57:55.114504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.116456"], ["id", 10365]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11515], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11515], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 18:57:55.119700"], ["updated_at", "2017-04-15 18:57:55.119700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.121678"], ["id", 10366]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11515], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11515], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:57:55.125024"], ["updated_at", "2017-04-15 18:57:55.125024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.127142"], ["id", 10367]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10365}]"], ["updated_at", "2017-04-15 18:57:55.131090"], ["id", 10366]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10366}]"], ["updated_at", "2017-04-15 18:57:55.134050"], ["id", 10367]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:57:55.139847"], ["updated_at", "2017-04-15 18:57:55.139847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:57:55.141575"], ["id", 11516]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11516]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11516], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11516], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 18:57:55.145600"], ["updated_at", "2017-04-15 18:57:55.145600"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.147934"], ["id", 10368]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11516], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11516], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 18:57:55.151196"], ["updated_at", "2017-04-15 18:57:55.151196"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.153482"], ["id", 10369]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11516], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11516], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:57:55.156950"], ["updated_at", "2017-04-15 18:57:55.156950"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.159111"], ["id", 10370]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10368}]"], ["updated_at", "2017-04-15 18:57:55.162635"], ["id", 10369]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10369}]"], ["updated_at", "2017-04-15 18:57:55.165564"], ["id", 10370]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Some new name"], ["updated_at", "2017-04-15 18:57:55.168832"], ["id", 11516]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Test Process"], ["updated_at", "2017-04-15 18:57:55.171729"], ["id", 11516]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11516]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11516], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11516], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 18:57:55.178029"], ["id", 10369]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11516], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 18:57:55.181608"], ["id", 10370]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10368}]"], ["updated_at", "2017-04-15 18:57:55.185365"], ["id", 10369]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10369}]"], ["updated_at", "2017-04-15 18:57:55.187900"], ["id", 10370]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:57:55.192637"], ["updated_at", "2017-04-15 18:57:55.192637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:57:55.194443"], ["id", 11517]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11517]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11517], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11517], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 18:57:55.199006"], ["updated_at", "2017-04-15 18:57:55.199006"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.201665"], ["id", 10371]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11517], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11517], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 18:57:55.205304"], ["updated_at", "2017-04-15 18:57:55.205304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.207373"], ["id", 10372]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11517], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11517], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:57:55.211060"], ["updated_at", "2017-04-15 18:57:55.211060"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.213482"], ["id", 10373]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10371}]"], ["updated_at", "2017-04-15 18:57:55.216914"], ["id", 10372]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10372}]"], ["updated_at", "2017-04-15 18:57:55.219175"], ["id", 10373]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11517]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:57:55.225299"], ["updated_at", "2017-04-15 18:57:55.225299"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:57:55.227299"], ["id", 11518]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11518]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11518], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11518], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 18:57:55.232093"], ["updated_at", "2017-04-15 18:57:55.232093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.234059"], ["id", 10374]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11518], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11518], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 18:57:55.237476"], ["updated_at", "2017-04-15 18:57:55.237476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.239627"], ["id", 10375]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11518], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11518], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:57:55.242874"], ["updated_at", "2017-04-15 18:57:55.242874"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.245016"], ["id", 10376]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10374}]"], ["updated_at", "2017-04-15 18:57:55.248479"], ["id", 10375]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10375}]"], ["updated_at", "2017-04-15 18:57:55.250883"], ["id", 10376]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11518]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Some new operation name"], ["updated_at", "2017-04-15 18:57:55.254874"], ["id", 10374]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11518]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11518], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Default Operation 2"], ["updated_at", "2017-04-15 18:57:55.261224"], ["id", 10374]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11518], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 18:57:55.265143"], ["id", 10375]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11518], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 18:57:55.268336"], ["id", 10376]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10374}]"], ["updated_at", "2017-04-15 18:57:55.271440"], ["id", 10375]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10375}]"], ["updated_at", "2017-04-15 18:57:55.273780"], ["id", 10376]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10374]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:57:55.278345"], ["updated_at", "2017-04-15 18:57:55.278345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:57:55.280068"], ["id", 11519]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11519]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11519], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11519], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 18:57:55.283960"], ["updated_at", "2017-04-15 18:57:55.283960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.285941"], ["id", 10377]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11519], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11519], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 18:57:55.289174"], ["updated_at", "2017-04-15 18:57:55.289174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.291122"], ["id", 10378]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11519], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11519], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:57:55.294183"], ["updated_at", "2017-04-15 18:57:55.294183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.296318"], ["id", 10379]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10377}]"], ["updated_at", "2017-04-15 18:57:55.300035"], ["id", 10378]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10378}]"], ["updated_at", "2017-04-15 18:57:55.302714"], ["id", 10379]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Some new operation"], ["process_template_id", 11519], ["uuid", "7abe9ed6-10d3-edd2-d4f1-5cfde9dc82aa"], ["created_at", "2017-04-15 18:57:55.306308"], ["updated_at", "2017-04-15 18:57:55.306308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11519]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.3ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11519]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11519], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11519], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 18:57:55.315838"], ["id", 10378]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11519], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 18:57:55.319129"], ["id", 10379]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = 10380  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10377}]"], ["updated_at", "2017-04-15 18:57:55.323580"], ["id", 10378]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10378}]"], ["updated_at", "2017-04-15 18:57:55.326343"], ["id", 10379]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11519]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:57:55.332285"], ["updated_at", "2017-04-15 18:57:55.332285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:57:55.334220"], ["id", 11520]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11520]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11520], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11520], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 18:57:55.338519"], ["updated_at", "2017-04-15 18:57:55.338519"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.340839"], ["id", 10381]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11520], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11520], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 18:57:55.344303"], ["updated_at", "2017-04-15 18:57:55.344303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.346406"], ["id", 10382]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11520], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11520], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:57:55.349968"], ["updated_at", "2017-04-15 18:57:55.349968"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.352142"], ["id", 10383]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10381}]"], ["updated_at", "2017-04-15 18:57:55.355343"], ["id", 10382]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10382}]"], ["updated_at", "2017-04-15 18:57:55.357608"], ["id", 10383]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10381]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 18:57:55.362535"], ["updated_at", "2017-04-15 18:57:55.362535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 18:57:55.365106"], ["updated_at", "2017-04-15 18:57:55.365106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 18:57:55.367198"], ["id", 11522]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11522]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11522], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11522], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 18:57:55.370824"], ["updated_at", "2017-04-15 18:57:55.370824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.372635"], ["id", 10384]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 18:57:55.374910"], ["id", 11521]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11521]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11521], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11521], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 18:57:55.378638"], ["updated_at", "2017-04-15 18:57:55.378638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.380496"], ["id", 10385]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11521], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11521], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 18:57:55.383434"], ["updated_at", "2017-04-15 18:57:55.383434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 11522], ["updated_at", "2017-04-15 18:57:55.386064"], ["id", 10386]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":10385}]"], ["updated_at", "2017-04-15 18:57:55.389338"], ["id", 10386]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 18:57:55.393412"], ["updated_at", "2017-04-15 18:57:55.393412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 18:57:55.395923"], ["updated_at", "2017-04-15 18:57:55.395923"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 18:57:55.398089"], ["id", 11524]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11524]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11524], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11524], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 18:57:55.402056"], ["updated_at", "2017-04-15 18:57:55.402056"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.404144"], ["id", 10387]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 18:57:55.406693"], ["id", 11523]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11523]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11523], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11523], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 18:57:55.410269"], ["updated_at", "2017-04-15 18:57:55.410269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.412175"], ["id", 10388]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11523], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11523], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 18:57:55.415044"], ["updated_at", "2017-04-15 18:57:55.415044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 11524], ["updated_at", "2017-04-15 18:57:55.417650"], ["id", 10389]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":10388}]"], ["updated_at", "2017-04-15 18:57:55.421057"], ["id", 10389]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Parent Process"]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11523]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11524]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 18:57:55.429230"], ["updated_at", "2017-04-15 18:57:55.429230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 18:57:55.430962"], ["id", 11525]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11525]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11525], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11525], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 18:57:55.434563"], ["updated_at", "2017-04-15 18:57:55.434563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:57:55.436604"], ["id", 10390]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11525], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11525], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 18:57:55.439677"], ["updated_at", "2017-04-15 18:57:55.439677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2aab9cb7-6962-18f8-21ef-7095d7784317"], ["created_at", "2017-04-15 18:58:49.582552"], ["updated_at", "2017-04-15 18:58:49.582552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11526], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "92582323-6d28-399b-76fb-c7d6bf0034d3"], ["created_at", "2017-04-15 18:58:49.596141"], ["updated_at", "2017-04-15 18:58:49.596141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#index as HTML Parameters: {"process_template_id"=>"11526"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11526]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 23ms (Views: 7.9ms | ActiveRecord: 0.3ms) RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11526]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "21ae689f-629d-9e28-d177-1aa48766979c"], ["created_at", "2017-04-15 18:58:49.630246"], ["updated_at", "2017-04-15 18:58:49.630246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11527], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "be265207-e393-6d86-4b74-df08aec62144"], ["created_at", "2017-04-15 18:58:49.632270"], ["updated_at", "2017-04-15 18:58:49.632270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#show as HTML Parameters: {"process_template_id"=>"11527", "id"=>"10393"} RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10393]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11527]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5b0852f3-e2d6-e69b-adca-cb6d30760e75"], ["created_at", "2017-04-15 18:58:49.650231"], ["updated_at", "2017-04-15 18:58:49.650231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3f57af02-d21f-d36e-cefa-2ab25e326fdc"], ["created_at", "2017-04-15 18:58:49.652155"], ["updated_at", "2017-04-15 18:58:49.652155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#new as HTML Parameters: {"process_template_id"=>"11529"} RailsWorkflow::ProcessTemplate Load (0.5ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11529]] Unpermitted parameter: process_template_id Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/new.html.slim within layouts/rails_workflow/application (0.3ms) Completed 200 OK in 8ms (Views: 1.8ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2a3b5e6f-8105-2a1e-fb75-c18d9e33ebc3"], ["created_at", "2017-04-15 18:58:49.667921"], ["updated_at", "2017-04-15 18:58:49.667921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11530], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "362944b4-337a-6173-a85e-8408a765d85c"], ["created_at", "2017-04-15 18:58:49.669847"], ["updated_at", "2017-04-15 18:58:49.669847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#edit as HTML Parameters: {"process_template_id"=>"11530", "id"=>"10394"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10394]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11530]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "be95d215-ae6f-6706-41e2-829327d276c5"], ["created_at", "2017-04-15 18:58:49.688303"], ["updated_at", "2017-04-15 18:58:49.688303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11531", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11531"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11531]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 11531], ["uuid", "1812a4f4-51e2-cded-8025-e7a3c03dfa00"], ["created_at", "2017-04-15 18:58:49.700815"], ["updated_at", "2017-04-15 18:58:49.700815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11531/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.5ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11531]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b54b159e-6c23-f554-128e-a8a0894cdeb9"], ["created_at", "2017-04-15 18:58:49.709998"], ["updated_at", "2017-04-15 18:58:49.709998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate') Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11532", "type"=>"RailsWorkflow::CustomOperationTemplate"}, "process_template_id"=>"11532"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11532]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 11532], ["uuid", "8f479769-6333-6dd9-8566-955c74e305fb"], ["created_at", "2017-04-15 18:58:49.731576"], ["updated_at", "2017-04-15 18:58:49.731576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11532/operation_templates Completed 302 Found in 19ms (ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9c428c78-aea4-d445-36cd-6ef8b2eec454"], ["created_at", "2017-04-15 18:58:49.739233"], ["updated_at", "2017-04-15 18:58:49.739233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11533", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11533"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11533]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 11533], ["uuid", "b5ba60c8-0d06-6fa3-f8fa-542ba27f279c"], ["created_at", "2017-04-15 18:58:49.747799"], ["updated_at", "2017-04-15 18:58:49.747799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11533/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "da62214c-35f0-b9d9-2465-2efbf5a29a42"], ["created_at", "2017-04-15 18:58:49.755379"], ["updated_at", "2017-04-15 18:58:49.755379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11534", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11534"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11534]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 11534], ["uuid", "921803bb-3263-f5e8-3877-0b62c9cbc401"], ["created_at", "2017-04-15 18:58:49.764417"], ["updated_at", "2017-04-15 18:58:49.764417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11534/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "51445019-f8c2-495c-33e4-969a077a0c28"], ["created_at", "2017-04-15 18:58:49.774095"], ["updated_at", "2017-04-15 18:58:49.774095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3b9283e8-b5c0-d4c8-0311-1cb86d2ab695"], ["created_at", "2017-04-15 18:58:49.777920"], ["updated_at", "2017-04-15 18:58:49.777920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b494e355-0fbb-9560-12f9-98544611638d"], ["created_at", "2017-04-15 18:58:49.782339"], ["updated_at", "2017-04-15 18:58:49.782339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11537], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "7af1aa2a-884f-9c72-1fc8-70469e2cdb5d"], ["created_at", "2017-04-15 18:58:49.785051"], ["updated_at", "2017-04-15 18:58:49.785051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "cf1f60da-83c7-7adc-d30e-26fe5df02f02"], ["created_at", "2017-04-15 18:58:49.789226"], ["updated_at", "2017-04-15 18:58:49.789226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11538], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "30d53696-a1f5-53b2-4dfe-3d573237e358"], ["created_at", "2017-04-15 18:58:49.791401"], ["updated_at", "2017-04-15 18:58:49.791401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11538", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11538", "id"=>"10400"} RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10400]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11538]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11538/operation_templates Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0e4b0f4f-8442-cc53-ff2f-a69dadbc7fc5"], ["created_at", "2017-04-15 18:58:49.806764"], ["updated_at", "2017-04-15 18:58:49.806764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11539], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "0fb43e4b-fab1-fd0c-d3c8-6d5910352a85"], ["created_at", "2017-04-15 18:58:49.808926"], ["updated_at", "2017-04-15 18:58:49.808926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11539", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11539", "id"=>"10401"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10401]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11539]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11539/operation_templates Completed 302 Found in 7ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8be60c87-fa3c-abe9-4072-3e138eafb4ac"], ["created_at", "2017-04-15 18:58:49.827102"], ["updated_at", "2017-04-15 18:58:49.827102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11540], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "36cde463-ba66-a026-44cc-07098445ff8f"], ["created_at", "2017-04-15 18:58:49.829221"], ["updated_at", "2017-04-15 18:58:49.829221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "571b2cb7-4dcf-3310-3904-c7b9e9046d04"], ["created_at", "2017-04-15 18:58:49.832955"], ["updated_at", "2017-04-15 18:58:49.832955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11541], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "58976c1d-6c75-4411-90ad-93ea3d2a7e5d"], ["created_at", "2017-04-15 18:58:49.834978"], ["updated_at", "2017-04-15 18:58:49.834978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e59bb64e-5267-d9c5-5f71-b26301993a73"], ["created_at", "2017-04-15 18:58:49.838619"], ["updated_at", "2017-04-15 18:58:49.838619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11542], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "9c50cb7a-07d5-58c7-1333-ca2819000fe7"], ["created_at", "2017-04-15 18:58:49.840794"], ["updated_at", "2017-04-15 18:58:49.840794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11542]] Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"11542", "id"=>"10404"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10404]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11542]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 10404]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11542/operation_templates Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ef67f2af-3fc6-4954-8f4d-3fff3c89a3d3"], ["created_at", "2017-04-15 18:58:49.858351"], ["updated_at", "2017-04-15 18:58:49.858351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11543], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "e16ce1ae-9427-09f0-6334-749c2853bf86"], ["created_at", "2017-04-15 18:58:49.860342"], ["updated_at", "2017-04-15 18:58:49.860342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"11543", "id"=>"10405"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10405]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11543]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 10405]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11543/operation_templates Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (2.3ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (3.1ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "2c4c28fa-03c8-b183-3e60-0ce93cb33fdf"], ["created_at", "2017-04-15 18:58:49.901485"], ["updated_at", "2017-04-15 18:58:49.901485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "5f4fd2e6-ea5c-4434-2825-417cf762d429"], ["created_at", "2017-04-15 18:58:49.918921"], ["updated_at", "2017-04-15 18:58:49.918921"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#show as HTML Parameters: {"id"=>"11545"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11545]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "a825eb87-d08c-77e6-c7fa-8efd191e5f4e"], ["created_at", "2017-04-15 18:58:49.944276"], ["updated_at", "2017-04-15 18:58:49.944276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#edit as HTML Parameters: {"id"=>"11546"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11546]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "f3569df0-a2fb-f9b9-0dac-4d0f5bb14ea1"], ["created_at", "2017-04-15 18:58:49.967034"], ["updated_at", "2017-04-15 18:58:49.967034"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11547/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.3ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "c8f8bb58-910a-42fc-b15f-9413186024f8"], ["created_at", "2017-04-15 18:58:49.978834"], ["updated_at", "2017-04-15 18:58:49.978834"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11548/operation_templates Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "f18c6b7b-d700-0311-e3c7-2878f00b6bf3"], ["created_at", "2017-04-15 18:58:50.006120"], ["updated_at", "2017-04-15 18:58:50.006120"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11549/operation_templates Completed 302 Found in 6ms (ActiveRecord: 0.9ms) RailsWorkflow::ProcessTemplate Load (0.5ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "44be386c-3d7a-fb6e-fd0d-a97eb762887a"], ["created_at", "2017-04-15 18:58:50.020603"], ["updated_at", "2017-04-15 18:58:50.020603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "818607ae-8565-613f-3532-b49897917d60"], ["created_at", "2017-04-15 18:58:50.024016"], ["updated_at", "2017-04-15 18:58:50.024016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"11551"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11551]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11551 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "a056ceab-3cfd-d524-7690-66f6c9443c95"], ["created_at", "2017-04-15 18:58:50.037227"], ["updated_at", "2017-04-15 18:58:50.037227"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"11552"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11552]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11552 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "b63e0358-bd24-8468-dd9e-08ce51aae341"], ["created_at", "2017-04-15 18:58:50.053191"], ["updated_at", "2017-04-15 18:58:50.053191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "6b7e5b7a-bcdd-42b2-9732-897f7b70a111"], ["created_at", "2017-04-15 18:58:50.056906"], ["updated_at", "2017-04-15 18:58:50.056906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "9ebee15b-38d6-df7c-d24e-f2f57221e4b0"], ["created_at", "2017-04-15 18:58:50.060600"], ["updated_at", "2017-04-15 18:58:50.060600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"11555"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11555]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 11555]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "2cd42852-d4bf-d002-9b90-da96f89b03b3"], ["created_at", "2017-04-15 18:58:50.075180"], ["updated_at", "2017-04-15 18:58:50.075180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"11556"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11556]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 11556]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4ac6632e-0097-25d8-049b-f357a767b00e"], ["created_at", "2017-04-15 18:58:50.090137"], ["updated_at", "2017-04-15 18:58:50.090137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11557], ["created_at", "2017-04-15 18:58:50.097930"], ["updated_at", "2017-04-15 18:58:50.097930"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#index as HTML  (0.5ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.4ms)  select status, cnt from ( select row_number() over (partition by status), count(*) over (partition by status) cnt, status from rails_workflow_processes)t where row_number = 1  Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 11ms (Views: 4.0ms | ActiveRecord: 0.9ms) RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" ASC LIMIT 30 OFFSET 0  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a8d9de82-7823-f5b2-982d-a6f823b22a3a"], ["created_at", "2017-04-15 18:58:50.119619"], ["updated_at", "2017-04-15 18:58:50.119619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11558], ["created_at", "2017-04-15 18:58:50.121455"], ["updated_at", "2017-04-15 18:58:50.121455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#show as HTML Parameters: {"id"=>"5219"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5219]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b0e5ac73-92fd-ae1c-e344-7bd00361b785"], ["created_at", "2017-04-15 18:58:50.138834"], ["updated_at", "2017-04-15 18:58:50.138834"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "052ff406-3470-d50e-2363-596d65f387d9"], ["created_at", "2017-04-15 18:58:50.147370"], ["updated_at", "2017-04-15 18:58:50.147370"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11560], ["created_at", "2017-04-15 18:58:50.149137"], ["updated_at", "2017-04-15 18:58:50.149137"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#edit as HTML Parameters: {"id"=>"5220"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5220]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "97c3545d-7364-765d-1de0-60611686c5cf"], ["created_at", "2017-04-15 18:58:50.165254"], ["updated_at", "2017-04-15 18:58:50.165254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_processes" Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11561"}} SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11561]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11561) [["id", 11561]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11561], ["created_at", "2017-04-15 18:58:50.181595"], ["updated_at", "2017-04-15 18:58:50.181595"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:58:50.183930"], ["id", 5221]] SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5221], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 18:58:50.192859"], ["updated_at", "2017-04-15 18:58:50.192859"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5221], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5221]] Redirected to http://test.host/workflow/processes/5221 Completed 302 Found in 32ms (ActiveRecord: 4.1ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1d5ac272-a011-6042-83ee-1515737e574a"], ["created_at", "2017-04-15 18:58:50.205758"], ["updated_at", "2017-04-15 18:58:50.205758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11562"}} SQL (0.5ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11562]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11562) [["id", 11562]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11562], ["created_at", "2017-04-15 18:58:50.214696"], ["updated_at", "2017-04-15 18:58:50.214696"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:58:50.216769"], ["id", 5222]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5222], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 18:58:50.218743"], ["updated_at", "2017-04-15 18:58:50.218743"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5222], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5222]] Redirected to http://test.host/workflow/processes/5222 Completed 302 Found in 15ms (ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a29d187c-de8a-bf81-851e-dd69098a35b7"], ["created_at", "2017-04-15 18:58:50.227793"], ["updated_at", "2017-04-15 18:58:50.227793"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11563"}} SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11563]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11563) [["id", 11563]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11563], ["created_at", "2017-04-15 18:58:50.236691"], ["updated_at", "2017-04-15 18:58:50.236691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:58:50.238308"], ["id", 5223]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5223], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 18:58:50.240218"], ["updated_at", "2017-04-15 18:58:50.240218"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5223], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.2ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5223]] Redirected to http://test.host/workflow/processes/5223 Completed 302 Found in 13ms (ActiveRecord: 2.0ms) RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "59cfe90e-3dca-1612-8c1b-f094f0e81f34"], ["created_at", "2017-04-15 18:58:50.251521"], ["updated_at", "2017-04-15 18:58:50.251521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b2495106-49e7-56c1-48f4-fcc5ca2faa5a"], ["created_at", "2017-04-15 18:58:50.254714"], ["updated_at", "2017-04-15 18:58:50.254714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7e0c7b9a-e6f5-c3d1-b55e-4ed142c62914"], ["created_at", "2017-04-15 18:58:50.258903"], ["updated_at", "2017-04-15 18:58:50.258903"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11566], ["created_at", "2017-04-15 18:58:50.261250"], ["updated_at", "2017-04-15 18:58:50.261250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8ec00e41-00b4-36f3-292d-c32f13e97ad0"], ["created_at", "2017-04-15 18:58:50.264527"], ["updated_at", "2017-04-15 18:58:50.264527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11567], ["created_at", "2017-04-15 18:58:50.266233"], ["updated_at", "2017-04-15 18:58:50.266233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11567"}, "id"=>"5225"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5225]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3ddd3ba9-0654-5f31-357d-461c4fedd06f"], ["created_at", "2017-04-15 18:58:50.277960"], ["updated_at", "2017-04-15 18:58:50.277960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11568], ["created_at", "2017-04-15 18:58:50.279775"], ["updated_at", "2017-04-15 18:58:50.279775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11568"}, "id"=>"5226"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5226]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1892d806-f8b4-2c6c-39ea-72b4a38df95c"], ["created_at", "2017-04-15 18:58:50.295458"], ["updated_at", "2017-04-15 18:58:50.295458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11569], ["created_at", "2017-04-15 18:58:50.297368"], ["updated_at", "2017-04-15 18:58:50.297368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1353b564-9761-641f-d161-148a3e531112"], ["created_at", "2017-04-15 18:58:50.300680"], ["updated_at", "2017-04-15 18:58:50.300680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11570], ["created_at", "2017-04-15 18:58:50.302496"], ["updated_at", "2017-04-15 18:58:50.302496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b6681650-f3ba-95d8-5843-c5cdf047be1e"], ["created_at", "2017-04-15 18:58:50.305829"], ["updated_at", "2017-04-15 18:58:50.305829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "967c2677-786a-3f20-b7d8-6b6d09b177b8"], ["created_at", "2017-04-15 18:58:50.308977"], ["updated_at", "2017-04-15 18:58:50.308977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9f107de2-8cf8-5466-9bbe-dce972c23bdd"], ["created_at", "2017-04-15 18:58:50.311911"], ["updated_at", "2017-04-15 18:58:50.311911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11573], ["uuid", "2b5f3446-6127-73e9-59c8-0bbff003dd85"], ["created_at", "2017-04-15 18:58:50.314162"], ["updated_at", "2017-04-15 18:58:50.314162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11573], ["dependencies", "[{\"id\":10406,\"statuses\":[2]}]"], ["uuid", "bc4205af-9639-4fdf-59d4-3f848e90d16c"], ["created_at", "2017-04-15 18:58:50.316694"], ["updated_at", "2017-04-15 18:58:50.316694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11573]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11573) [["id", 11573]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11573], ["created_at", "2017-04-15 18:58:50.322602"], ["updated_at", "2017-04-15 18:58:50.322602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:58:50.324634"], ["id", 5229]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5229], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.326559"], ["updated_at", "2017-04-15 18:58:50.326559"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5229], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10406], ["process_id", 5229], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:50.339105"], ["updated_at", "2017-04-15 18:58:50.339105"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5919], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.340937"], ["updated_at", "2017-04-15 18:58:50.340937"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6f7282c5-85d7-b02b-4f64-ab4b903e322d"], ["created_at", "2017-04-15 18:58:50.347073"], ["updated_at", "2017-04-15 18:58:50.347073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11574], ["uuid", "759179fa-0a1c-7212-865e-4c5db2692668"], ["created_at", "2017-04-15 18:58:50.349246"], ["updated_at", "2017-04-15 18:58:50.349246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11574], ["dependencies", "[{\"id\":10408,\"statuses\":[2]}]"], ["uuid", "31b10ba2-dc9e-40b1-0e64-41f79800cc0f"], ["created_at", "2017-04-15 18:58:50.351936"], ["updated_at", "2017-04-15 18:58:50.351936"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11574]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11574) [["id", 11574]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11574], ["created_at", "2017-04-15 18:58:50.358264"], ["updated_at", "2017-04-15 18:58:50.358264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:58:50.359844"], ["id", 5230]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5230], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.361739"], ["updated_at", "2017-04-15 18:58:50.361739"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5230], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10408], ["process_id", 5230], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:50.365126"], ["updated_at", "2017-04-15 18:58:50.365126"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5920], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.366417"], ["updated_at", "2017-04-15 18:58:50.366417"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "58da0e7d-4565-cb7e-7239-ecd2b064ef6f"], ["created_at", "2017-04-15 18:58:50.371049"], ["updated_at", "2017-04-15 18:58:50.371049"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11575], ["uuid", "b2e7d1fe-cc41-baca-c7e5-5576df5b251e"], ["created_at", "2017-04-15 18:58:50.373639"], ["updated_at", "2017-04-15 18:58:50.373639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11575], ["dependencies", "[{\"id\":10410,\"statuses\":[2]}]"], ["uuid", "57cb961f-2e13-c603-f61c-56bdb0c9c04f"], ["created_at", "2017-04-15 18:58:50.376059"], ["updated_at", "2017-04-15 18:58:50.376059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11575]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11575) [["id", 11575]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11575], ["created_at", "2017-04-15 18:58:50.381766"], ["updated_at", "2017-04-15 18:58:50.381766"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:58:50.383861"], ["id", 5231]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5231], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.386141"], ["updated_at", "2017-04-15 18:58:50.386141"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5231], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10410], ["process_id", 5231], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:50.390233"], ["updated_at", "2017-04-15 18:58:50.390233"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5921], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.391754"], ["updated_at", "2017-04-15 18:58:50.391754"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5231]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5231]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "dfc6f4f1-9c6d-4b17-d56d-85e4a61dba16"], ["created_at", "2017-04-15 18:58:50.398885"], ["updated_at", "2017-04-15 18:58:50.398885"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11576], ["uuid", "0e07fe5a-1b0e-a151-2e08-1c384685742c"], ["created_at", "2017-04-15 18:58:50.401356"], ["updated_at", "2017-04-15 18:58:50.401356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11576], ["dependencies", "[{\"id\":10412,\"statuses\":[2]}]"], ["uuid", "e99d7d1f-d5f7-9794-e819-4e7e9c978cc5"], ["created_at", "2017-04-15 18:58:50.403977"], ["updated_at", "2017-04-15 18:58:50.403977"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11576]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11576) [["id", 11576]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11576], ["created_at", "2017-04-15 18:58:50.409533"], ["updated_at", "2017-04-15 18:58:50.409533"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:58:50.411431"], ["id", 5232]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5232], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.413380"], ["updated_at", "2017-04-15 18:58:50.413380"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5232], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10412], ["process_id", 5232], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:50.417112"], ["updated_at", "2017-04-15 18:58:50.417112"]] SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5922], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.418801"], ["updated_at", "2017-04-15 18:58:50.418801"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d4cd99a7-e153-92ca-0c1a-3d11f7b9c350"], ["created_at", "2017-04-15 18:58:50.424028"], ["updated_at", "2017-04-15 18:58:50.424028"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11577], ["uuid", "133fe58b-674c-332f-a0a1-b59f63065253"], ["created_at", "2017-04-15 18:58:50.426342"], ["updated_at", "2017-04-15 18:58:50.426342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11577], ["dependencies", "[{\"id\":10414,\"statuses\":[2]}]"], ["uuid", "3e9ece15-845c-faeb-2683-06f1174b6e6e"], ["created_at", "2017-04-15 18:58:50.428818"], ["updated_at", "2017-04-15 18:58:50.428818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11577]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11577) [["id", 11577]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11577], ["created_at", "2017-04-15 18:58:50.434608"], ["updated_at", "2017-04-15 18:58:50.434608"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:58:50.436510"], ["id", 5233]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5233], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.438407"], ["updated_at", "2017-04-15 18:58:50.438407"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5233], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10414], ["process_id", 5233], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:50.442071"], ["updated_at", "2017-04-15 18:58:50.442071"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5923], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.443498"], ["updated_at", "2017-04-15 18:58:50.443498"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5233]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5923], ["parent_type", "RailsWorkflow::Operation"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "641aec1e-09e1-c4a4-f708-d6c0dc4823e9"], ["created_at", "2017-04-15 18:58:50.463342"], ["updated_at", "2017-04-15 18:58:50.463342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11578], ["uuid", "b921a129-71c9-fe3f-f506-09661632ff13"], ["created_at", "2017-04-15 18:58:50.465525"], ["updated_at", "2017-04-15 18:58:50.465525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11578], ["dependencies", "[{\"id\":10416,\"statuses\":[2]}]"], ["uuid", "24c8a990-020c-4bbe-0bd6-c1cff595c727"], ["created_at", "2017-04-15 18:58:50.467817"], ["updated_at", "2017-04-15 18:58:50.467817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11578]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11578) [["id", 11578]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11578], ["created_at", "2017-04-15 18:58:50.473043"], ["updated_at", "2017-04-15 18:58:50.473043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:58:50.474540"], ["id", 5234]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5234], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.476309"], ["updated_at", "2017-04-15 18:58:50.476309"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5234], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10416], ["process_id", 5234], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:50.479639"], ["updated_at", "2017-04-15 18:58:50.479639"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5924], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.481343"], ["updated_at", "2017-04-15 18:58:50.481343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "aae281b2-0cdf-b32d-d738-8377be698397"], ["created_at", "2017-04-15 18:58:50.486897"], ["updated_at", "2017-04-15 18:58:50.486897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11579], ["uuid", "d68f34f8-e3e4-82ea-4c58-94610579cf02"], ["created_at", "2017-04-15 18:58:50.489018"], ["updated_at", "2017-04-15 18:58:50.489018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11579], ["dependencies", "[{\"id\":10418,\"statuses\":[2]}]"], ["uuid", "e39c87b4-7acb-f3c0-2f8c-be9ede0e36e1"], ["created_at", "2017-04-15 18:58:50.491298"], ["updated_at", "2017-04-15 18:58:50.491298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11579]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11579) [["id", 11579]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11579], ["created_at", "2017-04-15 18:58:50.496454"], ["updated_at", "2017-04-15 18:58:50.496454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:58:50.498295"], ["id", 5235]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5235], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.500115"], ["updated_at", "2017-04-15 18:58:50.500115"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5235], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10418], ["process_id", 5235], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:50.503423"], ["updated_at", "2017-04-15 18:58:50.503423"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5925], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.504703"], ["updated_at", "2017-04-15 18:58:50.504703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:50.507472"], ["id", 5235]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5235], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:50.510296"], ["id", 5925]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9233ee9-c2f6-4696-9bc1-4e93678b50e5] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5925 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9233ee9-c2f6-4696-9bc1-4e93678b50e5] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5925]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9233ee9-c2f6-4696-9bc1-4e93678b50e5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9233ee9-c2f6-4696-9bc1-4e93678b50e5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9233ee9-c2f6-4696-9bc1-4e93678b50e5] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5925], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9233ee9-c2f6-4696-9bc1-4e93678b50e5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9233ee9-c2f6-4696-9bc1-4e93678b50e5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9233ee9-c2f6-4696-9bc1-4e93678b50e5] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 5.09ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c6db2c1d-151c-75dc-3cb9-4f293197d594"], ["created_at", "2017-04-15 18:58:50.520700"], ["updated_at", "2017-04-15 18:58:50.520700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11580], ["uuid", "fad933b2-1571-0655-59a4-05024d4d1658"], ["created_at", "2017-04-15 18:58:50.522901"], ["updated_at", "2017-04-15 18:58:50.522901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11580], ["dependencies", "[{\"id\":10420,\"statuses\":[2]}]"], ["uuid", "72b0ad3b-8859-ec5c-2ff5-4b280285f851"], ["created_at", "2017-04-15 18:58:50.525206"], ["updated_at", "2017-04-15 18:58:50.525206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11580]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11580) [["id", 11580]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11580], ["created_at", "2017-04-15 18:58:50.530724"], ["updated_at", "2017-04-15 18:58:50.530724"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:58:50.532765"], ["id", 5236]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5236], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.534528"], ["updated_at", "2017-04-15 18:58:50.534528"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5236], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10420], ["process_id", 5236], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:50.537911"], ["updated_at", "2017-04-15 18:58:50.537911"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5926], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.539242"], ["updated_at", "2017-04-15 18:58:50.539242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:50.542051"], ["id", 5236]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5236], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:50.545584"], ["id", 5926]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c4295b8c-ed41-49e5-a26d-f456ec2e5b27] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5926 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c4295b8c-ed41-49e5-a26d-f456ec2e5b27] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5926]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c4295b8c-ed41-49e5-a26d-f456ec2e5b27]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c4295b8c-ed41-49e5-a26d-f456ec2e5b27]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c4295b8c-ed41-49e5-a26d-f456ec2e5b27] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5926], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c4295b8c-ed41-49e5-a26d-f456ec2e5b27]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c4295b8c-ed41-49e5-a26d-f456ec2e5b27]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c4295b8c-ed41-49e5-a26d-f456ec2e5b27] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 3.67ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5236]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4cb7f84d-2d1f-70a0-7036-67fbeb6bf05c"], ["created_at", "2017-04-15 18:58:50.554837"], ["updated_at", "2017-04-15 18:58:50.554837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11581], ["uuid", "80b5cf33-dfd2-e791-0a6e-863368105014"], ["created_at", "2017-04-15 18:58:50.557034"], ["updated_at", "2017-04-15 18:58:50.557034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11581], ["dependencies", "[{\"id\":10422,\"statuses\":[2]}]"], ["uuid", "208b0ad3-e413-bb23-5bd8-764eb43c3dfd"], ["created_at", "2017-04-15 18:58:50.559302"], ["updated_at", "2017-04-15 18:58:50.559302"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11581]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11581) [["id", 11581]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11581], ["created_at", "2017-04-15 18:58:50.564974"], ["updated_at", "2017-04-15 18:58:50.564974"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:58:50.566841"], ["id", 5237]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5237], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.568627"], ["updated_at", "2017-04-15 18:58:50.568627"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5237], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10422], ["process_id", 5237], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:50.571947"], ["updated_at", "2017-04-15 18:58:50.571947"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5927], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.573412"], ["updated_at", "2017-04-15 18:58:50.573412"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:50.577754"], ["id", 5237]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5237], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:50.580856"], ["id", 5927]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5927 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5927]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5927], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:58:50.586047"], ["updated_at", "2017-04-15 18:58:50.586583"], ["id", 5927]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5237]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11581]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11581]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10422]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5237]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10422]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5237], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef] SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:58:50.599410"], ["id", 5237]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5237]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [72e53008-db9b-48be-a41e-0fe94587aeef] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 20.53ms RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5237]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 18:58:50.604368"], ["updated_at", "2017-04-15 18:58:50.605140"], ["id", 5927]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10422]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5237]]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5237], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:58:50.611637"], ["id", 5237]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5237]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0b1016ea-8592-6190-9046-2c5a41bd82b1"], ["created_at", "2017-04-15 18:58:50.615799"], ["updated_at", "2017-04-15 18:58:50.615799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11582], ["uuid", "35d424c6-d775-7082-8b62-ac393de2b044"], ["created_at", "2017-04-15 18:58:50.618016"], ["updated_at", "2017-04-15 18:58:50.618016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11582], ["dependencies", "[{\"id\":10424,\"statuses\":[2]}]"], ["uuid", "d569e8c8-ac73-3c1f-1ac3-e2ec5934c78f"], ["created_at", "2017-04-15 18:58:50.620369"], ["updated_at", "2017-04-15 18:58:50.620369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11582]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11582) [["id", 11582]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11582], ["created_at", "2017-04-15 18:58:50.625777"], ["updated_at", "2017-04-15 18:58:50.625777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:58:50.627441"], ["id", 5238]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5238], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.629217"], ["updated_at", "2017-04-15 18:58:50.629217"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5238], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10424], ["process_id", 5238], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:50.632620"], ["updated_at", "2017-04-15 18:58:50.632620"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5928], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.634071"], ["updated_at", "2017-04-15 18:58:50.634071"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:50.637212"], ["id", 5238]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5238], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:50.639930"], ["id", 5928]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5928 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5928]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5928], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:58:50.645752"], ["updated_at", "2017-04-15 18:58:50.646257"], ["id", 5928]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5238]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11582]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11582]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10424]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5238]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10424]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10425], ["process_id", 5238], ["status", 0], ["dependencies", "[{\"operation_id\":5928,\"status\":2}]"], ["created_at", "2017-04-15 18:58:50.654056"], ["updated_at", "2017-04-15 18:58:50.654056"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5929], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.655429"], ["updated_at", "2017-04-15 18:58:50.655429"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:50.659099"], ["id", 5929]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5929 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5929]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5929], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:58:50.663640"], ["updated_at", "2017-04-15 18:58:50.664170"], ["id", 5929]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5238]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11582]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11582]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10425]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5238]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10425]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10424]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5238], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60] SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:58:50.673184"], ["id", 5238]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5238]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] [RailsWorkflow::OperationExecutionJob] [72ade7ad-b4a2-4b84-abac-9944120aea60] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 14.77ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05189b84-f59f-4c3e-a9b1-005c4e138a95] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 33.68ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5238]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 18:58:50.676826"], ["updated_at", "2017-04-15 18:58:50.677570"], ["id", 5928]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10424]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5238]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10425]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5238], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:58:50.684328"], ["id", 5238]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5238]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "aa5513a3-c80a-39ae-00a0-ec84edfe7a0a"], ["created_at", "2017-04-15 18:58:50.688485"], ["updated_at", "2017-04-15 18:58:50.688485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11583], ["uuid", "eb34c9cc-b606-16b4-e1e7-c157aa641b4b"], ["created_at", "2017-04-15 18:58:50.690726"], ["updated_at", "2017-04-15 18:58:50.690726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11583], ["dependencies", "[{\"id\":10426,\"statuses\":[2]}]"], ["uuid", "be718946-4a87-0adc-6beb-ed45b3776f34"], ["created_at", "2017-04-15 18:58:50.693069"], ["updated_at", "2017-04-15 18:58:50.693069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11583]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11583) [["id", 11583]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11583], ["created_at", "2017-04-15 18:58:50.698533"], ["updated_at", "2017-04-15 18:58:50.698533"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:58:50.700395"], ["id", 5239]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5239], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.702180"], ["updated_at", "2017-04-15 18:58:50.702180"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5239], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10426], ["process_id", 5239], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:50.705601"], ["updated_at", "2017-04-15 18:58:50.705601"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5930], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.706939"], ["updated_at", "2017-04-15 18:58:50.706939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:50.709805"], ["id", 5239]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5239], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:50.712432"], ["id", 5930]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5930 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5930]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5930], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:58:50.717843"], ["updated_at", "2017-04-15 18:58:50.718372"], ["id", 5930]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5239]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11583]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11583]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10426]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5239]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10426]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10427], ["process_id", 5239], ["status", 0], ["dependencies", "[{\"operation_id\":5930,\"status\":2}]"], ["created_at", "2017-04-15 18:58:50.726127"], ["updated_at", "2017-04-15 18:58:50.726127"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5931], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.727540"], ["updated_at", "2017-04-15 18:58:50.727540"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:50.730696"], ["id", 5931]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5931 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5931]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5931], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:58:50.735093"], ["updated_at", "2017-04-15 18:58:50.735626"], ["id", 5931]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5239]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11583]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11583]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10427]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5239]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10427]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10426]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5239], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:58:50.744319"], ["id", 5239]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5239]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] [RailsWorkflow::OperationExecutionJob] [e287ca34-c8a9-4fb6-ab57-8a92c52fdb01] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 14.24ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1a30269f-9edf-49c0-9166-8a30869bba1e] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 32.51ms RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5239]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 18:58:50.747939"], ["updated_at", "2017-04-15 18:58:50.748705"], ["id", 5930]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10426]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5239]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10427]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5239], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:58:50.755647"], ["id", 5239]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5239]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 2], ["created_at", "2017-04-15 18:58:50.705601"], ["updated_at", "2017-04-15 18:58:50.748705"], ["completed_at", "2017-04-15 18:58:50.758226"], ["id", 5930]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "edbc37ef-523d-3523-5fa6-a96344e2e614"], ["created_at", "2017-04-15 18:58:50.762965"], ["updated_at", "2017-04-15 18:58:50.762965"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11584], ["uuid", "b2173db7-fad3-386d-4c30-7ba4da29c26c"], ["created_at", "2017-04-15 18:58:50.765245"], ["updated_at", "2017-04-15 18:58:50.765245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11584], ["dependencies", "[{\"id\":10428,\"statuses\":[2]}]"], ["uuid", "5f58741b-6a00-58a7-feb8-52e6dd73a33c"], ["created_at", "2017-04-15 18:58:50.767556"], ["updated_at", "2017-04-15 18:58:50.767556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11584]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11584) [["id", 11584]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11584], ["created_at", "2017-04-15 18:58:50.773061"], ["updated_at", "2017-04-15 18:58:50.773061"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:58:50.774995"], ["id", 5240]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5240], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.776975"], ["updated_at", "2017-04-15 18:58:50.776975"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5240], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10428], ["process_id", 5240], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:50.780565"], ["updated_at", "2017-04-15 18:58:50.780565"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5932], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.781972"], ["updated_at", "2017-04-15 18:58:50.781972"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:50.785074"], ["id", 5240]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5240], ["status", 0]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:50.788162"], ["id", 5932]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5932 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5932]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5932], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:58:50.793291"], ["updated_at", "2017-04-15 18:58:50.793853"], ["id", 5932]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5240]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11584]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11584]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10428]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5240]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10428]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10429], ["process_id", 5240], ["status", 0], ["dependencies", "[{\"operation_id\":5932,\"status\":2}]"], ["created_at", "2017-04-15 18:58:50.801472"], ["updated_at", "2017-04-15 18:58:50.801472"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5933], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.802893"], ["updated_at", "2017-04-15 18:58:50.802893"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:50.806040"], ["id", 5933]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5933 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5933]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5933], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:58:50.810656"], ["updated_at", "2017-04-15 18:58:50.811205"], ["id", 5933]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5240]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11584]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11584]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10429]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5240]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10429]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10428]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5240], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:58:50.826532"], ["id", 5240]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5240]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] [RailsWorkflow::OperationExecutionJob] [84ac3424-41a1-4eec-a52a-4b916cc3c1f2] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 20.85ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f4f7746-b5b9-4fac-a6d0-406721460e8f] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 38.68ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5240]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 18:58:50.829688"], ["updated_at", "2017-04-15 18:58:50.830344"], ["id", 5932]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10428]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5240]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10429]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5240], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:58:50.836647"], ["id", 5240]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5240]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 6], ["created_at", "2017-04-15 18:58:50.780565"], ["updated_at", "2017-04-15 18:58:50.830344"], ["completed_at", "2017-04-15 18:58:50.838535"], ["id", 5932]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9e577871-95de-7a0e-386b-9224ad21998c"], ["created_at", "2017-04-15 18:58:50.842460"], ["updated_at", "2017-04-15 18:58:50.842460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11585], ["uuid", "192f17c8-473a-afdb-cfa1-ede0208a87a9"], ["created_at", "2017-04-15 18:58:50.844645"], ["updated_at", "2017-04-15 18:58:50.844645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11585], ["dependencies", "[{\"id\":10430,\"statuses\":[2]}]"], ["uuid", "d423a2b1-f81f-35db-619f-6e33100bf9b8"], ["created_at", "2017-04-15 18:58:50.847007"], ["updated_at", "2017-04-15 18:58:50.847007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11585]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11585) [["id", 11585]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11585], ["created_at", "2017-04-15 18:58:50.852472"], ["updated_at", "2017-04-15 18:58:50.852472"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:58:50.854317"], ["id", 5241]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5241], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.856120"], ["updated_at", "2017-04-15 18:58:50.856120"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5241], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10430], ["process_id", 5241], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:50.859509"], ["updated_at", "2017-04-15 18:58:50.859509"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5934], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.860845"], ["updated_at", "2017-04-15 18:58:50.860845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:50.863702"], ["id", 5241]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5241], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:50.866221"], ["id", 5934]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5934 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5934]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5934], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:58:50.871621"], ["updated_at", "2017-04-15 18:58:50.872175"], ["id", 5934]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5241]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11585]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11585]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10430]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5241]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10430]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10431], ["process_id", 5241], ["status", 0], ["dependencies", "[{\"operation_id\":5934,\"status\":2}]"], ["created_at", "2017-04-15 18:58:50.879678"], ["updated_at", "2017-04-15 18:58:50.879678"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5935], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:50.881242"], ["updated_at", "2017-04-15 18:58:50.881242"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:50.884504"], ["id", 5935]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5935 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5935]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5935], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:58:50.888962"], ["updated_at", "2017-04-15 18:58:50.889485"], ["id", 5935]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5241]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11585]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11585]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10431]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5241]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10431]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10430]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5241], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:58:50.898176"], ["id", 5241]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5241]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] [RailsWorkflow::OperationExecutionJob] [94f695df-ec00-42df-9750-a9fad94eb48d] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 14.11ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5a950dda-f2f7-4c5c-af93-4401da1047de] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 32.53ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5241]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 18:58:50.901383"], ["updated_at", "2017-04-15 18:58:50.902068"], ["id", 5934]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10430]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5241]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10431]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5241], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:58:50.907955"], ["id", 5241]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5241]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 5], ["created_at", "2017-04-15 18:58:50.859509"], ["updated_at", "2017-04-15 18:58:50.902068"], ["completed_at", "2017-04-15 18:58:50.909873"], ["id", 5934]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'regular_user@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "regular_user@test.com"], ["encrypted_password", "$2a$04$zQa8aVPfm8E9dfYJ6YNkXOn1EIYOxcUmODkVx1b6yLIUti.PLQSNG"], ["role", "regular_user"], ["created_at", "2017-04-15 18:58:50.928176"], ["updated_at", "2017-04-15 18:58:50.928176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'admin@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "admin@test.com"], ["encrypted_password", "$2a$04$8z5m9TtpB21GxIno7EIsjOzRbCujrpoy1kcol04HyP3HNSPslTZaK"], ["role", "admin"], ["created_at", "2017-04-15 18:58:50.932929"], ["updated_at", "2017-04-15 18:58:50.932929"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:58:50.937525"], ["updated_at", "2017-04-15 18:58:50.937525"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "User Operation Template"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:58:50.940012"], ["id", 11586]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11586]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11586], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11586], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:58:50.946027"], ["updated_at", "2017-04-15 18:58:50.946027"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:50.948514"], ["id", 10432]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11586], ["uuid", nil]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11586], ["uuid", "e3e612d8-2d88-73c3-e996-10c1ea91c39c"], ["created_at", "2017-04-15 18:58:50.953520"], ["updated_at", "2017-04-15 18:58:50.953520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "uuid" = $1, "title" = $2, "dependencies" = $3, "operation_class" = $4, "async" = $5, "kind" = $6, "role" = $7, "instruction" = $8, "type" = $9, "partial_name" = $10, "updated_at" = $11 WHERE "rails_workflow_operation_templates"."id" = $12 [["uuid", "a4316bd4-d027-ea4d-1b14-74d69ef7bff6"], ["title", "Regular User Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "regular_user"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:50.957336"], ["id", 10433]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "User Operation Template"]] SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11586]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11586) [["id", 11586]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11586], ["created_at", "2017-04-15 18:58:50.966728"], ["updated_at", "2017-04-15 18:58:50.966728"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "User Operation Template"], ["status", 0], ["updated_at", "2017-04-15 18:58:50.968713"], ["id", 5242]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5242], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 18:58:50.970639"], ["updated_at", "2017-04-15 18:58:50.970639"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5242], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Regular User Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 10433], ["process_id", 5242], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:50.985746"], ["updated_at", "2017-04-15 18:58:50.985746"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5936], ["body", "{}"], ["created_at", "2017-04-15 18:58:50.987660"], ["updated_at", "2017-04-15 18:58:50.987660"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Admin Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 10432], ["process_id", 5242], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:50.991313"], ["updated_at", "2017-04-15 18:58:50.991313"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5937], ["body", "{}"], ["created_at", "2017-04-15 18:58:50.993074"], ["updated_at", "2017-04-15 18:58:50.993074"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:50.996237"], ["id", 5242]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5242], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 18:58:50.999278"], ["id", 5937]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 18:58:51.001195"], ["id", 5936]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/workflow/operations" for 127.0.0.1 at 2017-04-15 22:58:51 +0400 Processing by RailsWorkflow::OperationsController#index as HTML RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."status" = 3 ORDER BY "rails_workflow_operations"."created_at" DESC RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5242]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10432]] CACHE (0.0ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5242]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10433]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operations/index.html.slim within layouts/rails_workflow/application (19.2ms) Completed 200 OK in 152ms (Views: 143.7ms | ActiveRecord: 1.5ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Started GET "/workflow/config" for 127.0.0.1 at 2017-04-15 22:58:51 +0400 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/application/_flash.html.slim (2.3ms) RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (13.5ms) Completed 200 OK in 16ms (Views: 15.7ms | ActiveRecord: 0.4ms) Started GET "/workflow/config/new" for 127.0.0.1 at 2017-04-15 22:58:51 +0400 Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/_form.html.slim (17.2ms) Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (22.5ms) Completed 200 OK in 25ms (Views: 25.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.246834"], ["updated_at", "2017-04-15 18:58:51.246834"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:58:51.249090"], ["updated_at", "2017-04-15 18:58:51.249090"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5243], ["updated_at", "2017-04-15 18:58:51.250705"], ["id", 8815]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:51.255152"], ["updated_at", "2017-04-15 18:58:51.255152"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 18:58:51.257500"], ["updated_at", "2017-04-15 18:58:51.257500"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5938], ["updated_at", "2017-04-15 18:58:51.259313"], ["id", 8816]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2d4669db-67c1-8aa6-6b19-5c578d7c26c9"], ["created_at", "2017-04-15 18:58:51.262355"], ["updated_at", "2017-04-15 18:58:51.262355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11587], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "e57df192-4d73-af1f-397e-603de3520dff"], ["created_at", "2017-04-15 18:58:51.264495"], ["updated_at", "2017-04-15 18:58:51.264495"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10434], ["process_id", 5243], ["status", 0], ["dependencies", "[{\"operation_id\":5938,\"status\":4}]"], ["created_at", "2017-04-15 18:58:51.275600"], ["updated_at", "2017-04-15 18:58:51.275600"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5939], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:51.277142"], ["updated_at", "2017-04-15 18:58:51.277142"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.281623"], ["updated_at", "2017-04-15 18:58:51.281623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:58:51.283283"], ["updated_at", "2017-04-15 18:58:51.283283"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5244], ["updated_at", "2017-04-15 18:58:51.284796"], ["id", 8818]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 18:58:51.288394"], ["updated_at", "2017-04-15 18:58:51.288394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.292117"], ["updated_at", "2017-04-15 18:58:51.292117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:58:51.293957"], ["updated_at", "2017-04-15 18:58:51.293957"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5245], ["updated_at", "2017-04-15 18:58:51.295284"], ["id", 8820]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:58:51.298389"], ["updated_at", "2017-04-15 18:58:51.298389"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resource\":{\"id\":5940,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5245,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 18:58:51.300984"], ["updated_at", "2017-04-15 18:58:51.300984"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.305705"], ["updated_at", "2017-04-15 18:58:51.305705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:58:51.307367"], ["updated_at", "2017-04-15 18:58:51.307367"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5246], ["updated_at", "2017-04-15 18:58:51.308536"], ["id", 8822]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:58:51.311689"], ["updated_at", "2017-04-15 18:58:51.311689"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":5941,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5246,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 18:58:51.314490"], ["updated_at", "2017-04-15 18:58:51.314490"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.320180"], ["updated_at", "2017-04-15 18:58:51.320180"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:58:51.322526"], ["updated_at", "2017-04-15 18:58:51.322526"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5247], ["updated_at", "2017-04-15 18:58:51.324047"], ["id", 8824]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:58:51.328286"], ["updated_at", "2017-04-15 18:58:51.328286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5942], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 18:58:51.331180"], ["updated_at", "2017-04-15 18:58:51.331180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 8825]]  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.337425"], ["updated_at", "2017-04-15 18:58:51.337425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:58:51.339467"], ["updated_at", "2017-04-15 18:58:51.339467"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5248], ["updated_at", "2017-04-15 18:58:51.341335"], ["id", 8826]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:58:51.350755"], ["updated_at", "2017-04-15 18:58:51.350755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5943], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"resource\":{\"id\":5943,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5248,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 18:58:51.353520"], ["updated_at", "2017-04-15 18:58:51.353520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 8827]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5943]] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5248]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.360040"], ["updated_at", "2017-04-15 18:58:51.360040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:58:51.362016"], ["updated_at", "2017-04-15 18:58:51.362016"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5249], ["updated_at", "2017-04-15 18:58:51.363586"], ["id", 8828]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:58:51.366714"], ["updated_at", "2017-04-15 18:58:51.366714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":5944,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5249,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 18:58:51.369276"], ["updated_at", "2017-04-15 18:58:51.369276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 8829]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5944]] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5249]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.375942"], ["updated_at", "2017-04-15 18:58:51.375942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:58:51.377845"], ["updated_at", "2017-04-15 18:58:51.377845"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5250], ["updated_at", "2017-04-15 18:58:51.379567"], ["id", 8830]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "796727e1-0734-65fa-1fa8-f413d76b7016"], ["created_at", "2017-04-15 18:58:51.383941"], ["updated_at", "2017-04-15 18:58:51.383941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11588], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "727c4a1a-cc9d-b3d2-00dc-a7696f4d536c"], ["created_at", "2017-04-15 18:58:51.386129"], ["updated_at", "2017-04-15 18:58:51.386129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10435], ["process_id", 5250], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:51.389613"], ["updated_at", "2017-04-15 18:58:51.389613"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5945], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.391385"], ["updated_at", "2017-04-15 18:58:51.391385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.395556"], ["updated_at", "2017-04-15 18:58:51.395556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:58:51.397756"], ["updated_at", "2017-04-15 18:58:51.397756"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5251], ["updated_at", "2017-04-15 18:58:51.399243"], ["id", 8832]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7f232f0b-d5db-f738-12c2-75ea07f12be3"], ["created_at", "2017-04-15 18:58:51.404454"], ["updated_at", "2017-04-15 18:58:51.404454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11589], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "20e6293b-9356-f2c5-0e45-667ab5bb1fbd"], ["created_at", "2017-04-15 18:58:51.406700"], ["updated_at", "2017-04-15 18:58:51.406700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10436], ["process_id", 5251], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:51.411266"], ["updated_at", "2017-04-15 18:58:51.411266"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5946], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.413703"], ["updated_at", "2017-04-15 18:58:51.413703"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.418985"], ["updated_at", "2017-04-15 18:58:51.418985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:58:51.421082"], ["updated_at", "2017-04-15 18:58:51.421082"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5252], ["updated_at", "2017-04-15 18:58:51.422614"], ["id", 8834]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7984431c-b5ba-9f58-147c-dbead9898bec"], ["created_at", "2017-04-15 18:58:51.427640"], ["updated_at", "2017-04-15 18:58:51.427640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11590], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "43c5aa82-759b-8a61-8c4f-967ee0e21b69"], ["created_at", "2017-04-15 18:58:51.429865"], ["updated_at", "2017-04-15 18:58:51.429865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10437], ["process_id", 5252], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:51.434282"], ["updated_at", "2017-04-15 18:58:51.434282"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5947], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.436028"], ["updated_at", "2017-04-15 18:58:51.436028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.441055"], ["updated_at", "2017-04-15 18:58:51.441055"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:58:51.443778"], ["updated_at", "2017-04-15 18:58:51.443778"]] SQL (0.5ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5253], ["updated_at", "2017-04-15 18:58:51.446190"], ["id", 8836]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "69c89f9d-b164-ed3e-6365-a973971d76a6"], ["created_at", "2017-04-15 18:58:51.451108"], ["updated_at", "2017-04-15 18:58:51.451108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11591], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "ca690080-9ca0-96f7-ce01-056e9ba7dae7"], ["created_at", "2017-04-15 18:58:51.453414"], ["updated_at", "2017-04-15 18:58:51.453414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10438], ["process_id", 5253], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:51.458547"], ["updated_at", "2017-04-15 18:58:51.458547"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5948], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.460569"], ["updated_at", "2017-04-15 18:58:51.460569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.465515"], ["updated_at", "2017-04-15 18:58:51.465515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:58:51.468000"], ["updated_at", "2017-04-15 18:58:51.468000"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5254], ["updated_at", "2017-04-15 18:58:51.469505"], ["id", 8838]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8291e9cb-cfc8-39cf-808e-1af2ac044073"], ["created_at", "2017-04-15 18:58:51.474230"], ["updated_at", "2017-04-15 18:58:51.474230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11592], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "f8a972fc-eabc-657b-15c3-65f7472b5460"], ["created_at", "2017-04-15 18:58:51.477270"], ["updated_at", "2017-04-15 18:58:51.477270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10439], ["process_id", 5254], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:51.481519"], ["updated_at", "2017-04-15 18:58:51.481519"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5949], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.483201"], ["updated_at", "2017-04-15 18:58:51.483201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.487693"], ["updated_at", "2017-04-15 18:58:51.487693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:58:51.489676"], ["updated_at", "2017-04-15 18:58:51.489676"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5255], ["updated_at", "2017-04-15 18:58:51.491050"], ["id", 8840]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "53a25dbc-1ba3-328c-319c-a497754e6221"], ["created_at", "2017-04-15 18:58:51.495000"], ["updated_at", "2017-04-15 18:58:51.495000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11593], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "11465124-84e5-3eb6-5f5b-a2b58f6bdcaf"], ["created_at", "2017-04-15 18:58:51.497069"], ["updated_at", "2017-04-15 18:58:51.497069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10440], ["process_id", 5255], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:51.500868"], ["updated_at", "2017-04-15 18:58:51.500868"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5950], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.502701"], ["updated_at", "2017-04-15 18:58:51.502701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.507700"], ["updated_at", "2017-04-15 18:58:51.507700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:58:51.510155"], ["updated_at", "2017-04-15 18:58:51.510155"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5256], ["updated_at", "2017-04-15 18:58:51.511749"], ["id", 8842]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "84f714fc-e068-f03b-aa10-7d4ee4984ff4"], ["created_at", "2017-04-15 18:58:51.515919"], ["updated_at", "2017-04-15 18:58:51.515919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f84076ef-db33-2f6b-ad31-c962daf1aa26"], ["created_at", "2017-04-15 18:58:51.518389"], ["updated_at", "2017-04-15 18:58:51.518389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11594], ["child_process_id", 11595], ["uuid", "9d6723f8-70e3-1804-f453-441e76385aab"], ["created_at", "2017-04-15 18:58:51.520549"], ["updated_at", "2017-04-15 18:58:51.520549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "03ba7ed3-bb83-4d80-7d08-910225286f4f"], ["created_at", "2017-04-15 18:58:51.523951"], ["updated_at", "2017-04-15 18:58:51.523951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11596], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "cf479538-f3b2-e0e9-3f3a-dab9cba07fb0"], ["created_at", "2017-04-15 18:58:51.525934"], ["updated_at", "2017-04-15 18:58:51.525934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10442], ["process_id", 5256], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:51.529779"], ["updated_at", "2017-04-15 18:58:51.529779"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5951], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.531374"], ["updated_at", "2017-04-15 18:58:51.531374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10441], ["process_id", 5256], ["status", 0], ["dependencies", "[{\"operation_id\":5951,\"status\":0}]"], ["created_at", "2017-04-15 18:58:51.535261"], ["updated_at", "2017-04-15 18:58:51.535261"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5952], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.536999"], ["updated_at", "2017-04-15 18:58:51.536999"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11595]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11595) [["id", 11595]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11595], ["created_at", "2017-04-15 18:58:51.544927"], ["updated_at", "2017-04-15 18:58:51.544927"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:58:51.547062"], ["id", 5257]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5257], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.549176"], ["updated_at", "2017-04-15 18:58:51.549176"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5257], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.554434"], ["updated_at", "2017-04-15 18:58:51.554434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:58:51.556393"], ["updated_at", "2017-04-15 18:58:51.556393"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5258], ["updated_at", "2017-04-15 18:58:51.557811"], ["id", 8846]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "62590fa7-3c97-eedc-597d-65b30f26d38a"], ["created_at", "2017-04-15 18:58:51.561844"], ["updated_at", "2017-04-15 18:58:51.561844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11597], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "acab483c-442d-61e5-f760-5964605df141"], ["created_at", "2017-04-15 18:58:51.563584"], ["updated_at", "2017-04-15 18:58:51.563584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10443], ["process_id", 5258], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:51.567236"], ["updated_at", "2017-04-15 18:58:51.567236"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5953], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.569223"], ["updated_at", "2017-04-15 18:58:51.569223"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.574098"], ["updated_at", "2017-04-15 18:58:51.574098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:58:51.576522"], ["updated_at", "2017-04-15 18:58:51.576522"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5259], ["updated_at", "2017-04-15 18:58:51.578127"], ["id", 8848]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 18:58:51.582603"], ["updated_at", "2017-04-15 18:58:51.582603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "360619e0-4c46-4b5e-c7c3-c2491ee8eb59"], ["created_at", "2017-04-15 18:58:51.585226"], ["updated_at", "2017-04-15 18:58:51.585226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11598], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "5b0c17d4-7432-2e21-5aa7-68c9b95d90a2"], ["created_at", "2017-04-15 18:58:51.587533"], ["updated_at", "2017-04-15 18:58:51.587533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5954], ["parent_type", "RailsWorkflow::Operation"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10444], ["process_id", 5259], ["status", 0], ["dependencies", "[{\"operation_id\":5954,\"status\":4}]"], ["created_at", "2017-04-15 18:58:51.592035"], ["updated_at", "2017-04-15 18:58:51.592035"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5955], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.593774"], ["updated_at", "2017-04-15 18:58:51.593774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.597870"], ["updated_at", "2017-04-15 18:58:51.597870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:58:51.600119"], ["updated_at", "2017-04-15 18:58:51.600119"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5260], ["updated_at", "2017-04-15 18:58:51.602162"], ["id", 8850]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "94e9280b-f36e-6f29-49e0-2e83232c4996"], ["created_at", "2017-04-15 18:58:51.606264"], ["updated_at", "2017-04-15 18:58:51.606264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11599], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "bef1e177-5b57-d68c-669f-bded7717325c"], ["created_at", "2017-04-15 18:58:51.608285"], ["updated_at", "2017-04-15 18:58:51.608285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10445], ["process_id", 5260], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:58:51.612074"], ["updated_at", "2017-04-15 18:58:51.612074"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5956], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.613823"], ["updated_at", "2017-04-15 18:58:51.613823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:58:51.617434"], ["updated_at", "2017-04-15 18:58:51.617434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$4Cxx5MXxhhFP6HuugwS3lu5sU1CPmZOf0O8M9lovxszaytkfvapDK"], ["created_at", "2017-04-15 18:58:51.622359"], ["updated_at", "2017-04-15 18:58:51.622359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1545], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1545], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:58:51.624135"], ["updated_at", "2017-04-15 18:58:51.625563"], ["id", 5957]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:58:51.629317"], ["updated_at", "2017-04-15 18:58:51.629317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$GZLihiYoVdqp4HP5yKiWouItVfxgO8oKpqs7yyec8Tj35OeB6OH2a"], ["created_at", "2017-04-15 18:58:51.634584"], ["updated_at", "2017-04-15 18:58:51.634584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1546], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1546], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:58:51.636463"], ["updated_at", "2017-04-15 18:58:51.637916"], ["id", 5958]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:58:51.640274"], ["updated_at", "2017-04-15 18:58:51.640274"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1546], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1546], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:58:51.641884"], ["updated_at", "2017-04-15 18:58:51.643172"], ["id", 5959]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5958]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:58:51.647357"], ["updated_at", "2017-04-15 18:58:51.647357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$6mxuvhcyQH5bQlJtzSl4o.4LWcSYBXi8QGUHEGJ5jCYaM7D5.0d2O"], ["created_at", "2017-04-15 18:58:51.652058"], ["updated_at", "2017-04-15 18:58:51.652058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1547], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1547], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:58:51.660125"], ["updated_at", "2017-04-15 18:58:51.661430"], ["id", 5960]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "updated_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["assignment_id", nil], ["assignment_type", nil], ["is_active", "f"], ["updated_at", "2017-04-15 18:58:51.663396"], ["id", 5960]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:58:51.667033"], ["updated_at", "2017-04-15 18:58:51.667033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$m2TbTUvS.IULbJtMsKJh1u9Jo1TWVz7iBgwzwCxDvkGv9kPKBn5PK"], ["created_at", "2017-04-15 18:58:51.671189"], ["updated_at", "2017-04-15 18:58:51.671189"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1548], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1548], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:58:51.672712"], ["updated_at", "2017-04-15 18:58:51.674134"], ["id", 5961]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$74VnpVdgfI68tV0UN6SPgOKwXiOIrdfisX69nfx5NzT6VMGVxc.SK"], ["created_at", "2017-04-15 18:58:51.678490"], ["updated_at", "2017-04-15 18:58:51.678490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5961]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1548]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:58:51.684020"], ["updated_at", "2017-04-15 18:58:51.684020"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$ILM83V.4KRxTjuE6vBT/Euap5VUjDQ9w6EdUmTKOevQp6aZD1Ynha"], ["created_at", "2017-04-15 18:58:51.688282"], ["updated_at", "2017-04-15 18:58:51.688282"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1550], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1550], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:58:51.689810"], ["updated_at", "2017-04-15 18:58:51.691240"], ["id", 5962]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$54LPKMqd7yA0JXk/maN34Ozo7fp1yYcw3/50UGrGpICfX8T541tqe"], ["created_at", "2017-04-15 18:58:51.695971"], ["updated_at", "2017-04-15 18:58:51.695971"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:58:51.699467"], ["updated_at", "2017-04-15 18:58:51.699467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$nGzFmnd4hRwcGm9axEiVuuO//WA.P1QinzfsCbnngFNNmSsNH0G6S"], ["created_at", "2017-04-15 18:58:51.703421"], ["updated_at", "2017-04-15 18:58:51.703421"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1552], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1552], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:58:51.704889"], ["updated_at", "2017-04-15 18:58:51.706069"], ["id", 5963]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$9PkfJUtfFWyHKw37iLLJvOdHFOQ632zDlKBCMbySbLvbGE6v8tSVW"], ["created_at", "2017-04-15 18:58:51.710021"], ["updated_at", "2017-04-15 18:58:51.710021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "093fd9f5-5df1-7cb7-cec9-18c752c8d83a"], ["created_at", "2017-04-15 18:58:51.713194"], ["updated_at", "2017-04-15 18:58:51.713194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "role", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11600], ["role", "admin"], ["uuid", "a62c793d-7833-b95d-43ed-6f3c4afd5cd1"], ["created_at", "2017-04-15 18:58:51.715065"], ["updated_at", "2017-04-15 18:58:51.715065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6de59463-a7df-29d7-51c3-9eaf955d0621"], ["created_at", "2017-04-15 18:58:51.717390"], ["updated_at", "2017-04-15 18:58:51.717390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "group", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11601], ["group", "some_group"], ["uuid", "fd134c4a-9f99-69c9-834e-a7f5231009d3"], ["created_at", "2017-04-15 18:58:51.719150"], ["updated_at", "2017-04-15 18:58:51.719150"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 10447], ["created_at", "2017-04-15 18:58:51.721386"], ["updated_at", "2017-04-15 18:58:51.721386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 10446], ["created_at", "2017-04-15 18:58:51.723521"], ["updated_at", "2017-04-15 18:58:51.723521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$HxIfUXOaognE73WyoyJfhuddZtYi9RLZ5XoPQdREam4qZOZ3oo71e"], ["role", "admin"], ["created_at", "2017-04-15 18:58:51.728027"], ["updated_at", "2017-04-15 18:58:51.728027"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.6ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'admin')  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'fake@email.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "fake@email.com"], ["encrypted_password", "$2a$04$.eJhW58wRDAbQQDpzRPTQ.q7VdSHES4UJwj5Dwcf0YhNzIr7Aux5C"], ["role", "fake"], ["created_at", "2017-04-15 18:58:51.734340"], ["updated_at", "2017-04-15 18:58:51.734340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'fake') SQL (0.1ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1554], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1554], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:58:51.737267"], ["updated_at", "2017-04-15 18:58:51.738431"], ["id", 5965]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."assignment_id" IS NULL  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:58:51.742170"], ["updated_at", "2017-04-15 18:58:51.742170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:58:51.743906"], ["updated_at", "2017-04-15 18:58:51.743906"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5966], ["updated_at", "2017-04-15 18:58:51.745146"], ["id", 8852]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 18:58:51.747087"], ["id", 5966]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:58:51.750457"], ["updated_at", "2017-04-15 18:58:51.750457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:58:51.752552"], ["updated_at", "2017-04-15 18:58:51.752552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:58:51.754043"], ["updated_at", "2017-04-15 18:58:51.754043"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5261], ["updated_at", "2017-04-15 18:58:51.755179"], ["id", 8853]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "child_process_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["child_process_id", 5261], ["updated_at", "2017-04-15 18:58:51.756981"], ["id", 5967]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:51.759279"], ["id", 5967]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5967 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5967]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5261]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:58:51.763601"], ["id", 5261]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5261], ["status", 0]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5967], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308] SQL (0.5ms) INSERT INTO "rails_workflow_errors" ("parent_id", "parent_type", "message", "stack_trace", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["parent_id", 5967], ["parent_type", "RailsWorkflow::Operation"], ["message", "undefined method `save' for nil:NilClass"], ["stack_trace", "/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:60:in `execute_in_transaction'
\n/home/maxim/rails_workflow/app/jobs/rails_workflow/operation_execution_job.rb:12:in `perform'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:32:in `block in perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/i18n-0.7.0/lib/i18n.rb:257:in `with_locale'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/translation.rb:7:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:23:in `block (4 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `block in instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:22:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `block in tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:26:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:19:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_perform_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:31:in `perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:16:in `perform_now'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:28:in `starting'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:18:in `start'
\n/home/maxim/rails_workflow/spec/models/rails_workflow/operation_spec.rb:179:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `block in with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `block in with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:618:in `block in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-rails-3.4.2/lib/rspec/rails/adapters.rb:127:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:389:in `execute_with'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:620:in `block (2 levels) in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:621:in `run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:233:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:581:in `block in run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:543:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (3 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (2 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/configuration.rb:1680:in `with_suite_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:118:in `block in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/reporter.rb:77:in `report'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:117:in `run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:93:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:78:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:45:in `invoke'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/exe/rspec:4:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `kernel_load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:335:in `exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:20:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:11:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:32:in `block in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:24:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `
'"], ["created_at", "2017-04-15 18:58:51.770811"], ["updated_at", "2017-04-15 18:58:51.770811"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 136], ["parent_type", "RailsWorkflow::Error"], ["body", "{\"parent\":{\"id\":5967,\"class\":\"RailsWorkflow::Operation\"},\"target\":{\"id\":5967,\"class\":\"RailsWorkflow::Operation\"},\"method\":\"execute_in_transaction\"}"], ["created_at", "2017-04-15 18:58:51.774690"], ["updated_at", "2017-04-15 18:58:51.774690"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 136], ["parent_type", "RailsWorkflow::Error"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5967]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5967]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5967]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308] SQL (0.1ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 4], ["updated_at", "2017-04-15 18:58:51.780240"], ["id", 5967]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3df71b67-c832-44d0-98b6-c7bed3ddc308] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 20.89ms RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5261]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 2], ["completed_at", "2017-04-15 18:58:51.784397"], ["created_at", "2017-04-15 18:58:51.784961"], ["updated_at", "2017-04-15 18:58:51.784961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 6], ["completed_at", "2017-04-15 18:58:51.788504"], ["created_at", "2017-04-15 18:58:51.789017"], ["updated_at", "2017-04-15 18:58:51.789017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 5], ["completed_at", "2017-04-15 18:58:51.793373"], ["created_at", "2017-04-15 18:58:51.794017"], ["updated_at", "2017-04-15 18:58:51.794017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d199f90f-ae50-2be0-86a1-0a98449ee62c"], ["created_at", "2017-04-15 18:58:51.798299"], ["updated_at", "2017-04-15 18:58:51.798299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 11602], ["uuid", "3a0908b4-75e8-ab7b-de39-15017dba40b5"], ["created_at", "2017-04-15 18:58:51.800167"], ["updated_at", "2017-04-15 18:58:51.800167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::TestProcess"], ["uuid", "cb4eed78-4311-a563-f9cc-f73c8e429373"], ["created_at", "2017-04-15 18:58:51.804311"], ["updated_at", "2017-04-15 18:58:51.804311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("type", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "RailsWorkflow::TestProcess"], ["template_id", 11603], ["created_at", "2017-04-15 18:58:51.809948"], ["updated_at", "2017-04-15 18:58:51.809948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:58:51.811781"], ["id", 5262]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5262], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 18:58:51.813582"], ["updated_at", "2017-04-15 18:58:51.813582"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5262], ["parent_type", "RailsWorkflow::Process"]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11603]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::Process"], ["uuid", "6cd3e233-4241-9b75-12c8-4a8c27d9a797"], ["created_at", "2017-04-15 18:58:51.818338"], ["updated_at", "2017-04-15 18:58:51.818338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11604], ["uuid", "dc696dba-f5a9-9418-c84d-3cd10b5b997b"], ["created_at", "2017-04-15 18:58:51.820487"], ["updated_at", "2017-04-15 18:58:51.820487"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11604], ["dependencies", "[{\"id\":10449,\"statuses\":[2]}]"], ["uuid", "58324ae4-23c4-855f-e36d-ecd4e7e1d2b5"], ["created_at", "2017-04-15 18:58:51.823255"], ["updated_at", "2017-04-15 18:58:51.823255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11604]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11604) [["id", 11604]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "080c6342-bc2e-28f9-7c49-a8c0408c3c13"], ["created_at", "2017-04-15 18:58:51.831265"], ["updated_at", "2017-04-15 18:58:51.831265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "cd773ef1-59f9-9011-a1c9-b4630391d0d9"], ["created_at", "2017-04-15 18:58:51.833248"], ["updated_at", "2017-04-15 18:58:51.833248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2e6cee9c-6d25-91d6-56a3-b376b5c53c8a"], ["created_at", "2017-04-15 18:58:51.834918"], ["updated_at", "2017-04-15 18:58:51.834918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11606], ["child_process_id", 11607], ["uuid", "bdef58b8-761a-3632-8a36-42145037b463"], ["created_at", "2017-04-15 18:58:51.836596"], ["updated_at", "2017-04-15 18:58:51.836596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11605]] SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 11605], ["updated_at", "2017-04-15 18:58:51.839374"], ["id", 10451]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11605]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11607]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f187670d-722d-e042-3b2c-8e1e0744e85a"], ["created_at", "2017-04-15 18:58:51.847166"], ["updated_at", "2017-04-15 18:58:51.847166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "513c6bf5-3dcf-ddcb-3501-9ef5aa9a4ff7"], ["created_at", "2017-04-15 18:58:51.849266"], ["updated_at", "2017-04-15 18:58:51.849266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11609], ["uuid", "a2e107ac-2621-9e4e-5377-0acc7add0b25"], ["created_at", "2017-04-15 18:58:51.851001"], ["updated_at", "2017-04-15 18:58:51.851001"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11608]] SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 11608], ["updated_at", "2017-04-15 18:58:51.854425"], ["id", 10452]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11608]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:58:51.861632"], ["updated_at", "2017-04-15 18:58:51.861632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:58:51.863282"], ["id", 11610]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11610]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11610], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11610], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 18:58:51.866995"], ["updated_at", "2017-04-15 18:58:51.866995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:51.868891"], ["id", 10453]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11610], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11610], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 18:58:51.872036"], ["updated_at", "2017-04-15 18:58:51.872036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:51.874066"], ["id", 10454]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11610], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11610], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:58:51.877367"], ["updated_at", "2017-04-15 18:58:51.877367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:51.879353"], ["id", 10455]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10453}]"], ["updated_at", "2017-04-15 18:58:51.883395"], ["id", 10454]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10454}]"], ["updated_at", "2017-04-15 18:58:51.886234"], ["id", 10455]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:58:51.891565"], ["updated_at", "2017-04-15 18:58:51.891565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:58:51.893157"], ["id", 11611]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11611]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11611], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11611], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 18:58:51.897008"], ["updated_at", "2017-04-15 18:58:51.897008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:51.898956"], ["id", 10456]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11611], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11611], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 18:58:51.901820"], ["updated_at", "2017-04-15 18:58:51.901820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:51.903777"], ["id", 10457]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11611], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11611], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:58:51.906864"], ["updated_at", "2017-04-15 18:58:51.906864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:51.908791"], ["id", 10458]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10456}]"], ["updated_at", "2017-04-15 18:58:51.911961"], ["id", 10457]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10457}]"], ["updated_at", "2017-04-15 18:58:51.914249"], ["id", 10458]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Some new name"], ["updated_at", "2017-04-15 18:58:51.916694"], ["id", 11611]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Test Process"], ["updated_at", "2017-04-15 18:58:51.919928"], ["id", 11611]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11611]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11611], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11611], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 18:58:51.925838"], ["id", 10457]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11611], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 18:58:51.929031"], ["id", 10458]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10456}]"], ["updated_at", "2017-04-15 18:58:51.932096"], ["id", 10457]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10457}]"], ["updated_at", "2017-04-15 18:58:51.934468"], ["id", 10458]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:58:51.938727"], ["updated_at", "2017-04-15 18:58:51.938727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:58:51.940386"], ["id", 11612]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11612]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11612], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11612], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 18:58:51.944030"], ["updated_at", "2017-04-15 18:58:51.944030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:51.945866"], ["id", 10459]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11612], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11612], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 18:58:51.949138"], ["updated_at", "2017-04-15 18:58:51.949138"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:51.952196"], ["id", 10460]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11612], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11612], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:58:51.956764"], ["updated_at", "2017-04-15 18:58:51.956764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:51.959311"], ["id", 10461]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10459}]"], ["updated_at", "2017-04-15 18:58:51.963171"], ["id", 10460]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10460}]"], ["updated_at", "2017-04-15 18:58:51.965657"], ["id", 10461]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11612]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:58:51.972142"], ["updated_at", "2017-04-15 18:58:51.972142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:58:51.973979"], ["id", 11613]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11613]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11613], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11613], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 18:58:51.978037"], ["updated_at", "2017-04-15 18:58:51.978037"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:51.980528"], ["id", 10462]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11613], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11613], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 18:58:51.984178"], ["updated_at", "2017-04-15 18:58:51.984178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:51.986063"], ["id", 10463]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11613], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11613], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:58:51.989307"], ["updated_at", "2017-04-15 18:58:51.989307"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:51.991584"], ["id", 10464]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10462}]"], ["updated_at", "2017-04-15 18:58:51.995071"], ["id", 10463]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10463}]"], ["updated_at", "2017-04-15 18:58:51.997810"], ["id", 10464]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11613]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Some new operation name"], ["updated_at", "2017-04-15 18:58:52.002060"], ["id", 10462]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11613]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11613], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Default Operation 2"], ["updated_at", "2017-04-15 18:58:52.008326"], ["id", 10462]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11613], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 18:58:52.011457"], ["id", 10463]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11613], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 18:58:52.014574"], ["id", 10464]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10462}]"], ["updated_at", "2017-04-15 18:58:52.017597"], ["id", 10463]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10463}]"], ["updated_at", "2017-04-15 18:58:52.019884"], ["id", 10464]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10462]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:58:52.024370"], ["updated_at", "2017-04-15 18:58:52.024370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:58:52.026001"], ["id", 11614]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11614]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11614], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11614], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 18:58:52.029557"], ["updated_at", "2017-04-15 18:58:52.029557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:52.031452"], ["id", 10465]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11614], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11614], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 18:58:52.034783"], ["updated_at", "2017-04-15 18:58:52.034783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:52.036763"], ["id", 10466]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11614], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11614], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:58:52.039921"], ["updated_at", "2017-04-15 18:58:52.039921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:52.041812"], ["id", 10467]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10465}]"], ["updated_at", "2017-04-15 18:58:52.044877"], ["id", 10466]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10466}]"], ["updated_at", "2017-04-15 18:58:52.047116"], ["id", 10467]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Some new operation"], ["process_template_id", 11614], ["uuid", "0043c959-0e61-e6e6-9b77-1ee8f5d8d5a8"], ["created_at", "2017-04-15 18:58:52.050390"], ["updated_at", "2017-04-15 18:58:52.050390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11614]] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11614]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11614], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11614], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 18:58:52.059420"], ["id", 10466]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11614], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 18:58:52.062539"], ["id", 10467]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = 10468  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10465}]"], ["updated_at", "2017-04-15 18:58:52.066208"], ["id", 10466]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10466}]"], ["updated_at", "2017-04-15 18:58:52.068445"], ["id", 10467]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11614]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:58:52.073413"], ["updated_at", "2017-04-15 18:58:52.073413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:58:52.075007"], ["id", 11615]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11615]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11615], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11615], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 18:58:52.078340"], ["updated_at", "2017-04-15 18:58:52.078340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:52.080582"], ["id", 10469]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11615], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11615], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 18:58:52.084095"], ["updated_at", "2017-04-15 18:58:52.084095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:52.086064"], ["id", 10470]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11615], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11615], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:58:52.089143"], ["updated_at", "2017-04-15 18:58:52.089143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:52.091095"], ["id", 10471]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10469}]"], ["updated_at", "2017-04-15 18:58:52.094130"], ["id", 10470]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10470}]"], ["updated_at", "2017-04-15 18:58:52.096342"], ["id", 10471]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10469]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 18:58:52.101437"], ["updated_at", "2017-04-15 18:58:52.101437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 18:58:52.103550"], ["updated_at", "2017-04-15 18:58:52.103550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 18:58:52.105042"], ["id", 11617]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11617]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11617], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11617], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 18:58:52.108450"], ["updated_at", "2017-04-15 18:58:52.108450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:52.110711"], ["id", 10472]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 18:58:52.113783"], ["id", 11616]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11616]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11616], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11616], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 18:58:52.117210"], ["updated_at", "2017-04-15 18:58:52.117210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:52.119050"], ["id", 10473]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11616], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11616], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 18:58:52.121816"], ["updated_at", "2017-04-15 18:58:52.121816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 11617], ["updated_at", "2017-04-15 18:58:52.124405"], ["id", 10474]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":10473}]"], ["updated_at", "2017-04-15 18:58:52.127671"], ["id", 10474]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 18:58:52.131748"], ["updated_at", "2017-04-15 18:58:52.131748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 18:58:52.133899"], ["updated_at", "2017-04-15 18:58:52.133899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 18:58:52.135430"], ["id", 11619]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11619]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11619], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11619], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 18:58:52.138911"], ["updated_at", "2017-04-15 18:58:52.138911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:52.141957"], ["id", 10475]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 18:58:52.145028"], ["id", 11618]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11618]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11618], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11618], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 18:58:52.148583"], ["updated_at", "2017-04-15 18:58:52.148583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:52.150396"], ["id", 10476]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11618], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11618], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 18:58:52.153207"], ["updated_at", "2017-04-15 18:58:52.153207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 11619], ["updated_at", "2017-04-15 18:58:52.155805"], ["id", 10477]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":10476}]"], ["updated_at", "2017-04-15 18:58:52.158922"], ["id", 10477]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Parent Process"]] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11618]] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11619]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 18:58:52.166336"], ["updated_at", "2017-04-15 18:58:52.166336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 18:58:52.167974"], ["id", 11620]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11620]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11620], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11620], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 18:58:52.171408"], ["updated_at", "2017-04-15 18:58:52.171408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:58:52.173714"], ["id", 10478]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11620], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11620], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 18:58:52.177249"], ["updated_at", "2017-04-15 18:58:52.177249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e2d1807c-37e6-2050-2e24-64e8f9432057"], ["created_at", "2017-04-15 18:59:30.298982"], ["updated_at", "2017-04-15 18:59:30.298982"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11621], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "8a0d4b20-dc3b-d5e0-3e27-56fdcfd21f58"], ["created_at", "2017-04-15 18:59:30.313850"], ["updated_at", "2017-04-15 18:59:30.313850"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#index as HTML Parameters: {"process_template_id"=>"11621"} RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11621]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 24ms (Views: 7.9ms | ActiveRecord: 0.4ms) RailsWorkflow::OperationTemplate Load (0.5ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11621]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0042418c-1d28-0440-e121-717ded946c70"], ["created_at", "2017-04-15 18:59:30.349832"], ["updated_at", "2017-04-15 18:59:30.349832"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11622], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "4eab08be-8399-bf87-a216-20c20cc01dcf"], ["created_at", "2017-04-15 18:59:30.352233"], ["updated_at", "2017-04-15 18:59:30.352233"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#show as HTML Parameters: {"process_template_id"=>"11622", "id"=>"10481"} RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10481]] RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11622]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0e987014-2d0b-bc9d-72ca-f5b07e03f240"], ["created_at", "2017-04-15 18:59:30.371019"], ["updated_at", "2017-04-15 18:59:30.371019"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8ef9de60-2fa9-e445-8b5e-d2ef3aa3f417"], ["created_at", "2017-04-15 18:59:30.373362"], ["updated_at", "2017-04-15 18:59:30.373362"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#new as HTML Parameters: {"process_template_id"=>"11624"} RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11624]] Unpermitted parameter: process_template_id Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 8ms (Views: 1.7ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "71dc368e-8c98-51fd-5742-6bd8cf62a6dd"], ["created_at", "2017-04-15 18:59:30.389787"], ["updated_at", "2017-04-15 18:59:30.389787"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11625], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "61f9ccec-925f-3a20-208c-b42619efefe1"], ["created_at", "2017-04-15 18:59:30.392222"], ["updated_at", "2017-04-15 18:59:30.392222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#edit as HTML Parameters: {"process_template_id"=>"11625", "id"=>"10482"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10482]] RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11625]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6e9cf8bb-7490-37a7-189d-154f443c57e5"], ["created_at", "2017-04-15 18:59:30.411988"], ["updated_at", "2017-04-15 18:59:30.411988"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11626", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11626"} RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11626]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 11626], ["uuid", "eba06866-4c69-a52b-2222-1217cf261026"], ["created_at", "2017-04-15 18:59:30.424603"], ["updated_at", "2017-04-15 18:59:30.424603"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11626/operation_templates Completed 302 Found in 9ms (ActiveRecord: 1.3ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11626]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "cdf09552-f9bb-b079-5e86-ccff8345b108"], ["created_at", "2017-04-15 18:59:30.434963"], ["updated_at", "2017-04-15 18:59:30.434963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate') Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11627", "type"=>"RailsWorkflow::CustomOperationTemplate"}, "process_template_id"=>"11627"} RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11627]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 11627], ["uuid", "4590e141-366a-5564-4f20-f8e8df20bba7"], ["created_at", "2017-04-15 18:59:30.457819"], ["updated_at", "2017-04-15 18:59:30.457819"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11627/operation_templates Completed 302 Found in 20ms (ActiveRecord: 1.3ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "801ebf7f-ec94-7657-868a-b320ce2490e5"], ["created_at", "2017-04-15 18:59:30.466886"], ["updated_at", "2017-04-15 18:59:30.466886"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11628", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11628"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11628]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 11628], ["uuid", "ea83eed5-47a4-9583-014e-91830578b642"], ["created_at", "2017-04-15 18:59:30.476931"], ["updated_at", "2017-04-15 18:59:30.476931"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11628/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5430c554-e168-b30a-399d-ad6ab9bfef77"], ["created_at", "2017-04-15 18:59:30.484487"], ["updated_at", "2017-04-15 18:59:30.484487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11629", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11629"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11629]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 11629], ["uuid", "7651807c-7e99-1ef7-6311-18463013644e"], ["created_at", "2017-04-15 18:59:30.493484"], ["updated_at", "2017-04-15 18:59:30.493484"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11629/operation_templates Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5eabec13-6fa7-49c0-5b74-24f08ab8baf8"], ["created_at", "2017-04-15 18:59:30.505226"], ["updated_at", "2017-04-15 18:59:30.505226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a1d3ce5e-7cd9-64a2-91a5-9512a375bb4e"], ["created_at", "2017-04-15 18:59:30.509399"], ["updated_at", "2017-04-15 18:59:30.509399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "61c50f6f-af59-a24c-12ba-16d07fc9c360"], ["created_at", "2017-04-15 18:59:30.513910"], ["updated_at", "2017-04-15 18:59:30.513910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11632], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "fdd1efe4-0223-c08d-1e16-aef068331dfd"], ["created_at", "2017-04-15 18:59:30.516029"], ["updated_at", "2017-04-15 18:59:30.516029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7bd643c1-4db4-631b-e4c6-9b8263822f5d"], ["created_at", "2017-04-15 18:59:30.519881"], ["updated_at", "2017-04-15 18:59:30.519881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11633], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "b7ceeaf4-ae52-2ca8-9cb8-cf3980d4f2de"], ["created_at", "2017-04-15 18:59:30.521996"], ["updated_at", "2017-04-15 18:59:30.521996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11633", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11633", "id"=>"10488"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10488]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11633]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11633/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "64354787-8c3b-81e1-5e94-1f4b86809daa"], ["created_at", "2017-04-15 18:59:30.538157"], ["updated_at", "2017-04-15 18:59:30.538157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11634], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "846ff27c-ca53-24bc-2ebc-e3684aaa9a4d"], ["created_at", "2017-04-15 18:59:30.540619"], ["updated_at", "2017-04-15 18:59:30.540619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11634", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11634", "id"=>"10489"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10489]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11634]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11634/operation_templates Completed 302 Found in 7ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b5a825bc-d80f-7a0e-e0b0-19d5fa0898ff"], ["created_at", "2017-04-15 18:59:30.558120"], ["updated_at", "2017-04-15 18:59:30.558120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11635], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "79a59835-8067-cd0a-770d-901b863cac97"], ["created_at", "2017-04-15 18:59:30.560305"], ["updated_at", "2017-04-15 18:59:30.560305"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c5842a5a-0abd-20b4-5830-a5334b23287c"], ["created_at", "2017-04-15 18:59:30.564430"], ["updated_at", "2017-04-15 18:59:30.564430"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11636], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "0d4b83f3-718d-9d2a-a7ea-c497549967ff"], ["created_at", "2017-04-15 18:59:30.567101"], ["updated_at", "2017-04-15 18:59:30.567101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c021ea03-f820-92d7-6c06-0b35304517a0"], ["created_at", "2017-04-15 18:59:30.571056"], ["updated_at", "2017-04-15 18:59:30.571056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11637], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "bd767613-5657-024e-d4f3-d5794bac5e45"], ["created_at", "2017-04-15 18:59:30.573064"], ["updated_at", "2017-04-15 18:59:30.573064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11637]] Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"11637", "id"=>"10492"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10492]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11637]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 10492]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11637/operation_templates Completed 302 Found in 7ms (ActiveRecord: 1.2ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "bb1d2bf8-f0f7-8b50-bb3e-516f90d699df"], ["created_at", "2017-04-15 18:59:30.591292"], ["updated_at", "2017-04-15 18:59:30.591292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11638], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "ba08bb5f-2fb8-b00e-d94b-835bdd4e9a5a"], ["created_at", "2017-04-15 18:59:30.593635"], ["updated_at", "2017-04-15 18:59:30.593635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"11638", "id"=>"10493"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10493]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11638]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 10493]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11638/operation_templates Completed 302 Found in 6ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "rails_workflow_operations"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "28ed8db4-3fee-4e27-c596-59e39ecd26a1"], ["created_at", "2017-04-15 18:59:30.635437"], ["updated_at", "2017-04-15 18:59:30.635437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "1d8cf7eb-3164-fc31-c5c3-770694593d15"], ["created_at", "2017-04-15 18:59:30.648858"], ["updated_at", "2017-04-15 18:59:30.648858"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#show as HTML Parameters: {"id"=>"11640"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11640]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "60b6179b-61f2-fcba-379c-0a44226b8169"], ["created_at", "2017-04-15 18:59:30.673555"], ["updated_at", "2017-04-15 18:59:30.673555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#edit as HTML Parameters: {"id"=>"11641"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11641]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "8d37d1a2-920d-4823-0a77-7013ef289207"], ["created_at", "2017-04-15 18:59:30.695223"], ["updated_at", "2017-04-15 18:59:30.695223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11642/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "26ac699a-dd0c-3ab3-2500-85a453366d23"], ["created_at", "2017-04-15 18:59:30.706467"], ["updated_at", "2017-04-15 18:59:30.706467"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11643/operation_templates Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "565f36a1-5e4d-192b-2d06-57cf695138c0"], ["created_at", "2017-04-15 18:59:30.733354"], ["updated_at", "2017-04-15 18:59:30.733354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11644/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.5ms) RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "af49a86c-b27c-82cb-4aa5-8b02fe94e716"], ["created_at", "2017-04-15 18:59:30.747002"], ["updated_at", "2017-04-15 18:59:30.747002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "eeb0a718-33fe-78e8-c974-03c86fc2e385"], ["created_at", "2017-04-15 18:59:30.750419"], ["updated_at", "2017-04-15 18:59:30.750419"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"11646"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11646]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11646 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "46084554-2e02-b53b-b6fd-1a281ef2c090"], ["created_at", "2017-04-15 18:59:30.764039"], ["updated_at", "2017-04-15 18:59:30.764039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"11647"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11647]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11647 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "5b09de9b-7de4-bcb1-e9c3-b60d06b57d7f"], ["created_at", "2017-04-15 18:59:30.779403"], ["updated_at", "2017-04-15 18:59:30.779403"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "e3992d4e-0aef-e77f-8142-ba27adb7c382"], ["created_at", "2017-04-15 18:59:30.782938"], ["updated_at", "2017-04-15 18:59:30.782938"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "04114b0a-a3a0-151a-3a85-a67542ec10be"], ["created_at", "2017-04-15 18:59:30.787491"], ["updated_at", "2017-04-15 18:59:30.787491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"11650"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11650]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 11650]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "5ee775ab-9da2-93a1-6efb-1916ef03789b"], ["created_at", "2017-04-15 18:59:30.801252"], ["updated_at", "2017-04-15 18:59:30.801252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"11651"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11651]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 11651]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "acefe9e0-cc5b-05f0-0500-f523ba8aa7f0"], ["created_at", "2017-04-15 18:59:30.815599"], ["updated_at", "2017-04-15 18:59:30.815599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11652], ["created_at", "2017-04-15 18:59:30.823892"], ["updated_at", "2017-04-15 18:59:30.823892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#index as HTML  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.3ms)  select status, cnt from ( select row_number() over (partition by status), count(*) over (partition by status) cnt, status from rails_workflow_processes)t where row_number = 1  Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 10ms (Views: 3.9ms | ActiveRecord: 0.7ms) RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" ASC LIMIT 30 OFFSET 0  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0bab3905-6f4d-5d2f-1a40-e5ee2bd81d02"], ["created_at", "2017-04-15 18:59:30.843176"], ["updated_at", "2017-04-15 18:59:30.843176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11653], ["created_at", "2017-04-15 18:59:30.844951"], ["updated_at", "2017-04-15 18:59:30.844951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#show as HTML Parameters: {"id"=>"5264"} RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5264]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0689b79d-08df-6aab-958d-a940e9b3cc24"], ["created_at", "2017-04-15 18:59:30.861863"], ["updated_at", "2017-04-15 18:59:30.861863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "06f881e5-e8fd-88cd-5fcb-05bce9fb9500"], ["created_at", "2017-04-15 18:59:30.869964"], ["updated_at", "2017-04-15 18:59:30.869964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11655], ["created_at", "2017-04-15 18:59:30.871660"], ["updated_at", "2017-04-15 18:59:30.871660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#edit as HTML Parameters: {"id"=>"5265"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5265]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "db15bcbc-a678-4ce0-69d6-e254a196b219"], ["created_at", "2017-04-15 18:59:30.887461"], ["updated_at", "2017-04-15 18:59:30.887461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_processes" Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11656"}} SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11656]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11656) [["id", 11656]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11656], ["created_at", "2017-04-15 18:59:30.903967"], ["updated_at", "2017-04-15 18:59:30.903967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:59:30.905692"], ["id", 5266]] SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5266], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 18:59:30.915040"], ["updated_at", "2017-04-15 18:59:30.915040"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5266], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5266]] Redirected to http://test.host/workflow/processes/5266 Completed 302 Found in 32ms (ActiveRecord: 3.7ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9583292f-3791-f928-4e22-8b43b18bf302"], ["created_at", "2017-04-15 18:59:30.927622"], ["updated_at", "2017-04-15 18:59:30.927622"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11657"}} SQL (0.4ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11657]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11657) [["id", 11657]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11657], ["created_at", "2017-04-15 18:59:30.936138"], ["updated_at", "2017-04-15 18:59:30.936138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:59:30.937813"], ["id", 5267]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5267], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 18:59:30.939649"], ["updated_at", "2017-04-15 18:59:30.939649"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5267], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.2ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5267]] Redirected to http://test.host/workflow/processes/5267 Completed 302 Found in 14ms (ActiveRecord: 2.4ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "46fc717f-de65-4cbb-0583-2ab1e4176a2c"], ["created_at", "2017-04-15 18:59:30.949052"], ["updated_at", "2017-04-15 18:59:30.949052"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11658"}} SQL (1.5ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11658]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11658) [["id", 11658]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11658], ["created_at", "2017-04-15 18:59:30.959819"], ["updated_at", "2017-04-15 18:59:30.959819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:59:30.961481"], ["id", 5268]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5268], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 18:59:30.963442"], ["updated_at", "2017-04-15 18:59:30.963442"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5268], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.2ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5268]] Redirected to http://test.host/workflow/processes/5268 Completed 302 Found in 15ms (ActiveRecord: 3.3ms) RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a66432ba-26b2-f25e-531b-a32f2f2a2dc2"], ["created_at", "2017-04-15 18:59:30.975565"], ["updated_at", "2017-04-15 18:59:30.975565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b98941a7-1994-d5b4-f061-158b69a50cea"], ["created_at", "2017-04-15 18:59:30.979237"], ["updated_at", "2017-04-15 18:59:30.979237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7f74afcd-df78-7496-f014-38bbed762810"], ["created_at", "2017-04-15 18:59:30.982639"], ["updated_at", "2017-04-15 18:59:30.982639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11661], ["created_at", "2017-04-15 18:59:30.984438"], ["updated_at", "2017-04-15 18:59:30.984438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "48829ba5-ef7a-ca30-7348-488e8d6de839"], ["created_at", "2017-04-15 18:59:30.987608"], ["updated_at", "2017-04-15 18:59:30.987608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11662], ["created_at", "2017-04-15 18:59:30.989260"], ["updated_at", "2017-04-15 18:59:30.989260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11662"}, "id"=>"5270"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5270]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c7749a5b-9876-0d1b-0ecf-d32a808b1eb4"], ["created_at", "2017-04-15 18:59:31.001114"], ["updated_at", "2017-04-15 18:59:31.001114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11663], ["created_at", "2017-04-15 18:59:31.002987"], ["updated_at", "2017-04-15 18:59:31.002987"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11663"}, "id"=>"5271"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5271]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "039aed92-0463-1b64-5625-8426b5bd8c44"], ["created_at", "2017-04-15 18:59:31.018608"], ["updated_at", "2017-04-15 18:59:31.018608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11664], ["created_at", "2017-04-15 18:59:31.020624"], ["updated_at", "2017-04-15 18:59:31.020624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "da70a1dd-796f-7c2b-468c-28f5f2b1a01d"], ["created_at", "2017-04-15 18:59:31.024041"], ["updated_at", "2017-04-15 18:59:31.024041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11665], ["created_at", "2017-04-15 18:59:31.025888"], ["updated_at", "2017-04-15 18:59:31.025888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6d1c50a2-d82d-d157-0b77-af4ad90db603"], ["created_at", "2017-04-15 18:59:31.029371"], ["updated_at", "2017-04-15 18:59:31.029371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0060b395-c06c-f2b5-0a74-5540beaea737"], ["created_at", "2017-04-15 18:59:31.032768"], ["updated_at", "2017-04-15 18:59:31.032768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "82b676db-3b7c-55a5-5e3f-d045ac145338"], ["created_at", "2017-04-15 18:59:31.035826"], ["updated_at", "2017-04-15 18:59:31.035826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11668], ["uuid", "0776e6b7-1c03-144a-26ca-b404d81b31f2"], ["created_at", "2017-04-15 18:59:31.038797"], ["updated_at", "2017-04-15 18:59:31.038797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11668], ["dependencies", "[{\"id\":10494,\"statuses\":[2]}]"], ["uuid", "d3887d81-3fb8-d72f-d54a-b0a2de743c16"], ["created_at", "2017-04-15 18:59:31.041738"], ["updated_at", "2017-04-15 18:59:31.041738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11668]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11668) [["id", 11668]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11668], ["created_at", "2017-04-15 18:59:31.047580"], ["updated_at", "2017-04-15 18:59:31.047580"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:59:31.049496"], ["id", 5274]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5274], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.051373"], ["updated_at", "2017-04-15 18:59:31.051373"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5274], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10494], ["process_id", 5274], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:31.064054"], ["updated_at", "2017-04-15 18:59:31.064054"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5971], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.066074"], ["updated_at", "2017-04-15 18:59:31.066074"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9ccdb845-bed0-d67a-8826-d666dedfb582"], ["created_at", "2017-04-15 18:59:31.072120"], ["updated_at", "2017-04-15 18:59:31.072120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11669], ["uuid", "231f0800-69ab-7214-5c0e-33c017d4678f"], ["created_at", "2017-04-15 18:59:31.075071"], ["updated_at", "2017-04-15 18:59:31.075071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11669], ["dependencies", "[{\"id\":10496,\"statuses\":[2]}]"], ["uuid", "0851cc46-5f5c-d43c-bea3-3ce56a26529b"], ["created_at", "2017-04-15 18:59:31.077443"], ["updated_at", "2017-04-15 18:59:31.077443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11669]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11669) [["id", 11669]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11669], ["created_at", "2017-04-15 18:59:31.083424"], ["updated_at", "2017-04-15 18:59:31.083424"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:59:31.085326"], ["id", 5275]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5275], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.087304"], ["updated_at", "2017-04-15 18:59:31.087304"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5275], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10496], ["process_id", 5275], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:31.091039"], ["updated_at", "2017-04-15 18:59:31.091039"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5972], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.092509"], ["updated_at", "2017-04-15 18:59:31.092509"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "fb7e8069-7209-bd6a-ec29-3f28d5fc07d3"], ["created_at", "2017-04-15 18:59:31.096803"], ["updated_at", "2017-04-15 18:59:31.096803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11670], ["uuid", "fc22eaf3-95da-6615-a214-1123d7d8aec4"], ["created_at", "2017-04-15 18:59:31.099448"], ["updated_at", "2017-04-15 18:59:31.099448"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11670], ["dependencies", "[{\"id\":10498,\"statuses\":[2]}]"], ["uuid", "af3aefed-f0ca-d357-127e-3a0fd0242adf"], ["created_at", "2017-04-15 18:59:31.102290"], ["updated_at", "2017-04-15 18:59:31.102290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11670]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11670) [["id", 11670]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11670], ["created_at", "2017-04-15 18:59:31.107909"], ["updated_at", "2017-04-15 18:59:31.107909"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:59:31.109808"], ["id", 5276]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5276], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.111692"], ["updated_at", "2017-04-15 18:59:31.111692"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5276], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10498], ["process_id", 5276], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:31.115473"], ["updated_at", "2017-04-15 18:59:31.115473"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5973], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.116927"], ["updated_at", "2017-04-15 18:59:31.116927"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5276]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5276]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5496d0f9-8b21-c503-0e4a-66f02f3a56b1"], ["created_at", "2017-04-15 18:59:31.124255"], ["updated_at", "2017-04-15 18:59:31.124255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11671], ["uuid", "97ca40ab-4170-4440-affe-81743d57c8c8"], ["created_at", "2017-04-15 18:59:31.126415"], ["updated_at", "2017-04-15 18:59:31.126415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11671], ["dependencies", "[{\"id\":10500,\"statuses\":[2]}]"], ["uuid", "f2db84c5-1968-0cff-1d30-c460fd935ea5"], ["created_at", "2017-04-15 18:59:31.129113"], ["updated_at", "2017-04-15 18:59:31.129113"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11671]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11671) [["id", 11671]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11671], ["created_at", "2017-04-15 18:59:31.135289"], ["updated_at", "2017-04-15 18:59:31.135289"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:59:31.137160"], ["id", 5277]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5277], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.139074"], ["updated_at", "2017-04-15 18:59:31.139074"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5277], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10500], ["process_id", 5277], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:31.142632"], ["updated_at", "2017-04-15 18:59:31.142632"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5974], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.144196"], ["updated_at", "2017-04-15 18:59:31.144196"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "53e8a86e-cb23-1e58-b406-2fe6739be6ef"], ["created_at", "2017-04-15 18:59:31.148897"], ["updated_at", "2017-04-15 18:59:31.148897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11672], ["uuid", "277df01d-ed98-7f00-8695-4312c49a42b3"], ["created_at", "2017-04-15 18:59:31.151360"], ["updated_at", "2017-04-15 18:59:31.151360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11672], ["dependencies", "[{\"id\":10502,\"statuses\":[2]}]"], ["uuid", "87c19486-fdf7-8104-83fe-d74a89c8573b"], ["created_at", "2017-04-15 18:59:31.154096"], ["updated_at", "2017-04-15 18:59:31.154096"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11672]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11672) [["id", 11672]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11672], ["created_at", "2017-04-15 18:59:31.160141"], ["updated_at", "2017-04-15 18:59:31.160141"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:59:31.162257"], ["id", 5278]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5278], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.164328"], ["updated_at", "2017-04-15 18:59:31.164328"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5278], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10502], ["process_id", 5278], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:31.168025"], ["updated_at", "2017-04-15 18:59:31.168025"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5975], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.169543"], ["updated_at", "2017-04-15 18:59:31.169543"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5278]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5975], ["parent_type", "RailsWorkflow::Operation"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b87cfe38-1273-7473-839d-f7ceacdeba1b"], ["created_at", "2017-04-15 18:59:31.189246"], ["updated_at", "2017-04-15 18:59:31.189246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11673], ["uuid", "4a06b786-6132-0e7c-6b10-fa246a8104a0"], ["created_at", "2017-04-15 18:59:31.191864"], ["updated_at", "2017-04-15 18:59:31.191864"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11673], ["dependencies", "[{\"id\":10504,\"statuses\":[2]}]"], ["uuid", "2453fbf2-b213-4ff7-722a-9e228e5f9d1b"], ["created_at", "2017-04-15 18:59:31.194980"], ["updated_at", "2017-04-15 18:59:31.194980"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11673]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11673) [["id", 11673]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11673], ["created_at", "2017-04-15 18:59:31.201320"], ["updated_at", "2017-04-15 18:59:31.201320"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:59:31.203251"], ["id", 5279]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5279], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.205165"], ["updated_at", "2017-04-15 18:59:31.205165"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5279], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10504], ["process_id", 5279], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:31.208832"], ["updated_at", "2017-04-15 18:59:31.208832"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5976], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.210294"], ["updated_at", "2017-04-15 18:59:31.210294"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d09a8370-e27f-1d3b-ad33-e5db49d8c837"], ["created_at", "2017-04-15 18:59:31.215531"], ["updated_at", "2017-04-15 18:59:31.215531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11674], ["uuid", "fc514ed8-35e8-bbd3-7133-99096959ecd2"], ["created_at", "2017-04-15 18:59:31.217608"], ["updated_at", "2017-04-15 18:59:31.217608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11674], ["dependencies", "[{\"id\":10506,\"statuses\":[2]}]"], ["uuid", "01e08a3b-e586-aa85-06e0-f0d25748010b"], ["created_at", "2017-04-15 18:59:31.219941"], ["updated_at", "2017-04-15 18:59:31.219941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11674]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11674) [["id", 11674]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11674], ["created_at", "2017-04-15 18:59:31.226112"], ["updated_at", "2017-04-15 18:59:31.226112"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:59:31.228046"], ["id", 5280]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5280], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.230017"], ["updated_at", "2017-04-15 18:59:31.230017"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5280], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10506], ["process_id", 5280], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:31.233551"], ["updated_at", "2017-04-15 18:59:31.233551"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5977], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.234837"], ["updated_at", "2017-04-15 18:59:31.234837"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:31.237971"], ["id", 5280]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5280], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:31.241288"], ["id", 5977]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088da811-64ad-4ba1-a179-19fcb9593ed3] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5977 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088da811-64ad-4ba1-a179-19fcb9593ed3] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5977]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088da811-64ad-4ba1-a179-19fcb9593ed3]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088da811-64ad-4ba1-a179-19fcb9593ed3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088da811-64ad-4ba1-a179-19fcb9593ed3] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5977], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088da811-64ad-4ba1-a179-19fcb9593ed3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088da811-64ad-4ba1-a179-19fcb9593ed3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088da811-64ad-4ba1-a179-19fcb9593ed3] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 5.03ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5917d586-e50b-d91a-ed24-5bd39174af28"], ["created_at", "2017-04-15 18:59:31.251458"], ["updated_at", "2017-04-15 18:59:31.251458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11675], ["uuid", "72ef0575-214e-1b9e-0d81-2721eef75d72"], ["created_at", "2017-04-15 18:59:31.254031"], ["updated_at", "2017-04-15 18:59:31.254031"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11675], ["dependencies", "[{\"id\":10508,\"statuses\":[2]}]"], ["uuid", "0ac34d27-dff2-2bd2-e4c0-e1577821be89"], ["created_at", "2017-04-15 18:59:31.256969"], ["updated_at", "2017-04-15 18:59:31.256969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11675]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11675) [["id", 11675]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11675], ["created_at", "2017-04-15 18:59:31.262630"], ["updated_at", "2017-04-15 18:59:31.262630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:59:31.264477"], ["id", 5281]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5281], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.266262"], ["updated_at", "2017-04-15 18:59:31.266262"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5281], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10508], ["process_id", 5281], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:31.269707"], ["updated_at", "2017-04-15 18:59:31.269707"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5978], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.271144"], ["updated_at", "2017-04-15 18:59:31.271144"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:31.274221"], ["id", 5281]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5281], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:31.277395"], ["id", 5978]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c4adbfe3-5aec-4232-a598-98b1f48aa4cc] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5978 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c4adbfe3-5aec-4232-a598-98b1f48aa4cc] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5978]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c4adbfe3-5aec-4232-a598-98b1f48aa4cc]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c4adbfe3-5aec-4232-a598-98b1f48aa4cc]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c4adbfe3-5aec-4232-a598-98b1f48aa4cc] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5978], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c4adbfe3-5aec-4232-a598-98b1f48aa4cc]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c4adbfe3-5aec-4232-a598-98b1f48aa4cc]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c4adbfe3-5aec-4232-a598-98b1f48aa4cc] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 3.45ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5281]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "bf62b10f-83d0-6bc4-b144-09897b101bca"], ["created_at", "2017-04-15 18:59:31.286186"], ["updated_at", "2017-04-15 18:59:31.286186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11676], ["uuid", "13181806-f543-5baa-f953-fa3ec8d11b39"], ["created_at", "2017-04-15 18:59:31.288410"], ["updated_at", "2017-04-15 18:59:31.288410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11676], ["dependencies", "[{\"id\":10510,\"statuses\":[2]}]"], ["uuid", "1ee31513-1791-def1-6d0a-b79ef8776801"], ["created_at", "2017-04-15 18:59:31.290666"], ["updated_at", "2017-04-15 18:59:31.290666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11676]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11676) [["id", 11676]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11676], ["created_at", "2017-04-15 18:59:31.296049"], ["updated_at", "2017-04-15 18:59:31.296049"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:59:31.298454"], ["id", 5282]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5282], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.300729"], ["updated_at", "2017-04-15 18:59:31.300729"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5282], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10510], ["process_id", 5282], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:31.304279"], ["updated_at", "2017-04-15 18:59:31.304279"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5979], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.305774"], ["updated_at", "2017-04-15 18:59:31.305774"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:31.308890"], ["id", 5282]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5282], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:31.311837"], ["id", 5979]]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5979 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9] RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5979]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5979], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:59:31.317671"], ["updated_at", "2017-04-15 18:59:31.318200"], ["id", 5979]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5282]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11676]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11676]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10510]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5282]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10510]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5282], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9] SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:59:31.330768"], ["id", 5282]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5282]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [43d60dab-58a2-47e8-80b0-3683470adbe9] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 20.17ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5282]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 18:59:31.335698"], ["updated_at", "2017-04-15 18:59:31.336388"], ["id", 5979]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10510]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5282]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5282], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:59:31.342176"], ["id", 5282]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5282]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d74b8aae-1608-b039-4074-adbc049e450b"], ["created_at", "2017-04-15 18:59:31.346285"], ["updated_at", "2017-04-15 18:59:31.346285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11677], ["uuid", "ca57e311-70b6-23ea-60c9-67e784ba87b0"], ["created_at", "2017-04-15 18:59:31.348395"], ["updated_at", "2017-04-15 18:59:31.348395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11677], ["dependencies", "[{\"id\":10512,\"statuses\":[2]}]"], ["uuid", "22a4e3d6-a4e7-c6e6-d1e5-38cd32d65e2b"], ["created_at", "2017-04-15 18:59:31.350694"], ["updated_at", "2017-04-15 18:59:31.350694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11677]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11677) [["id", 11677]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11677], ["created_at", "2017-04-15 18:59:31.356229"], ["updated_at", "2017-04-15 18:59:31.356229"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:59:31.358032"], ["id", 5283]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5283], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.359861"], ["updated_at", "2017-04-15 18:59:31.359861"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5283], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10512], ["process_id", 5283], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:31.363242"], ["updated_at", "2017-04-15 18:59:31.363242"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5980], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.364632"], ["updated_at", "2017-04-15 18:59:31.364632"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:31.367696"], ["id", 5283]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5283], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:31.370392"], ["id", 5980]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5980 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5980]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5980], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:59:31.375553"], ["updated_at", "2017-04-15 18:59:31.376013"], ["id", 5980]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5283]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11677]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11677]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10512]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5283]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10512]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10513], ["process_id", 5283], ["status", 0], ["dependencies", "[{\"operation_id\":5980,\"status\":2}]"], ["created_at", "2017-04-15 18:59:31.384038"], ["updated_at", "2017-04-15 18:59:31.384038"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5981], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.385413"], ["updated_at", "2017-04-15 18:59:31.385413"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:31.388932"], ["id", 5981]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5981 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704] RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5981]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5981], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:59:31.393873"], ["updated_at", "2017-04-15 18:59:31.394371"], ["id", 5981]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5283]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11677]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11677]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10513]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5283]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10513]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10512]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5283], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704] SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:59:31.402926"], ["id", 5283]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5283]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] [RailsWorkflow::OperationExecutionJob] [d4fcf646-0542-4a35-9e03-c1661b519704] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 14.46ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e119a786-4d33-4ec8-90c1-8326a11f533f] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 33.02ms RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5283]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 18:59:31.406516"], ["updated_at", "2017-04-15 18:59:31.407253"], ["id", 5980]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10512]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5283]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10513]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5283], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:59:31.413774"], ["id", 5283]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5283]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "92d2b58a-4467-6050-a6a5-4c928d902b68"], ["created_at", "2017-04-15 18:59:31.418157"], ["updated_at", "2017-04-15 18:59:31.418157"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11678], ["uuid", "81582996-bf6e-5163-beb9-f4eea5b5c724"], ["created_at", "2017-04-15 18:59:31.420496"], ["updated_at", "2017-04-15 18:59:31.420496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11678], ["dependencies", "[{\"id\":10514,\"statuses\":[2]}]"], ["uuid", "78638187-aade-6552-c4cd-9919c980cc5e"], ["created_at", "2017-04-15 18:59:31.422803"], ["updated_at", "2017-04-15 18:59:31.422803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11678]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11678) [["id", 11678]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11678], ["created_at", "2017-04-15 18:59:31.428212"], ["updated_at", "2017-04-15 18:59:31.428212"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:59:31.430115"], ["id", 5284]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5284], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.432067"], ["updated_at", "2017-04-15 18:59:31.432067"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5284], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10514], ["process_id", 5284], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:31.435707"], ["updated_at", "2017-04-15 18:59:31.435707"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5982], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.437125"], ["updated_at", "2017-04-15 18:59:31.437125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:31.439951"], ["id", 5284]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5284], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:31.442948"], ["id", 5982]]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5982 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5982]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5982], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:59:31.448568"], ["updated_at", "2017-04-15 18:59:31.449252"], ["id", 5982]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5284]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11678]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11678]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10514]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5284]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10514]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10515], ["process_id", 5284], ["status", 0], ["dependencies", "[{\"operation_id\":5982,\"status\":2}]"], ["created_at", "2017-04-15 18:59:31.457062"], ["updated_at", "2017-04-15 18:59:31.457062"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5983], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.458419"], ["updated_at", "2017-04-15 18:59:31.458419"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:31.461999"], ["id", 5983]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5983 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5983]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5983], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:59:31.466381"], ["updated_at", "2017-04-15 18:59:31.466922"], ["id", 5983]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5284]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11678]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11678]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10515]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5284]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10515]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10514]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5284], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:59:31.475823"], ["id", 5284]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5284]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] [RailsWorkflow::OperationExecutionJob] [83fd1aac-f3ad-4c08-8063-6cac84b97e16] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 14.3ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [efdfbc94-b0a5-4b06-8404-0737386b7612] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 33.11ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5284]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 18:59:31.479128"], ["updated_at", "2017-04-15 18:59:31.479788"], ["id", 5982]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10514]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5284]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10515]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5284], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:59:31.486133"], ["id", 5284]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5284]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 2], ["created_at", "2017-04-15 18:59:31.435707"], ["updated_at", "2017-04-15 18:59:31.479788"], ["completed_at", "2017-04-15 18:59:31.488563"], ["id", 5982]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "87245b08-dd14-ed7d-9b8b-8d860ee10e63"], ["created_at", "2017-04-15 18:59:31.493187"], ["updated_at", "2017-04-15 18:59:31.493187"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11679], ["uuid", "007ce3f3-6626-17d9-dff9-1cdc4994de26"], ["created_at", "2017-04-15 18:59:31.495690"], ["updated_at", "2017-04-15 18:59:31.495690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11679], ["dependencies", "[{\"id\":10516,\"statuses\":[2]}]"], ["uuid", "07562e94-6a9d-9aa4-ddc7-111f7a95c086"], ["created_at", "2017-04-15 18:59:31.498130"], ["updated_at", "2017-04-15 18:59:31.498130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11679]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11679) [["id", 11679]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11679], ["created_at", "2017-04-15 18:59:31.503686"], ["updated_at", "2017-04-15 18:59:31.503686"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:59:31.505676"], ["id", 5285]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5285], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.507500"], ["updated_at", "2017-04-15 18:59:31.507500"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5285], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10516], ["process_id", 5285], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:31.511159"], ["updated_at", "2017-04-15 18:59:31.511159"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5984], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.512494"], ["updated_at", "2017-04-15 18:59:31.512494"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:31.515369"], ["id", 5285]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5285], ["status", 0]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:31.518485"], ["id", 5984]]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5984 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5984]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5984], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:59:31.523706"], ["updated_at", "2017-04-15 18:59:31.524236"], ["id", 5984]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5285]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11679]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11679]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10516]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5285]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10516]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10517], ["process_id", 5285], ["status", 0], ["dependencies", "[{\"operation_id\":5984,\"status\":2}]"], ["created_at", "2017-04-15 18:59:31.532105"], ["updated_at", "2017-04-15 18:59:31.532105"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5985], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.533542"], ["updated_at", "2017-04-15 18:59:31.533542"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:31.536735"], ["id", 5985]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5985 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5985]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5985], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:59:31.541107"], ["updated_at", "2017-04-15 18:59:31.541641"], ["id", 5985]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5285]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11679]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11679]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10517]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5285]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10517]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10516]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5285], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:59:31.557057"], ["id", 5285]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5285]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] [RailsWorkflow::OperationExecutionJob] [a55b4872-be96-476f-baf4-52a4b1f541a1] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 20.83ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [403bf350-0db0-4e6d-867b-0924c9c03745] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 38.62ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5285]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 18:59:31.560244"], ["updated_at", "2017-04-15 18:59:31.560892"], ["id", 5984]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10516]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5285]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10517]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5285], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:59:31.566738"], ["id", 5285]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5285]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 6], ["created_at", "2017-04-15 18:59:31.511159"], ["updated_at", "2017-04-15 18:59:31.560892"], ["completed_at", "2017-04-15 18:59:31.568664"], ["id", 5984]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "df6435d7-6591-00a3-d4f2-25104c836424"], ["created_at", "2017-04-15 18:59:31.572476"], ["updated_at", "2017-04-15 18:59:31.572476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11680], ["uuid", "bb94e062-9fc4-137d-b713-638200e007e9"], ["created_at", "2017-04-15 18:59:31.574597"], ["updated_at", "2017-04-15 18:59:31.574597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11680], ["dependencies", "[{\"id\":10518,\"statuses\":[2]}]"], ["uuid", "34d9e335-ce36-9a52-1618-1be05a157573"], ["created_at", "2017-04-15 18:59:31.576919"], ["updated_at", "2017-04-15 18:59:31.576919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11680]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11680) [["id", 11680]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11680], ["created_at", "2017-04-15 18:59:31.582252"], ["updated_at", "2017-04-15 18:59:31.582252"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:59:31.584131"], ["id", 5286]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5286], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.585901"], ["updated_at", "2017-04-15 18:59:31.585901"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5286], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10518], ["process_id", 5286], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:31.589390"], ["updated_at", "2017-04-15 18:59:31.589390"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5986], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.590724"], ["updated_at", "2017-04-15 18:59:31.590724"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:31.593787"], ["id", 5286]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5286], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:31.596265"], ["id", 5986]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5986 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5986]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5986], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] SQL (0.1ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:59:31.601238"], ["updated_at", "2017-04-15 18:59:31.601753"], ["id", 5986]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5286]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11680]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11680]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10518]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5286]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10518]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10519], ["process_id", 5286], ["status", 0], ["dependencies", "[{\"operation_id\":5986,\"status\":2}]"], ["created_at", "2017-04-15 18:59:31.608542"], ["updated_at", "2017-04-15 18:59:31.608542"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] SQL (0.1ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5987], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.609815"], ["updated_at", "2017-04-15 18:59:31.609815"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] SQL (0.1ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:31.612690"], ["id", 5987]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 5987 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5987]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5987], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af] SQL (0.1ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 18:59:31.616457"], ["updated_at", "2017-04-15 18:59:31.616935"], ["id", 5987]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5286]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11680]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11680]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10519]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5286]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10519]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10518]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af]  (0.1ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5286], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af] SQL (0.1ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:59:31.624095"], ["id", 5286]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5286]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] [RailsWorkflow::OperationExecutionJob] [88282d18-cf2c-452e-89fa-20d2c72620af] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 11.83ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ee43474d-48e4-4b5a-8f00-14c434762198] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 28.13ms RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5286]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 18:59:31.626970"], ["updated_at", "2017-04-15 18:59:31.627579"], ["id", 5986]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10518]] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5286]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10519]]  (0.1ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5286], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 18:59:31.632970"], ["id", 5286]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5286]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 5], ["created_at", "2017-04-15 18:59:31.589390"], ["updated_at", "2017-04-15 18:59:31.627579"], ["completed_at", "2017-04-15 18:59:31.634730"], ["id", 5986]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'regular_user@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "regular_user@test.com"], ["encrypted_password", "$2a$04$d64Hn2VmvSmSR15YjOkgOOvaTDJFXcETd0Y2PBWsYJR48RhmB7gwm"], ["role", "regular_user"], ["created_at", "2017-04-15 18:59:31.652480"], ["updated_at", "2017-04-15 18:59:31.652480"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'admin@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "admin@test.com"], ["encrypted_password", "$2a$04$t0.EEKNHMLnV6bwxlInIu.DXlf8T2wg.48Yy6qHptgdNMZNF8ho56"], ["role", "admin"], ["created_at", "2017-04-15 18:59:31.657427"], ["updated_at", "2017-04-15 18:59:31.657427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:59:31.662079"], ["updated_at", "2017-04-15 18:59:31.662079"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "User Operation Template"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:59:31.664403"], ["id", 11681]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11681]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11681], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11681], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:59:31.670006"], ["updated_at", "2017-04-15 18:59:31.670006"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:31.672557"], ["id", 10520]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11681], ["uuid", nil]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11681], ["uuid", "fd2f142f-ce38-3337-0b88-34a0ab904930"], ["created_at", "2017-04-15 18:59:31.677601"], ["updated_at", "2017-04-15 18:59:31.677601"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "uuid" = $1, "title" = $2, "dependencies" = $3, "operation_class" = $4, "async" = $5, "kind" = $6, "role" = $7, "instruction" = $8, "type" = $9, "partial_name" = $10, "updated_at" = $11 WHERE "rails_workflow_operation_templates"."id" = $12 [["uuid", "a219e2ea-386d-07ee-107f-f4930e71c0b2"], ["title", "Regular User Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "regular_user"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:31.680168"], ["id", 10521]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "User Operation Template"]] SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11681]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11681) [["id", 11681]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11681], ["created_at", "2017-04-15 18:59:31.688814"], ["updated_at", "2017-04-15 18:59:31.688814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "User Operation Template"], ["status", 0], ["updated_at", "2017-04-15 18:59:31.690523"], ["id", 5287]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5287], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 18:59:31.692467"], ["updated_at", "2017-04-15 18:59:31.692467"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5287], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Regular User Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 10521], ["process_id", 5287], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:31.707685"], ["updated_at", "2017-04-15 18:59:31.707685"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5988], ["body", "{}"], ["created_at", "2017-04-15 18:59:31.709363"], ["updated_at", "2017-04-15 18:59:31.709363"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Admin Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 10520], ["process_id", 5287], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:31.713047"], ["updated_at", "2017-04-15 18:59:31.713047"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5989], ["body", "{}"], ["created_at", "2017-04-15 18:59:31.714616"], ["updated_at", "2017-04-15 18:59:31.714616"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:31.717508"], ["id", 5287]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5287], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 18:59:31.720390"], ["id", 5989]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 18:59:31.722305"], ["id", 5988]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/workflow/operations" for 127.0.0.1 at 2017-04-15 22:59:31 +0400 Processing by RailsWorkflow::OperationsController#index as HTML RailsWorkflow::Operation Load (0.6ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."status" = 3 ORDER BY "rails_workflow_operations"."created_at" DESC RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5287]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10520]] CACHE (0.0ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5287]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10521]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operations/index.html.slim within layouts/rails_workflow/application (19.2ms) Completed 200 OK in 153ms (Views: 143.8ms | ActiveRecord: 1.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/workflow/config" for 127.0.0.1 at 2017-04-15 22:59:31 +0400 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/application/_flash.html.slim (2.4ms) RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (12.8ms) Completed 200 OK in 16ms (Views: 15.0ms | ActiveRecord: 0.3ms) Started GET "/workflow/config/new" for 127.0.0.1 at 2017-04-15 22:59:31 +0400 Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/_form.html.slim (19.3ms) Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (24.6ms) Completed 200 OK in 28ms (Views: 27.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:31.970178"], ["updated_at", "2017-04-15 18:59:31.970178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:59:31.972255"], ["updated_at", "2017-04-15 18:59:31.972255"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5288], ["updated_at", "2017-04-15 18:59:31.973936"], ["id", 8892]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.978257"], ["updated_at", "2017-04-15 18:59:31.978257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 18:59:31.980128"], ["updated_at", "2017-04-15 18:59:31.980128"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5990], ["updated_at", "2017-04-15 18:59:31.981601"], ["id", 8893]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b871c2c4-ebe1-7d98-19b8-50430f0986e9"], ["created_at", "2017-04-15 18:59:31.984169"], ["updated_at", "2017-04-15 18:59:31.984169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11682], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "61bab841-6b21-95eb-ba1d-4c6762edf3c8"], ["created_at", "2017-04-15 18:59:31.986006"], ["updated_at", "2017-04-15 18:59:31.986006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10522], ["process_id", 5288], ["status", 0], ["dependencies", "[{\"operation_id\":5990,\"status\":4}]"], ["created_at", "2017-04-15 18:59:31.996115"], ["updated_at", "2017-04-15 18:59:31.996115"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5991], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:31.997733"], ["updated_at", "2017-04-15 18:59:31.997733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.001998"], ["updated_at", "2017-04-15 18:59:32.001998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:59:32.003682"], ["updated_at", "2017-04-15 18:59:32.003682"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5289], ["updated_at", "2017-04-15 18:59:32.004924"], ["id", 8895]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 18:59:32.008344"], ["updated_at", "2017-04-15 18:59:32.008344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.011596"], ["updated_at", "2017-04-15 18:59:32.011596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:59:32.013303"], ["updated_at", "2017-04-15 18:59:32.013303"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5290], ["updated_at", "2017-04-15 18:59:32.014461"], ["id", 8897]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:59:32.016970"], ["updated_at", "2017-04-15 18:59:32.016970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resource\":{\"id\":5992,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5290,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 18:59:32.018915"], ["updated_at", "2017-04-15 18:59:32.018915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.023283"], ["updated_at", "2017-04-15 18:59:32.023283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:59:32.025322"], ["updated_at", "2017-04-15 18:59:32.025322"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5291], ["updated_at", "2017-04-15 18:59:32.026745"], ["id", 8899]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:59:32.030690"], ["updated_at", "2017-04-15 18:59:32.030690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":5993,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5291,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 18:59:32.033290"], ["updated_at", "2017-04-15 18:59:32.033290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.038398"], ["updated_at", "2017-04-15 18:59:32.038398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:59:32.041204"], ["updated_at", "2017-04-15 18:59:32.041204"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5292], ["updated_at", "2017-04-15 18:59:32.042693"], ["id", 8901]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:59:32.046678"], ["updated_at", "2017-04-15 18:59:32.046678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5994], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 18:59:32.049626"], ["updated_at", "2017-04-15 18:59:32.049626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 8902]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.055501"], ["updated_at", "2017-04-15 18:59:32.055501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:59:32.057557"], ["updated_at", "2017-04-15 18:59:32.057557"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5293], ["updated_at", "2017-04-15 18:59:32.059155"], ["id", 8903]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:59:32.067399"], ["updated_at", "2017-04-15 18:59:32.067399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5995], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"resource\":{\"id\":5995,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5293,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 18:59:32.070436"], ["updated_at", "2017-04-15 18:59:32.070436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 8904]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5995]] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5293]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.077629"], ["updated_at", "2017-04-15 18:59:32.077629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:59:32.079768"], ["updated_at", "2017-04-15 18:59:32.079768"]] SQL (0.4ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5294], ["updated_at", "2017-04-15 18:59:32.081111"], ["id", 8905]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:59:32.084284"], ["updated_at", "2017-04-15 18:59:32.084284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":5996,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5294,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 18:59:32.086798"], ["updated_at", "2017-04-15 18:59:32.086798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 8906]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 5996]] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5294]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.093510"], ["updated_at", "2017-04-15 18:59:32.093510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:59:32.095408"], ["updated_at", "2017-04-15 18:59:32.095408"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5295], ["updated_at", "2017-04-15 18:59:32.096809"], ["id", 8907]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ec4106b6-5db6-6893-d171-d1a68c1858b8"], ["created_at", "2017-04-15 18:59:32.100989"], ["updated_at", "2017-04-15 18:59:32.100989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11683], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "ad0d225f-2920-7569-1fef-a95d0565fea1"], ["created_at", "2017-04-15 18:59:32.103603"], ["updated_at", "2017-04-15 18:59:32.103603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10523], ["process_id", 5295], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:32.107553"], ["updated_at", "2017-04-15 18:59:32.107553"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5997], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.109335"], ["updated_at", "2017-04-15 18:59:32.109335"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.113858"], ["updated_at", "2017-04-15 18:59:32.113858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:59:32.115670"], ["updated_at", "2017-04-15 18:59:32.115670"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5296], ["updated_at", "2017-04-15 18:59:32.117690"], ["id", 8909]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5a414ca8-2e54-78ff-f679-bba7c4b022ff"], ["created_at", "2017-04-15 18:59:32.122104"], ["updated_at", "2017-04-15 18:59:32.122104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11684], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "90b006a8-beca-1a35-cf34-039f96139daa"], ["created_at", "2017-04-15 18:59:32.124538"], ["updated_at", "2017-04-15 18:59:32.124538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10524], ["process_id", 5296], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:32.128599"], ["updated_at", "2017-04-15 18:59:32.128599"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5998], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.130694"], ["updated_at", "2017-04-15 18:59:32.130694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.135878"], ["updated_at", "2017-04-15 18:59:32.135878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:59:32.137835"], ["updated_at", "2017-04-15 18:59:32.137835"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5297], ["updated_at", "2017-04-15 18:59:32.139672"], ["id", 8911]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b4f00f89-a6cc-a65f-4605-456b21861462"], ["created_at", "2017-04-15 18:59:32.143994"], ["updated_at", "2017-04-15 18:59:32.143994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11685], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "f5945ea3-2d65-127e-23f2-1c659e81bf02"], ["created_at", "2017-04-15 18:59:32.146464"], ["updated_at", "2017-04-15 18:59:32.146464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10525], ["process_id", 5297], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:32.150579"], ["updated_at", "2017-04-15 18:59:32.150579"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 5999], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.152387"], ["updated_at", "2017-04-15 18:59:32.152387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.157245"], ["updated_at", "2017-04-15 18:59:32.157245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:59:32.159277"], ["updated_at", "2017-04-15 18:59:32.159277"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5298], ["updated_at", "2017-04-15 18:59:32.160716"], ["id", 8913]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f243dd96-4356-e224-4701-d72e97a44fa1"], ["created_at", "2017-04-15 18:59:32.166315"], ["updated_at", "2017-04-15 18:59:32.166315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11686], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "16065587-ae9b-4073-7749-39044eab2af3"], ["created_at", "2017-04-15 18:59:32.168678"], ["updated_at", "2017-04-15 18:59:32.168678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10526], ["process_id", 5298], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:32.173116"], ["updated_at", "2017-04-15 18:59:32.173116"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6000], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.175308"], ["updated_at", "2017-04-15 18:59:32.175308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.180015"], ["updated_at", "2017-04-15 18:59:32.180015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:59:32.182249"], ["updated_at", "2017-04-15 18:59:32.182249"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5299], ["updated_at", "2017-04-15 18:59:32.183769"], ["id", 8915]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4bd2cdad-7516-5e1e-b7db-36c7f675101e"], ["created_at", "2017-04-15 18:59:32.188182"], ["updated_at", "2017-04-15 18:59:32.188182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11687], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "ed0be268-ecd9-5d20-ac17-23aec36723c3"], ["created_at", "2017-04-15 18:59:32.190374"], ["updated_at", "2017-04-15 18:59:32.190374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10527], ["process_id", 5299], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:32.194169"], ["updated_at", "2017-04-15 18:59:32.194169"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6001], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.196227"], ["updated_at", "2017-04-15 18:59:32.196227"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.201519"], ["updated_at", "2017-04-15 18:59:32.201519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:59:32.203445"], ["updated_at", "2017-04-15 18:59:32.203445"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5300], ["updated_at", "2017-04-15 18:59:32.204827"], ["id", 8917]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "aa2e5ea9-bb18-02a6-9ddc-b731695563a8"], ["created_at", "2017-04-15 18:59:32.208856"], ["updated_at", "2017-04-15 18:59:32.208856"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11688], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "66546626-2a7b-caa7-5f33-510076019f6e"], ["created_at", "2017-04-15 18:59:32.211374"], ["updated_at", "2017-04-15 18:59:32.211374"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10528], ["process_id", 5300], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:32.215204"], ["updated_at", "2017-04-15 18:59:32.215204"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6002], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.217074"], ["updated_at", "2017-04-15 18:59:32.217074"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.221531"], ["updated_at", "2017-04-15 18:59:32.221531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:59:32.223520"], ["updated_at", "2017-04-15 18:59:32.223520"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5301], ["updated_at", "2017-04-15 18:59:32.225405"], ["id", 8919]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e26f5990-16be-7b5c-d55c-edb44b588c00"], ["created_at", "2017-04-15 18:59:32.230276"], ["updated_at", "2017-04-15 18:59:32.230276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "12d01557-12c4-cc97-155c-c5d1a52d7bca"], ["created_at", "2017-04-15 18:59:32.232468"], ["updated_at", "2017-04-15 18:59:32.232468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11689], ["child_process_id", 11690], ["uuid", "ef0e3d5b-e82a-6eb9-7838-90f129946683"], ["created_at", "2017-04-15 18:59:32.234411"], ["updated_at", "2017-04-15 18:59:32.234411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b1eac6b7-23c5-2c96-8fe6-6d500ed13234"], ["created_at", "2017-04-15 18:59:32.237765"], ["updated_at", "2017-04-15 18:59:32.237765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11691], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "b93e2876-74fc-2e23-dac3-96d982c7d805"], ["created_at", "2017-04-15 18:59:32.239581"], ["updated_at", "2017-04-15 18:59:32.239581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10530], ["process_id", 5301], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:32.243272"], ["updated_at", "2017-04-15 18:59:32.243272"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6003], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.244754"], ["updated_at", "2017-04-15 18:59:32.244754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10529], ["process_id", 5301], ["status", 0], ["dependencies", "[{\"operation_id\":6003,\"status\":0}]"], ["created_at", "2017-04-15 18:59:32.248678"], ["updated_at", "2017-04-15 18:59:32.248678"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6004], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.250177"], ["updated_at", "2017-04-15 18:59:32.250177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11690]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11690) [["id", 11690]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11690], ["created_at", "2017-04-15 18:59:32.256717"], ["updated_at", "2017-04-15 18:59:32.256717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:59:32.258483"], ["id", 5302]] SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5302], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.260598"], ["updated_at", "2017-04-15 18:59:32.260598"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5302], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.265648"], ["updated_at", "2017-04-15 18:59:32.265648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:59:32.267538"], ["updated_at", "2017-04-15 18:59:32.267538"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5303], ["updated_at", "2017-04-15 18:59:32.268923"], ["id", 8923]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8b42cef8-3995-5d4e-3f24-800c5b992550"], ["created_at", "2017-04-15 18:59:32.272551"], ["updated_at", "2017-04-15 18:59:32.272551"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11692], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "0b5c13c7-1bd1-3f01-cd11-64dea9001842"], ["created_at", "2017-04-15 18:59:32.275161"], ["updated_at", "2017-04-15 18:59:32.275161"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10531], ["process_id", 5303], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:32.279493"], ["updated_at", "2017-04-15 18:59:32.279493"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6005], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.281419"], ["updated_at", "2017-04-15 18:59:32.281419"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.286554"], ["updated_at", "2017-04-15 18:59:32.286554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:59:32.288782"], ["updated_at", "2017-04-15 18:59:32.288782"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5304], ["updated_at", "2017-04-15 18:59:32.290224"], ["id", 8925]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 18:59:32.295736"], ["updated_at", "2017-04-15 18:59:32.295736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a88cf0ce-925d-751e-6096-e80ee8a46d27"], ["created_at", "2017-04-15 18:59:32.298659"], ["updated_at", "2017-04-15 18:59:32.298659"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11693], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "9da3b642-08f4-6fde-2fd1-d0fcb2d037aa"], ["created_at", "2017-04-15 18:59:32.301283"], ["updated_at", "2017-04-15 18:59:32.301283"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6006], ["parent_type", "RailsWorkflow::Operation"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10532], ["process_id", 5304], ["status", 0], ["dependencies", "[{\"operation_id\":6006,\"status\":4}]"], ["created_at", "2017-04-15 18:59:32.306490"], ["updated_at", "2017-04-15 18:59:32.306490"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6007], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.308271"], ["updated_at", "2017-04-15 18:59:32.308271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.312716"], ["updated_at", "2017-04-15 18:59:32.312716"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:59:32.315185"], ["updated_at", "2017-04-15 18:59:32.315185"]] SQL (0.4ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5305], ["updated_at", "2017-04-15 18:59:32.316860"], ["id", 8927]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0d94aa22-4620-5693-49db-ca81936b5eb8"], ["created_at", "2017-04-15 18:59:32.320804"], ["updated_at", "2017-04-15 18:59:32.320804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11694], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "f8925e31-9cfb-5ab2-ae53-297cce8b53f9"], ["created_at", "2017-04-15 18:59:32.323197"], ["updated_at", "2017-04-15 18:59:32.323197"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10533], ["process_id", 5305], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 18:59:32.327848"], ["updated_at", "2017-04-15 18:59:32.327848"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6008], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.329706"], ["updated_at", "2017-04-15 18:59:32.329706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:59:32.333575"], ["updated_at", "2017-04-15 18:59:32.333575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$Cb.RgFypxMAyXLYxhmbzkOQ/zn4Y.vjOdnsG9Iu1Thnru/4rQJdO."], ["created_at", "2017-04-15 18:59:32.338473"], ["updated_at", "2017-04-15 18:59:32.338473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1558], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1558], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:59:32.340457"], ["updated_at", "2017-04-15 18:59:32.342045"], ["id", 6009]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:59:32.345736"], ["updated_at", "2017-04-15 18:59:32.345736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$JE0bp882DD1LmuhOplZqMeu8v9korv/3i99TNJt8MfltCwMm5I23K"], ["created_at", "2017-04-15 18:59:32.350425"], ["updated_at", "2017-04-15 18:59:32.350425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1559], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1559], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:59:32.352312"], ["updated_at", "2017-04-15 18:59:32.353665"], ["id", 6010]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:59:32.356373"], ["updated_at", "2017-04-15 18:59:32.356373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1559], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1559], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:59:32.358282"], ["updated_at", "2017-04-15 18:59:32.359471"], ["id", 6011]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6010]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:59:32.363527"], ["updated_at", "2017-04-15 18:59:32.363527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$joXorCii4G/Q7IyA.VdcxeIhYE3aEmzwysXMqNvSVs8388JSGvk6O"], ["created_at", "2017-04-15 18:59:32.374596"], ["updated_at", "2017-04-15 18:59:32.374596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1560], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1560], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:59:32.376081"], ["updated_at", "2017-04-15 18:59:32.377263"], ["id", 6012]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "updated_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["assignment_id", nil], ["assignment_type", nil], ["is_active", "f"], ["updated_at", "2017-04-15 18:59:32.378962"], ["id", 6012]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:59:32.381893"], ["updated_at", "2017-04-15 18:59:32.381893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$PB.uLsKT9cNt.Sy8hQA2vuT4dOPcLlVDzdyEn4j90Gy2n9iH8jAGa"], ["created_at", "2017-04-15 18:59:32.386283"], ["updated_at", "2017-04-15 18:59:32.386283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1561], ["assignment_type", "User"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1561], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:59:32.387928"], ["updated_at", "2017-04-15 18:59:32.389559"], ["id", 6013]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$j/d8wGVhOvphs2koHbinxeIeJhVrG/DU328wLdNIVxL4XgLxQ097e"], ["created_at", "2017-04-15 18:59:32.393973"], ["updated_at", "2017-04-15 18:59:32.393973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6013]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1561]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:59:32.399840"], ["updated_at", "2017-04-15 18:59:32.399840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$d75Z8dZfzRscGn9tofhQV.qeL5TFkTxAKfxHac19g7rW6JshPx1t6"], ["created_at", "2017-04-15 18:59:32.403921"], ["updated_at", "2017-04-15 18:59:32.403921"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1563], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1563], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:59:32.405365"], ["updated_at", "2017-04-15 18:59:32.406707"], ["id", 6014]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$IUBchxXBIw2hU2u.IJX1lO2HixeD2Dcp1shlt9uA1szVQ62iDpabq"], ["created_at", "2017-04-15 18:59:32.411076"], ["updated_at", "2017-04-15 18:59:32.411076"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:59:32.414317"], ["updated_at", "2017-04-15 18:59:32.414317"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$.SSu5VZn5ftfHFpFGlTHsu66UOd7uZiFRGxrYXQH/BiRkdy9Lkzeq"], ["created_at", "2017-04-15 18:59:32.418947"], ["updated_at", "2017-04-15 18:59:32.418947"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1565], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1565], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:59:32.420864"], ["updated_at", "2017-04-15 18:59:32.422187"], ["id", 6015]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$BQ3kYOrITRck3vQ9yVr4hebrLXquPBUlkLhi2xMWYjGIY/zus.2W6"], ["created_at", "2017-04-15 18:59:32.426191"], ["updated_at", "2017-04-15 18:59:32.426191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "56d552d7-77a8-25fb-0784-288a1e50c76e"], ["created_at", "2017-04-15 18:59:32.429400"], ["updated_at", "2017-04-15 18:59:32.429400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "role", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11695], ["role", "admin"], ["uuid", "5701f4a0-7bf2-52b7-18b5-7c9bf75ad7c6"], ["created_at", "2017-04-15 18:59:32.431236"], ["updated_at", "2017-04-15 18:59:32.431236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "bb6db425-f401-c9ed-112f-edd1db9832af"], ["created_at", "2017-04-15 18:59:32.433461"], ["updated_at", "2017-04-15 18:59:32.433461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "group", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11696], ["group", "some_group"], ["uuid", "c7315964-5f78-9122-e913-00a60b57484c"], ["created_at", "2017-04-15 18:59:32.435216"], ["updated_at", "2017-04-15 18:59:32.435216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 10535], ["created_at", "2017-04-15 18:59:32.437468"], ["updated_at", "2017-04-15 18:59:32.437468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 10534], ["created_at", "2017-04-15 18:59:32.439619"], ["updated_at", "2017-04-15 18:59:32.439619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$.xHqolo58meVvlqAmYTSY.5IACBBHFporM6W3UbUywfAQ2DiXqOwm"], ["role", "admin"], ["created_at", "2017-04-15 18:59:32.443685"], ["updated_at", "2017-04-15 18:59:32.443685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'admin')  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'fake@email.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "fake@email.com"], ["encrypted_password", "$2a$04$PW0e6gECeGogckOy7vb3jeXFWAK30tmmaHla.l3tYxw.7OIz//XxC"], ["role", "fake"], ["created_at", "2017-04-15 18:59:32.449736"], ["updated_at", "2017-04-15 18:59:32.449736"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.6ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'fake') SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1567], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1567], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 18:59:32.453216"], ["updated_at", "2017-04-15 18:59:32.454630"], ["id", 6017]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."assignment_id" IS NULL  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 18:59:32.459003"], ["updated_at", "2017-04-15 18:59:32.459003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:59:32.460710"], ["updated_at", "2017-04-15 18:59:32.460710"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6018], ["updated_at", "2017-04-15 18:59:32.461925"], ["id", 8929]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 18:59:32.464260"], ["id", 6018]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 18:59:32.468092"], ["updated_at", "2017-04-15 18:59:32.468092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 18:59:32.470235"], ["updated_at", "2017-04-15 18:59:32.470235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 18:59:32.471835"], ["updated_at", "2017-04-15 18:59:32.471835"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5306], ["updated_at", "2017-04-15 18:59:32.473010"], ["id", 8930]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "child_process_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["child_process_id", 5306], ["updated_at", "2017-04-15 18:59:32.475017"], ["id", 6019]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:32.477084"], ["id", 6019]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6019 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6019]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9] RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5306]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9] SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 18:59:32.481019"], ["id", 5306]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5306], ["status", 0]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6019], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9] SQL (0.6ms) INSERT INTO "rails_workflow_errors" ("parent_id", "parent_type", "message", "stack_trace", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["parent_id", 6019], ["parent_type", "RailsWorkflow::Operation"], ["message", "undefined method `save' for nil:NilClass"], ["stack_trace", "/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:60:in `execute_in_transaction'
\n/home/maxim/rails_workflow/app/jobs/rails_workflow/operation_execution_job.rb:12:in `perform'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:32:in `block in perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/i18n-0.7.0/lib/i18n.rb:257:in `with_locale'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/translation.rb:7:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:23:in `block (4 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `block in instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:22:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `block in tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:26:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:19:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_perform_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:31:in `perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:16:in `perform_now'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:28:in `starting'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:18:in `start'
\n/home/maxim/rails_workflow/spec/models/rails_workflow/operation_spec.rb:179:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `block in with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `block in with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:618:in `block in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-rails-3.4.2/lib/rspec/rails/adapters.rb:127:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:389:in `execute_with'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:620:in `block (2 levels) in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:621:in `run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:233:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:581:in `block in run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:543:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (3 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (2 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/configuration.rb:1680:in `with_suite_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:118:in `block in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/reporter.rb:77:in `report'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:117:in `run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:93:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:78:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:45:in `invoke'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/exe/rspec:4:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `kernel_load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:335:in `exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:20:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:11:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:32:in `block in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:24:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `
'"], ["created_at", "2017-04-15 18:59:32.489437"], ["updated_at", "2017-04-15 18:59:32.489437"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 137], ["parent_type", "RailsWorkflow::Error"], ["body", "{\"parent\":{\"id\":6019,\"class\":\"RailsWorkflow::Operation\"},\"target\":{\"id\":6019,\"class\":\"RailsWorkflow::Operation\"},\"method\":\"execute_in_transaction\"}"], ["created_at", "2017-04-15 18:59:32.493865"], ["updated_at", "2017-04-15 18:59:32.493865"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 137], ["parent_type", "RailsWorkflow::Error"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6019]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6019]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6019]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 4], ["updated_at", "2017-04-15 18:59:32.500573"], ["id", 6019]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [04289c15-4f7d-4365-8253-f135af9e73e9] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 23.72ms RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5306]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 2], ["completed_at", "2017-04-15 18:59:32.505337"], ["created_at", "2017-04-15 18:59:32.505983"], ["updated_at", "2017-04-15 18:59:32.505983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 6], ["completed_at", "2017-04-15 18:59:32.509876"], ["created_at", "2017-04-15 18:59:32.510415"], ["updated_at", "2017-04-15 18:59:32.510415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 5], ["completed_at", "2017-04-15 18:59:32.515098"], ["created_at", "2017-04-15 18:59:32.515747"], ["updated_at", "2017-04-15 18:59:32.515747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c68887c1-19ab-5f75-8c42-9065e1550590"], ["created_at", "2017-04-15 18:59:32.520221"], ["updated_at", "2017-04-15 18:59:32.520221"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 11697], ["uuid", "34627001-1e98-4aaa-ee65-7786cdc7824c"], ["created_at", "2017-04-15 18:59:32.522274"], ["updated_at", "2017-04-15 18:59:32.522274"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::TestProcess"], ["uuid", "082749f5-0e99-5f5d-bbee-d3d5a67e45af"], ["created_at", "2017-04-15 18:59:32.527320"], ["updated_at", "2017-04-15 18:59:32.527320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("type", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "RailsWorkflow::TestProcess"], ["template_id", 11698], ["created_at", "2017-04-15 18:59:32.533048"], ["updated_at", "2017-04-15 18:59:32.533048"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 18:59:32.535218"], ["id", 5307]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5307], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 18:59:32.537204"], ["updated_at", "2017-04-15 18:59:32.537204"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5307], ["parent_type", "RailsWorkflow::Process"]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11698]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::Process"], ["uuid", "7a7a517d-0bf3-743d-eeea-93036b2dd514"], ["created_at", "2017-04-15 18:59:32.542802"], ["updated_at", "2017-04-15 18:59:32.542802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11699], ["uuid", "a1c3b403-2856-eaf5-d373-79fe33e373fe"], ["created_at", "2017-04-15 18:59:32.545658"], ["updated_at", "2017-04-15 18:59:32.545658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11699], ["dependencies", "[{\"id\":10537,\"statuses\":[2]}]"], ["uuid", "0f5a19b0-5f96-4d13-cbf9-9145fd9eb19f"], ["created_at", "2017-04-15 18:59:32.548311"], ["updated_at", "2017-04-15 18:59:32.548311"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11699]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11699) [["id", 11699]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e50b5465-55bd-1518-a0dc-44792a9b2abf"], ["created_at", "2017-04-15 18:59:32.556775"], ["updated_at", "2017-04-15 18:59:32.556775"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5304e260-0ba5-bbc1-95be-fee5d7665ea4"], ["created_at", "2017-04-15 18:59:32.558980"], ["updated_at", "2017-04-15 18:59:32.558980"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b58027ab-3cf0-424e-81d5-634937e29140"], ["created_at", "2017-04-15 18:59:32.560902"], ["updated_at", "2017-04-15 18:59:32.560902"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11701], ["child_process_id", 11702], ["uuid", "f6f73df3-dacb-1c86-a685-d3c951d0feee"], ["created_at", "2017-04-15 18:59:32.562827"], ["updated_at", "2017-04-15 18:59:32.562827"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11700]] SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 11700], ["updated_at", "2017-04-15 18:59:32.565941"], ["id", 10539]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11700]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11702]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9e9be69c-6e9a-e7b9-ed49-b9b0698a8148"], ["created_at", "2017-04-15 18:59:32.573225"], ["updated_at", "2017-04-15 18:59:32.573225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ca1bf763-2896-568d-2d4e-2ff5178c84bd"], ["created_at", "2017-04-15 18:59:32.575761"], ["updated_at", "2017-04-15 18:59:32.575761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11704], ["uuid", "5681b1b6-09a7-364a-b891-1fa392f31528"], ["created_at", "2017-04-15 18:59:32.577998"], ["updated_at", "2017-04-15 18:59:32.577998"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11703]] SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 11703], ["updated_at", "2017-04-15 18:59:32.581499"], ["id", 10540]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11703]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:59:32.588661"], ["updated_at", "2017-04-15 18:59:32.588661"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:59:32.590521"], ["id", 11705]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11705]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11705], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11705], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 18:59:32.594787"], ["updated_at", "2017-04-15 18:59:32.594787"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.597162"], ["id", 10541]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11705], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11705], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 18:59:32.600734"], ["updated_at", "2017-04-15 18:59:32.600734"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.603025"], ["id", 10542]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11705], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11705], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:59:32.607108"], ["updated_at", "2017-04-15 18:59:32.607108"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.609935"], ["id", 10543]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10541}]"], ["updated_at", "2017-04-15 18:59:32.614173"], ["id", 10542]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10542}]"], ["updated_at", "2017-04-15 18:59:32.616683"], ["id", 10543]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:59:32.621870"], ["updated_at", "2017-04-15 18:59:32.621870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:59:32.623590"], ["id", 11706]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11706]] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11706], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11706], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 18:59:32.627715"], ["updated_at", "2017-04-15 18:59:32.627715"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.629826"], ["id", 10544]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11706], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11706], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 18:59:32.633187"], ["updated_at", "2017-04-15 18:59:32.633187"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.635474"], ["id", 10545]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11706], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11706], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:59:32.638777"], ["updated_at", "2017-04-15 18:59:32.638777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.641329"], ["id", 10546]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10544}]"], ["updated_at", "2017-04-15 18:59:32.645222"], ["id", 10545]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10545}]"], ["updated_at", "2017-04-15 18:59:32.648097"], ["id", 10546]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Some new name"], ["updated_at", "2017-04-15 18:59:32.650832"], ["id", 11706]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Test Process"], ["updated_at", "2017-04-15 18:59:32.654059"], ["id", 11706]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11706]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11706], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11706], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 18:59:32.660412"], ["id", 10545]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11706], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 18:59:32.663673"], ["id", 10546]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10544}]"], ["updated_at", "2017-04-15 18:59:32.666995"], ["id", 10545]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10545}]"], ["updated_at", "2017-04-15 18:59:32.669427"], ["id", 10546]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:59:32.674144"], ["updated_at", "2017-04-15 18:59:32.674144"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:59:32.676260"], ["id", 11707]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11707]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11707], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11707], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 18:59:32.680551"], ["updated_at", "2017-04-15 18:59:32.680551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.682655"], ["id", 10547]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11707], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11707], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 18:59:32.686036"], ["updated_at", "2017-04-15 18:59:32.686036"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.688144"], ["id", 10548]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11707], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11707], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:59:32.691534"], ["updated_at", "2017-04-15 18:59:32.691534"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.693604"], ["id", 10549]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10547}]"], ["updated_at", "2017-04-15 18:59:32.696968"], ["id", 10548]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10548}]"], ["updated_at", "2017-04-15 18:59:32.699586"], ["id", 10549]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11707]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:59:32.705403"], ["updated_at", "2017-04-15 18:59:32.705403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:59:32.707347"], ["id", 11708]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11708]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11708], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11708], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 18:59:32.711362"], ["updated_at", "2017-04-15 18:59:32.711362"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.713430"], ["id", 10550]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11708], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11708], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 18:59:32.716470"], ["updated_at", "2017-04-15 18:59:32.716470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.718479"], ["id", 10551]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11708], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11708], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:59:32.721747"], ["updated_at", "2017-04-15 18:59:32.721747"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.723847"], ["id", 10552]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10550}]"], ["updated_at", "2017-04-15 18:59:32.727162"], ["id", 10551]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10551}]"], ["updated_at", "2017-04-15 18:59:32.729756"], ["id", 10552]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11708]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Some new operation name"], ["updated_at", "2017-04-15 18:59:32.734201"], ["id", 10550]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11708]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11708], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Default Operation 2"], ["updated_at", "2017-04-15 18:59:32.740367"], ["id", 10550]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11708], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 18:59:32.743556"], ["id", 10551]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11708], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 18:59:32.746777"], ["id", 10552]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10550}]"], ["updated_at", "2017-04-15 18:59:32.749823"], ["id", 10551]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10551}]"], ["updated_at", "2017-04-15 18:59:32.752463"], ["id", 10552]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10550]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:59:32.757154"], ["updated_at", "2017-04-15 18:59:32.757154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:59:32.758838"], ["id", 11709]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11709]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11709], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11709], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 18:59:32.763589"], ["updated_at", "2017-04-15 18:59:32.763589"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.765821"], ["id", 10553]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11709], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11709], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 18:59:32.769153"], ["updated_at", "2017-04-15 18:59:32.769153"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.771225"], ["id", 10554]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11709], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11709], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:59:32.774578"], ["updated_at", "2017-04-15 18:59:32.774578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.776986"], ["id", 10555]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10553}]"], ["updated_at", "2017-04-15 18:59:32.780369"], ["id", 10554]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10554}]"], ["updated_at", "2017-04-15 18:59:32.782671"], ["id", 10555]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Some new operation"], ["process_template_id", 11709], ["uuid", "4cc430e7-d6ee-42ef-6269-596a68f85e50"], ["created_at", "2017-04-15 18:59:32.785679"], ["updated_at", "2017-04-15 18:59:32.785679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11709]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11709]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11709], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11709], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 18:59:32.794416"], ["id", 10554]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11709], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 18:59:32.797603"], ["id", 10555]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = 10556  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10553}]"], ["updated_at", "2017-04-15 18:59:32.801243"], ["id", 10554]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10554}]"], ["updated_at", "2017-04-15 18:59:32.803541"], ["id", 10555]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11709]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 18:59:32.808873"], ["updated_at", "2017-04-15 18:59:32.808873"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 18:59:32.810669"], ["id", 11710]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11710]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11710], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11710], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 18:59:32.814453"], ["updated_at", "2017-04-15 18:59:32.814453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.816423"], ["id", 10557]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11710], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11710], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 18:59:32.819639"], ["updated_at", "2017-04-15 18:59:32.819639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.821647"], ["id", 10558]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11710], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11710], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 18:59:32.824992"], ["updated_at", "2017-04-15 18:59:32.824992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.827047"], ["id", 10559]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10557}]"], ["updated_at", "2017-04-15 18:59:32.830208"], ["id", 10558]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10558}]"], ["updated_at", "2017-04-15 18:59:32.832635"], ["id", 10559]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10557]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 18:59:32.838616"], ["updated_at", "2017-04-15 18:59:32.838616"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 18:59:32.841090"], ["updated_at", "2017-04-15 18:59:32.841090"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 18:59:32.842725"], ["id", 11712]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11712]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11712], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11712], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 18:59:32.846384"], ["updated_at", "2017-04-15 18:59:32.846384"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.848509"], ["id", 10560]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 18:59:32.851015"], ["id", 11711]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11711]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11711], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11711], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 18:59:32.854460"], ["updated_at", "2017-04-15 18:59:32.854460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.856439"], ["id", 10561]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11711], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11711], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 18:59:32.859356"], ["updated_at", "2017-04-15 18:59:32.859356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 11712], ["updated_at", "2017-04-15 18:59:32.862055"], ["id", 10562]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":10561}]"], ["updated_at", "2017-04-15 18:59:32.865931"], ["id", 10562]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 18:59:32.870630"], ["updated_at", "2017-04-15 18:59:32.870630"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 18:59:32.873054"], ["updated_at", "2017-04-15 18:59:32.873054"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 18:59:32.874721"], ["id", 11714]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11714]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11714], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11714], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 18:59:32.878298"], ["updated_at", "2017-04-15 18:59:32.878298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.880364"], ["id", 10563]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 18:59:32.882833"], ["id", 11713]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11713]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11713], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11713], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 18:59:32.886347"], ["updated_at", "2017-04-15 18:59:32.886347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.888380"], ["id", 10564]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11713], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11713], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 18:59:32.891349"], ["updated_at", "2017-04-15 18:59:32.891349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 11714], ["updated_at", "2017-04-15 18:59:32.894046"], ["id", 10565]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":10564}]"], ["updated_at", "2017-04-15 18:59:32.900196"], ["id", 10565]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Parent Process"]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11713]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11714]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 18:59:32.908108"], ["updated_at", "2017-04-15 18:59:32.908108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 18:59:32.909799"], ["id", 11715]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11715]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11715], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11715], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 18:59:32.913819"], ["updated_at", "2017-04-15 18:59:32.913819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 18:59:32.915837"], ["id", 10566]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11715], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11715], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 18:59:32.918679"], ["updated_at", "2017-04-15 18:59:32.918679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1be89f8f-cb49-721c-2196-8f990b59bb7e"], ["created_at", "2017-04-15 19:01:24.496468"], ["updated_at", "2017-04-15 19:01:24.496468"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11716], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "0bb3ef8d-4813-21fe-873e-39e1a5f4cfe7"], ["created_at", "2017-04-15 19:01:24.511128"], ["updated_at", "2017-04-15 19:01:24.511128"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#index as HTML Parameters: {"process_template_id"=>"11716"} RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11716]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 24ms (Views: 7.9ms | ActiveRecord: 0.4ms) RailsWorkflow::OperationTemplate Load (0.5ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11716]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d62a471c-0579-2ecc-15a8-2093a6cab45a"], ["created_at", "2017-04-15 19:01:24.546232"], ["updated_at", "2017-04-15 19:01:24.546232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11717], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "2d05d560-26bd-9983-7c6a-903b8e343ddd"], ["created_at", "2017-04-15 19:01:24.548180"], ["updated_at", "2017-04-15 19:01:24.548180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#show as HTML Parameters: {"process_template_id"=>"11717", "id"=>"10569"} RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10569]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11717]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d3acee41-b09f-ddcd-3d34-13a9ddf41117"], ["created_at", "2017-04-15 19:01:24.566284"], ["updated_at", "2017-04-15 19:01:24.566284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0038c785-7719-63d0-6121-856b1c9fa3cd"], ["created_at", "2017-04-15 19:01:24.568238"], ["updated_at", "2017-04-15 19:01:24.568238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#new as HTML Parameters: {"process_template_id"=>"11719"} RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11719]] Unpermitted parameter: process_template_id Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 8ms (Views: 1.6ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "dd5fb4ae-84b8-fe64-81d6-137ba8a80974"], ["created_at", "2017-04-15 19:01:24.583841"], ["updated_at", "2017-04-15 19:01:24.583841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11720], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "0aabc20c-37d2-2727-4377-6b53a79770be"], ["created_at", "2017-04-15 19:01:24.586001"], ["updated_at", "2017-04-15 19:01:24.586001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#edit as HTML Parameters: {"process_template_id"=>"11720", "id"=>"10570"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10570]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11720]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/edit.html.slim within layouts/rails_workflow/application (0.4ms) Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9cac2c6f-6476-ad22-d02c-617892c70d9f"], ["created_at", "2017-04-15 19:01:24.604683"], ["updated_at", "2017-04-15 19:01:24.604683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11721", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11721"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11721]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 11721], ["uuid", "ad80b43c-a35b-16f3-b86d-f2c9051bcc95"], ["created_at", "2017-04-15 19:01:24.616747"], ["updated_at", "2017-04-15 19:01:24.616747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11721/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11721]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e629e894-10d6-9a20-0af1-eb217d200f37"], ["created_at", "2017-04-15 19:01:24.625818"], ["updated_at", "2017-04-15 19:01:24.625818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate') Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11722", "type"=>"RailsWorkflow::CustomOperationTemplate"}, "process_template_id"=>"11722"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11722]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 11722], ["uuid", "78430c3c-7c10-c936-801b-2c85a91cdde0"], ["created_at", "2017-04-15 19:01:24.647312"], ["updated_at", "2017-04-15 19:01:24.647312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11722/operation_templates Completed 302 Found in 19ms (ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e47b595d-aa96-4d5c-c6ed-d33029816c6a"], ["created_at", "2017-04-15 19:01:24.655097"], ["updated_at", "2017-04-15 19:01:24.655097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11723", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11723"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11723]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 11723], ["uuid", "fce6a031-35bf-627c-03f7-2a095e43c0cc"], ["created_at", "2017-04-15 19:01:24.663540"], ["updated_at", "2017-04-15 19:01:24.663540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11723/operation_templates Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8e7c17b4-9152-8b0b-c58e-6759e9f19e45"], ["created_at", "2017-04-15 19:01:24.671339"], ["updated_at", "2017-04-15 19:01:24.671339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11724", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11724"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11724]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 11724], ["uuid", "7fac18d0-8135-1b35-99e6-8a3e989b8a79"], ["created_at", "2017-04-15 19:01:24.679748"], ["updated_at", "2017-04-15 19:01:24.679748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11724/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "36a268e3-d218-3936-f60f-f781b784fb91"], ["created_at", "2017-04-15 19:01:24.689400"], ["updated_at", "2017-04-15 19:01:24.689400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "72f84a4e-5a87-3917-3be4-b250a76f503d"], ["created_at", "2017-04-15 19:01:24.693191"], ["updated_at", "2017-04-15 19:01:24.693191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "60106a72-b1b8-47e0-6408-5c9735689f88"], ["created_at", "2017-04-15 19:01:24.697624"], ["updated_at", "2017-04-15 19:01:24.697624"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11727], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "b6629056-5b15-ab58-7584-76d0958e02be"], ["created_at", "2017-04-15 19:01:24.700316"], ["updated_at", "2017-04-15 19:01:24.700316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "38911ff1-7997-adb6-7c3d-35ae9354346b"], ["created_at", "2017-04-15 19:01:24.704575"], ["updated_at", "2017-04-15 19:01:24.704575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11728], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "b59e63f8-ab11-5255-6786-eb2f061ac0c2"], ["created_at", "2017-04-15 19:01:24.706642"], ["updated_at", "2017-04-15 19:01:24.706642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11728", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11728", "id"=>"10576"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10576]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11728]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11728/operation_templates Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d118f085-be25-ee3a-0aab-f2a60e88f4fc"], ["created_at", "2017-04-15 19:01:24.721738"], ["updated_at", "2017-04-15 19:01:24.721738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11729], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "9c8dd6dc-fae9-0356-ea3a-bf6749f1bc27"], ["created_at", "2017-04-15 19:01:24.723816"], ["updated_at", "2017-04-15 19:01:24.723816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11729", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11729", "id"=>"10577"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10577]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11729]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11729/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "fc70b47c-dbb5-075c-3997-639745bc3793"], ["created_at", "2017-04-15 19:01:24.741835"], ["updated_at", "2017-04-15 19:01:24.741835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11730], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "2058f292-fd7e-9e76-9c98-95db5fdf1b9a"], ["created_at", "2017-04-15 19:01:24.743993"], ["updated_at", "2017-04-15 19:01:24.743993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7e871ba0-af75-1e77-7b25-a63aae8e754e"], ["created_at", "2017-04-15 19:01:24.747686"], ["updated_at", "2017-04-15 19:01:24.747686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11731], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "d3087e97-5b97-56ee-8bc7-af8efa0d7156"], ["created_at", "2017-04-15 19:01:24.749724"], ["updated_at", "2017-04-15 19:01:24.749724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "573ccbc1-3680-e368-621f-46c719436e27"], ["created_at", "2017-04-15 19:01:24.753966"], ["updated_at", "2017-04-15 19:01:24.753966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11732], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "3d4fc649-115d-9e69-2175-3d103401583a"], ["created_at", "2017-04-15 19:01:24.755965"], ["updated_at", "2017-04-15 19:01:24.755965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11732]] Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"11732", "id"=>"10580"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10580]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11732]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 10580]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11732/operation_templates Completed 302 Found in 7ms (ActiveRecord: 0.9ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "36322fb7-21d5-ae07-4be4-bcc8801fc45b"], ["created_at", "2017-04-15 19:01:24.774243"], ["updated_at", "2017-04-15 19:01:24.774243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11733], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "0c9b4855-29b2-11b6-6ebf-670bfd0b9e48"], ["created_at", "2017-04-15 19:01:24.776279"], ["updated_at", "2017-04-15 19:01:24.776279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"11733", "id"=>"10581"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10581]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11733]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 10581]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11733/operation_templates Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "dd6c3ec9-a6bb-7531-168d-06d5369f9a72"], ["created_at", "2017-04-15 19:01:24.815633"], ["updated_at", "2017-04-15 19:01:24.815633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "a0ac0522-4ba5-3100-5922-09f9cb5ce393"], ["created_at", "2017-04-15 19:01:24.829902"], ["updated_at", "2017-04-15 19:01:24.829902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#show as HTML Parameters: {"id"=>"11735"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11735]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "15fad54f-a321-efd1-688f-60d280ec0ea0"], ["created_at", "2017-04-15 19:01:24.853345"], ["updated_at", "2017-04-15 19:01:24.853345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#edit as HTML Parameters: {"id"=>"11736"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11736]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "fccd73e9-5b63-b6b4-1b60-57dbff20feb3"], ["created_at", "2017-04-15 19:01:24.874936"], ["updated_at", "2017-04-15 19:01:24.874936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11737/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "230aa002-96ad-bc20-46f9-619036a1491e"], ["created_at", "2017-04-15 19:01:24.885384"], ["updated_at", "2017-04-15 19:01:24.885384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11738/operation_templates Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "4e62c5fa-434f-604e-872b-63f96eedd5d9"], ["created_at", "2017-04-15 19:01:24.911270"], ["updated_at", "2017-04-15 19:01:24.911270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11739/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.5ms) RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "e38a4e5d-0c7b-3a01-6e6d-5f2c8bcfa9b8"], ["created_at", "2017-04-15 19:01:24.925824"], ["updated_at", "2017-04-15 19:01:24.925824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "80ccfeb1-ab4b-e491-28b2-44e8a2e0fb0d"], ["created_at", "2017-04-15 19:01:24.929183"], ["updated_at", "2017-04-15 19:01:24.929183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"11741"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11741]] Unpermitted parameter: id  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11741 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "53ba2b6d-5da7-bdc6-7e0b-70d275c023b0"], ["created_at", "2017-04-15 19:01:24.941565"], ["updated_at", "2017-04-15 19:01:24.941565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"11742"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11742]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11742 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "87e7eded-4141-20f9-5319-28b66ff4e755"], ["created_at", "2017-04-15 19:01:24.960603"], ["updated_at", "2017-04-15 19:01:24.960603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "74ecd73b-1daa-30fd-1cba-8a809a65e234"], ["created_at", "2017-04-15 19:01:24.964059"], ["updated_at", "2017-04-15 19:01:24.964059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "5322e4b5-36f4-958e-2c86-ac3e103243e0"], ["created_at", "2017-04-15 19:01:24.967525"], ["updated_at", "2017-04-15 19:01:24.967525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"11745"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11745]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 11745]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 6ms (ActiveRecord: 1.0ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "51ef049b-cdf6-801b-954c-e1f58e3dd20e"], ["created_at", "2017-04-15 19:01:24.981614"], ["updated_at", "2017-04-15 19:01:24.981614"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"11746"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11746]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 11746]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e42dad15-b189-8630-48d1-0e1e6e5b2c27"], ["created_at", "2017-04-15 19:01:24.997880"], ["updated_at", "2017-04-15 19:01:24.997880"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11747], ["created_at", "2017-04-15 19:01:25.005723"], ["updated_at", "2017-04-15 19:01:25.005723"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#index as HTML  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.4ms)  select status, cnt from ( select row_number() over (partition by status), count(*) over (partition by status) cnt, status from rails_workflow_processes)t where row_number = 1  Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 10ms (Views: 3.8ms | ActiveRecord: 0.8ms) RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" ASC LIMIT 30 OFFSET 0  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "01d6c5a9-15df-96b2-7430-66bb44ed2970"], ["created_at", "2017-04-15 19:01:25.026378"], ["updated_at", "2017-04-15 19:01:25.026378"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11748], ["created_at", "2017-04-15 19:01:25.028465"], ["updated_at", "2017-04-15 19:01:25.028465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#show as HTML Parameters: {"id"=>"5309"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5309]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "bc8bd648-a917-dc56-dd50-dea0d2aade14"], ["created_at", "2017-04-15 19:01:25.045447"], ["updated_at", "2017-04-15 19:01:25.045447"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e9c76061-13a4-70a5-c124-3bd7422053aa"], ["created_at", "2017-04-15 19:01:25.054901"], ["updated_at", "2017-04-15 19:01:25.054901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11750], ["created_at", "2017-04-15 19:01:25.056611"], ["updated_at", "2017-04-15 19:01:25.056611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#edit as HTML Parameters: {"id"=>"5310"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5310]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1be3c8dc-ab13-784c-ea40-7d01309ab9d1"], ["created_at", "2017-04-15 19:01:25.072289"], ["updated_at", "2017-04-15 19:01:25.072289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_processes" Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11751"}} SQL (0.4ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11751]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11751) [["id", 11751]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11751], ["created_at", "2017-04-15 19:01:25.089221"], ["updated_at", "2017-04-15 19:01:25.089221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:25.091238"], ["id", 5311]] SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5311], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:01:25.100265"], ["updated_at", "2017-04-15 19:01:25.100265"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5311], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.2ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5311]] Redirected to http://test.host/workflow/processes/5311 Completed 302 Found in 32ms (ActiveRecord: 4.1ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6e42f405-b33d-799a-cdf3-c755be615c9f"], ["created_at", "2017-04-15 19:01:25.112685"], ["updated_at", "2017-04-15 19:01:25.112685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11752"}} SQL (0.4ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11752]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11752) [["id", 11752]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11752], ["created_at", "2017-04-15 19:01:25.121872"], ["updated_at", "2017-04-15 19:01:25.121872"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:25.124037"], ["id", 5312]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5312], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:01:25.126044"], ["updated_at", "2017-04-15 19:01:25.126044"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5312], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5312]] Redirected to http://test.host/workflow/processes/5312 Completed 302 Found in 15ms (ActiveRecord: 3.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "fee8c6a8-d4e3-da11-0aff-f8f3022f0363"], ["created_at", "2017-04-15 19:01:25.134860"], ["updated_at", "2017-04-15 19:01:25.134860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11753"}} SQL (0.4ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11753]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11753) [["id", 11753]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11753], ["created_at", "2017-04-15 19:01:25.144671"], ["updated_at", "2017-04-15 19:01:25.144671"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:25.146753"], ["id", 5313]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5313], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:01:25.148793"], ["updated_at", "2017-04-15 19:01:25.148793"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5313], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.4ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5313]] Redirected to http://test.host/workflow/processes/5313 Completed 302 Found in 16ms (ActiveRecord: 3.3ms) RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" DESC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c90de28a-84c1-b2ef-4e4f-4f03f9460198"], ["created_at", "2017-04-15 19:01:25.161766"], ["updated_at", "2017-04-15 19:01:25.161766"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7c1ec05d-928a-63b6-c3f1-544bd168b3b5"], ["created_at", "2017-04-15 19:01:25.165441"], ["updated_at", "2017-04-15 19:01:25.165441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "97359364-4187-e547-3791-d7777dc15e62"], ["created_at", "2017-04-15 19:01:25.168825"], ["updated_at", "2017-04-15 19:01:25.168825"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11756], ["created_at", "2017-04-15 19:01:25.170914"], ["updated_at", "2017-04-15 19:01:25.170914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6e1197d9-37ea-5442-b924-c6b81ea9a36f"], ["created_at", "2017-04-15 19:01:25.174656"], ["updated_at", "2017-04-15 19:01:25.174656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11757], ["created_at", "2017-04-15 19:01:25.176449"], ["updated_at", "2017-04-15 19:01:25.176449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11757"}, "id"=>"5315"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5315]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "30a3e56b-b145-fe45-097d-25eaf05b8f44"], ["created_at", "2017-04-15 19:01:25.188548"], ["updated_at", "2017-04-15 19:01:25.188548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11758], ["created_at", "2017-04-15 19:01:25.190417"], ["updated_at", "2017-04-15 19:01:25.190417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11758"}, "id"=>"5316"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5316]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "be758ccf-db02-4a7c-44b4-c89de894f253"], ["created_at", "2017-04-15 19:01:25.205868"], ["updated_at", "2017-04-15 19:01:25.205868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11759], ["created_at", "2017-04-15 19:01:25.207995"], ["updated_at", "2017-04-15 19:01:25.207995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "dfd78124-a259-a42a-3d4e-4e781fe61aff"], ["created_at", "2017-04-15 19:01:25.211465"], ["updated_at", "2017-04-15 19:01:25.211465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11760], ["created_at", "2017-04-15 19:01:25.213380"], ["updated_at", "2017-04-15 19:01:25.213380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "bc6232e0-7b79-1f39-7ecd-48534cbdda1e"], ["created_at", "2017-04-15 19:01:25.216853"], ["updated_at", "2017-04-15 19:01:25.216853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "fc3ce613-5e05-9d92-c82d-1f77ce744d2e"], ["created_at", "2017-04-15 19:01:25.220174"], ["updated_at", "2017-04-15 19:01:25.220174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1fea853b-9f6b-d449-4656-1245474e49ca"], ["created_at", "2017-04-15 19:01:25.223244"], ["updated_at", "2017-04-15 19:01:25.223244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11763], ["uuid", "99fcb204-1e31-1acc-342d-84d91807df9b"], ["created_at", "2017-04-15 19:01:25.225535"], ["updated_at", "2017-04-15 19:01:25.225535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11763], ["dependencies", "[{\"id\":10582,\"statuses\":[2]}]"], ["uuid", "ac020805-48ca-a967-eff4-e0269fe7a5bb"], ["created_at", "2017-04-15 19:01:25.228086"], ["updated_at", "2017-04-15 19:01:25.228086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11763]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11763) [["id", 11763]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11763], ["created_at", "2017-04-15 19:01:25.234236"], ["updated_at", "2017-04-15 19:01:25.234236"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:25.236719"], ["id", 5319]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5319], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.238822"], ["updated_at", "2017-04-15 19:01:25.238822"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5319], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10582], ["process_id", 5319], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:25.251357"], ["updated_at", "2017-04-15 19:01:25.251357"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6023], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.253388"], ["updated_at", "2017-04-15 19:01:25.253388"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "76e0b196-b412-47ab-8a88-59aba556ac20"], ["created_at", "2017-04-15 19:01:25.259144"], ["updated_at", "2017-04-15 19:01:25.259144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11764], ["uuid", "5f9babd2-8438-8381-7d21-edf8d8842647"], ["created_at", "2017-04-15 19:01:25.261425"], ["updated_at", "2017-04-15 19:01:25.261425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11764], ["dependencies", "[{\"id\":10584,\"statuses\":[2]}]"], ["uuid", "ad6916dd-a5fc-852e-2850-9fde89049d25"], ["created_at", "2017-04-15 19:01:25.263818"], ["updated_at", "2017-04-15 19:01:25.263818"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11764]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11764) [["id", 11764]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11764], ["created_at", "2017-04-15 19:01:25.270274"], ["updated_at", "2017-04-15 19:01:25.270274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:25.271813"], ["id", 5320]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5320], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.273635"], ["updated_at", "2017-04-15 19:01:25.273635"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5320], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10584], ["process_id", 5320], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:25.277029"], ["updated_at", "2017-04-15 19:01:25.277029"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6024], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.278314"], ["updated_at", "2017-04-15 19:01:25.278314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b0a354df-afcd-7765-02ef-2c6d8fc92fbd"], ["created_at", "2017-04-15 19:01:25.282227"], ["updated_at", "2017-04-15 19:01:25.282227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11765], ["uuid", "d9830135-341d-d1a4-668f-e0a49d880cd7"], ["created_at", "2017-04-15 19:01:25.284455"], ["updated_at", "2017-04-15 19:01:25.284455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11765], ["dependencies", "[{\"id\":10586,\"statuses\":[2]}]"], ["uuid", "b3d70e59-a81e-8318-b078-fd62238f7431"], ["created_at", "2017-04-15 19:01:25.286822"], ["updated_at", "2017-04-15 19:01:25.286822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11765]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11765) [["id", 11765]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11765], ["created_at", "2017-04-15 19:01:25.292616"], ["updated_at", "2017-04-15 19:01:25.292616"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:25.294596"], ["id", 5321]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5321], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.296671"], ["updated_at", "2017-04-15 19:01:25.296671"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5321], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10586], ["process_id", 5321], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:25.301299"], ["updated_at", "2017-04-15 19:01:25.301299"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6025], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.302740"], ["updated_at", "2017-04-15 19:01:25.302740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5321]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5321]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "df4b11a7-2b96-c705-5cdc-890243ad6471"], ["created_at", "2017-04-15 19:01:25.309088"], ["updated_at", "2017-04-15 19:01:25.309088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11766], ["uuid", "f8cc8b7c-1236-82fb-ced9-9606a2bf742c"], ["created_at", "2017-04-15 19:01:25.311266"], ["updated_at", "2017-04-15 19:01:25.311266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11766], ["dependencies", "[{\"id\":10588,\"statuses\":[2]}]"], ["uuid", "d9c39df3-0bb1-c2dd-5c8a-f567b00b7cfc"], ["created_at", "2017-04-15 19:01:25.313577"], ["updated_at", "2017-04-15 19:01:25.313577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11766]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11766) [["id", 11766]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11766], ["created_at", "2017-04-15 19:01:25.319145"], ["updated_at", "2017-04-15 19:01:25.319145"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:25.320931"], ["id", 5322]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5322], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.322825"], ["updated_at", "2017-04-15 19:01:25.322825"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5322], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10588], ["process_id", 5322], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:25.326405"], ["updated_at", "2017-04-15 19:01:25.326405"]] SQL (0.5ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6026], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.327818"], ["updated_at", "2017-04-15 19:01:25.327818"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e1b0825d-0cc1-b6c2-abff-d3f061379d69"], ["created_at", "2017-04-15 19:01:25.332931"], ["updated_at", "2017-04-15 19:01:25.332931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11767], ["uuid", "a39d0488-b14f-2a06-aec5-353ade8591af"], ["created_at", "2017-04-15 19:01:25.335256"], ["updated_at", "2017-04-15 19:01:25.335256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11767], ["dependencies", "[{\"id\":10590,\"statuses\":[2]}]"], ["uuid", "c2c641cb-896d-c0cf-4721-8c3de7d8ed8c"], ["created_at", "2017-04-15 19:01:25.337660"], ["updated_at", "2017-04-15 19:01:25.337660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11767]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11767) [["id", 11767]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11767], ["created_at", "2017-04-15 19:01:25.343494"], ["updated_at", "2017-04-15 19:01:25.343494"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:25.345524"], ["id", 5323]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5323], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.347381"], ["updated_at", "2017-04-15 19:01:25.347381"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5323], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10590], ["process_id", 5323], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:25.350795"], ["updated_at", "2017-04-15 19:01:25.350795"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6027], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.352546"], ["updated_at", "2017-04-15 19:01:25.352546"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5323]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6027], ["parent_type", "RailsWorkflow::Operation"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "966f10b5-789c-e527-4f35-b38c01dea725"], ["created_at", "2017-04-15 19:01:25.373614"], ["updated_at", "2017-04-15 19:01:25.373614"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11768], ["uuid", "f27cad27-bd4a-9d74-258a-178295a9783b"], ["created_at", "2017-04-15 19:01:25.376202"], ["updated_at", "2017-04-15 19:01:25.376202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11768], ["dependencies", "[{\"id\":10592,\"statuses\":[2]}]"], ["uuid", "e8e38008-c9d7-c352-5f4e-e1afda97d9c6"], ["created_at", "2017-04-15 19:01:25.378520"], ["updated_at", "2017-04-15 19:01:25.378520"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11768]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11768) [["id", 11768]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11768], ["created_at", "2017-04-15 19:01:25.384315"], ["updated_at", "2017-04-15 19:01:25.384315"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:25.386096"], ["id", 5324]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5324], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.387904"], ["updated_at", "2017-04-15 19:01:25.387904"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5324], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10592], ["process_id", 5324], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:25.391724"], ["updated_at", "2017-04-15 19:01:25.391724"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6028], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.393316"], ["updated_at", "2017-04-15 19:01:25.393316"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "09842354-b186-d423-eba9-a8030dc3846f"], ["created_at", "2017-04-15 19:01:25.399404"], ["updated_at", "2017-04-15 19:01:25.399404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11769], ["uuid", "a3c22204-8714-8d8f-5d05-3d477270bd0d"], ["created_at", "2017-04-15 19:01:25.401639"], ["updated_at", "2017-04-15 19:01:25.401639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11769], ["dependencies", "[{\"id\":10594,\"statuses\":[2]}]"], ["uuid", "5c9a319c-9a23-a7d5-7748-b2c7308464d9"], ["created_at", "2017-04-15 19:01:25.403941"], ["updated_at", "2017-04-15 19:01:25.403941"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11769]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11769) [["id", 11769]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11769], ["created_at", "2017-04-15 19:01:25.409721"], ["updated_at", "2017-04-15 19:01:25.409721"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:25.411597"], ["id", 5325]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5325], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.413385"], ["updated_at", "2017-04-15 19:01:25.413385"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5325], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10594], ["process_id", 5325], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:25.416898"], ["updated_at", "2017-04-15 19:01:25.416898"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6029], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.418314"], ["updated_at", "2017-04-15 19:01:25.418314"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:25.421540"], ["id", 5325]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5325], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:25.425343"], ["id", 6029]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bf4a4b14-2421-4b3f-9b93-f9e246d356dc] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6029 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bf4a4b14-2421-4b3f-9b93-f9e246d356dc] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6029]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bf4a4b14-2421-4b3f-9b93-f9e246d356dc]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bf4a4b14-2421-4b3f-9b93-f9e246d356dc]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bf4a4b14-2421-4b3f-9b93-f9e246d356dc] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6029], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bf4a4b14-2421-4b3f-9b93-f9e246d356dc]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bf4a4b14-2421-4b3f-9b93-f9e246d356dc]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bf4a4b14-2421-4b3f-9b93-f9e246d356dc] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 4.61ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d56e5fb4-a438-32f5-23ff-f17f77a71adf"], ["created_at", "2017-04-15 19:01:25.435179"], ["updated_at", "2017-04-15 19:01:25.435179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11770], ["uuid", "6ea402bf-34a3-30f1-0ad4-62d642f3dbb0"], ["created_at", "2017-04-15 19:01:25.437453"], ["updated_at", "2017-04-15 19:01:25.437453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11770], ["dependencies", "[{\"id\":10596,\"statuses\":[2]}]"], ["uuid", "494c85a4-35f1-c58c-5b93-8f950560f71b"], ["created_at", "2017-04-15 19:01:25.439929"], ["updated_at", "2017-04-15 19:01:25.439929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11770]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11770) [["id", 11770]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11770], ["created_at", "2017-04-15 19:01:25.445394"], ["updated_at", "2017-04-15 19:01:25.445394"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:25.447272"], ["id", 5326]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5326], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.449040"], ["updated_at", "2017-04-15 19:01:25.449040"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5326], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10596], ["process_id", 5326], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:25.452594"], ["updated_at", "2017-04-15 19:01:25.452594"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6030], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.454112"], ["updated_at", "2017-04-15 19:01:25.454112"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:25.457985"], ["id", 5326]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5326], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:25.460997"], ["id", 6030]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0a25b55b-7844-4fca-83d8-c2cf94893e8e] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6030 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0a25b55b-7844-4fca-83d8-c2cf94893e8e] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6030]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0a25b55b-7844-4fca-83d8-c2cf94893e8e]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0a25b55b-7844-4fca-83d8-c2cf94893e8e]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0a25b55b-7844-4fca-83d8-c2cf94893e8e] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6030], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0a25b55b-7844-4fca-83d8-c2cf94893e8e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0a25b55b-7844-4fca-83d8-c2cf94893e8e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0a25b55b-7844-4fca-83d8-c2cf94893e8e] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 3.79ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5326]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8d2c66d2-3167-260b-3e1b-8fe2435bbc98"], ["created_at", "2017-04-15 19:01:25.470285"], ["updated_at", "2017-04-15 19:01:25.470285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11771], ["uuid", "1fd98387-ef02-d490-ca48-6a5dd58cb827"], ["created_at", "2017-04-15 19:01:25.472487"], ["updated_at", "2017-04-15 19:01:25.472487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11771], ["dependencies", "[{\"id\":10598,\"statuses\":[2]}]"], ["uuid", "3ae9e3fa-4803-8657-de51-0622194310ae"], ["created_at", "2017-04-15 19:01:25.474760"], ["updated_at", "2017-04-15 19:01:25.474760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11771]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11771) [["id", 11771]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11771], ["created_at", "2017-04-15 19:01:25.479969"], ["updated_at", "2017-04-15 19:01:25.479969"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:25.481737"], ["id", 5327]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5327], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.483546"], ["updated_at", "2017-04-15 19:01:25.483546"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5327], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10598], ["process_id", 5327], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:25.487367"], ["updated_at", "2017-04-15 19:01:25.487367"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6031], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.488949"], ["updated_at", "2017-04-15 19:01:25.488949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:25.492102"], ["id", 5327]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5327], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:25.494769"], ["id", 6031]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6031 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6031]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6031], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:01:25.499378"], ["updated_at", "2017-04-15 19:01:25.499925"], ["id", 6031]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5327]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11771]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11771]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10598]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5327]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10598]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5327], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902] SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:01:25.512268"], ["id", 5327]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5327]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dd174f6a-1d25-492b-891d-3d22aec3a902] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 19.75ms RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5327]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:01:25.517407"], ["updated_at", "2017-04-15 19:01:25.518200"], ["id", 6031]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10598]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5327]]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5327], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:01:25.524642"], ["id", 5327]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5327]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "036316b7-4600-d2a8-9222-1ade56c51934"], ["created_at", "2017-04-15 19:01:25.528912"], ["updated_at", "2017-04-15 19:01:25.528912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11772], ["uuid", "27f2e5ce-529d-d993-e56b-790c691b0515"], ["created_at", "2017-04-15 19:01:25.531122"], ["updated_at", "2017-04-15 19:01:25.531122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11772], ["dependencies", "[{\"id\":10600,\"statuses\":[2]}]"], ["uuid", "f4f018ca-61d1-4ace-d7c4-971361a4ffa0"], ["created_at", "2017-04-15 19:01:25.533495"], ["updated_at", "2017-04-15 19:01:25.533495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11772]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11772) [["id", 11772]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11772], ["created_at", "2017-04-15 19:01:25.539096"], ["updated_at", "2017-04-15 19:01:25.539096"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:25.541034"], ["id", 5328]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5328], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.542822"], ["updated_at", "2017-04-15 19:01:25.542822"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5328], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10600], ["process_id", 5328], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:25.546432"], ["updated_at", "2017-04-15 19:01:25.546432"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6032], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.547842"], ["updated_at", "2017-04-15 19:01:25.547842"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:25.550974"], ["id", 5328]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5328], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:25.554494"], ["id", 6032]]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6032 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6032]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6032], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:01:25.560081"], ["updated_at", "2017-04-15 19:01:25.560613"], ["id", 6032]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5328]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11772]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11772]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10600]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5328]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10600]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10601], ["process_id", 5328], ["status", 0], ["dependencies", "[{\"operation_id\":6032,\"status\":2}]"], ["created_at", "2017-04-15 19:01:25.568968"], ["updated_at", "2017-04-15 19:01:25.568968"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6033], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.570424"], ["updated_at", "2017-04-15 19:01:25.570424"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:25.573839"], ["id", 6033]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6033 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6033]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6033], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:01:25.578621"], ["updated_at", "2017-04-15 19:01:25.579157"], ["id", 6033]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5328]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11772]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11772]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10601]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5328]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10601]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10600]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5328], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:01:25.587858"], ["id", 5328]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5328]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] [RailsWorkflow::OperationExecutionJob] [a5bd1e2a-2702-41df-94c9-9ed8c3191da7] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 14.35ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [36cea47d-b6aa-41f9-9cd5-3bbdb3a82fb2] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 33.39ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5328]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:01:25.591161"], ["updated_at", "2017-04-15 19:01:25.591919"], ["id", 6032]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10600]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5328]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10601]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5328], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:01:25.598477"], ["id", 5328]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5328]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b11fca87-6291-5d55-9600-13b333f2252f"], ["created_at", "2017-04-15 19:01:25.602544"], ["updated_at", "2017-04-15 19:01:25.602544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11773], ["uuid", "915123a3-872b-7134-f3e1-02f367801758"], ["created_at", "2017-04-15 19:01:25.604758"], ["updated_at", "2017-04-15 19:01:25.604758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11773], ["dependencies", "[{\"id\":10602,\"statuses\":[2]}]"], ["uuid", "fcdf3b8e-de40-7625-2330-1ddf8be4fc55"], ["created_at", "2017-04-15 19:01:25.607072"], ["updated_at", "2017-04-15 19:01:25.607072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11773]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11773) [["id", 11773]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11773], ["created_at", "2017-04-15 19:01:25.612556"], ["updated_at", "2017-04-15 19:01:25.612556"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:25.614403"], ["id", 5329]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5329], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.616356"], ["updated_at", "2017-04-15 19:01:25.616356"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5329], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10602], ["process_id", 5329], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:25.619881"], ["updated_at", "2017-04-15 19:01:25.619881"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6034], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.621305"], ["updated_at", "2017-04-15 19:01:25.621305"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:25.624482"], ["id", 5329]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5329], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:25.627277"], ["id", 6034]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6034 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6034]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6034], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:01:25.632266"], ["updated_at", "2017-04-15 19:01:25.632764"], ["id", 6034]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5329]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11773]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11773]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10602]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5329]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10602]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] SQL (0.1ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10603], ["process_id", 5329], ["status", 0], ["dependencies", "[{\"operation_id\":6034,\"status\":2}]"], ["created_at", "2017-04-15 19:01:25.639877"], ["updated_at", "2017-04-15 19:01:25.639877"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6035], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.641187"], ["updated_at", "2017-04-15 19:01:25.641187"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:25.644199"], ["id", 6035]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6035 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6035]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6035], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:01:25.648537"], ["updated_at", "2017-04-15 19:01:25.649080"], ["id", 6035]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5329]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11773]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11773]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10603]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5329]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10603]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10602]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5329], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:01:25.657423"], ["id", 5329]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5329]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] [RailsWorkflow::OperationExecutionJob] [fd7ca968-e159-4dbf-a7ad-375a2d8096b5] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 13.8ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [914d406f-3547-4023-a4c5-c451be586421] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 30.63ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5329]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:01:25.660815"], ["updated_at", "2017-04-15 19:01:25.661503"], ["id", 6034]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10602]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5329]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10603]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5329], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:01:25.667720"], ["id", 5329]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5329]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 2], ["created_at", "2017-04-15 19:01:25.619881"], ["updated_at", "2017-04-15 19:01:25.661503"], ["completed_at", "2017-04-15 19:01:25.669701"], ["id", 6034]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "90ebce5e-e9ae-6655-00e8-0fed42f8be0d"], ["created_at", "2017-04-15 19:01:25.673691"], ["updated_at", "2017-04-15 19:01:25.673691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11774], ["uuid", "9e56b842-842d-0596-c968-78cb9bf6b93e"], ["created_at", "2017-04-15 19:01:25.675907"], ["updated_at", "2017-04-15 19:01:25.675907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11774], ["dependencies", "[{\"id\":10604,\"statuses\":[2]}]"], ["uuid", "afa94513-8db4-6fdf-5a82-86fdf3de3d68"], ["created_at", "2017-04-15 19:01:25.678280"], ["updated_at", "2017-04-15 19:01:25.678280"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11774]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11774) [["id", 11774]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11774], ["created_at", "2017-04-15 19:01:25.684059"], ["updated_at", "2017-04-15 19:01:25.684059"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:25.685685"], ["id", 5330]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5330], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.687683"], ["updated_at", "2017-04-15 19:01:25.687683"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5330], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10604], ["process_id", 5330], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:25.691251"], ["updated_at", "2017-04-15 19:01:25.691251"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6036], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.692701"], ["updated_at", "2017-04-15 19:01:25.692701"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:25.695967"], ["id", 5330]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5330], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:25.698829"], ["id", 6036]]  (0.5ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6036 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6036]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6036], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:01:25.704786"], ["updated_at", "2017-04-15 19:01:25.705319"], ["id", 6036]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5330]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11774]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11774]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10604]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5330]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10604]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10605], ["process_id", 5330], ["status", 0], ["dependencies", "[{\"operation_id\":6036,\"status\":2}]"], ["created_at", "2017-04-15 19:01:25.713015"], ["updated_at", "2017-04-15 19:01:25.713015"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6037], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.714356"], ["updated_at", "2017-04-15 19:01:25.714356"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:25.717619"], ["id", 6037]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6037 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6037]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6037], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:01:25.722093"], ["updated_at", "2017-04-15 19:01:25.722638"], ["id", 6037]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5330]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11774]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11774]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10605]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5330]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10605]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10604]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5330], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:01:25.737964"], ["id", 5330]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5330]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] [RailsWorkflow::OperationExecutionJob] [896a0193-7f58-417f-9f5c-2df4aef596d6] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 20.74ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [8369f402-0fb7-4f34-9d2e-efe3700a0cc1] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 39.05ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5330]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:01:25.741158"], ["updated_at", "2017-04-15 19:01:25.741811"], ["id", 6036]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10604]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5330]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10605]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5330], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:01:25.748135"], ["id", 5330]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5330]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 6], ["created_at", "2017-04-15 19:01:25.691251"], ["updated_at", "2017-04-15 19:01:25.741811"], ["completed_at", "2017-04-15 19:01:25.750096"], ["id", 6036]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a249e7b4-f8e4-372a-3a1d-f1042b0fdc6b"], ["created_at", "2017-04-15 19:01:25.753993"], ["updated_at", "2017-04-15 19:01:25.753993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11775], ["uuid", "f053951e-0d91-eb83-d8dc-1d601bc26f6d"], ["created_at", "2017-04-15 19:01:25.756208"], ["updated_at", "2017-04-15 19:01:25.756208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11775], ["dependencies", "[{\"id\":10606,\"statuses\":[2]}]"], ["uuid", "11881c95-42c2-0459-d007-2cb272c314a1"], ["created_at", "2017-04-15 19:01:25.758526"], ["updated_at", "2017-04-15 19:01:25.758526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11775]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11775) [["id", 11775]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11775], ["created_at", "2017-04-15 19:01:25.763931"], ["updated_at", "2017-04-15 19:01:25.763931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:25.765598"], ["id", 5331]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5331], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.767413"], ["updated_at", "2017-04-15 19:01:25.767413"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5331], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10606], ["process_id", 5331], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:25.770837"], ["updated_at", "2017-04-15 19:01:25.770837"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6038], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.772267"], ["updated_at", "2017-04-15 19:01:25.772267"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:25.775414"], ["id", 5331]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5331], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:25.777872"], ["id", 6038]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6038 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6038]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6038], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:01:25.783128"], ["updated_at", "2017-04-15 19:01:25.783646"], ["id", 6038]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5331]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11775]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11775]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10606]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5331]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10606]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10607], ["process_id", 5331], ["status", 0], ["dependencies", "[{\"operation_id\":6038,\"status\":2}]"], ["created_at", "2017-04-15 19:01:25.790619"], ["updated_at", "2017-04-15 19:01:25.790619"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6039], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:25.792013"], ["updated_at", "2017-04-15 19:01:25.792013"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:25.795102"], ["id", 6039]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6039 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6039]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6039], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:01:25.799311"], ["updated_at", "2017-04-15 19:01:25.799839"], ["id", 6039]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5331]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11775]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11775]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10607]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5331]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10607]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10606]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5331], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:01:25.808356"], ["id", 5331]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5331]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] [RailsWorkflow::OperationExecutionJob] [82c2b566-7071-4ebc-8272-0c6bfbae168d] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 13.77ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fa9d7a8c-e78c-465d-b3b0-eca9fa8d1363] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 30.98ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5331]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:01:25.811505"], ["updated_at", "2017-04-15 19:01:25.812158"], ["id", 6038]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10606]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5331]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10607]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5331], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:01:25.818202"], ["id", 5331]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5331]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 5], ["created_at", "2017-04-15 19:01:25.770837"], ["updated_at", "2017-04-15 19:01:25.812158"], ["completed_at", "2017-04-15 19:01:25.820216"], ["id", 6038]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'regular_user@test.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "regular_user@test.com"], ["encrypted_password", "$2a$04$t8bXEONdmNlQNqola7ck4e.QJo5t/b1kq2cm92atWMoieI6M8Ozhu"], ["role", "regular_user"], ["created_at", "2017-04-15 19:01:25.838864"], ["updated_at", "2017-04-15 19:01:25.838864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'admin@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "admin@test.com"], ["encrypted_password", "$2a$04$CrLzYVUpf3yDd7DRcvpHJeSF5wxzKhUnRieDmwMboenwqhwz4yyny"], ["role", "admin"], ["created_at", "2017-04-15 19:01:25.843692"], ["updated_at", "2017-04-15 19:01:25.843692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:01:25.848248"], ["updated_at", "2017-04-15 19:01:25.848248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "User Operation Template"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:01:25.850350"], ["id", 11776]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11776]] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11776], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11776], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:01:25.856581"], ["updated_at", "2017-04-15 19:01:25.856581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:25.858764"], ["id", 10608]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11776], ["uuid", nil]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11776], ["uuid", "4580fa46-e5c1-20fd-00be-509b791a5baa"], ["created_at", "2017-04-15 19:01:25.863914"], ["updated_at", "2017-04-15 19:01:25.863914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "uuid" = $1, "title" = $2, "dependencies" = $3, "operation_class" = $4, "async" = $5, "kind" = $6, "role" = $7, "instruction" = $8, "type" = $9, "partial_name" = $10, "updated_at" = $11 WHERE "rails_workflow_operation_templates"."id" = $12 [["uuid", "48dd5553-7208-70a6-0daf-1f0283e5337b"], ["title", "Regular User Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "regular_user"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:25.866121"], ["id", 10609]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "User Operation Template"]] SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11776]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11776) [["id", 11776]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11776], ["created_at", "2017-04-15 19:01:25.874930"], ["updated_at", "2017-04-15 19:01:25.874930"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "User Operation Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:25.876916"], ["id", 5332]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5332], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:01:25.878773"], ["updated_at", "2017-04-15 19:01:25.878773"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5332], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Regular User Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 10609], ["process_id", 5332], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:25.893705"], ["updated_at", "2017-04-15 19:01:25.893705"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6040], ["body", "{}"], ["created_at", "2017-04-15 19:01:25.895412"], ["updated_at", "2017-04-15 19:01:25.895412"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Admin Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 10608], ["process_id", 5332], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:25.898996"], ["updated_at", "2017-04-15 19:01:25.898996"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6041], ["body", "{}"], ["created_at", "2017-04-15 19:01:25.900523"], ["updated_at", "2017-04-15 19:01:25.900523"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:25.903501"], ["id", 5332]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5332], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:01:25.906381"], ["id", 6041]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:01:25.908241"], ["id", 6040]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/workflow/operations" for 127.0.0.1 at 2017-04-15 23:01:25 +0400 Processing by RailsWorkflow::OperationsController#index as HTML RailsWorkflow::Operation Load (0.6ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."status" = 3 ORDER BY "rails_workflow_operations"."created_at" DESC RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5332]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10608]] CACHE (0.0ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5332]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10609]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operations/index.html.slim within layouts/rails_workflow/application (19.6ms) Completed 200 OK in 153ms (Views: 144.4ms | ActiveRecord: 1.3ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Started GET "/workflow/config" for 127.0.0.1 at 2017-04-15 23:01:26 +0400 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/application/_flash.html.slim (2.4ms) RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (13.5ms) Completed 200 OK in 16ms (Views: 15.8ms | ActiveRecord: 0.3ms) Started GET "/workflow/config/new" for 127.0.0.1 at 2017-04-15 23:01:26 +0400 Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/_form.html.slim (17.3ms) Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (22.6ms) Completed 200 OK in 26ms (Views: 25.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.155552"], ["updated_at", "2017-04-15 19:01:26.155552"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:26.157875"], ["updated_at", "2017-04-15 19:01:26.157875"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5333], ["updated_at", "2017-04-15 19:01:26.159403"], ["id", 8969]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:26.163823"], ["updated_at", "2017-04-15 19:01:26.163823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 19:01:26.165646"], ["updated_at", "2017-04-15 19:01:26.165646"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6042], ["updated_at", "2017-04-15 19:01:26.167190"], ["id", 8970]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "02021907-864c-ab00-50cb-f52f1e691115"], ["created_at", "2017-04-15 19:01:26.169714"], ["updated_at", "2017-04-15 19:01:26.169714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11777], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "f1b14ce4-6b2b-f262-22bd-4177662fc51c"], ["created_at", "2017-04-15 19:01:26.171579"], ["updated_at", "2017-04-15 19:01:26.171579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10610], ["process_id", 5333], ["status", 0], ["dependencies", "[{\"operation_id\":6042,\"status\":4}]"], ["created_at", "2017-04-15 19:01:26.181795"], ["updated_at", "2017-04-15 19:01:26.181795"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6043], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:26.183368"], ["updated_at", "2017-04-15 19:01:26.183368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.187646"], ["updated_at", "2017-04-15 19:01:26.187646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:26.189295"], ["updated_at", "2017-04-15 19:01:26.189295"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5334], ["updated_at", "2017-04-15 19:01:26.190467"], ["id", 8972]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 19:01:26.193359"], ["updated_at", "2017-04-15 19:01:26.193359"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.197040"], ["updated_at", "2017-04-15 19:01:26.197040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:26.198655"], ["updated_at", "2017-04-15 19:01:26.198655"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5335], ["updated_at", "2017-04-15 19:01:26.199897"], ["id", 8974]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:26.202432"], ["updated_at", "2017-04-15 19:01:26.202432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resource\":{\"id\":6044,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5335,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 19:01:26.204391"], ["updated_at", "2017-04-15 19:01:26.204391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.208500"], ["updated_at", "2017-04-15 19:01:26.208500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:26.210073"], ["updated_at", "2017-04-15 19:01:26.210073"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5336], ["updated_at", "2017-04-15 19:01:26.211317"], ["id", 8976]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:26.214748"], ["updated_at", "2017-04-15 19:01:26.214748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":6045,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5336,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 19:01:26.217749"], ["updated_at", "2017-04-15 19:01:26.217749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.222616"], ["updated_at", "2017-04-15 19:01:26.222616"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:26.225040"], ["updated_at", "2017-04-15 19:01:26.225040"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5337], ["updated_at", "2017-04-15 19:01:26.227044"], ["id", 8978]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:26.230955"], ["updated_at", "2017-04-15 19:01:26.230955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 6046], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 19:01:26.233844"], ["updated_at", "2017-04-15 19:01:26.233844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 8979]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.239423"], ["updated_at", "2017-04-15 19:01:26.239423"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:26.241630"], ["updated_at", "2017-04-15 19:01:26.241630"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5338], ["updated_at", "2017-04-15 19:01:26.243106"], ["id", 8980]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:26.251243"], ["updated_at", "2017-04-15 19:01:26.251243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 6047], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"resource\":{\"id\":6047,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5338,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 19:01:26.253799"], ["updated_at", "2017-04-15 19:01:26.253799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 8981]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6047]] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5338]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.260929"], ["updated_at", "2017-04-15 19:01:26.260929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:26.262948"], ["updated_at", "2017-04-15 19:01:26.262948"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5339], ["updated_at", "2017-04-15 19:01:26.264271"], ["id", 8982]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:26.267418"], ["updated_at", "2017-04-15 19:01:26.267418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":6048,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5339,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 19:01:26.269727"], ["updated_at", "2017-04-15 19:01:26.269727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 8983]] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6048]] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5339]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.276857"], ["updated_at", "2017-04-15 19:01:26.276857"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:26.279183"], ["updated_at", "2017-04-15 19:01:26.279183"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5340], ["updated_at", "2017-04-15 19:01:26.280867"], ["id", 8984]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6df23dcb-b868-af6a-7965-05f210b8b917"], ["created_at", "2017-04-15 19:01:26.284762"], ["updated_at", "2017-04-15 19:01:26.284762"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11778], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "4c81bc57-e233-faed-02b3-779136e7a9f0"], ["created_at", "2017-04-15 19:01:26.287658"], ["updated_at", "2017-04-15 19:01:26.287658"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10611], ["process_id", 5340], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:26.292536"], ["updated_at", "2017-04-15 19:01:26.292536"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6049], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.294344"], ["updated_at", "2017-04-15 19:01:26.294344"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.299237"], ["updated_at", "2017-04-15 19:01:26.299237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:26.301395"], ["updated_at", "2017-04-15 19:01:26.301395"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5341], ["updated_at", "2017-04-15 19:01:26.302807"], ["id", 8986]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "62998e08-2d3b-1b61-c814-628acb46301c"], ["created_at", "2017-04-15 19:01:26.307418"], ["updated_at", "2017-04-15 19:01:26.307418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11779], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "c2e9f642-aadd-0886-ad15-3cfdc84167d7"], ["created_at", "2017-04-15 19:01:26.310048"], ["updated_at", "2017-04-15 19:01:26.310048"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10612], ["process_id", 5341], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:26.314401"], ["updated_at", "2017-04-15 19:01:26.314401"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6050], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.316537"], ["updated_at", "2017-04-15 19:01:26.316537"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.322256"], ["updated_at", "2017-04-15 19:01:26.322256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:26.324868"], ["updated_at", "2017-04-15 19:01:26.324868"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5342], ["updated_at", "2017-04-15 19:01:26.326404"], ["id", 8988]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "87ff5357-9c29-dcea-86f5-617ed1e97232"], ["created_at", "2017-04-15 19:01:26.330875"], ["updated_at", "2017-04-15 19:01:26.330875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11780], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "4e7f9f02-0d5e-54bd-124c-092c9316360e"], ["created_at", "2017-04-15 19:01:26.333591"], ["updated_at", "2017-04-15 19:01:26.333591"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10613], ["process_id", 5342], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:26.338106"], ["updated_at", "2017-04-15 19:01:26.338106"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6051], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.339891"], ["updated_at", "2017-04-15 19:01:26.339891"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.345251"], ["updated_at", "2017-04-15 19:01:26.345251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:26.347241"], ["updated_at", "2017-04-15 19:01:26.347241"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5343], ["updated_at", "2017-04-15 19:01:26.349831"], ["id", 8990]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a5d81a5d-7606-1229-68a8-d9e18d166eb6"], ["created_at", "2017-04-15 19:01:26.355391"], ["updated_at", "2017-04-15 19:01:26.355391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11781], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "1d7d2a89-7cba-faa8-1580-8f4fcf7c5700"], ["created_at", "2017-04-15 19:01:26.357560"], ["updated_at", "2017-04-15 19:01:26.357560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10614], ["process_id", 5343], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:26.361956"], ["updated_at", "2017-04-15 19:01:26.361956"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6052], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.364101"], ["updated_at", "2017-04-15 19:01:26.364101"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.369460"], ["updated_at", "2017-04-15 19:01:26.369460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:26.372104"], ["updated_at", "2017-04-15 19:01:26.372104"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5344], ["updated_at", "2017-04-15 19:01:26.373688"], ["id", 8992]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4a08bdfd-3241-b44a-2156-ddc430ffb11d"], ["created_at", "2017-04-15 19:01:26.378514"], ["updated_at", "2017-04-15 19:01:26.378514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11782], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "0c18dd63-dd4c-3410-874d-5c8b6646615a"], ["created_at", "2017-04-15 19:01:26.381638"], ["updated_at", "2017-04-15 19:01:26.381638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10615], ["process_id", 5344], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:26.386156"], ["updated_at", "2017-04-15 19:01:26.386156"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6053], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.387848"], ["updated_at", "2017-04-15 19:01:26.387848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.392110"], ["updated_at", "2017-04-15 19:01:26.392110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:26.393933"], ["updated_at", "2017-04-15 19:01:26.393933"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5345], ["updated_at", "2017-04-15 19:01:26.395334"], ["id", 8994]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a66080e1-0e63-6508-8df8-29a318b0fb09"], ["created_at", "2017-04-15 19:01:26.399147"], ["updated_at", "2017-04-15 19:01:26.399147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11783], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "6789af31-44da-2594-267f-a5d8d894e37a"], ["created_at", "2017-04-15 19:01:26.401374"], ["updated_at", "2017-04-15 19:01:26.401374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10616], ["process_id", 5345], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:26.405048"], ["updated_at", "2017-04-15 19:01:26.405048"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6054], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.406587"], ["updated_at", "2017-04-15 19:01:26.406587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.410771"], ["updated_at", "2017-04-15 19:01:26.410771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:26.413340"], ["updated_at", "2017-04-15 19:01:26.413340"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5346], ["updated_at", "2017-04-15 19:01:26.415170"], ["id", 8996]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "dbdf80fd-ce46-1aaf-a275-056853ac669e"], ["created_at", "2017-04-15 19:01:26.419508"], ["updated_at", "2017-04-15 19:01:26.419508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f4787ebc-6454-fcc7-fe2a-9c22d11065eb"], ["created_at", "2017-04-15 19:01:26.421799"], ["updated_at", "2017-04-15 19:01:26.421799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11784], ["child_process_id", 11785], ["uuid", "2eaf7761-5a3b-c4af-5ce8-0be09c4725e1"], ["created_at", "2017-04-15 19:01:26.423779"], ["updated_at", "2017-04-15 19:01:26.423779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f387d24c-f9f2-8ebb-2ada-4f77d65f1716"], ["created_at", "2017-04-15 19:01:26.426650"], ["updated_at", "2017-04-15 19:01:26.426650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11786], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "3d749582-9938-da72-1c57-c06173a8f1e1"], ["created_at", "2017-04-15 19:01:26.428993"], ["updated_at", "2017-04-15 19:01:26.428993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10618], ["process_id", 5346], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:26.433317"], ["updated_at", "2017-04-15 19:01:26.433317"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6055], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.434927"], ["updated_at", "2017-04-15 19:01:26.434927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10617], ["process_id", 5346], ["status", 0], ["dependencies", "[{\"operation_id\":6055,\"status\":0}]"], ["created_at", "2017-04-15 19:01:26.438622"], ["updated_at", "2017-04-15 19:01:26.438622"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6056], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.440313"], ["updated_at", "2017-04-15 19:01:26.440313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11785]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11785) [["id", 11785]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11785], ["created_at", "2017-04-15 19:01:26.446333"], ["updated_at", "2017-04-15 19:01:26.446333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:26.448276"], ["id", 5347]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5347], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.450180"], ["updated_at", "2017-04-15 19:01:26.450180"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5347], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.455046"], ["updated_at", "2017-04-15 19:01:26.455046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:26.457008"], ["updated_at", "2017-04-15 19:01:26.457008"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5348], ["updated_at", "2017-04-15 19:01:26.458343"], ["id", 9000]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6afc1329-0340-7ddc-ff21-392b30a99d96"], ["created_at", "2017-04-15 19:01:26.461924"], ["updated_at", "2017-04-15 19:01:26.461924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11787], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "c2297492-6974-b150-c3ae-98b2647f084d"], ["created_at", "2017-04-15 19:01:26.464173"], ["updated_at", "2017-04-15 19:01:26.464173"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10619], ["process_id", 5348], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:26.468462"], ["updated_at", "2017-04-15 19:01:26.468462"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6057], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.470170"], ["updated_at", "2017-04-15 19:01:26.470170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.474502"], ["updated_at", "2017-04-15 19:01:26.474502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:26.476549"], ["updated_at", "2017-04-15 19:01:26.476549"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5349], ["updated_at", "2017-04-15 19:01:26.478352"], ["id", 9002]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 19:01:26.482815"], ["updated_at", "2017-04-15 19:01:26.482815"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a4fa9363-734d-db93-0492-d49ec5042881"], ["created_at", "2017-04-15 19:01:26.486525"], ["updated_at", "2017-04-15 19:01:26.486525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11788], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "68d78e0d-661a-a01e-39d4-207fa2b7ae51"], ["created_at", "2017-04-15 19:01:26.489005"], ["updated_at", "2017-04-15 19:01:26.489005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6058], ["parent_type", "RailsWorkflow::Operation"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10620], ["process_id", 5349], ["status", 0], ["dependencies", "[{\"operation_id\":6058,\"status\":4}]"], ["created_at", "2017-04-15 19:01:26.493975"], ["updated_at", "2017-04-15 19:01:26.493975"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6059], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.495908"], ["updated_at", "2017-04-15 19:01:26.495908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.500239"], ["updated_at", "2017-04-15 19:01:26.500239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:26.502674"], ["updated_at", "2017-04-15 19:01:26.502674"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5350], ["updated_at", "2017-04-15 19:01:26.504159"], ["id", 9004]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e39eaedf-99d8-205b-4d84-62d02250916e"], ["created_at", "2017-04-15 19:01:26.508049"], ["updated_at", "2017-04-15 19:01:26.508049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11789], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "274b0efe-6af4-9bbf-fbe5-61693c94a36e"], ["created_at", "2017-04-15 19:01:26.510409"], ["updated_at", "2017-04-15 19:01:26.510409"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10621], ["process_id", 5350], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:26.520980"], ["updated_at", "2017-04-15 19:01:26.520980"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6060], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.522378"], ["updated_at", "2017-04-15 19:01:26.522378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:26.525730"], ["updated_at", "2017-04-15 19:01:26.525730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$ML0l8HDpGf8DOcsGBKjivel9C1EB7Xbo6i53cTN2ibf9Dy3vnChNy"], ["created_at", "2017-04-15 19:01:26.530030"], ["updated_at", "2017-04-15 19:01:26.530030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1571], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1571], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:01:26.531615"], ["updated_at", "2017-04-15 19:01:26.533016"], ["id", 6061]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:26.536121"], ["updated_at", "2017-04-15 19:01:26.536121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$H5GKgWokBSl.nzmN9uPyzOF4e98c2mQXDEUyTqWi8Y1mQjXRTEhlC"], ["created_at", "2017-04-15 19:01:26.540253"], ["updated_at", "2017-04-15 19:01:26.540253"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1572], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1572], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:01:26.541770"], ["updated_at", "2017-04-15 19:01:26.543094"], ["id", 6062]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:26.545242"], ["updated_at", "2017-04-15 19:01:26.545242"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1572], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1572], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:01:26.547081"], ["updated_at", "2017-04-15 19:01:26.548376"], ["id", 6063]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6062]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:26.552103"], ["updated_at", "2017-04-15 19:01:26.552103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$oSQwm76c7HyUp1O6mb3vhOY0diRT.Q9Djtw8yiiXjB45V5uTeLJG."], ["created_at", "2017-04-15 19:01:26.556158"], ["updated_at", "2017-04-15 19:01:26.556158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1573], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1573], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:01:26.557591"], ["updated_at", "2017-04-15 19:01:26.558812"], ["id", 6064]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "updated_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["assignment_id", nil], ["assignment_type", nil], ["is_active", "f"], ["updated_at", "2017-04-15 19:01:26.560732"], ["id", 6064]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:26.563600"], ["updated_at", "2017-04-15 19:01:26.563600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$vdtTqnS7gxs5A8cbB.DzH.DEwKX..L9CZ8oEWiNNGQZrqlpJ21Wui"], ["created_at", "2017-04-15 19:01:26.567686"], ["updated_at", "2017-04-15 19:01:26.567686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1574], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1574], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:01:26.569022"], ["updated_at", "2017-04-15 19:01:26.570210"], ["id", 6065]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$0TjRdjpAytkpujv6uN0/JOTqCFqOd4J22qxtiWIjxsQU/83TDOg8u"], ["created_at", "2017-04-15 19:01:26.574439"], ["updated_at", "2017-04-15 19:01:26.574439"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6065]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1574]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:26.580470"], ["updated_at", "2017-04-15 19:01:26.580470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$YQ0YxNxLIyeIanfYFzRISOzKROKktJycT0n4siiG5j8xTCmbNYiAO"], ["created_at", "2017-04-15 19:01:26.584540"], ["updated_at", "2017-04-15 19:01:26.584540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1576], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1576], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:01:26.585975"], ["updated_at", "2017-04-15 19:01:26.587411"], ["id", 6066]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$.JbVPYVmgPhU1CAHRDIYm.PX.gZo69MjL.buFZX58it1ufSHMV7Wy"], ["created_at", "2017-04-15 19:01:26.591994"], ["updated_at", "2017-04-15 19:01:26.591994"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:26.595318"], ["updated_at", "2017-04-15 19:01:26.595318"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$nnoFasb4NnRt9cwQcYMzoeQvCmD8uP../I82dc3KO3FTLHB6/X7uq"], ["created_at", "2017-04-15 19:01:26.599551"], ["updated_at", "2017-04-15 19:01:26.599551"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1578], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1578], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:01:26.601009"], ["updated_at", "2017-04-15 19:01:26.602207"], ["id", 6067]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$wWWz.oJds8179/8qRtWN6u9IZG07NYzSk7V.zJsAKpwtg0NOwHyF6"], ["created_at", "2017-04-15 19:01:26.606315"], ["updated_at", "2017-04-15 19:01:26.606315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2de7d3c3-b19e-8144-d85c-b08b78955497"], ["created_at", "2017-04-15 19:01:26.610313"], ["updated_at", "2017-04-15 19:01:26.610313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "role", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11790], ["role", "admin"], ["uuid", "b3b549d6-ba90-db1f-eae0-90ea9cf60ee8"], ["created_at", "2017-04-15 19:01:26.612298"], ["updated_at", "2017-04-15 19:01:26.612298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "84d698cf-10ec-dc68-758e-21e395537976"], ["created_at", "2017-04-15 19:01:26.614583"], ["updated_at", "2017-04-15 19:01:26.614583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "group", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11791], ["group", "some_group"], ["uuid", "65038a9b-e270-81a3-69e3-283936aeda83"], ["created_at", "2017-04-15 19:01:26.616366"], ["updated_at", "2017-04-15 19:01:26.616366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 10623], ["created_at", "2017-04-15 19:01:26.618631"], ["updated_at", "2017-04-15 19:01:26.618631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 10622], ["created_at", "2017-04-15 19:01:26.620887"], ["updated_at", "2017-04-15 19:01:26.620887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$3Q3g6sD27wGEuZty/lRXy.tZNggfjgcaaNKmIdgDup8rfzhJu6Lqa"], ["role", "admin"], ["created_at", "2017-04-15 19:01:26.625013"], ["updated_at", "2017-04-15 19:01:26.625013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'admin')  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'fake@email.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "fake@email.com"], ["encrypted_password", "$2a$04$XxLFJcJC/aWgTAz5Lt5Q0uGKtvE.FbPCjrRq4LNAmVYbF6Hpu.ebC"], ["role", "fake"], ["created_at", "2017-04-15 19:01:26.631069"], ["updated_at", "2017-04-15 19:01:26.631069"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'fake') SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1580], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1580], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:01:26.634106"], ["updated_at", "2017-04-15 19:01:26.635490"], ["id", 6069]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."assignment_id" IS NULL  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:26.640121"], ["updated_at", "2017-04-15 19:01:26.640121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:26.642152"], ["updated_at", "2017-04-15 19:01:26.642152"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6070], ["updated_at", "2017-04-15 19:01:26.643429"], ["id", 9006]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:01:26.645476"], ["id", 6070]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:26.649022"], ["updated_at", "2017-04-15 19:01:26.649022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:26.651206"], ["updated_at", "2017-04-15 19:01:26.651206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:26.652870"], ["updated_at", "2017-04-15 19:01:26.652870"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5351], ["updated_at", "2017-04-15 19:01:26.654045"], ["id", 9007]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "child_process_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["child_process_id", 5351], ["updated_at", "2017-04-15 19:01:26.655853"], ["id", 6071]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:26.657521"], ["id", 6071]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6071 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6071]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5351]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:26.661120"], ["id", 5351]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5351], ["status", 0]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6071], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd] SQL (0.9ms) INSERT INTO "rails_workflow_errors" ("parent_id", "parent_type", "message", "stack_trace", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["parent_id", 6071], ["parent_type", "RailsWorkflow::Operation"], ["message", "undefined method `save' for nil:NilClass"], ["stack_trace", "/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:60:in `execute_in_transaction'
\n/home/maxim/rails_workflow/app/jobs/rails_workflow/operation_execution_job.rb:12:in `perform'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:32:in `block in perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/i18n-0.7.0/lib/i18n.rb:257:in `with_locale'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/translation.rb:7:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:23:in `block (4 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `block in instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:22:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `block in tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:26:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:19:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_perform_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:31:in `perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:16:in `perform_now'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:28:in `starting'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:18:in `start'
\n/home/maxim/rails_workflow/spec/models/rails_workflow/operation_spec.rb:179:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `block in with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `block in with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:618:in `block in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-rails-3.4.2/lib/rspec/rails/adapters.rb:127:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:389:in `execute_with'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:620:in `block (2 levels) in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:621:in `run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:233:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:581:in `block in run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:543:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (3 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (2 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/configuration.rb:1680:in `with_suite_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:118:in `block in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/reporter.rb:77:in `report'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:117:in `run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:93:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:78:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:45:in `invoke'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/exe/rspec:4:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `kernel_load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:335:in `exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:20:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:11:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:32:in `block in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:24:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `
'"], ["created_at", "2017-04-15 19:01:26.668544"], ["updated_at", "2017-04-15 19:01:26.668544"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 138], ["parent_type", "RailsWorkflow::Error"], ["body", "{\"parent\":{\"id\":6071,\"class\":\"RailsWorkflow::Operation\"},\"target\":{\"id\":6071,\"class\":\"RailsWorkflow::Operation\"},\"method\":\"execute_in_transaction\"}"], ["created_at", "2017-04-15 19:01:26.673652"], ["updated_at", "2017-04-15 19:01:26.673652"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 138], ["parent_type", "RailsWorkflow::Error"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6071]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6071]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6071]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 4], ["updated_at", "2017-04-15 19:01:26.679738"], ["id", 6071]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [77c49460-0029-4e3e-8b6d-0a72d38a6efd] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 22.39ms RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5351]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 2], ["completed_at", "2017-04-15 19:01:26.684045"], ["created_at", "2017-04-15 19:01:26.684571"], ["updated_at", "2017-04-15 19:01:26.684571"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 6], ["completed_at", "2017-04-15 19:01:26.688514"], ["created_at", "2017-04-15 19:01:26.689054"], ["updated_at", "2017-04-15 19:01:26.689054"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 5], ["completed_at", "2017-04-15 19:01:26.692762"], ["created_at", "2017-04-15 19:01:26.693286"], ["updated_at", "2017-04-15 19:01:26.693286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "209e02b1-07dd-0e86-9e14-63199bce9d99"], ["created_at", "2017-04-15 19:01:26.697669"], ["updated_at", "2017-04-15 19:01:26.697669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 11792], ["uuid", "777b95ab-f6eb-53b3-0dc6-73bbd5e33bc4"], ["created_at", "2017-04-15 19:01:26.699562"], ["updated_at", "2017-04-15 19:01:26.699562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::TestProcess"], ["uuid", "6b92b661-5931-e65d-fd89-29084f46557a"], ["created_at", "2017-04-15 19:01:26.704761"], ["updated_at", "2017-04-15 19:01:26.704761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("type", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "RailsWorkflow::TestProcess"], ["template_id", 11793], ["created_at", "2017-04-15 19:01:26.710464"], ["updated_at", "2017-04-15 19:01:26.710464"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:26.712921"], ["id", 5352]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5352], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:01:26.714879"], ["updated_at", "2017-04-15 19:01:26.714879"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5352], ["parent_type", "RailsWorkflow::Process"]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11793]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::Process"], ["uuid", "dd3ca169-d4af-d46c-dee0-cdc94be5d767"], ["created_at", "2017-04-15 19:01:26.719957"], ["updated_at", "2017-04-15 19:01:26.719957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11794], ["uuid", "6c43f791-cb14-3fe5-2db2-8faf03325cbe"], ["created_at", "2017-04-15 19:01:26.722259"], ["updated_at", "2017-04-15 19:01:26.722259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11794], ["dependencies", "[{\"id\":10625,\"statuses\":[2]}]"], ["uuid", "f09a4c73-6465-81cf-f892-9e9fb189302e"], ["created_at", "2017-04-15 19:01:26.724582"], ["updated_at", "2017-04-15 19:01:26.724582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11794]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11794) [["id", 11794]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "390af083-812b-e908-b852-ff06ff0837b8"], ["created_at", "2017-04-15 19:01:26.733519"], ["updated_at", "2017-04-15 19:01:26.733519"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d387e49c-f72b-d6e0-83f0-b5a5dd2abe4f"], ["created_at", "2017-04-15 19:01:26.736445"], ["updated_at", "2017-04-15 19:01:26.736445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "201ebd85-d3e8-bac6-6bf3-6c1e2b7babcd"], ["created_at", "2017-04-15 19:01:26.738331"], ["updated_at", "2017-04-15 19:01:26.738331"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11796], ["child_process_id", 11797], ["uuid", "1b6711f1-85ce-ce74-6c68-72dfab3607d2"], ["created_at", "2017-04-15 19:01:26.740251"], ["updated_at", "2017-04-15 19:01:26.740251"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11795]] SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 11795], ["updated_at", "2017-04-15 19:01:26.743271"], ["id", 10627]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11795]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11797]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "79962f55-226c-9db4-8f58-ba8e6408cc1d"], ["created_at", "2017-04-15 19:01:26.750639"], ["updated_at", "2017-04-15 19:01:26.750639"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "218e1027-f9ae-02d7-989d-33118e93c4cf"], ["created_at", "2017-04-15 19:01:26.753247"], ["updated_at", "2017-04-15 19:01:26.753247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11799], ["uuid", "4fc662ad-ab25-d2de-295f-3a7e35605963"], ["created_at", "2017-04-15 19:01:26.754994"], ["updated_at", "2017-04-15 19:01:26.754994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11798]] SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 11798], ["updated_at", "2017-04-15 19:01:26.757759"], ["id", 10628]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11798]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.8ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:01:26.765243"], ["updated_at", "2017-04-15 19:01:26.765243"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:01:26.767569"], ["id", 11800]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11800]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11800], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11800], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:01:26.771983"], ["updated_at", "2017-04-15 19:01:26.771983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:26.774094"], ["id", 10629]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11800], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11800], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:01:26.777672"], ["updated_at", "2017-04-15 19:01:26.777672"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:26.780089"], ["id", 10630]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11800], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11800], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:01:26.783947"], ["updated_at", "2017-04-15 19:01:26.783947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:26.786130"], ["id", 10631]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10629}]"], ["updated_at", "2017-04-15 19:01:26.790250"], ["id", 10630]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10630}]"], ["updated_at", "2017-04-15 19:01:26.793295"], ["id", 10631]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:01:26.798589"], ["updated_at", "2017-04-15 19:01:26.798589"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:01:26.800640"], ["id", 11801]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11801]] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11801], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11801], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:01:26.804732"], ["updated_at", "2017-04-15 19:01:26.804732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:26.806887"], ["id", 10632]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11801], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11801], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:01:26.810409"], ["updated_at", "2017-04-15 19:01:26.810409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:26.812430"], ["id", 10633]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11801], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11801], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:01:26.815591"], ["updated_at", "2017-04-15 19:01:26.815591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:26.817575"], ["id", 10634]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10632}]"], ["updated_at", "2017-04-15 19:01:26.821015"], ["id", 10633]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10633}]"], ["updated_at", "2017-04-15 19:01:26.824331"], ["id", 10634]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Some new name"], ["updated_at", "2017-04-15 19:01:26.827437"], ["id", 11801]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Test Process"], ["updated_at", "2017-04-15 19:01:26.830694"], ["id", 11801]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11801]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11801], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11801], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:01:26.837410"], ["id", 10633]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11801], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:01:26.840824"], ["id", 10634]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10632}]"], ["updated_at", "2017-04-15 19:01:26.844238"], ["id", 10633]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10633}]"], ["updated_at", "2017-04-15 19:01:26.846815"], ["id", 10634]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:01:26.851424"], ["updated_at", "2017-04-15 19:01:26.851424"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:01:26.853198"], ["id", 11802]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11802]] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11802], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11802], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:01:26.858141"], ["updated_at", "2017-04-15 19:01:26.858141"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:26.860438"], ["id", 10635]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11802], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11802], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:01:26.863570"], ["updated_at", "2017-04-15 19:01:26.863570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:26.865874"], ["id", 10636]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11802], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11802], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:01:26.869104"], ["updated_at", "2017-04-15 19:01:26.869104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:26.871123"], ["id", 10637]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10635}]"], ["updated_at", "2017-04-15 19:01:26.874356"], ["id", 10636]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10636}]"], ["updated_at", "2017-04-15 19:01:26.876630"], ["id", 10637]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11802]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:01:26.882011"], ["updated_at", "2017-04-15 19:01:26.882011"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:01:26.883880"], ["id", 11803]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11803]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11803], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11803], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:01:26.888382"], ["updated_at", "2017-04-15 19:01:26.888382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:26.890704"], ["id", 10638]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11803], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11803], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:01:26.893890"], ["updated_at", "2017-04-15 19:01:26.893890"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:26.896267"], ["id", 10639]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11803], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11803], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:01:26.899852"], ["updated_at", "2017-04-15 19:01:26.899852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:26.902436"], ["id", 10640]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10638}]"], ["updated_at", "2017-04-15 19:01:26.905863"], ["id", 10639]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10639}]"], ["updated_at", "2017-04-15 19:01:26.908186"], ["id", 10640]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11803]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Some new operation name"], ["updated_at", "2017-04-15 19:01:26.912165"], ["id", 10638]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11803]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11803], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Default Operation 2"], ["updated_at", "2017-04-15 19:01:26.918347"], ["id", 10638]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11803], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:01:26.921607"], ["id", 10639]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11803], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:01:26.924744"], ["id", 10640]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10638}]"], ["updated_at", "2017-04-15 19:01:26.927807"], ["id", 10639]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10639}]"], ["updated_at", "2017-04-15 19:01:26.930084"], ["id", 10640]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10638]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:01:26.934474"], ["updated_at", "2017-04-15 19:01:26.934474"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:01:26.936374"], ["id", 11804]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11804]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11804], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11804], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:01:26.940112"], ["updated_at", "2017-04-15 19:01:26.940112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:26.942067"], ["id", 10641]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11804], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11804], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:01:26.945630"], ["updated_at", "2017-04-15 19:01:26.945630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:26.947660"], ["id", 10642]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11804], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11804], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:01:26.950769"], ["updated_at", "2017-04-15 19:01:26.950769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:26.952683"], ["id", 10643]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (3.0ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10641}]"], ["updated_at", "2017-04-15 19:01:26.959090"], ["id", 10642]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10642}]"], ["updated_at", "2017-04-15 19:01:26.962268"], ["id", 10643]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Some new operation"], ["process_template_id", 11804], ["uuid", "bf7319d2-a8e1-ac56-018b-155f73ee3ecb"], ["created_at", "2017-04-15 19:01:26.965740"], ["updated_at", "2017-04-15 19:01:26.965740"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11804]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11804]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11804], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11804], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:01:26.975132"], ["id", 10642]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11804], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:01:26.978602"], ["id", 10643]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = 10644  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10641}]"], ["updated_at", "2017-04-15 19:01:26.982732"], ["id", 10642]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10642}]"], ["updated_at", "2017-04-15 19:01:26.985124"], ["id", 10643]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11804]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:01:26.991152"], ["updated_at", "2017-04-15 19:01:26.991152"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:01:26.993314"], ["id", 11805]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11805]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11805], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11805], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:01:26.997317"], ["updated_at", "2017-04-15 19:01:26.997317"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:26.999552"], ["id", 10645]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11805], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11805], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:01:27.002628"], ["updated_at", "2017-04-15 19:01:27.002628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:27.004705"], ["id", 10646]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11805], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11805], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:01:27.007977"], ["updated_at", "2017-04-15 19:01:27.007977"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:27.010264"], ["id", 10647]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10645}]"], ["updated_at", "2017-04-15 19:01:27.013725"], ["id", 10646]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10646}]"], ["updated_at", "2017-04-15 19:01:27.016017"], ["id", 10647]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10645]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:01:27.021424"], ["updated_at", "2017-04-15 19:01:27.021424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 19:01:27.024241"], ["updated_at", "2017-04-15 19:01:27.024241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:01:27.026309"], ["id", 11807]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11807]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11807], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11807], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 19:01:27.029894"], ["updated_at", "2017-04-15 19:01:27.029894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:27.031844"], ["id", 10648]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:01:27.034233"], ["id", 11806]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11806]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11806], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11806], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:01:27.037615"], ["updated_at", "2017-04-15 19:01:27.037615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:27.039681"], ["id", 10649]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11806], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11806], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:01:27.042725"], ["updated_at", "2017-04-15 19:01:27.042725"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 11807], ["updated_at", "2017-04-15 19:01:27.045544"], ["id", 10650]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":10649}]"], ["updated_at", "2017-04-15 19:01:27.049240"], ["id", 10650]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:01:27.053760"], ["updated_at", "2017-04-15 19:01:27.053760"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 19:01:27.056892"], ["updated_at", "2017-04-15 19:01:27.056892"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:01:27.058745"], ["id", 11809]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11809]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11809], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11809], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 19:01:27.062514"], ["updated_at", "2017-04-15 19:01:27.062514"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:27.064589"], ["id", 10651]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:01:27.067087"], ["id", 11808]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11808]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11808], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11808], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:01:27.070538"], ["updated_at", "2017-04-15 19:01:27.070538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:27.072437"], ["id", 10652]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11808], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11808], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:01:27.075341"], ["updated_at", "2017-04-15 19:01:27.075341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 11809], ["updated_at", "2017-04-15 19:01:27.077989"], ["id", 10653]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":10652}]"], ["updated_at", "2017-04-15 19:01:27.081219"], ["id", 10653]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Parent Process"]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11808]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11809]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:01:27.089487"], ["updated_at", "2017-04-15 19:01:27.089487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:01:27.091351"], ["id", 11810]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11810]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11810], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11810], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:01:27.094928"], ["updated_at", "2017-04-15 19:01:27.094928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:27.097124"], ["id", 10654]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11810], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11810], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:01:27.100604"], ["updated_at", "2017-04-15 19:01:27.100604"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f1821709-b336-2d13-881d-311435077a9f"], ["created_at", "2017-04-15 19:01:45.503770"], ["updated_at", "2017-04-15 19:01:45.503770"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11811], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "30138dfb-64e4-a5e6-cb74-61bb908e682f"], ["created_at", "2017-04-15 19:01:45.518407"], ["updated_at", "2017-04-15 19:01:45.518407"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#index as HTML Parameters: {"process_template_id"=>"11811"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11811]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 24ms (Views: 8.0ms | ActiveRecord: 0.3ms) RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11811]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4379befc-2e56-e50d-971b-6e6576a3082d"], ["created_at", "2017-04-15 19:01:45.554408"], ["updated_at", "2017-04-15 19:01:45.554408"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11812], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "7a283f0c-d22b-e03c-823c-7de87ca191b6"], ["created_at", "2017-04-15 19:01:45.556743"], ["updated_at", "2017-04-15 19:01:45.556743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#show as HTML Parameters: {"process_template_id"=>"11812", "id"=>"10657"} RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10657]] RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11812]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "54934590-6784-7431-fff5-3c9e42a24257"], ["created_at", "2017-04-15 19:01:45.575037"], ["updated_at", "2017-04-15 19:01:45.575037"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ea4138c9-510f-b18d-9e99-bc59504fcedf"], ["created_at", "2017-04-15 19:01:45.577364"], ["updated_at", "2017-04-15 19:01:45.577364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#new as HTML Parameters: {"process_template_id"=>"11814"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11814]] Unpermitted parameter: process_template_id Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 7ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "fc6a2531-7a6c-f2d0-3b71-566231274c58"], ["created_at", "2017-04-15 19:01:45.593267"], ["updated_at", "2017-04-15 19:01:45.593267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11815], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "c570b821-8afc-9843-32a9-a4e775f3d07d"], ["created_at", "2017-04-15 19:01:45.595441"], ["updated_at", "2017-04-15 19:01:45.595441"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#edit as HTML Parameters: {"process_template_id"=>"11815", "id"=>"10658"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10658]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11815]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b289724e-9dd1-5242-aacc-8478727012a0"], ["created_at", "2017-04-15 19:01:45.614805"], ["updated_at", "2017-04-15 19:01:45.614805"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11816", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11816"} RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11816]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 11816], ["uuid", "e013f46a-120d-8dd8-610e-7fb72de7ca34"], ["created_at", "2017-04-15 19:01:45.626917"], ["updated_at", "2017-04-15 19:01:45.626917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11816/operation_templates Completed 302 Found in 8ms (ActiveRecord: 1.0ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11816]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f1cfac88-33b8-ed6b-bacf-f769275f19f4"], ["created_at", "2017-04-15 19:01:45.637182"], ["updated_at", "2017-04-15 19:01:45.637182"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate') Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11817", "type"=>"RailsWorkflow::CustomOperationTemplate"}, "process_template_id"=>"11817"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11817]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 11817], ["uuid", "8018eb46-111d-5b8b-d6ba-f97f76a2a62b"], ["created_at", "2017-04-15 19:01:45.659142"], ["updated_at", "2017-04-15 19:01:45.659142"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11817/operation_templates Completed 302 Found in 19ms (ActiveRecord: 1.0ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b85d5ed7-e566-9936-c169-92d7cd86e6a2"], ["created_at", "2017-04-15 19:01:45.667667"], ["updated_at", "2017-04-15 19:01:45.667667"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11818", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11818"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11818]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 11818], ["uuid", "5d00f401-729a-5a7b-1e78-feaebd64c205"], ["created_at", "2017-04-15 19:01:45.677281"], ["updated_at", "2017-04-15 19:01:45.677281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11818/operation_templates Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f3ff7a6c-7785-4d33-1652-90320d9ef765"], ["created_at", "2017-04-15 19:01:45.684489"], ["updated_at", "2017-04-15 19:01:45.684489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11819", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11819"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11819]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 11819], ["uuid", "eb36d5fb-8e9d-f3fa-5aac-d38553019955"], ["created_at", "2017-04-15 19:01:45.693400"], ["updated_at", "2017-04-15 19:01:45.693400"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11819/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4bba57eb-ac2c-2c1b-1aa2-7af178c295ae"], ["created_at", "2017-04-15 19:01:45.703779"], ["updated_at", "2017-04-15 19:01:45.703779"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c7d65baf-922c-728c-7c6b-2bdacc279428"], ["created_at", "2017-04-15 19:01:45.708537"], ["updated_at", "2017-04-15 19:01:45.708537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c98323e9-d906-724f-541d-1361d3538051"], ["created_at", "2017-04-15 19:01:45.712782"], ["updated_at", "2017-04-15 19:01:45.712782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11822], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "d10b6bcb-6539-9671-2de9-c40cf483f29c"], ["created_at", "2017-04-15 19:01:45.714803"], ["updated_at", "2017-04-15 19:01:45.714803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8cade8cc-9b39-3bf7-31a2-22781c5c2a4a"], ["created_at", "2017-04-15 19:01:45.718744"], ["updated_at", "2017-04-15 19:01:45.718744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11823], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "8733c99e-e7a8-a218-d08d-dbf027b64e57"], ["created_at", "2017-04-15 19:01:45.721037"], ["updated_at", "2017-04-15 19:01:45.721037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11823", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11823", "id"=>"10664"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10664]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11823]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11823/operation_templates Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "cb5e0a72-724c-501b-419d-c55e4e3a2219"], ["created_at", "2017-04-15 19:01:45.736050"], ["updated_at", "2017-04-15 19:01:45.736050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11824], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "fc323774-f4a8-18e7-c7af-6e3eb581ed7f"], ["created_at", "2017-04-15 19:01:45.739011"], ["updated_at", "2017-04-15 19:01:45.739011"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11824", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11824", "id"=>"10665"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10665]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11824]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11824/operation_templates Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2d1b19ba-d2fe-0bb4-2f7f-455aed02ffdd"], ["created_at", "2017-04-15 19:01:45.756879"], ["updated_at", "2017-04-15 19:01:45.756879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11825], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "132ecf91-21b5-a8f5-6ebe-e1c69f55b27b"], ["created_at", "2017-04-15 19:01:45.759182"], ["updated_at", "2017-04-15 19:01:45.759182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b723a37a-e2ee-4831-2150-07eb916c58b6"], ["created_at", "2017-04-15 19:01:45.762929"], ["updated_at", "2017-04-15 19:01:45.762929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11826], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "b4d0f6ac-4500-5803-64c4-7e1a6dbf05cf"], ["created_at", "2017-04-15 19:01:45.764936"], ["updated_at", "2017-04-15 19:01:45.764936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2b7cf3c5-d318-0c6c-2196-5f376edcac9b"], ["created_at", "2017-04-15 19:01:45.769014"], ["updated_at", "2017-04-15 19:01:45.769014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11827], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "a6c65925-b8a3-38fb-7294-28e9d0bad69a"], ["created_at", "2017-04-15 19:01:45.771363"], ["updated_at", "2017-04-15 19:01:45.771363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11827]] Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"11827", "id"=>"10668"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10668]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11827]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 10668]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11827/operation_templates Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "759a6ca9-8b01-ff12-aa0f-fb098ba4df53"], ["created_at", "2017-04-15 19:01:45.788977"], ["updated_at", "2017-04-15 19:01:45.788977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11828], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "612b1e02-ff44-9a8b-80a6-98cb90b15454"], ["created_at", "2017-04-15 19:01:45.790984"], ["updated_at", "2017-04-15 19:01:45.790984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"11828", "id"=>"10669"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10669]] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11828]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 10669]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11828/operation_templates Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "bf0734da-a29c-085b-5908-1ea0c50145a8"], ["created_at", "2017-04-15 19:01:45.830191"], ["updated_at", "2017-04-15 19:01:45.830191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "2b8e9102-b849-f44d-4343-bfa41d05a560"], ["created_at", "2017-04-15 19:01:45.844955"], ["updated_at", "2017-04-15 19:01:45.844955"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#show as HTML Parameters: {"id"=>"11830"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11830]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (0.4ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "71052b6f-6535-595d-1c99-d2c6d8f2c044"], ["created_at", "2017-04-15 19:01:45.869360"], ["updated_at", "2017-04-15 19:01:45.869360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#edit as HTML Parameters: {"id"=>"11831"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11831]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "89d5d89c-c127-d196-38b3-23382aa10fad"], ["created_at", "2017-04-15 19:01:45.889987"], ["updated_at", "2017-04-15 19:01:45.889987"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11832/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.2ms) ROLLBACK  (0.3ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "19002cd7-608d-1080-29c9-7c42cc83b364"], ["created_at", "2017-04-15 19:01:45.901766"], ["updated_at", "2017-04-15 19:01:45.901766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11833/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "2eb85d21-bf5c-a2e2-6bb5-088502c986e3"], ["created_at", "2017-04-15 19:01:45.928271"], ["updated_at", "2017-04-15 19:01:45.928271"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11834/operation_templates Completed 302 Found in 6ms (ActiveRecord: 0.6ms) RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "1f95e6e0-9ed9-8c39-13c4-f82e01dce4be"], ["created_at", "2017-04-15 19:01:45.941772"], ["updated_at", "2017-04-15 19:01:45.941772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "ebde0bdd-17d5-2399-d62d-d3f39ca574e6"], ["created_at", "2017-04-15 19:01:45.945163"], ["updated_at", "2017-04-15 19:01:45.945163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"11836"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11836]] Unpermitted parameter: id  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11836 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "9ba983a8-924d-5b65-e798-2e4840ccc89a"], ["created_at", "2017-04-15 19:01:45.960623"], ["updated_at", "2017-04-15 19:01:45.960623"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"11837"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11837]] Unpermitted parameter: id  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11837 Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "d33868d3-a719-58b1-26cd-3d2235b8fe33"], ["created_at", "2017-04-15 19:01:45.977245"], ["updated_at", "2017-04-15 19:01:45.977245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "1d8c2b3c-b1da-e531-d6d8-46834e61b1bc"], ["created_at", "2017-04-15 19:01:45.980725"], ["updated_at", "2017-04-15 19:01:45.980725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "aa9b323d-7569-91cd-776e-f4f0e4211c32"], ["created_at", "2017-04-15 19:01:45.984198"], ["updated_at", "2017-04-15 19:01:45.984198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"11840"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11840]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 11840]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "1422e2c6-bdac-ee18-7ce1-2c566ae5d8bd"], ["created_at", "2017-04-15 19:01:45.998166"], ["updated_at", "2017-04-15 19:01:45.998166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"11841"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11841]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 11841]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a10a7fd7-83d7-1798-a636-b87c8c0dbf60"], ["created_at", "2017-04-15 19:01:46.012435"], ["updated_at", "2017-04-15 19:01:46.012435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11842], ["created_at", "2017-04-15 19:01:46.020046"], ["updated_at", "2017-04-15 19:01:46.020046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#index as HTML  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.3ms)  select status, cnt from ( select row_number() over (partition by status), count(*) over (partition by status) cnt, status from rails_workflow_processes)t where row_number = 1  Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 10ms (Views: 3.8ms | ActiveRecord: 0.7ms) RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" ASC LIMIT 30 OFFSET 0  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "13099565-6032-77c5-8f66-44d1eab1cdb5"], ["created_at", "2017-04-15 19:01:46.040298"], ["updated_at", "2017-04-15 19:01:46.040298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11843], ["created_at", "2017-04-15 19:01:46.042068"], ["updated_at", "2017-04-15 19:01:46.042068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#show as HTML Parameters: {"id"=>"5354"} RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5354]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "84957a9e-65ec-d368-2647-7c65819dd3b6"], ["created_at", "2017-04-15 19:01:46.059607"], ["updated_at", "2017-04-15 19:01:46.059607"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ad8bd89c-cc6d-b8ef-4c05-a68ae74d1eb4"], ["created_at", "2017-04-15 19:01:46.068571"], ["updated_at", "2017-04-15 19:01:46.068571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11845], ["created_at", "2017-04-15 19:01:46.070273"], ["updated_at", "2017-04-15 19:01:46.070273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#edit as HTML Parameters: {"id"=>"5355"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5355]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b42b34ae-8c98-d93d-32fb-33a7c060260b"], ["created_at", "2017-04-15 19:01:46.085614"], ["updated_at", "2017-04-15 19:01:46.085614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_processes" Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11846"}} SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11846]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11846) [["id", 11846]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11846], ["created_at", "2017-04-15 19:01:46.102933"], ["updated_at", "2017-04-15 19:01:46.102933"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:46.105167"], ["id", 5356]] SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5356], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:01:46.113964"], ["updated_at", "2017-04-15 19:01:46.113964"]] RailsWorkflow::Context Load (0.4ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5356], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5356]] Redirected to http://test.host/workflow/processes/5356 Completed 302 Found in 32ms (ActiveRecord: 4.1ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8a0566ea-d26d-6611-8036-77a30db2c26a"], ["created_at", "2017-04-15 19:01:46.126625"], ["updated_at", "2017-04-15 19:01:46.126625"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11847"}} SQL (0.4ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11847]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11847) [["id", 11847]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11847], ["created_at", "2017-04-15 19:01:46.135771"], ["updated_at", "2017-04-15 19:01:46.135771"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:46.137828"], ["id", 5357]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5357], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:01:46.139790"], ["updated_at", "2017-04-15 19:01:46.139790"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5357], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5357]] Redirected to http://test.host/workflow/processes/5357 Completed 302 Found in 15ms (ActiveRecord: 3.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "086d6209-b39c-7fd8-0c87-91e61c36da8a"], ["created_at", "2017-04-15 19:01:46.148144"], ["updated_at", "2017-04-15 19:01:46.148144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11848"}} SQL (0.4ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11848]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11848) [["id", 11848]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11848], ["created_at", "2017-04-15 19:01:46.157601"], ["updated_at", "2017-04-15 19:01:46.157601"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:46.159608"], ["id", 5358]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5358], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:01:46.161622"], ["updated_at", "2017-04-15 19:01:46.161622"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5358], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.2ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5358]] Redirected to http://test.host/workflow/processes/5358 Completed 302 Found in 15ms (ActiveRecord: 2.9ms) RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" DESC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b47b0e84-4459-369b-a137-81bdf4e6e23b"], ["created_at", "2017-04-15 19:01:46.173908"], ["updated_at", "2017-04-15 19:01:46.173908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "fcbbed58-4a88-82e3-411f-ef3cfa7ef484"], ["created_at", "2017-04-15 19:01:46.177461"], ["updated_at", "2017-04-15 19:01:46.177461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2fc83a58-e00d-98cd-853e-44bbe2849ea8"], ["created_at", "2017-04-15 19:01:46.180917"], ["updated_at", "2017-04-15 19:01:46.180917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11851], ["created_at", "2017-04-15 19:01:46.182705"], ["updated_at", "2017-04-15 19:01:46.182705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f89d6902-7e94-ac4b-809a-353750783808"], ["created_at", "2017-04-15 19:01:46.186785"], ["updated_at", "2017-04-15 19:01:46.186785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11852], ["created_at", "2017-04-15 19:01:46.188754"], ["updated_at", "2017-04-15 19:01:46.188754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11852"}, "id"=>"5360"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5360]] Unpermitted parameter: id  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "fabb63ea-062b-e809-8b31-7199543785c3"], ["created_at", "2017-04-15 19:01:46.200714"], ["updated_at", "2017-04-15 19:01:46.200714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11853], ["created_at", "2017-04-15 19:01:46.202572"], ["updated_at", "2017-04-15 19:01:46.202572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11853"}, "id"=>"5361"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5361]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f03e6dc3-1957-1d21-4a00-d12c824b6027"], ["created_at", "2017-04-15 19:01:46.217274"], ["updated_at", "2017-04-15 19:01:46.217274"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11854], ["created_at", "2017-04-15 19:01:46.219808"], ["updated_at", "2017-04-15 19:01:46.219808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3804d275-4ab4-da51-33d5-57946dcddd1e"], ["created_at", "2017-04-15 19:01:46.223338"], ["updated_at", "2017-04-15 19:01:46.223338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11855], ["created_at", "2017-04-15 19:01:46.225338"], ["updated_at", "2017-04-15 19:01:46.225338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2d6a9531-5607-800b-f7d4-08ed22291404"], ["created_at", "2017-04-15 19:01:46.228774"], ["updated_at", "2017-04-15 19:01:46.228774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "997512e4-fb9f-0f9e-6615-f7fa78bf5f3b"], ["created_at", "2017-04-15 19:01:46.232044"], ["updated_at", "2017-04-15 19:01:46.232044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "dd561514-fa7b-1e88-868f-c62524b54554"], ["created_at", "2017-04-15 19:01:46.235162"], ["updated_at", "2017-04-15 19:01:46.235162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11858], ["uuid", "556991d3-930a-1466-987c-9a22f325d568"], ["created_at", "2017-04-15 19:01:46.237537"], ["updated_at", "2017-04-15 19:01:46.237537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11858], ["dependencies", "[{\"id\":10670,\"statuses\":[2]}]"], ["uuid", "bac31598-8a19-1896-07e5-02c38bbc4283"], ["created_at", "2017-04-15 19:01:46.240090"], ["updated_at", "2017-04-15 19:01:46.240090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11858]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11858) [["id", 11858]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11858], ["created_at", "2017-04-15 19:01:46.245967"], ["updated_at", "2017-04-15 19:01:46.245967"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:46.248047"], ["id", 5364]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5364], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.250230"], ["updated_at", "2017-04-15 19:01:46.250230"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5364], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10670], ["process_id", 5364], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:46.263235"], ["updated_at", "2017-04-15 19:01:46.263235"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6075], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.265073"], ["updated_at", "2017-04-15 19:01:46.265073"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "51866a11-4862-9bd5-a3f7-2873944493b5"], ["created_at", "2017-04-15 19:01:46.270742"], ["updated_at", "2017-04-15 19:01:46.270742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11859], ["uuid", "0bb60096-7fba-f098-52f8-33c848d0e772"], ["created_at", "2017-04-15 19:01:46.272956"], ["updated_at", "2017-04-15 19:01:46.272956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11859], ["dependencies", "[{\"id\":10672,\"statuses\":[2]}]"], ["uuid", "aec404b5-5c2e-02cd-8433-609da0a51bb7"], ["created_at", "2017-04-15 19:01:46.275307"], ["updated_at", "2017-04-15 19:01:46.275307"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11859]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11859) [["id", 11859]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11859], ["created_at", "2017-04-15 19:01:46.281709"], ["updated_at", "2017-04-15 19:01:46.281709"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:46.283917"], ["id", 5365]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5365], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.285825"], ["updated_at", "2017-04-15 19:01:46.285825"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5365], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10672], ["process_id", 5365], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:46.289311"], ["updated_at", "2017-04-15 19:01:46.289311"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6076], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.290667"], ["updated_at", "2017-04-15 19:01:46.290667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "dca8d6f9-df52-cdc7-f863-aeae86f76fb9"], ["created_at", "2017-04-15 19:01:46.294665"], ["updated_at", "2017-04-15 19:01:46.294665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11860], ["uuid", "2d2e30c7-148a-bbab-5939-e1441ad98dfa"], ["created_at", "2017-04-15 19:01:46.296752"], ["updated_at", "2017-04-15 19:01:46.296752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11860], ["dependencies", "[{\"id\":10674,\"statuses\":[2]}]"], ["uuid", "35e210ad-e3e0-d0d7-f2e5-4b33c29957c5"], ["created_at", "2017-04-15 19:01:46.299061"], ["updated_at", "2017-04-15 19:01:46.299061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11860]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11860) [["id", 11860]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11860], ["created_at", "2017-04-15 19:01:46.304304"], ["updated_at", "2017-04-15 19:01:46.304304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:46.305850"], ["id", 5366]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5366], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.307721"], ["updated_at", "2017-04-15 19:01:46.307721"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5366], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10674], ["process_id", 5366], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:46.311567"], ["updated_at", "2017-04-15 19:01:46.311567"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6077], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.313158"], ["updated_at", "2017-04-15 19:01:46.313158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5366]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5366]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5ca089e6-799d-8aa1-5ff2-68589964ced2"], ["created_at", "2017-04-15 19:01:46.319734"], ["updated_at", "2017-04-15 19:01:46.319734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11861], ["uuid", "1431f5c5-22cd-4b5c-4d48-63b2fa395427"], ["created_at", "2017-04-15 19:01:46.321833"], ["updated_at", "2017-04-15 19:01:46.321833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11861], ["dependencies", "[{\"id\":10676,\"statuses\":[2]}]"], ["uuid", "4f3ad513-8ec5-d934-c503-e047959ef7ca"], ["created_at", "2017-04-15 19:01:46.324190"], ["updated_at", "2017-04-15 19:01:46.324190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11861]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11861) [["id", 11861]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11861], ["created_at", "2017-04-15 19:01:46.329251"], ["updated_at", "2017-04-15 19:01:46.329251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:46.330949"], ["id", 5367]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5367], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.332799"], ["updated_at", "2017-04-15 19:01:46.332799"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5367], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10676], ["process_id", 5367], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:46.336142"], ["updated_at", "2017-04-15 19:01:46.336142"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6078], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.337572"], ["updated_at", "2017-04-15 19:01:46.337572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c9a3aa69-ee78-f63f-d3eb-eb85713f31d1"], ["created_at", "2017-04-15 19:01:46.341685"], ["updated_at", "2017-04-15 19:01:46.341685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11862], ["uuid", "290e07d8-0af3-5c37-405b-f77eaf11b6b6"], ["created_at", "2017-04-15 19:01:46.344304"], ["updated_at", "2017-04-15 19:01:46.344304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11862], ["dependencies", "[{\"id\":10678,\"statuses\":[2]}]"], ["uuid", "d97db569-6698-b996-4ca7-d250f7bcfdbf"], ["created_at", "2017-04-15 19:01:46.347141"], ["updated_at", "2017-04-15 19:01:46.347141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11862]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11862) [["id", 11862]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11862], ["created_at", "2017-04-15 19:01:46.353094"], ["updated_at", "2017-04-15 19:01:46.353094"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:46.355035"], ["id", 5368]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5368], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.356873"], ["updated_at", "2017-04-15 19:01:46.356873"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5368], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10678], ["process_id", 5368], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:46.360764"], ["updated_at", "2017-04-15 19:01:46.360764"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6079], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.362360"], ["updated_at", "2017-04-15 19:01:46.362360"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5368]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6079], ["parent_type", "RailsWorkflow::Operation"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e6d89205-07ef-56c0-98a3-08026e06cf9a"], ["created_at", "2017-04-15 19:01:46.382662"], ["updated_at", "2017-04-15 19:01:46.382662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11863], ["uuid", "9eb9cd8d-bfd0-5c81-0d0d-fe1ea3236042"], ["created_at", "2017-04-15 19:01:46.385078"], ["updated_at", "2017-04-15 19:01:46.385078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11863], ["dependencies", "[{\"id\":10680,\"statuses\":[2]}]"], ["uuid", "7d12ccc9-b6bd-2d72-9cc4-429fc623ebab"], ["created_at", "2017-04-15 19:01:46.387485"], ["updated_at", "2017-04-15 19:01:46.387485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11863]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11863) [["id", 11863]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11863], ["created_at", "2017-04-15 19:01:46.392743"], ["updated_at", "2017-04-15 19:01:46.392743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:46.394240"], ["id", 5369]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5369], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.396022"], ["updated_at", "2017-04-15 19:01:46.396022"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5369], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10680], ["process_id", 5369], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:46.399281"], ["updated_at", "2017-04-15 19:01:46.399281"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6080], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.400650"], ["updated_at", "2017-04-15 19:01:46.400650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8a37329a-d44e-1611-bfe0-767e5e23e36c"], ["created_at", "2017-04-15 19:01:46.405818"], ["updated_at", "2017-04-15 19:01:46.405818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11864], ["uuid", "43634bd5-db7c-572f-6cc9-a6d09c4096c3"], ["created_at", "2017-04-15 19:01:46.408353"], ["updated_at", "2017-04-15 19:01:46.408353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11864], ["dependencies", "[{\"id\":10682,\"statuses\":[2]}]"], ["uuid", "2513e06c-a664-6c5b-2188-5b08d88514a9"], ["created_at", "2017-04-15 19:01:46.410814"], ["updated_at", "2017-04-15 19:01:46.410814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11864]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11864) [["id", 11864]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11864], ["created_at", "2017-04-15 19:01:46.415867"], ["updated_at", "2017-04-15 19:01:46.415867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:46.417465"], ["id", 5370]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5370], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.419246"], ["updated_at", "2017-04-15 19:01:46.419246"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5370], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10682], ["process_id", 5370], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:46.422554"], ["updated_at", "2017-04-15 19:01:46.422554"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6081], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.423899"], ["updated_at", "2017-04-15 19:01:46.423899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:46.426708"], ["id", 5370]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5370], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:46.429515"], ["id", 6081]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [34f36065-f13c-42c7-8af6-5c371f77f49a] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6081 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [34f36065-f13c-42c7-8af6-5c371f77f49a] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6081]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [34f36065-f13c-42c7-8af6-5c371f77f49a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [34f36065-f13c-42c7-8af6-5c371f77f49a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [34f36065-f13c-42c7-8af6-5c371f77f49a] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6081], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [34f36065-f13c-42c7-8af6-5c371f77f49a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [34f36065-f13c-42c7-8af6-5c371f77f49a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [34f36065-f13c-42c7-8af6-5c371f77f49a] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 4.48ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "71a1e68d-3a8b-e0a3-92a4-ed68444cd9c8"], ["created_at", "2017-04-15 19:01:46.438828"], ["updated_at", "2017-04-15 19:01:46.438828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11865], ["uuid", "298394e0-892e-37f5-921b-503ca498937a"], ["created_at", "2017-04-15 19:01:46.440959"], ["updated_at", "2017-04-15 19:01:46.440959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11865], ["dependencies", "[{\"id\":10684,\"statuses\":[2]}]"], ["uuid", "7c9dd0ad-d948-ff0f-77ad-34f07d9fd224"], ["created_at", "2017-04-15 19:01:46.443211"], ["updated_at", "2017-04-15 19:01:46.443211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11865]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11865) [["id", 11865]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11865], ["created_at", "2017-04-15 19:01:46.448505"], ["updated_at", "2017-04-15 19:01:46.448505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:46.450048"], ["id", 5371]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5371], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.451806"], ["updated_at", "2017-04-15 19:01:46.451806"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5371], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10684], ["process_id", 5371], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:46.455118"], ["updated_at", "2017-04-15 19:01:46.455118"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6082], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.456412"], ["updated_at", "2017-04-15 19:01:46.456412"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:46.459640"], ["id", 5371]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5371], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:46.462794"], ["id", 6082]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [002b4686-af8a-4719-83bd-94f35e6bb9a8] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6082 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [002b4686-af8a-4719-83bd-94f35e6bb9a8] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6082]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [002b4686-af8a-4719-83bd-94f35e6bb9a8]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [002b4686-af8a-4719-83bd-94f35e6bb9a8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [002b4686-af8a-4719-83bd-94f35e6bb9a8] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6082], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [002b4686-af8a-4719-83bd-94f35e6bb9a8]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [002b4686-af8a-4719-83bd-94f35e6bb9a8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [002b4686-af8a-4719-83bd-94f35e6bb9a8] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 4.0ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5371]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ea2258d9-6e99-2812-4b1f-0d4fc2268d29"], ["created_at", "2017-04-15 19:01:46.472489"], ["updated_at", "2017-04-15 19:01:46.472489"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11866], ["uuid", "031d4c07-2951-bb1f-5594-967aee4e5263"], ["created_at", "2017-04-15 19:01:46.475347"], ["updated_at", "2017-04-15 19:01:46.475347"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11866], ["dependencies", "[{\"id\":10686,\"statuses\":[2]}]"], ["uuid", "68a2ed64-7109-04bd-cd89-67779e884aa4"], ["created_at", "2017-04-15 19:01:46.478020"], ["updated_at", "2017-04-15 19:01:46.478020"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11866]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11866) [["id", 11866]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11866], ["created_at", "2017-04-15 19:01:46.483621"], ["updated_at", "2017-04-15 19:01:46.483621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:46.485284"], ["id", 5372]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5372], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.487109"], ["updated_at", "2017-04-15 19:01:46.487109"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5372], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10686], ["process_id", 5372], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:46.490909"], ["updated_at", "2017-04-15 19:01:46.490909"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6083], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.492309"], ["updated_at", "2017-04-15 19:01:46.492309"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:46.495873"], ["id", 5372]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5372], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:46.499431"], ["id", 6083]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6083 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4] RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6083]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6083], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:01:46.505035"], ["updated_at", "2017-04-15 19:01:46.505558"], ["id", 6083]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5372]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11866]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11866]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10686]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5372]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10686]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5372], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4] SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:01:46.517812"], ["id", 5372]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5372]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e675f82b-86c3-4486-b746-14b81be55dd4] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 20.53ms RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5372]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:01:46.523033"], ["updated_at", "2017-04-15 19:01:46.523859"], ["id", 6083]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10686]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5372]]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5372], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:01:46.530503"], ["id", 5372]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5372]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e1d663eb-593f-40e8-424f-4a9c1e0ace01"], ["created_at", "2017-04-15 19:01:46.534863"], ["updated_at", "2017-04-15 19:01:46.534863"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11867], ["uuid", "03781221-5aae-96b7-529f-3ba7bf15d16e"], ["created_at", "2017-04-15 19:01:46.537180"], ["updated_at", "2017-04-15 19:01:46.537180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11867], ["dependencies", "[{\"id\":10688,\"statuses\":[2]}]"], ["uuid", "90cb6a92-1a4f-62f7-c64e-d1b560e6a58a"], ["created_at", "2017-04-15 19:01:46.539463"], ["updated_at", "2017-04-15 19:01:46.539463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11867]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11867) [["id", 11867]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11867], ["created_at", "2017-04-15 19:01:46.545073"], ["updated_at", "2017-04-15 19:01:46.545073"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:46.547177"], ["id", 5373]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5373], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.549042"], ["updated_at", "2017-04-15 19:01:46.549042"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5373], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10688], ["process_id", 5373], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:46.552721"], ["updated_at", "2017-04-15 19:01:46.552721"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6084], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.554030"], ["updated_at", "2017-04-15 19:01:46.554030"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:46.557185"], ["id", 5373]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5373], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:46.560629"], ["id", 6084]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6084 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6084]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6084], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:01:46.566171"], ["updated_at", "2017-04-15 19:01:46.566713"], ["id", 6084]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5373]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11867]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11867]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10688]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5373]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10688]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10689], ["process_id", 5373], ["status", 0], ["dependencies", "[{\"operation_id\":6084,\"status\":2}]"], ["created_at", "2017-04-15 19:01:46.575011"], ["updated_at", "2017-04-15 19:01:46.575011"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6085], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.576536"], ["updated_at", "2017-04-15 19:01:46.576536"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:46.580016"], ["id", 6085]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6085 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6085]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6085], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:01:46.584496"], ["updated_at", "2017-04-15 19:01:46.585025"], ["id", 6085]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5373]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11867]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11867]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10689]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5373]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10689]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10688]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5373], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09] SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:01:46.593711"], ["id", 5373]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5373]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] [RailsWorkflow::OperationExecutionJob] [1ea7e6bf-4324-400e-b352-6e8c8f1fdf09] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 14.44ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cc19e000-3ba3-49e9-a483-5a0884a2cd55] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 33.63ms RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5373]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:01:46.597433"], ["updated_at", "2017-04-15 19:01:46.598188"], ["id", 6084]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10688]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5373]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10689]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5373], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:01:46.604983"], ["id", 5373]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5373]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f43c7803-1c54-ed76-03e4-627d04354fcf"], ["created_at", "2017-04-15 19:01:46.609058"], ["updated_at", "2017-04-15 19:01:46.609058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11868], ["uuid", "9b2230dc-b6b7-c43a-5ed2-f6db3d6d1e64"], ["created_at", "2017-04-15 19:01:46.611272"], ["updated_at", "2017-04-15 19:01:46.611272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11868], ["dependencies", "[{\"id\":10690,\"statuses\":[2]}]"], ["uuid", "dfcb2e13-2557-4a17-346a-9854b16a3bd2"], ["created_at", "2017-04-15 19:01:46.613579"], ["updated_at", "2017-04-15 19:01:46.613579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11868]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11868) [["id", 11868]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11868], ["created_at", "2017-04-15 19:01:46.618987"], ["updated_at", "2017-04-15 19:01:46.618987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:46.620545"], ["id", 5374]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5374], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.622281"], ["updated_at", "2017-04-15 19:01:46.622281"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5374], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10690], ["process_id", 5374], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:46.625601"], ["updated_at", "2017-04-15 19:01:46.625601"]] SQL (0.1ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6086], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.626910"], ["updated_at", "2017-04-15 19:01:46.626910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:46.629551"], ["id", 5374]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5374], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:46.631877"], ["id", 6086]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6086 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6086]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6086], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:01:46.636937"], ["updated_at", "2017-04-15 19:01:46.637525"], ["id", 6086]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5374]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11868]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11868]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10690]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5374]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10690]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10691], ["process_id", 5374], ["status", 0], ["dependencies", "[{\"operation_id\":6086,\"status\":2}]"], ["created_at", "2017-04-15 19:01:46.645378"], ["updated_at", "2017-04-15 19:01:46.645378"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6087], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.646753"], ["updated_at", "2017-04-15 19:01:46.646753"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:46.649893"], ["id", 6087]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6087 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6087]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6087], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:01:46.654232"], ["updated_at", "2017-04-15 19:01:46.654750"], ["id", 6087]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5374]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11868]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11868]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10691]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5374]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10691]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10690]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5374], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:01:46.663591"], ["id", 5374]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5374]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] [RailsWorkflow::OperationExecutionJob] [7ebb8d5d-572a-42b0-9c3d-29df1f137c00] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 14.17ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3c705f1a-2b34-4fc5-aa90-738f2b2135e5] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 32.54ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5374]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:01:46.666938"], ["updated_at", "2017-04-15 19:01:46.667724"], ["id", 6086]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10690]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5374]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10691]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5374], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:01:46.674699"], ["id", 5374]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5374]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 2], ["created_at", "2017-04-15 19:01:46.625601"], ["updated_at", "2017-04-15 19:01:46.667724"], ["completed_at", "2017-04-15 19:01:46.676757"], ["id", 6086]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "db22dad2-bd83-c847-2f4f-55f44cf90637"], ["created_at", "2017-04-15 19:01:46.680875"], ["updated_at", "2017-04-15 19:01:46.680875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11869], ["uuid", "3925e9a6-849b-8625-a292-809c0f9eb820"], ["created_at", "2017-04-15 19:01:46.683032"], ["updated_at", "2017-04-15 19:01:46.683032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11869], ["dependencies", "[{\"id\":10692,\"statuses\":[2]}]"], ["uuid", "a2c7469e-da7d-0be5-8c68-a4c758bc976e"], ["created_at", "2017-04-15 19:01:46.685279"], ["updated_at", "2017-04-15 19:01:46.685279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11869]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11869) [["id", 11869]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11869], ["created_at", "2017-04-15 19:01:46.690719"], ["updated_at", "2017-04-15 19:01:46.690719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:46.692369"], ["id", 5375]] SQL (0.1ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5375], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.694138"], ["updated_at", "2017-04-15 19:01:46.694138"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5375], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10692], ["process_id", 5375], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:46.697409"], ["updated_at", "2017-04-15 19:01:46.697409"]] SQL (0.1ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6088], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.698641"], ["updated_at", "2017-04-15 19:01:46.698641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:46.701340"], ["id", 5375]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5375], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:46.703798"], ["id", 6088]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6088 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6088]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6088], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:01:46.708921"], ["updated_at", "2017-04-15 19:01:46.709554"], ["id", 6088]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5375]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11869]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11869]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10692]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5375]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10692]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10693], ["process_id", 5375], ["status", 0], ["dependencies", "[{\"operation_id\":6088,\"status\":2}]"], ["created_at", "2017-04-15 19:01:46.717248"], ["updated_at", "2017-04-15 19:01:46.717248"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6089], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.718660"], ["updated_at", "2017-04-15 19:01:46.718660"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:46.721885"], ["id", 6089]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6089 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6089]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6089], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:01:46.726384"], ["updated_at", "2017-04-15 19:01:46.726941"], ["id", 6089]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5375]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11869]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11869]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10693]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5375]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10693]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10692]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5375], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:01:46.742332"], ["id", 5375]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5375]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] [RailsWorkflow::OperationExecutionJob] [8889d977-5678-4422-af04-c87d2158d6af] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 20.97ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ceb83387-ca36-4b5f-8050-4dd99f7b65e0] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 39.31ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5375]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:01:46.745593"], ["updated_at", "2017-04-15 19:01:46.746238"], ["id", 6088]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10692]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5375]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10693]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5375], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:01:46.752446"], ["id", 5375]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5375]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 6], ["created_at", "2017-04-15 19:01:46.697409"], ["updated_at", "2017-04-15 19:01:46.746238"], ["completed_at", "2017-04-15 19:01:46.754459"], ["id", 6088]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a05063ed-57cd-6510-710b-4447c3ff35fe"], ["created_at", "2017-04-15 19:01:46.758500"], ["updated_at", "2017-04-15 19:01:46.758500"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11870], ["uuid", "4769c800-dddd-47f8-1f6c-4b4bec7e5b57"], ["created_at", "2017-04-15 19:01:46.761108"], ["updated_at", "2017-04-15 19:01:46.761108"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11870], ["dependencies", "[{\"id\":10694,\"statuses\":[2]}]"], ["uuid", "ecd5d3df-db0a-ac75-5f0d-62cc2984bcbf"], ["created_at", "2017-04-15 19:01:46.763751"], ["updated_at", "2017-04-15 19:01:46.763751"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11870]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11870) [["id", 11870]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11870], ["created_at", "2017-04-15 19:01:46.769951"], ["updated_at", "2017-04-15 19:01:46.769951"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:46.771967"], ["id", 5376]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5376], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.773914"], ["updated_at", "2017-04-15 19:01:46.773914"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5376], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10694], ["process_id", 5376], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:46.777621"], ["updated_at", "2017-04-15 19:01:46.777621"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6090], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.778988"], ["updated_at", "2017-04-15 19:01:46.778988"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:46.782134"], ["id", 5376]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5376], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:46.785259"], ["id", 6090]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6090 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6090]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6090], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:01:46.790180"], ["updated_at", "2017-04-15 19:01:46.790699"], ["id", 6090]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5376]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11870]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11870]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10694]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5376]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10694]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10695], ["process_id", 5376], ["status", 0], ["dependencies", "[{\"operation_id\":6090,\"status\":2}]"], ["created_at", "2017-04-15 19:01:46.798081"], ["updated_at", "2017-04-15 19:01:46.798081"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6091], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:46.799461"], ["updated_at", "2017-04-15 19:01:46.799461"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:46.802602"], ["id", 6091]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6091 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6091]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6091], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:01:46.806893"], ["updated_at", "2017-04-15 19:01:46.807416"], ["id", 6091]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5376]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11870]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11870]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10695]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5376]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10695]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10694]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5376], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:01:46.816161"], ["id", 5376]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5376]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] [RailsWorkflow::OperationExecutionJob] [83c296d3-f93c-4ee0-a84f-7939e6483577] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 13.97ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [65916de2-5add-44a4-99bd-723b59008e72] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 31.16ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5376]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:01:46.819317"], ["updated_at", "2017-04-15 19:01:46.819982"], ["id", 6090]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10694]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5376]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10695]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5376], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:01:46.825946"], ["id", 5376]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5376]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 5], ["created_at", "2017-04-15 19:01:46.777621"], ["updated_at", "2017-04-15 19:01:46.819982"], ["completed_at", "2017-04-15 19:01:46.827923"], ["id", 6090]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'regular_user@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "regular_user@test.com"], ["encrypted_password", "$2a$04$GNwV8JsU5kmb29i4mltmDeWHVNc61qm6MVRoPsgth0cYcvQMi.krm"], ["role", "regular_user"], ["created_at", "2017-04-15 19:01:46.847414"], ["updated_at", "2017-04-15 19:01:46.847414"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'admin@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "admin@test.com"], ["encrypted_password", "$2a$04$ztUtFdHCLuWc3S4L6BNBcuDoi25UzH2ThfwDNJPohQNcSKp2idZgi"], ["role", "admin"], ["created_at", "2017-04-15 19:01:46.852466"], ["updated_at", "2017-04-15 19:01:46.852466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:01:46.857197"], ["updated_at", "2017-04-15 19:01:46.857197"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "User Operation Template"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:01:46.859874"], ["id", 11871]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11871]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11871], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11871], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:01:46.865506"], ["updated_at", "2017-04-15 19:01:46.865506"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:46.867985"], ["id", 10696]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11871], ["uuid", nil]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11871], ["uuid", "e6faaab3-2f41-6fe6-b145-fdfbf5c2451d"], ["created_at", "2017-04-15 19:01:46.872936"], ["updated_at", "2017-04-15 19:01:46.872936"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "uuid" = $1, "title" = $2, "dependencies" = $3, "operation_class" = $4, "async" = $5, "kind" = $6, "role" = $7, "instruction" = $8, "type" = $9, "partial_name" = $10, "updated_at" = $11 WHERE "rails_workflow_operation_templates"."id" = $12 [["uuid", "61475c68-4426-2505-9a8c-d11362b14c69"], ["title", "Regular User Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "regular_user"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:46.875300"], ["id", 10697]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "User Operation Template"]] SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11871]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11871) [["id", 11871]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11871], ["created_at", "2017-04-15 19:01:46.883647"], ["updated_at", "2017-04-15 19:01:46.883647"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "User Operation Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:46.885640"], ["id", 5377]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5377], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:01:46.887648"], ["updated_at", "2017-04-15 19:01:46.887648"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5377], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Regular User Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 10697], ["process_id", 5377], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:46.903168"], ["updated_at", "2017-04-15 19:01:46.903168"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6092], ["body", "{}"], ["created_at", "2017-04-15 19:01:46.904862"], ["updated_at", "2017-04-15 19:01:46.904862"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Admin Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 10696], ["process_id", 5377], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:46.908301"], ["updated_at", "2017-04-15 19:01:46.908301"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6093], ["body", "{}"], ["created_at", "2017-04-15 19:01:46.909808"], ["updated_at", "2017-04-15 19:01:46.909808"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:46.912786"], ["id", 5377]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5377], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:01:46.915663"], ["id", 6093]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:01:46.917590"], ["id", 6092]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/workflow/operations" for 127.0.0.1 at 2017-04-15 23:01:46 +0400 Processing by RailsWorkflow::OperationsController#index as HTML RailsWorkflow::Operation Load (0.7ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."status" = 3 ORDER BY "rails_workflow_operations"."created_at" DESC RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5377]] RailsWorkflow::OperationTemplate Load (1.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10696]] CACHE (0.0ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5377]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10697]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operations/index.html.slim within layouts/rails_workflow/application (22.4ms) Completed 200 OK in 155ms (Views: 144.7ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/workflow/config" for 127.0.0.1 at 2017-04-15 23:01:47 +0400 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/application/_flash.html.slim (2.7ms) RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (13.3ms) Completed 200 OK in 16ms (Views: 15.6ms | ActiveRecord: 0.4ms) Started GET "/workflow/config/new" for 127.0.0.1 at 2017-04-15 23:01:47 +0400 Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/_form.html.slim (17.9ms) Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (23.4ms) Completed 200 OK in 26ms (Views: 26.0ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.166870"], ["updated_at", "2017-04-15 19:01:47.166870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:47.169142"], ["updated_at", "2017-04-15 19:01:47.169142"]] SQL (0.4ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5378], ["updated_at", "2017-04-15 19:01:47.170600"], ["id", 9046]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:47.175431"], ["updated_at", "2017-04-15 19:01:47.175431"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 19:01:47.177707"], ["updated_at", "2017-04-15 19:01:47.177707"]] SQL (0.4ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6094], ["updated_at", "2017-04-15 19:01:47.179540"], ["id", 9047]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0e10fdfa-b270-37c0-64f3-b92bc937829d"], ["created_at", "2017-04-15 19:01:47.182485"], ["updated_at", "2017-04-15 19:01:47.182485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11872], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "cd457d80-36a3-0dca-7ddd-d55a7cdf7345"], ["created_at", "2017-04-15 19:01:47.184496"], ["updated_at", "2017-04-15 19:01:47.184496"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10698], ["process_id", 5378], ["status", 0], ["dependencies", "[{\"operation_id\":6094,\"status\":4}]"], ["created_at", "2017-04-15 19:01:47.195134"], ["updated_at", "2017-04-15 19:01:47.195134"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6095], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:47.196820"], ["updated_at", "2017-04-15 19:01:47.196820"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.201789"], ["updated_at", "2017-04-15 19:01:47.201789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:47.203753"], ["updated_at", "2017-04-15 19:01:47.203753"]] SQL (0.5ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5379], ["updated_at", "2017-04-15 19:01:47.205321"], ["id", 9049]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 19:01:47.208665"], ["updated_at", "2017-04-15 19:01:47.208665"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.212546"], ["updated_at", "2017-04-15 19:01:47.212546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:47.214211"], ["updated_at", "2017-04-15 19:01:47.214211"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5380], ["updated_at", "2017-04-15 19:01:47.215441"], ["id", 9051]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:47.218219"], ["updated_at", "2017-04-15 19:01:47.218219"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resource\":{\"id\":6096,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5380,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 19:01:47.220586"], ["updated_at", "2017-04-15 19:01:47.220586"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.225211"], ["updated_at", "2017-04-15 19:01:47.225211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:47.226928"], ["updated_at", "2017-04-15 19:01:47.226928"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5381], ["updated_at", "2017-04-15 19:01:47.228126"], ["id", 9053]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:47.231537"], ["updated_at", "2017-04-15 19:01:47.231537"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":6097,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5381,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 19:01:47.234202"], ["updated_at", "2017-04-15 19:01:47.234202"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.240285"], ["updated_at", "2017-04-15 19:01:47.240285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:47.242629"], ["updated_at", "2017-04-15 19:01:47.242629"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5382], ["updated_at", "2017-04-15 19:01:47.244127"], ["id", 9055]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:47.248577"], ["updated_at", "2017-04-15 19:01:47.248577"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 6098], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 19:01:47.251848"], ["updated_at", "2017-04-15 19:01:47.251848"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9056]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.257658"], ["updated_at", "2017-04-15 19:01:47.257658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:47.259734"], ["updated_at", "2017-04-15 19:01:47.259734"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5383], ["updated_at", "2017-04-15 19:01:47.266350"], ["id", 9057]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:47.270353"], ["updated_at", "2017-04-15 19:01:47.270353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 6099], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"resource\":{\"id\":6099,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5383,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 19:01:47.273074"], ["updated_at", "2017-04-15 19:01:47.273074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9058]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6099]] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5383]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.279590"], ["updated_at", "2017-04-15 19:01:47.279590"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:47.281664"], ["updated_at", "2017-04-15 19:01:47.281664"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5384], ["updated_at", "2017-04-15 19:01:47.283019"], ["id", 9059]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:47.286218"], ["updated_at", "2017-04-15 19:01:47.286218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":6100,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5384,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 19:01:47.288576"], ["updated_at", "2017-04-15 19:01:47.288576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9060]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6100]] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5384]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.295456"], ["updated_at", "2017-04-15 19:01:47.295456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:47.297364"], ["updated_at", "2017-04-15 19:01:47.297364"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5385], ["updated_at", "2017-04-15 19:01:47.299144"], ["id", 9061]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "bca694ad-0de9-cbc5-c95e-3419f986580e"], ["created_at", "2017-04-15 19:01:47.303738"], ["updated_at", "2017-04-15 19:01:47.303738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11873], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "653879e3-04d2-40f6-a379-42a94ca28429"], ["created_at", "2017-04-15 19:01:47.305733"], ["updated_at", "2017-04-15 19:01:47.305733"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10699], ["process_id", 5385], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:47.309405"], ["updated_at", "2017-04-15 19:01:47.309405"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6101], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.311210"], ["updated_at", "2017-04-15 19:01:47.311210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.315182"], ["updated_at", "2017-04-15 19:01:47.315182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:47.317466"], ["updated_at", "2017-04-15 19:01:47.317466"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5386], ["updated_at", "2017-04-15 19:01:47.319110"], ["id", 9063]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7a8a6de7-b3a3-4136-1e25-481674552c0d"], ["created_at", "2017-04-15 19:01:47.324042"], ["updated_at", "2017-04-15 19:01:47.324042"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11874], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "0309c97c-b52c-885e-eaee-bb4e42ef5d37"], ["created_at", "2017-04-15 19:01:47.326749"], ["updated_at", "2017-04-15 19:01:47.326749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10700], ["process_id", 5386], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:47.331534"], ["updated_at", "2017-04-15 19:01:47.331534"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6102], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.333840"], ["updated_at", "2017-04-15 19:01:47.333840"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.338992"], ["updated_at", "2017-04-15 19:01:47.338992"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:47.341552"], ["updated_at", "2017-04-15 19:01:47.341552"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5387], ["updated_at", "2017-04-15 19:01:47.343130"], ["id", 9065]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a724bcf4-67fc-b5bb-134f-0dd093cab90f"], ["created_at", "2017-04-15 19:01:47.347950"], ["updated_at", "2017-04-15 19:01:47.347950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11875], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "95de5924-b0c7-8542-571c-edd324d15809"], ["created_at", "2017-04-15 19:01:47.350613"], ["updated_at", "2017-04-15 19:01:47.350613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10701], ["process_id", 5387], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:47.354575"], ["updated_at", "2017-04-15 19:01:47.354575"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6103], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.356489"], ["updated_at", "2017-04-15 19:01:47.356489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.362759"], ["updated_at", "2017-04-15 19:01:47.362759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:47.365016"], ["updated_at", "2017-04-15 19:01:47.365016"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5388], ["updated_at", "2017-04-15 19:01:47.366571"], ["id", 9067]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "80286942-0947-ec06-7a69-bd53a9b96d37"], ["created_at", "2017-04-15 19:01:47.371519"], ["updated_at", "2017-04-15 19:01:47.371519"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11876], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "beac4529-de17-8733-25fc-f305e1e7f733"], ["created_at", "2017-04-15 19:01:47.374183"], ["updated_at", "2017-04-15 19:01:47.374183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10702], ["process_id", 5388], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:47.378548"], ["updated_at", "2017-04-15 19:01:47.378548"]] SQL (0.6ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6104], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.380662"], ["updated_at", "2017-04-15 19:01:47.380662"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.385807"], ["updated_at", "2017-04-15 19:01:47.385807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:47.388204"], ["updated_at", "2017-04-15 19:01:47.388204"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5389], ["updated_at", "2017-04-15 19:01:47.389706"], ["id", 9069]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "38290391-a4f7-a900-2fa0-4cf0deeefc04"], ["created_at", "2017-04-15 19:01:47.395085"], ["updated_at", "2017-04-15 19:01:47.395085"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11877], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "f4128336-33de-80b5-8294-2ef4144482cd"], ["created_at", "2017-04-15 19:01:47.398096"], ["updated_at", "2017-04-15 19:01:47.398096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10703], ["process_id", 5389], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:47.402054"], ["updated_at", "2017-04-15 19:01:47.402054"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6105], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.403918"], ["updated_at", "2017-04-15 19:01:47.403918"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.408444"], ["updated_at", "2017-04-15 19:01:47.408444"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:47.410496"], ["updated_at", "2017-04-15 19:01:47.410496"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5390], ["updated_at", "2017-04-15 19:01:47.411924"], ["id", 9071]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e2192ec4-349f-4a6b-2148-6b2d3bd6e484"], ["created_at", "2017-04-15 19:01:47.416059"], ["updated_at", "2017-04-15 19:01:47.416059"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11878], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "e05755df-0de2-da29-0595-8b53f5c842e4"], ["created_at", "2017-04-15 19:01:47.418584"], ["updated_at", "2017-04-15 19:01:47.418584"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10704], ["process_id", 5390], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:47.422234"], ["updated_at", "2017-04-15 19:01:47.422234"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6106], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.424405"], ["updated_at", "2017-04-15 19:01:47.424405"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.429529"], ["updated_at", "2017-04-15 19:01:47.429529"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:47.431753"], ["updated_at", "2017-04-15 19:01:47.431753"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5391], ["updated_at", "2017-04-15 19:01:47.433419"], ["id", 9073]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b5dd5b27-1eba-c6dc-b4e7-789549720fb7"], ["created_at", "2017-04-15 19:01:47.437692"], ["updated_at", "2017-04-15 19:01:47.437692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7ebe27b3-57c1-a546-a0a4-13d3957db4a6"], ["created_at", "2017-04-15 19:01:47.439835"], ["updated_at", "2017-04-15 19:01:47.439835"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11879], ["child_process_id", 11880], ["uuid", "313835c2-40b7-7bbe-dc70-e039f8e0794f"], ["created_at", "2017-04-15 19:01:47.441970"], ["updated_at", "2017-04-15 19:01:47.441970"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6dcff451-83e5-b5f4-f849-83fa88330d07"], ["created_at", "2017-04-15 19:01:47.445370"], ["updated_at", "2017-04-15 19:01:47.445370"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11881], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "3494fe44-2853-2797-500c-c0e519fd0a1d"], ["created_at", "2017-04-15 19:01:47.447571"], ["updated_at", "2017-04-15 19:01:47.447571"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10706], ["process_id", 5391], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:47.452240"], ["updated_at", "2017-04-15 19:01:47.452240"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6107], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.454090"], ["updated_at", "2017-04-15 19:01:47.454090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10705], ["process_id", 5391], ["status", 0], ["dependencies", "[{\"operation_id\":6107,\"status\":0}]"], ["created_at", "2017-04-15 19:01:47.458915"], ["updated_at", "2017-04-15 19:01:47.458915"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6108], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.460469"], ["updated_at", "2017-04-15 19:01:47.460469"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11880]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11880) [["id", 11880]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11880], ["created_at", "2017-04-15 19:01:47.467712"], ["updated_at", "2017-04-15 19:01:47.467712"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:47.469768"], ["id", 5392]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5392], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.472055"], ["updated_at", "2017-04-15 19:01:47.472055"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5392], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.477458"], ["updated_at", "2017-04-15 19:01:47.477458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:47.479343"], ["updated_at", "2017-04-15 19:01:47.479343"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5393], ["updated_at", "2017-04-15 19:01:47.480689"], ["id", 9077]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7db068a2-5922-0ca6-8679-984b012e19bd"], ["created_at", "2017-04-15 19:01:47.484498"], ["updated_at", "2017-04-15 19:01:47.484498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11882], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "2bf90220-5825-c82c-2eae-b0434349ff96"], ["created_at", "2017-04-15 19:01:47.487078"], ["updated_at", "2017-04-15 19:01:47.487078"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10707], ["process_id", 5393], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:47.490983"], ["updated_at", "2017-04-15 19:01:47.490983"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6109], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.492670"], ["updated_at", "2017-04-15 19:01:47.492670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.497400"], ["updated_at", "2017-04-15 19:01:47.497400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:47.499792"], ["updated_at", "2017-04-15 19:01:47.499792"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5394], ["updated_at", "2017-04-15 19:01:47.501328"], ["id", 9079]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 19:01:47.505818"], ["updated_at", "2017-04-15 19:01:47.505818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "702fc2da-e6a1-bf61-f91a-d47f4f2e9b76"], ["created_at", "2017-04-15 19:01:47.509123"], ["updated_at", "2017-04-15 19:01:47.509123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11883], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "0107a1cb-e8d0-47da-acf6-ae2e62caeb5c"], ["created_at", "2017-04-15 19:01:47.511295"], ["updated_at", "2017-04-15 19:01:47.511295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6110], ["parent_type", "RailsWorkflow::Operation"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10708], ["process_id", 5394], ["status", 0], ["dependencies", "[{\"operation_id\":6110,\"status\":4}]"], ["created_at", "2017-04-15 19:01:47.516704"], ["updated_at", "2017-04-15 19:01:47.516704"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6111], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.518906"], ["updated_at", "2017-04-15 19:01:47.518906"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.523796"], ["updated_at", "2017-04-15 19:01:47.523796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:47.525775"], ["updated_at", "2017-04-15 19:01:47.525775"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5395], ["updated_at", "2017-04-15 19:01:47.527513"], ["id", 9081]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "cf2b9ea8-1fa0-506c-9b60-39a52bb7a6f0"], ["created_at", "2017-04-15 19:01:47.537447"], ["updated_at", "2017-04-15 19:01:47.537447"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11884], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "d055b3d6-c418-5fab-ecf5-259f40fbbfe6"], ["created_at", "2017-04-15 19:01:47.539537"], ["updated_at", "2017-04-15 19:01:47.539537"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10709], ["process_id", 5395], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:01:47.542738"], ["updated_at", "2017-04-15 19:01:47.542738"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6112], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.544113"], ["updated_at", "2017-04-15 19:01:47.544113"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:47.547645"], ["updated_at", "2017-04-15 19:01:47.547645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$0it.jGwFjAs6zE7fbB4TpOMja1edAb.qVUe6w7CtP17uVO.fp9CqK"], ["created_at", "2017-04-15 19:01:47.553037"], ["updated_at", "2017-04-15 19:01:47.553037"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1584], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1584], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:01:47.554706"], ["updated_at", "2017-04-15 19:01:47.556429"], ["id", 6113]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:47.559789"], ["updated_at", "2017-04-15 19:01:47.559789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$T0l0BM6f6xOwq0n0R7.ybuAhKUed9cJt7TFyLWEhHeiqMKTyozc0W"], ["created_at", "2017-04-15 19:01:47.563872"], ["updated_at", "2017-04-15 19:01:47.563872"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1585], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1585], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:01:47.565356"], ["updated_at", "2017-04-15 19:01:47.566564"], ["id", 6114]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:47.568630"], ["updated_at", "2017-04-15 19:01:47.568630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1585], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1585], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:01:47.569940"], ["updated_at", "2017-04-15 19:01:47.571055"], ["id", 6115]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6114]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:47.574695"], ["updated_at", "2017-04-15 19:01:47.574695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$3cbiuMrGBUpgHvEDqmSES.tu0WOvT.vwOERJCkslr4sUmsrRnEBq2"], ["created_at", "2017-04-15 19:01:47.578771"], ["updated_at", "2017-04-15 19:01:47.578771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1586], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1586], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:01:47.580741"], ["updated_at", "2017-04-15 19:01:47.582287"], ["id", 6116]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "updated_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["assignment_id", nil], ["assignment_type", nil], ["is_active", "f"], ["updated_at", "2017-04-15 19:01:47.584472"], ["id", 6116]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:47.587500"], ["updated_at", "2017-04-15 19:01:47.587500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$iRoPHB60RKWPMLqaRnQ7j.yg0nNpZY0HVtMgfD.J088Y37nvsLPeG"], ["created_at", "2017-04-15 19:01:47.591606"], ["updated_at", "2017-04-15 19:01:47.591606"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1587], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1587], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:01:47.593066"], ["updated_at", "2017-04-15 19:01:47.594431"], ["id", 6117]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$xn5KTp9K9pYWQA2DYd8HMuRzFoadMrC.ouhoevIKA7/kpJsIf0Dke"], ["created_at", "2017-04-15 19:01:47.598572"], ["updated_at", "2017-04-15 19:01:47.598572"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6117]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1587]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:47.603786"], ["updated_at", "2017-04-15 19:01:47.603786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$jX8IvtYWUuq3KvPmVQim5.oZUmVX8VToZgF5d82Bwan5Tq0XYIfzu"], ["created_at", "2017-04-15 19:01:47.607866"], ["updated_at", "2017-04-15 19:01:47.607866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1589], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1589], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:01:47.609231"], ["updated_at", "2017-04-15 19:01:47.610392"], ["id", 6118]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$DW2CnXcTAh1XjD3kPC6aqO1gElNA0Q71W37XPRNsGkSkgPnar9.py"], ["created_at", "2017-04-15 19:01:47.615678"], ["updated_at", "2017-04-15 19:01:47.615678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:47.618668"], ["updated_at", "2017-04-15 19:01:47.618668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$dA1AUvwouYmOtn.fVHqtlee4ZH5lToHARLk3PiRzlQhEroSgw.TsG"], ["created_at", "2017-04-15 19:01:47.622783"], ["updated_at", "2017-04-15 19:01:47.622783"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1591], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1591], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:01:47.624295"], ["updated_at", "2017-04-15 19:01:47.625672"], ["id", 6119]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$aXwe/UgXoyACJHQrbPoGMu0o0B97vRuNug..T5QX5bmf2uxbhHLV."], ["created_at", "2017-04-15 19:01:47.629865"], ["updated_at", "2017-04-15 19:01:47.629865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c326dfd8-8e1c-e85b-5d11-5c123c6a70f7"], ["created_at", "2017-04-15 19:01:47.633240"], ["updated_at", "2017-04-15 19:01:47.633240"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "role", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11885], ["role", "admin"], ["uuid", "c8349276-45a0-03c7-d56e-eb130a599d27"], ["created_at", "2017-04-15 19:01:47.635210"], ["updated_at", "2017-04-15 19:01:47.635210"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "18b54b87-be13-5a06-ff59-e9450e8bf508"], ["created_at", "2017-04-15 19:01:47.637546"], ["updated_at", "2017-04-15 19:01:47.637546"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "group", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11886], ["group", "some_group"], ["uuid", "e1d02ac8-4945-55fd-5b99-b1a67a8e29c4"], ["created_at", "2017-04-15 19:01:47.639407"], ["updated_at", "2017-04-15 19:01:47.639407"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 10711], ["created_at", "2017-04-15 19:01:47.641737"], ["updated_at", "2017-04-15 19:01:47.641737"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 10710], ["created_at", "2017-04-15 19:01:47.644512"], ["updated_at", "2017-04-15 19:01:47.644512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$ObQKJksDdz3mqnj82sQ8le4C18wEhWhNngw13GWlD5.fIpxl9xk5a"], ["role", "admin"], ["created_at", "2017-04-15 19:01:47.649261"], ["updated_at", "2017-04-15 19:01:47.649261"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'admin')  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'fake@email.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "fake@email.com"], ["encrypted_password", "$2a$04$ccICK9bif.J8FDdXrErY/etWxPGUIURk8ZHsSwrAoQudMKLeFeUTq"], ["role", "fake"], ["created_at", "2017-04-15 19:01:47.655529"], ["updated_at", "2017-04-15 19:01:47.655529"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'fake') SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1593], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1593], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:01:47.658538"], ["updated_at", "2017-04-15 19:01:47.659960"], ["id", 6121]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."assignment_id" IS NULL  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:01:47.664179"], ["updated_at", "2017-04-15 19:01:47.664179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:47.665882"], ["updated_at", "2017-04-15 19:01:47.665882"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6122], ["updated_at", "2017-04-15 19:01:47.667110"], ["id", 9083]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:01:47.669117"], ["id", 6122]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:01:47.672631"], ["updated_at", "2017-04-15 19:01:47.672631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:01:47.674767"], ["updated_at", "2017-04-15 19:01:47.674767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:01:47.676991"], ["updated_at", "2017-04-15 19:01:47.676991"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5396], ["updated_at", "2017-04-15 19:01:47.678484"], ["id", 9084]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "child_process_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["child_process_id", 5396], ["updated_at", "2017-04-15 19:01:47.680742"], ["id", 6123]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:47.682706"], ["id", 6123]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6123 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6123]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6] RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5396]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6] SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:01:47.687018"], ["id", 5396]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5396], ["status", 0]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6123], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6] SQL (0.5ms) INSERT INTO "rails_workflow_errors" ("parent_id", "parent_type", "message", "stack_trace", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["parent_id", 6123], ["parent_type", "RailsWorkflow::Operation"], ["message", "undefined method `save' for nil:NilClass"], ["stack_trace", "/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:60:in `execute_in_transaction'
\n/home/maxim/rails_workflow/app/jobs/rails_workflow/operation_execution_job.rb:12:in `perform'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:32:in `block in perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/i18n-0.7.0/lib/i18n.rb:257:in `with_locale'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/translation.rb:7:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:23:in `block (4 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `block in instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:22:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `block in tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:26:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:19:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_perform_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:31:in `perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:16:in `perform_now'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:28:in `starting'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:18:in `start'
\n/home/maxim/rails_workflow/spec/models/rails_workflow/operation_spec.rb:179:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `block in with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `block in with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:618:in `block in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-rails-3.4.2/lib/rspec/rails/adapters.rb:127:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:389:in `execute_with'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:620:in `block (2 levels) in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:621:in `run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:233:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:581:in `block in run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:543:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (3 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (2 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/configuration.rb:1680:in `with_suite_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:118:in `block in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/reporter.rb:77:in `report'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:117:in `run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:93:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:78:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:45:in `invoke'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/exe/rspec:4:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `kernel_load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:335:in `exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:20:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:11:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:32:in `block in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:24:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `
'"], ["created_at", "2017-04-15 19:01:47.694784"], ["updated_at", "2017-04-15 19:01:47.694784"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 139], ["parent_type", "RailsWorkflow::Error"], ["body", "{\"parent\":{\"id\":6123,\"class\":\"RailsWorkflow::Operation\"},\"target\":{\"id\":6123,\"class\":\"RailsWorkflow::Operation\"},\"method\":\"execute_in_transaction\"}"], ["created_at", "2017-04-15 19:01:47.698793"], ["updated_at", "2017-04-15 19:01:47.698793"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 139], ["parent_type", "RailsWorkflow::Error"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6123]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6123]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6123]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 4], ["updated_at", "2017-04-15 19:01:47.704673"], ["id", 6123]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0324881d-68c7-4aab-982a-18da44f5b7c6] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 21.9ms RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5396]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 2], ["completed_at", "2017-04-15 19:01:47.709515"], ["created_at", "2017-04-15 19:01:47.710207"], ["updated_at", "2017-04-15 19:01:47.710207"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 6], ["completed_at", "2017-04-15 19:01:47.714207"], ["created_at", "2017-04-15 19:01:47.714761"], ["updated_at", "2017-04-15 19:01:47.714761"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 5], ["completed_at", "2017-04-15 19:01:47.718428"], ["created_at", "2017-04-15 19:01:47.719086"], ["updated_at", "2017-04-15 19:01:47.719086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0f03fccf-53f4-ec47-d2fc-19a6bfbd32d0"], ["created_at", "2017-04-15 19:01:47.723577"], ["updated_at", "2017-04-15 19:01:47.723577"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 11887], ["uuid", "150d360e-cb4c-4899-1121-ed3ff2cf0160"], ["created_at", "2017-04-15 19:01:47.725849"], ["updated_at", "2017-04-15 19:01:47.725849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::TestProcess"], ["uuid", "0ad53917-96cf-62db-684c-83056ff69cf0"], ["created_at", "2017-04-15 19:01:47.730914"], ["updated_at", "2017-04-15 19:01:47.730914"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("type", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "RailsWorkflow::TestProcess"], ["template_id", 11888], ["created_at", "2017-04-15 19:01:47.737629"], ["updated_at", "2017-04-15 19:01:47.737629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:01:47.739661"], ["id", 5397]] SQL (0.1ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5397], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:01:47.741442"], ["updated_at", "2017-04-15 19:01:47.741442"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5397], ["parent_type", "RailsWorkflow::Process"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11888]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::Process"], ["uuid", "8c915b88-64c8-a53a-1bb4-8ef0de21f7d1"], ["created_at", "2017-04-15 19:01:47.746379"], ["updated_at", "2017-04-15 19:01:47.746379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11889], ["uuid", "5fd4f405-2802-70fa-a1a1-0dfcb755b3a6"], ["created_at", "2017-04-15 19:01:47.748586"], ["updated_at", "2017-04-15 19:01:47.748586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11889], ["dependencies", "[{\"id\":10713,\"statuses\":[2]}]"], ["uuid", "180993f5-d8b9-01d5-6ea3-e29bfc8c16bc"], ["created_at", "2017-04-15 19:01:47.750947"], ["updated_at", "2017-04-15 19:01:47.750947"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11889]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11889) [["id", 11889]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d50b1fb3-9c1e-3026-d4e9-2c334c38ca71"], ["created_at", "2017-04-15 19:01:47.759414"], ["updated_at", "2017-04-15 19:01:47.759414"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "74bf4160-a0da-4aa1-61fc-a41e2812de6a"], ["created_at", "2017-04-15 19:01:47.761727"], ["updated_at", "2017-04-15 19:01:47.761727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "fd0d46f4-22db-7523-79e5-4c32b7c8beb1"], ["created_at", "2017-04-15 19:01:47.763453"], ["updated_at", "2017-04-15 19:01:47.763453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11891], ["child_process_id", 11892], ["uuid", "58ce9c49-cf2a-c17c-f117-858c9ad3de68"], ["created_at", "2017-04-15 19:01:47.765128"], ["updated_at", "2017-04-15 19:01:47.765128"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11890]] SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 11890], ["updated_at", "2017-04-15 19:01:47.768732"], ["id", 10715]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11890]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11892]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8f1415c2-b033-4cc4-c6cf-475f06b74b13"], ["created_at", "2017-04-15 19:01:47.776403"], ["updated_at", "2017-04-15 19:01:47.776403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6c32b773-3abf-d615-29b1-c7d58e47a99e"], ["created_at", "2017-04-15 19:01:47.778443"], ["updated_at", "2017-04-15 19:01:47.778443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11894], ["uuid", "b325caa9-98a2-c26c-3add-cbf6e0ea4a54"], ["created_at", "2017-04-15 19:01:47.780163"], ["updated_at", "2017-04-15 19:01:47.780163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11893]] SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 11893], ["updated_at", "2017-04-15 19:01:47.782911"], ["id", 10716]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11893]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:01:47.789687"], ["updated_at", "2017-04-15 19:01:47.789687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:01:47.791407"], ["id", 11895]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11895]] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11895], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11895], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:01:47.795537"], ["updated_at", "2017-04-15 19:01:47.795537"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:47.797723"], ["id", 10717]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11895], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11895], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:01:47.801953"], ["updated_at", "2017-04-15 19:01:47.801953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:47.804007"], ["id", 10718]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11895], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11895], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:01:47.807193"], ["updated_at", "2017-04-15 19:01:47.807193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:47.809262"], ["id", 10719]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10717}]"], ["updated_at", "2017-04-15 19:01:47.813183"], ["id", 10718]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10718}]"], ["updated_at", "2017-04-15 19:01:47.815865"], ["id", 10719]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:01:47.821299"], ["updated_at", "2017-04-15 19:01:47.821299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:01:47.823031"], ["id", 11896]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11896]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11896], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11896], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:01:47.827158"], ["updated_at", "2017-04-15 19:01:47.827158"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:47.830733"], ["id", 10720]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11896], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11896], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:01:47.834874"], ["updated_at", "2017-04-15 19:01:47.834874"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:47.836990"], ["id", 10721]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11896], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11896], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:01:47.840347"], ["updated_at", "2017-04-15 19:01:47.840347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:47.842318"], ["id", 10722]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10720}]"], ["updated_at", "2017-04-15 19:01:47.845720"], ["id", 10721]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10721}]"], ["updated_at", "2017-04-15 19:01:47.848559"], ["id", 10722]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Some new name"], ["updated_at", "2017-04-15 19:01:47.851225"], ["id", 11896]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Test Process"], ["updated_at", "2017-04-15 19:01:47.854481"], ["id", 11896]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11896]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11896], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11896], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:01:47.861149"], ["id", 10721]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11896], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:01:47.864697"], ["id", 10722]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10720}]"], ["updated_at", "2017-04-15 19:01:47.868090"], ["id", 10721]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10721}]"], ["updated_at", "2017-04-15 19:01:47.870483"], ["id", 10722]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:01:47.874990"], ["updated_at", "2017-04-15 19:01:47.874990"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:01:47.876928"], ["id", 11897]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11897]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11897], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11897], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:01:47.881157"], ["updated_at", "2017-04-15 19:01:47.881157"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:47.883217"], ["id", 10723]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11897], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11897], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:01:47.886704"], ["updated_at", "2017-04-15 19:01:47.886704"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:47.889084"], ["id", 10724]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11897], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11897], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:01:47.892343"], ["updated_at", "2017-04-15 19:01:47.892343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:47.894396"], ["id", 10725]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10723}]"], ["updated_at", "2017-04-15 19:01:47.897641"], ["id", 10724]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10724}]"], ["updated_at", "2017-04-15 19:01:47.900219"], ["id", 10725]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11897]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:01:47.906495"], ["updated_at", "2017-04-15 19:01:47.906495"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:01:47.908590"], ["id", 11898]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11898]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11898], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11898], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:01:47.912787"], ["updated_at", "2017-04-15 19:01:47.912787"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:47.914796"], ["id", 10726]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11898], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11898], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:01:47.918076"], ["updated_at", "2017-04-15 19:01:47.918076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:47.920196"], ["id", 10727]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11898], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11898], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:01:47.923368"], ["updated_at", "2017-04-15 19:01:47.923368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:47.925369"], ["id", 10728]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10726}]"], ["updated_at", "2017-04-15 19:01:47.928728"], ["id", 10727]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10727}]"], ["updated_at", "2017-04-15 19:01:47.931348"], ["id", 10728]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11898]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Some new operation name"], ["updated_at", "2017-04-15 19:01:47.935604"], ["id", 10726]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11898]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11898], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Default Operation 2"], ["updated_at", "2017-04-15 19:01:47.941286"], ["id", 10726]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11898], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:01:47.944426"], ["id", 10727]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11898], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:01:47.948077"], ["id", 10728]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10726}]"], ["updated_at", "2017-04-15 19:01:47.951604"], ["id", 10727]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10727}]"], ["updated_at", "2017-04-15 19:01:47.954702"], ["id", 10728]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10726]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:01:47.960826"], ["updated_at", "2017-04-15 19:01:47.960826"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:01:47.962925"], ["id", 11899]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11899]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11899], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11899], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:01:47.967161"], ["updated_at", "2017-04-15 19:01:47.967161"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:47.969350"], ["id", 10729]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11899], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11899], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:01:47.972603"], ["updated_at", "2017-04-15 19:01:47.972603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:47.974590"], ["id", 10730]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11899], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11899], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:01:47.977902"], ["updated_at", "2017-04-15 19:01:47.977902"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:47.980126"], ["id", 10731]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10729}]"], ["updated_at", "2017-04-15 19:01:47.983712"], ["id", 10730]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10730}]"], ["updated_at", "2017-04-15 19:01:47.986144"], ["id", 10731]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Some new operation"], ["process_template_id", 11899], ["uuid", "b5afae7e-e361-c8eb-49d1-798ab6e84040"], ["created_at", "2017-04-15 19:01:47.989245"], ["updated_at", "2017-04-15 19:01:47.989245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11899]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11899]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11899], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11899], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:01:47.998201"], ["id", 10730]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11899], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:01:48.001303"], ["id", 10731]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = 10732  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10729}]"], ["updated_at", "2017-04-15 19:01:48.004998"], ["id", 10730]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10730}]"], ["updated_at", "2017-04-15 19:01:48.007314"], ["id", 10731]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11899]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:01:48.012678"], ["updated_at", "2017-04-15 19:01:48.012678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:01:48.014338"], ["id", 11900]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11900]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11900], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11900], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:01:48.018027"], ["updated_at", "2017-04-15 19:01:48.018027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:48.019993"], ["id", 10733]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11900], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11900], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:01:48.023209"], ["updated_at", "2017-04-15 19:01:48.023209"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:48.025595"], ["id", 10734]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11900], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11900], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:01:48.028880"], ["updated_at", "2017-04-15 19:01:48.028880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:48.030861"], ["id", 10735]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10733}]"], ["updated_at", "2017-04-15 19:01:48.034171"], ["id", 10734]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10734}]"], ["updated_at", "2017-04-15 19:01:48.036521"], ["id", 10735]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10733]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:01:48.043043"], ["updated_at", "2017-04-15 19:01:48.043043"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 19:01:48.045478"], ["updated_at", "2017-04-15 19:01:48.045478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:01:48.047058"], ["id", 11902]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11902]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11902], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11902], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 19:01:48.051156"], ["updated_at", "2017-04-15 19:01:48.051156"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:48.053483"], ["id", 10736]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:01:48.056081"], ["id", 11901]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11901]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11901], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11901], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:01:48.059631"], ["updated_at", "2017-04-15 19:01:48.059631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:48.061623"], ["id", 10737]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11901], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11901], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:01:48.064651"], ["updated_at", "2017-04-15 19:01:48.064651"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.5ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 11902], ["updated_at", "2017-04-15 19:01:48.068039"], ["id", 10738]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":10737}]"], ["updated_at", "2017-04-15 19:01:48.072089"], ["id", 10738]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:01:48.076375"], ["updated_at", "2017-04-15 19:01:48.076375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 19:01:48.078789"], ["updated_at", "2017-04-15 19:01:48.078789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:01:48.080377"], ["id", 11904]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11904]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11904], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11904], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 19:01:48.083936"], ["updated_at", "2017-04-15 19:01:48.083936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:48.085888"], ["id", 10739]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:01:48.088369"], ["id", 11903]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11903]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11903], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11903], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:01:48.091832"], ["updated_at", "2017-04-15 19:01:48.091832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:48.093700"], ["id", 10740]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11903], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11903], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:01:48.096566"], ["updated_at", "2017-04-15 19:01:48.096566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 11904], ["updated_at", "2017-04-15 19:01:48.099644"], ["id", 10741]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":10740}]"], ["updated_at", "2017-04-15 19:01:48.103839"], ["id", 10741]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Parent Process"]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11903]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11904]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:01:48.111830"], ["updated_at", "2017-04-15 19:01:48.111830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:01:48.113514"], ["id", 11905]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11905]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11905], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11905], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:01:48.117183"], ["updated_at", "2017-04-15 19:01:48.117183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:01:48.119201"], ["id", 10742]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11905], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11905], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:01:48.122093"], ["updated_at", "2017-04-15 19:01:48.122093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ef1cebfe-6d29-749e-9330-e883049c2ea6"], ["created_at", "2017-04-15 19:04:24.884056"], ["updated_at", "2017-04-15 19:04:24.884056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11906], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "f0fc3ec7-3276-2465-6809-5b390a9cabc6"], ["created_at", "2017-04-15 19:04:24.897940"], ["updated_at", "2017-04-15 19:04:24.897940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#index as HTML Parameters: {"process_template_id"=>"11906"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11906]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 24ms (Views: 8.0ms | ActiveRecord: 0.3ms) RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11906]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6877f711-82aa-6833-bc5c-9c355cf6f3e7"], ["created_at", "2017-04-15 19:04:24.932572"], ["updated_at", "2017-04-15 19:04:24.932572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11907], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "ebaf0f24-045a-b296-c180-3e1b8ed4ddee"], ["created_at", "2017-04-15 19:04:24.934588"], ["updated_at", "2017-04-15 19:04:24.934588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#show as HTML Parameters: {"process_template_id"=>"11907", "id"=>"10745"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10745]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11907]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "90701c8f-18dd-d7a8-e27b-5d12f394b5f9"], ["created_at", "2017-04-15 19:04:24.952627"], ["updated_at", "2017-04-15 19:04:24.952627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "77f44a29-c2d8-a6e5-703e-76b7c1e5de30"], ["created_at", "2017-04-15 19:04:24.954567"], ["updated_at", "2017-04-15 19:04:24.954567"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#new as HTML Parameters: {"process_template_id"=>"11909"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11909]] Unpermitted parameter: process_template_id Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/new.html.slim within layouts/rails_workflow/application (0.3ms) Completed 200 OK in 8ms (Views: 1.8ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "279242e4-bbf6-7449-69c4-36cd5563fbd6"], ["created_at", "2017-04-15 19:04:24.971325"], ["updated_at", "2017-04-15 19:04:24.971325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11910], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "229ab6d4-04e7-de89-88fc-8c10eb640674"], ["created_at", "2017-04-15 19:04:24.973490"], ["updated_at", "2017-04-15 19:04:24.973490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#edit as HTML Parameters: {"process_template_id"=>"11910", "id"=>"10746"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10746]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11910]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3540a299-254d-fa5c-32f4-8d6f00c88678"], ["created_at", "2017-04-15 19:04:24.992588"], ["updated_at", "2017-04-15 19:04:24.992588"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11911", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11911"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11911]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 11911], ["uuid", "6ee087d7-7641-7ad9-28bf-64efb174a473"], ["created_at", "2017-04-15 19:04:25.004991"], ["updated_at", "2017-04-15 19:04:25.004991"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11911/operation_templates Completed 302 Found in 9ms (ActiveRecord: 1.1ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11911]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2b9c3fc6-29ad-b8ff-d54a-111aae4f3dfd"], ["created_at", "2017-04-15 19:04:25.015530"], ["updated_at", "2017-04-15 19:04:25.015530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate') Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11912", "type"=>"RailsWorkflow::CustomOperationTemplate"}, "process_template_id"=>"11912"} RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11912]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 11912], ["uuid", "75816177-6c05-518f-0833-6042bf257a2d"], ["created_at", "2017-04-15 19:04:25.038660"], ["updated_at", "2017-04-15 19:04:25.038660"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11912/operation_templates Completed 302 Found in 21ms (ActiveRecord: 1.1ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ab3892cb-1aa9-7f96-3082-b4abd7ef18d6"], ["created_at", "2017-04-15 19:04:25.047551"], ["updated_at", "2017-04-15 19:04:25.047551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11913", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11913"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11913]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 11913], ["uuid", "569bdd9b-dae8-d1a0-d35e-cf5f4a3736f5"], ["created_at", "2017-04-15 19:04:25.056744"], ["updated_at", "2017-04-15 19:04:25.056744"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11913/operation_templates Completed 302 Found in 9ms (ActiveRecord: 1.1ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f3130c9b-c6d7-2e0e-0e7f-01d3404e3cb4"], ["created_at", "2017-04-15 19:04:25.065010"], ["updated_at", "2017-04-15 19:04:25.065010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11914", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11914"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11914]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 11914], ["uuid", "ef755019-cf4a-7f6f-ead5-91fef43eb598"], ["created_at", "2017-04-15 19:04:25.073777"], ["updated_at", "2017-04-15 19:04:25.073777"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11914/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.9ms)  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1b40e31b-9ade-446d-d093-720f3ec9912f"], ["created_at", "2017-04-15 19:04:25.084113"], ["updated_at", "2017-04-15 19:04:25.084113"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ba1ff203-c436-2a8a-56ba-733cd031f5ac"], ["created_at", "2017-04-15 19:04:25.088646"], ["updated_at", "2017-04-15 19:04:25.088646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2fedc2aa-ec54-d672-fd77-8b780bc8f689"], ["created_at", "2017-04-15 19:04:25.092702"], ["updated_at", "2017-04-15 19:04:25.092702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11917], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "753d3915-5bac-0099-9d80-e017ad05bafa"], ["created_at", "2017-04-15 19:04:25.094917"], ["updated_at", "2017-04-15 19:04:25.094917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0f0873bf-c602-01de-3f91-df480171433f"], ["created_at", "2017-04-15 19:04:25.099081"], ["updated_at", "2017-04-15 19:04:25.099081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11918], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "39b60ff2-004a-fdb2-4600-c2ad92c48481"], ["created_at", "2017-04-15 19:04:25.101240"], ["updated_at", "2017-04-15 19:04:25.101240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11918", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11918", "id"=>"10752"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10752]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11918]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11918/operation_templates Completed 302 Found in 8ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "694d66d9-0160-b769-1dfc-fbd7ff26c922"], ["created_at", "2017-04-15 19:04:25.117501"], ["updated_at", "2017-04-15 19:04:25.117501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11919], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "db62650c-734a-f258-b265-0fb5c3790175"], ["created_at", "2017-04-15 19:04:25.120097"], ["updated_at", "2017-04-15 19:04:25.120097"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"11919", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"11919", "id"=>"10753"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10753]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11919]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11919/operation_templates Completed 302 Found in 7ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2dcaf8fe-6bbf-9ab8-cc74-fed5e2b8342a"], ["created_at", "2017-04-15 19:04:25.137468"], ["updated_at", "2017-04-15 19:04:25.137468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11920], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "95b157b6-f387-db0c-8e86-c53c5b52f817"], ["created_at", "2017-04-15 19:04:25.139608"], ["updated_at", "2017-04-15 19:04:25.139608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4c54d747-f6b7-456d-a68e-604b130501af"], ["created_at", "2017-04-15 19:04:25.143410"], ["updated_at", "2017-04-15 19:04:25.143410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11921], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "9d069873-224e-8795-2d8d-11e61d34e783"], ["created_at", "2017-04-15 19:04:25.145996"], ["updated_at", "2017-04-15 19:04:25.145996"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8c0679ca-0231-2557-92d3-fcac73ecb55e"], ["created_at", "2017-04-15 19:04:25.150441"], ["updated_at", "2017-04-15 19:04:25.150441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11922], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "4cdf4b72-7c00-3469-3c24-849a4fe874bb"], ["created_at", "2017-04-15 19:04:25.152494"], ["updated_at", "2017-04-15 19:04:25.152494"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11922]] Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"11922", "id"=>"10756"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10756]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11922]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 10756]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11922/operation_templates Completed 302 Found in 7ms (ActiveRecord: 1.3ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0873f9a3-6a6d-c23e-6a57-c5a836e87d78"], ["created_at", "2017-04-15 19:04:25.171114"], ["updated_at", "2017-04-15 19:04:25.171114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 11923], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "d44a8b05-0b64-9a2c-b290-c595fa888615"], ["created_at", "2017-04-15 19:04:25.173210"], ["updated_at", "2017-04-15 19:04:25.173210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"11923", "id"=>"10757"} RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10757]] RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11923]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 10757]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11923/operation_templates Completed 302 Found in 7ms (ActiveRecord: 1.6ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "b4b0f117-0de6-0004-4672-2a2680ea710a"], ["created_at", "2017-04-15 19:04:25.215490"], ["updated_at", "2017-04-15 19:04:25.215490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (0.3ms) Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms) RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "7a08d186-517e-d521-ede4-2b6a17422875"], ["created_at", "2017-04-15 19:04:25.228769"], ["updated_at", "2017-04-15 19:04:25.228769"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#show as HTML Parameters: {"id"=>"11925"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11925]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "b38205d0-d620-2c1d-0b46-2f39f2c02cee"], ["created_at", "2017-04-15 19:04:25.253140"], ["updated_at", "2017-04-15 19:04:25.253140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#edit as HTML Parameters: {"id"=>"11926"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11926]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/edit.html.slim within layouts/rails_workflow/application (0.4ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "319ab116-3422-87ae-249f-11c4dc737d40"], ["created_at", "2017-04-15 19:04:25.274685"], ["updated_at", "2017-04-15 19:04:25.274685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11927/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "4ed2a6bf-ef39-8a68-45b0-6a9198da6784"], ["created_at", "2017-04-15 19:04:25.285399"], ["updated_at", "2017-04-15 19:04:25.285399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11928/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "0b329834-16bd-b086-589f-bd1dc5b42f75"], ["created_at", "2017-04-15 19:04:25.312874"], ["updated_at", "2017-04-15 19:04:25.312874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11929/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.5ms) RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "ae7f6a86-f99b-f247-e906-050cf6e917b4"], ["created_at", "2017-04-15 19:04:25.326028"], ["updated_at", "2017-04-15 19:04:25.326028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "13a81c11-690d-9526-5a7c-929e44df5866"], ["created_at", "2017-04-15 19:04:25.329379"], ["updated_at", "2017-04-15 19:04:25.329379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"11931"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11931]] Unpermitted parameter: id  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11931 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "0d682f38-72e6-2ac4-1f3e-566c1dcb6e26"], ["created_at", "2017-04-15 19:04:25.342354"], ["updated_at", "2017-04-15 19:04:25.342354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"11932"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11932]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/11932 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "ab789f82-7bcc-61af-4ea5-8f7fad333d60"], ["created_at", "2017-04-15 19:04:25.357273"], ["updated_at", "2017-04-15 19:04:25.357273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "1289e558-fc8e-52ab-3ce0-4584e9fcb309"], ["created_at", "2017-04-15 19:04:25.360766"], ["updated_at", "2017-04-15 19:04:25.360766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "543b344a-6809-7856-e8db-c2921ec1b126"], ["created_at", "2017-04-15 19:04:25.364276"], ["updated_at", "2017-04-15 19:04:25.364276"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"11935"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11935]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 11935]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "efbf3c4e-082a-5474-e490-7ba7c0599e22"], ["created_at", "2017-04-15 19:04:25.378413"], ["updated_at", "2017-04-15 19:04:25.378413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"11936"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11936]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 11936]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8c9021d5-52bf-9b1c-b324-21b5f7378c54"], ["created_at", "2017-04-15 19:04:25.392842"], ["updated_at", "2017-04-15 19:04:25.392842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11937], ["created_at", "2017-04-15 19:04:25.401223"], ["updated_at", "2017-04-15 19:04:25.401223"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#index as HTML  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.4ms)  select status, cnt from ( select row_number() over (partition by status), count(*) over (partition by status) cnt, status from rails_workflow_processes)t where row_number = 1  Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 10ms (Views: 4.0ms | ActiveRecord: 0.7ms) RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" ASC LIMIT 30 OFFSET 0  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9715fe6f-8206-7bbf-5188-c8649d0f3b96"], ["created_at", "2017-04-15 19:04:25.422025"], ["updated_at", "2017-04-15 19:04:25.422025"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11938], ["created_at", "2017-04-15 19:04:25.424943"], ["updated_at", "2017-04-15 19:04:25.424943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#show as HTML Parameters: {"id"=>"5399"} RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5399]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f0fc713e-b310-aa91-e251-ce8840d7c02b"], ["created_at", "2017-04-15 19:04:25.443564"], ["updated_at", "2017-04-15 19:04:25.443564"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "957a13be-6f56-8b2c-c814-973207b22a5e"], ["created_at", "2017-04-15 19:04:25.452461"], ["updated_at", "2017-04-15 19:04:25.452461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11940], ["created_at", "2017-04-15 19:04:25.454376"], ["updated_at", "2017-04-15 19:04:25.454376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#edit as HTML Parameters: {"id"=>"5400"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5400]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f5b5a113-75d0-dda2-ecc0-f73857899e60"], ["created_at", "2017-04-15 19:04:25.470538"], ["updated_at", "2017-04-15 19:04:25.470538"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_processes" Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11941"}} SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11941]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11941) [["id", 11941]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11941], ["created_at", "2017-04-15 19:04:25.486562"], ["updated_at", "2017-04-15 19:04:25.486562"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:04:25.488854"], ["id", 5401]] SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5401], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:04:25.498574"], ["updated_at", "2017-04-15 19:04:25.498574"]] RailsWorkflow::Context Load (0.4ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5401], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5401]] Redirected to http://test.host/workflow/processes/5401 Completed 302 Found in 32ms (ActiveRecord: 4.4ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ae4d4a43-96d0-dfb3-cfbd-b8763d035f29"], ["created_at", "2017-04-15 19:04:25.510912"], ["updated_at", "2017-04-15 19:04:25.510912"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11942"}} SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11942]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11942) [["id", 11942]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11942], ["created_at", "2017-04-15 19:04:25.519819"], ["updated_at", "2017-04-15 19:04:25.519819"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:04:25.521849"], ["id", 5402]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5402], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:04:25.524025"], ["updated_at", "2017-04-15 19:04:25.524025"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5402], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5402]] Redirected to http://test.host/workflow/processes/5402 Completed 302 Found in 15ms (ActiveRecord: 3.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "cc2bad64-f4a2-9762-8272-47bfbc0f24ec"], ["created_at", "2017-04-15 19:04:25.533248"], ["updated_at", "2017-04-15 19:04:25.533248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11943"}} SQL (0.5ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11943]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11943) [["id", 11943]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11943], ["created_at", "2017-04-15 19:04:25.542391"], ["updated_at", "2017-04-15 19:04:25.542391"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:04:25.544570"], ["id", 5403]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5403], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:04:25.546518"], ["updated_at", "2017-04-15 19:04:25.546518"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5403], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5403]] Redirected to http://test.host/workflow/processes/5403 Completed 302 Found in 15ms (ActiveRecord: 3.4ms) RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" DESC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "44eda8de-1383-d177-47c0-0f83aa74abea"], ["created_at", "2017-04-15 19:04:25.559749"], ["updated_at", "2017-04-15 19:04:25.559749"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "925008c2-93a0-c945-ac17-0f70fcf735f0"], ["created_at", "2017-04-15 19:04:25.563362"], ["updated_at", "2017-04-15 19:04:25.563362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6d479d42-dc02-ca03-3e70-eccc54effeef"], ["created_at", "2017-04-15 19:04:25.566812"], ["updated_at", "2017-04-15 19:04:25.566812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11946], ["created_at", "2017-04-15 19:04:25.568615"], ["updated_at", "2017-04-15 19:04:25.568615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c33a60c3-428e-dac0-0fbf-8e01f59fdeb7"], ["created_at", "2017-04-15 19:04:25.571833"], ["updated_at", "2017-04-15 19:04:25.571833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11947], ["created_at", "2017-04-15 19:04:25.573538"], ["updated_at", "2017-04-15 19:04:25.573538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11947"}, "id"=>"5405"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5405]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8ea6b697-0258-0353-d0d4-29d4e9ac8a31"], ["created_at", "2017-04-15 19:04:25.585479"], ["updated_at", "2017-04-15 19:04:25.585479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11948], ["created_at", "2017-04-15 19:04:25.587687"], ["updated_at", "2017-04-15 19:04:25.587687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"11948"}, "id"=>"5406"} RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5406]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "22838e79-4311-c2ed-9b78-8215ec763e57"], ["created_at", "2017-04-15 19:04:25.602568"], ["updated_at", "2017-04-15 19:04:25.602568"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11949], ["created_at", "2017-04-15 19:04:25.604946"], ["updated_at", "2017-04-15 19:04:25.604946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7faf7fc6-ec0b-e1a0-fbff-94ae15a0cc5d"], ["created_at", "2017-04-15 19:04:25.608416"], ["updated_at", "2017-04-15 19:04:25.608416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 11950], ["created_at", "2017-04-15 19:04:25.610301"], ["updated_at", "2017-04-15 19:04:25.610301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c2f02a75-c718-2329-93f0-2274f8e5c737"], ["created_at", "2017-04-15 19:04:25.613772"], ["updated_at", "2017-04-15 19:04:25.613772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a70c5307-89fc-be01-1687-52b5471e6e1a"], ["created_at", "2017-04-15 19:04:25.617075"], ["updated_at", "2017-04-15 19:04:25.617075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ee69ee47-7d2d-dcb0-839a-fb6a7a081d4e"], ["created_at", "2017-04-15 19:04:25.620827"], ["updated_at", "2017-04-15 19:04:25.620827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11953], ["uuid", "91065376-4b2f-1674-9083-08859020cfa9"], ["created_at", "2017-04-15 19:04:25.623352"], ["updated_at", "2017-04-15 19:04:25.623352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11953], ["dependencies", "[{\"id\":10758,\"statuses\":[2]}]"], ["uuid", "fa32f4f6-8d7a-4fd6-3dae-fbaadf0380ab"], ["created_at", "2017-04-15 19:04:25.625967"], ["updated_at", "2017-04-15 19:04:25.625967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11953]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11953) [["id", 11953]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11953], ["created_at", "2017-04-15 19:04:25.631852"], ["updated_at", "2017-04-15 19:04:25.631852"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:04:25.633761"], ["id", 5409]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5409], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.635783"], ["updated_at", "2017-04-15 19:04:25.635783"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5409], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10758], ["process_id", 5409], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:25.648679"], ["updated_at", "2017-04-15 19:04:25.648679"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6127], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.650947"], ["updated_at", "2017-04-15 19:04:25.650947"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f6e2fe89-84bb-107e-966f-5a70edd2575b"], ["created_at", "2017-04-15 19:04:25.656961"], ["updated_at", "2017-04-15 19:04:25.656961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11954], ["uuid", "d10138d2-7772-83ad-3475-015d4798f7ae"], ["created_at", "2017-04-15 19:04:25.659159"], ["updated_at", "2017-04-15 19:04:25.659159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11954], ["dependencies", "[{\"id\":10760,\"statuses\":[2]}]"], ["uuid", "c7282416-cbb2-4487-963e-e47172e3bed3"], ["created_at", "2017-04-15 19:04:25.661606"], ["updated_at", "2017-04-15 19:04:25.661606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11954]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11954) [["id", 11954]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11954], ["created_at", "2017-04-15 19:04:25.667381"], ["updated_at", "2017-04-15 19:04:25.667381"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:04:25.669266"], ["id", 5410]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5410], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.671237"], ["updated_at", "2017-04-15 19:04:25.671237"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5410], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10760], ["process_id", 5410], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:25.674902"], ["updated_at", "2017-04-15 19:04:25.674902"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6128], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.676390"], ["updated_at", "2017-04-15 19:04:25.676390"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "19804a88-88b4-a551-44ea-d0e0c314c306"], ["created_at", "2017-04-15 19:04:25.681172"], ["updated_at", "2017-04-15 19:04:25.681172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11955], ["uuid", "e35bedf7-5890-6bda-d64c-4c8d56a33e3a"], ["created_at", "2017-04-15 19:04:25.683859"], ["updated_at", "2017-04-15 19:04:25.683859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11955], ["dependencies", "[{\"id\":10762,\"statuses\":[2]}]"], ["uuid", "62b48598-de0e-4bbe-ab3a-34de0bb05684"], ["created_at", "2017-04-15 19:04:25.686383"], ["updated_at", "2017-04-15 19:04:25.686383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11955]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11955) [["id", 11955]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11955], ["created_at", "2017-04-15 19:04:25.691896"], ["updated_at", "2017-04-15 19:04:25.691896"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:04:25.693844"], ["id", 5411]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5411], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.695694"], ["updated_at", "2017-04-15 19:04:25.695694"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5411], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10762], ["process_id", 5411], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:25.699423"], ["updated_at", "2017-04-15 19:04:25.699423"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6129], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.700906"], ["updated_at", "2017-04-15 19:04:25.700906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5411]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5411]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e70d9c80-f763-5a0b-9749-892fdcbdbdae"], ["created_at", "2017-04-15 19:04:25.707944"], ["updated_at", "2017-04-15 19:04:25.707944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11956], ["uuid", "bbcc8ea1-377b-87cf-e2db-4637850da460"], ["created_at", "2017-04-15 19:04:25.710112"], ["updated_at", "2017-04-15 19:04:25.710112"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11956], ["dependencies", "[{\"id\":10764,\"statuses\":[2]}]"], ["uuid", "2f468e26-0088-810a-76d4-3e5ade982355"], ["created_at", "2017-04-15 19:04:25.712886"], ["updated_at", "2017-04-15 19:04:25.712886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11956]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11956) [["id", 11956]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11956], ["created_at", "2017-04-15 19:04:25.718640"], ["updated_at", "2017-04-15 19:04:25.718640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:04:25.720278"], ["id", 5412]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5412], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.722118"], ["updated_at", "2017-04-15 19:04:25.722118"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5412], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10764], ["process_id", 5412], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:25.725622"], ["updated_at", "2017-04-15 19:04:25.725622"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6130], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.727169"], ["updated_at", "2017-04-15 19:04:25.727169"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "686bb0a9-3d72-6e00-1ae1-179ec9207e97"], ["created_at", "2017-04-15 19:04:25.731876"], ["updated_at", "2017-04-15 19:04:25.731876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11957], ["uuid", "da6128ec-2e4b-8dcd-ed35-8ffa325a0831"], ["created_at", "2017-04-15 19:04:25.734060"], ["updated_at", "2017-04-15 19:04:25.734060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11957], ["dependencies", "[{\"id\":10766,\"statuses\":[2]}]"], ["uuid", "33164e97-ffcb-b0d0-63a3-d6c019be504f"], ["created_at", "2017-04-15 19:04:25.736484"], ["updated_at", "2017-04-15 19:04:25.736484"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11957]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11957) [["id", 11957]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11957], ["created_at", "2017-04-15 19:04:25.742447"], ["updated_at", "2017-04-15 19:04:25.742447"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:04:25.744674"], ["id", 5413]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5413], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.746931"], ["updated_at", "2017-04-15 19:04:25.746931"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5413], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10766], ["process_id", 5413], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:25.750559"], ["updated_at", "2017-04-15 19:04:25.750559"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6131], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.751968"], ["updated_at", "2017-04-15 19:04:25.751968"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5413]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6131], ["parent_type", "RailsWorkflow::Operation"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7f194f54-88eb-032f-a55f-5137bb7835e7"], ["created_at", "2017-04-15 19:04:25.771574"], ["updated_at", "2017-04-15 19:04:25.771574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11958], ["uuid", "b5e38185-4a87-14c3-d61b-7a3234278605"], ["created_at", "2017-04-15 19:04:25.773895"], ["updated_at", "2017-04-15 19:04:25.773895"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11958], ["dependencies", "[{\"id\":10768,\"statuses\":[2]}]"], ["uuid", "f6d3021e-e791-ae4d-ff86-61c733a80173"], ["created_at", "2017-04-15 19:04:25.776899"], ["updated_at", "2017-04-15 19:04:25.776899"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11958]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11958) [["id", 11958]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11958], ["created_at", "2017-04-15 19:04:25.782823"], ["updated_at", "2017-04-15 19:04:25.782823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:04:25.784448"], ["id", 5414]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5414], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.786233"], ["updated_at", "2017-04-15 19:04:25.786233"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5414], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10768], ["process_id", 5414], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:25.789677"], ["updated_at", "2017-04-15 19:04:25.789677"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6132], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.791083"], ["updated_at", "2017-04-15 19:04:25.791083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9b715022-d0e9-4ed4-d2ef-807d8b4f5a1d"], ["created_at", "2017-04-15 19:04:25.796038"], ["updated_at", "2017-04-15 19:04:25.796038"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11959], ["uuid", "01e4c694-d33d-9fb9-b72e-d59ccc960cc2"], ["created_at", "2017-04-15 19:04:25.798373"], ["updated_at", "2017-04-15 19:04:25.798373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11959], ["dependencies", "[{\"id\":10770,\"statuses\":[2]}]"], ["uuid", "28b2960f-d3a2-233f-b984-6f2469e9d17e"], ["created_at", "2017-04-15 19:04:25.800701"], ["updated_at", "2017-04-15 19:04:25.800701"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11959]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11959) [["id", 11959]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11959], ["created_at", "2017-04-15 19:04:25.806197"], ["updated_at", "2017-04-15 19:04:25.806197"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:04:25.808394"], ["id", 5415]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5415], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.810465"], ["updated_at", "2017-04-15 19:04:25.810465"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5415], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10770], ["process_id", 5415], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:25.814053"], ["updated_at", "2017-04-15 19:04:25.814053"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6133], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.815435"], ["updated_at", "2017-04-15 19:04:25.815435"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:25.818543"], ["id", 5415]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5415], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:25.822566"], ["id", 6133]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [db65997d-bcbe-4a2f-afa4-c6a79289e86b] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6133 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [db65997d-bcbe-4a2f-afa4-c6a79289e86b] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6133]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [db65997d-bcbe-4a2f-afa4-c6a79289e86b]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [db65997d-bcbe-4a2f-afa4-c6a79289e86b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [db65997d-bcbe-4a2f-afa4-c6a79289e86b] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6133], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [db65997d-bcbe-4a2f-afa4-c6a79289e86b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [db65997d-bcbe-4a2f-afa4-c6a79289e86b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [db65997d-bcbe-4a2f-afa4-c6a79289e86b] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 4.99ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e13db431-a860-30fc-205b-63a8238070df"], ["created_at", "2017-04-15 19:04:25.833085"], ["updated_at", "2017-04-15 19:04:25.833085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11960], ["uuid", "cd2ac1df-482e-d5ce-e711-3b8c63c2564f"], ["created_at", "2017-04-15 19:04:25.835140"], ["updated_at", "2017-04-15 19:04:25.835140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11960], ["dependencies", "[{\"id\":10772,\"statuses\":[2]}]"], ["uuid", "54bae0a5-2b0f-67cf-13f5-fdf16dd9147b"], ["created_at", "2017-04-15 19:04:25.837893"], ["updated_at", "2017-04-15 19:04:25.837893"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11960]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11960) [["id", 11960]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11960], ["created_at", "2017-04-15 19:04:25.843501"], ["updated_at", "2017-04-15 19:04:25.843501"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:04:25.845522"], ["id", 5416]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5416], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.847376"], ["updated_at", "2017-04-15 19:04:25.847376"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5416], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10772], ["process_id", 5416], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:25.850725"], ["updated_at", "2017-04-15 19:04:25.850725"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6134], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.852066"], ["updated_at", "2017-04-15 19:04:25.852066"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:25.855033"], ["id", 5416]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5416], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:25.857677"], ["id", 6134]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [000ddc50-2676-4a66-910f-ab72b2cfbc0f] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6134 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [000ddc50-2676-4a66-910f-ab72b2cfbc0f] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6134]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [000ddc50-2676-4a66-910f-ab72b2cfbc0f]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [000ddc50-2676-4a66-910f-ab72b2cfbc0f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [000ddc50-2676-4a66-910f-ab72b2cfbc0f] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6134], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [000ddc50-2676-4a66-910f-ab72b2cfbc0f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [000ddc50-2676-4a66-910f-ab72b2cfbc0f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [000ddc50-2676-4a66-910f-ab72b2cfbc0f] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 3.35ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5416]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d7e02f9b-5463-7e3a-cf7b-d4f76996c8df"], ["created_at", "2017-04-15 19:04:25.866319"], ["updated_at", "2017-04-15 19:04:25.866319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11961], ["uuid", "77b18c6a-5063-6258-4288-1035abe414d0"], ["created_at", "2017-04-15 19:04:25.868813"], ["updated_at", "2017-04-15 19:04:25.868813"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11961], ["dependencies", "[{\"id\":10774,\"statuses\":[2]}]"], ["uuid", "2f313892-b620-31db-4b28-42f895ee9d43"], ["created_at", "2017-04-15 19:04:25.871720"], ["updated_at", "2017-04-15 19:04:25.871720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11961]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11961) [["id", 11961]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11961], ["created_at", "2017-04-15 19:04:25.877055"], ["updated_at", "2017-04-15 19:04:25.877055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:04:25.878715"], ["id", 5417]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5417], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.880511"], ["updated_at", "2017-04-15 19:04:25.880511"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5417], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10774], ["process_id", 5417], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:25.883851"], ["updated_at", "2017-04-15 19:04:25.883851"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6135], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.885188"], ["updated_at", "2017-04-15 19:04:25.885188"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:25.888357"], ["id", 5417]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5417], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:25.891115"], ["id", 6135]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6135 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6135]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6135], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:04:25.896249"], ["updated_at", "2017-04-15 19:04:25.896961"], ["id", 6135]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5417]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11961]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11961]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10774]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5417]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10774]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5417], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde] SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:04:25.909435"], ["id", 5417]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5417]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [dc69d7c9-5a6a-4803-bb8e-0260cbbd8dde] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 20.3ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5417]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:04:25.914351"], ["updated_at", "2017-04-15 19:04:25.915138"], ["id", 6135]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10774]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5417]]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5417], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:04:25.921637"], ["id", 5417]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5417]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "deedae3e-ad3b-b91f-e688-e1ec5ab4c511"], ["created_at", "2017-04-15 19:04:25.925523"], ["updated_at", "2017-04-15 19:04:25.925523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11962], ["uuid", "c3ca2420-9d40-4179-2447-5f94eebe0812"], ["created_at", "2017-04-15 19:04:25.927737"], ["updated_at", "2017-04-15 19:04:25.927737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11962], ["dependencies", "[{\"id\":10776,\"statuses\":[2]}]"], ["uuid", "859edbe0-2ffb-a2dc-3f14-0d41c5122f34"], ["created_at", "2017-04-15 19:04:25.930070"], ["updated_at", "2017-04-15 19:04:25.930070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11962]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11962) [["id", 11962]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11962], ["created_at", "2017-04-15 19:04:25.935683"], ["updated_at", "2017-04-15 19:04:25.935683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:04:25.937281"], ["id", 5418]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5418], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.939096"], ["updated_at", "2017-04-15 19:04:25.939096"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5418], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10776], ["process_id", 5418], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:25.942616"], ["updated_at", "2017-04-15 19:04:25.942616"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6136], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.943934"], ["updated_at", "2017-04-15 19:04:25.943934"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:25.947009"], ["id", 5418]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5418], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:25.950282"], ["id", 6136]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6136 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6136]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6136], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:04:25.956287"], ["updated_at", "2017-04-15 19:04:25.957348"], ["id", 6136]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5418]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11962]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11962]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10776]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5418]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10776]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10777], ["process_id", 5418], ["status", 0], ["dependencies", "[{\"operation_id\":6136,\"status\":2}]"], ["created_at", "2017-04-15 19:04:25.965072"], ["updated_at", "2017-04-15 19:04:25.965072"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6137], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:25.966477"], ["updated_at", "2017-04-15 19:04:25.966477"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:25.969812"], ["id", 6137]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6137 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6137]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6137], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:04:25.974366"], ["updated_at", "2017-04-15 19:04:25.974921"], ["id", 6137]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5418]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11962]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11962]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10777]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5418]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10777]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10776]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5418], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:04:25.983363"], ["id", 5418]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5418]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] [RailsWorkflow::OperationExecutionJob] [cd37f605-e087-441e-8614-ed84649b0a65] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 13.93ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f1e913ce-5690-4457-a88d-328ee17e5b7f] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 33.34ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5418]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:04:25.986666"], ["updated_at", "2017-04-15 19:04:25.987357"], ["id", 6136]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10776]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5418]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10777]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5418], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:04:25.993968"], ["id", 5418]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5418]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8c738d16-b6ad-3a18-6263-1ea112fe0e53"], ["created_at", "2017-04-15 19:04:25.998167"], ["updated_at", "2017-04-15 19:04:25.998167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11963], ["uuid", "d40fc837-817e-a9b6-b7cf-3ab246bb0d33"], ["created_at", "2017-04-15 19:04:26.000437"], ["updated_at", "2017-04-15 19:04:26.000437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11963], ["dependencies", "[{\"id\":10778,\"statuses\":[2]}]"], ["uuid", "97351162-fbba-ce0c-1c84-4040558829ea"], ["created_at", "2017-04-15 19:04:26.002898"], ["updated_at", "2017-04-15 19:04:26.002898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11963]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11963) [["id", 11963]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11963], ["created_at", "2017-04-15 19:04:26.008400"], ["updated_at", "2017-04-15 19:04:26.008400"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:04:26.010202"], ["id", 5419]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5419], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:26.012030"], ["updated_at", "2017-04-15 19:04:26.012030"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5419], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10778], ["process_id", 5419], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:26.015662"], ["updated_at", "2017-04-15 19:04:26.015662"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6138], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:26.017087"], ["updated_at", "2017-04-15 19:04:26.017087"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:26.020228"], ["id", 5419]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.6ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5419], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:26.023905"], ["id", 6138]]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6138 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6138]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6138], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:04:26.029349"], ["updated_at", "2017-04-15 19:04:26.029876"], ["id", 6138]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5419]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11963]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11963]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10778]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5419]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10778]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10779], ["process_id", 5419], ["status", 0], ["dependencies", "[{\"operation_id\":6138,\"status\":2}]"], ["created_at", "2017-04-15 19:04:26.037814"], ["updated_at", "2017-04-15 19:04:26.037814"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6139], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:26.039268"], ["updated_at", "2017-04-15 19:04:26.039268"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:26.042729"], ["id", 6139]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6139 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6139]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6139], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:04:26.047072"], ["updated_at", "2017-04-15 19:04:26.047591"], ["id", 6139]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5419]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11963]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11963]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10779]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5419]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10779]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10778]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5419], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:04:26.055862"], ["id", 5419]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5419]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] [RailsWorkflow::OperationExecutionJob] [cea35a95-69ed-4f91-ac67-dc718ba69795] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 13.63ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f9156c52-40b1-4537-a764-f23d4566838d] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 32.09ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5419]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:04:26.059135"], ["updated_at", "2017-04-15 19:04:26.059898"], ["id", 6138]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10778]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5419]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10779]]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5419], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:04:26.066451"], ["id", 5419]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5419]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 2], ["created_at", "2017-04-15 19:04:26.015662"], ["updated_at", "2017-04-15 19:04:26.059898"], ["completed_at", "2017-04-15 19:04:26.068565"], ["id", 6138]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8fb38c36-9a3e-882a-1116-7da0978f372b"], ["created_at", "2017-04-15 19:04:26.072855"], ["updated_at", "2017-04-15 19:04:26.072855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11964], ["uuid", "79bac903-ead8-737f-0f58-f735bb1f0aa1"], ["created_at", "2017-04-15 19:04:26.075047"], ["updated_at", "2017-04-15 19:04:26.075047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11964], ["dependencies", "[{\"id\":10780,\"statuses\":[2]}]"], ["uuid", "abe33a88-9fb4-d878-acec-3e9812d76813"], ["created_at", "2017-04-15 19:04:26.077425"], ["updated_at", "2017-04-15 19:04:26.077425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11964]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11964) [["id", 11964]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11964], ["created_at", "2017-04-15 19:04:26.082818"], ["updated_at", "2017-04-15 19:04:26.082818"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:04:26.084722"], ["id", 5420]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5420], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:26.086508"], ["updated_at", "2017-04-15 19:04:26.086508"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5420], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10780], ["process_id", 5420], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:26.090000"], ["updated_at", "2017-04-15 19:04:26.090000"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6140], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:26.091348"], ["updated_at", "2017-04-15 19:04:26.091348"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:26.094396"], ["id", 5420]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5420], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:26.097259"], ["id", 6140]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6140 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6140]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6140], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:04:26.102572"], ["updated_at", "2017-04-15 19:04:26.103127"], ["id", 6140]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5420]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11964]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11964]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10780]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5420]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10780]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10781], ["process_id", 5420], ["status", 0], ["dependencies", "[{\"operation_id\":6140,\"status\":2}]"], ["created_at", "2017-04-15 19:04:26.111489"], ["updated_at", "2017-04-15 19:04:26.111489"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6141], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:26.112905"], ["updated_at", "2017-04-15 19:04:26.112905"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:26.116369"], ["id", 6141]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6141 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6141]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6141], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:04:26.120856"], ["updated_at", "2017-04-15 19:04:26.121358"], ["id", 6141]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5420]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11964]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11964]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10781]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5420]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10781]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10780]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5420], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:04:26.136540"], ["id", 5420]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5420]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] [RailsWorkflow::OperationExecutionJob] [57ce8410-da0b-4c4e-b5a0-82d5c2db643b] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 20.66ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0e4082c9-f295-45c7-bd9b-1f701e117e42] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 39.66ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5420]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:04:26.139753"], ["updated_at", "2017-04-15 19:04:26.140439"], ["id", 6140]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10780]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5420]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10781]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5420], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:04:26.146319"], ["id", 5420]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5420]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 6], ["created_at", "2017-04-15 19:04:26.090000"], ["updated_at", "2017-04-15 19:04:26.140439"], ["completed_at", "2017-04-15 19:04:26.148242"], ["id", 6140]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "cc5515bf-7fb0-98f7-06fa-268b15cfd518"], ["created_at", "2017-04-15 19:04:26.152018"], ["updated_at", "2017-04-15 19:04:26.152018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11965], ["uuid", "cc02d20c-30f9-0cb4-8bf2-3d510387a7e5"], ["created_at", "2017-04-15 19:04:26.154151"], ["updated_at", "2017-04-15 19:04:26.154151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11965], ["dependencies", "[{\"id\":10782,\"statuses\":[2]}]"], ["uuid", "d7785578-f3ec-99b9-2fa8-83654a736d74"], ["created_at", "2017-04-15 19:04:26.156508"], ["updated_at", "2017-04-15 19:04:26.156508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11965]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11965) [["id", 11965]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11965], ["created_at", "2017-04-15 19:04:26.161709"], ["updated_at", "2017-04-15 19:04:26.161709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:04:26.163397"], ["id", 5421]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5421], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:26.165128"], ["updated_at", "2017-04-15 19:04:26.165128"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5421], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10782], ["process_id", 5421], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:26.168530"], ["updated_at", "2017-04-15 19:04:26.168530"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6142], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:26.169812"], ["updated_at", "2017-04-15 19:04:26.169812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:26.172576"], ["id", 5421]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5421], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:26.174897"], ["id", 6142]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6142 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6142]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6142], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:04:26.179492"], ["updated_at", "2017-04-15 19:04:26.180173"], ["id", 6142]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5421]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11965]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11965]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10782]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5421]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10782]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10783], ["process_id", 5421], ["status", 0], ["dependencies", "[{\"operation_id\":6142,\"status\":2}]"], ["created_at", "2017-04-15 19:04:26.187671"], ["updated_at", "2017-04-15 19:04:26.187671"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6143], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:26.189041"], ["updated_at", "2017-04-15 19:04:26.189041"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:26.192478"], ["id", 6143]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6143 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6143]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6143], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:04:26.196709"], ["updated_at", "2017-04-15 19:04:26.197233"], ["id", 6143]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5421]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11965]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11965]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10783]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5421]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10783]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10782]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5421], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:04:26.205247"], ["id", 5421]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5421]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] [RailsWorkflow::OperationExecutionJob] [c180782b-a649-4a4f-a014-bb0308f11fc9] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 13.25ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [0c097a0e-b76d-4e1e-b307-92e61b4b86cd] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 31.14ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5421]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:04:26.208392"], ["updated_at", "2017-04-15 19:04:26.209052"], ["id", 6142]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10782]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5421]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10783]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5421], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:04:26.214921"], ["id", 5421]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5421]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 5], ["created_at", "2017-04-15 19:04:26.168530"], ["updated_at", "2017-04-15 19:04:26.209052"], ["completed_at", "2017-04-15 19:04:26.216808"], ["id", 6142]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'regular_user@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "regular_user@test.com"], ["encrypted_password", "$2a$04$HqDkIbDzri9c4qVnYwp6oOG8EtK7RroU4WbyNaLVPGQOGpde28Rvi"], ["role", "regular_user"], ["created_at", "2017-04-15 19:04:26.236915"], ["updated_at", "2017-04-15 19:04:26.236915"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'admin@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "admin@test.com"], ["encrypted_password", "$2a$04$FzQCJ43bhYpWxcnRenX1senXpL/bqF8Xeg3eTeQOZugJuvVQrusbG"], ["role", "admin"], ["created_at", "2017-04-15 19:04:26.241682"], ["updated_at", "2017-04-15 19:04:26.241682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:04:26.246388"], ["updated_at", "2017-04-15 19:04:26.246388"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "User Operation Template"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:04:26.249175"], ["id", 11966]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11966]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11966], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11966], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:04:26.254351"], ["updated_at", "2017-04-15 19:04:26.254351"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:26.256738"], ["id", 10784]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11966], ["uuid", nil]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11966], ["uuid", "93104891-3f90-784a-b015-85f52228da74"], ["created_at", "2017-04-15 19:04:26.261771"], ["updated_at", "2017-04-15 19:04:26.261771"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "uuid" = $1, "title" = $2, "dependencies" = $3, "operation_class" = $4, "async" = $5, "kind" = $6, "role" = $7, "instruction" = $8, "type" = $9, "partial_name" = $10, "updated_at" = $11 WHERE "rails_workflow_operation_templates"."id" = $12 [["uuid", "af182973-7c85-52b3-91f6-c547a2310153"], ["title", "Regular User Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "regular_user"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:26.264210"], ["id", 10785]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "User Operation Template"]] SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11966]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11966) [["id", 11966]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11966], ["created_at", "2017-04-15 19:04:26.272853"], ["updated_at", "2017-04-15 19:04:26.272853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "User Operation Template"], ["status", 0], ["updated_at", "2017-04-15 19:04:26.274529"], ["id", 5422]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5422], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:04:26.276443"], ["updated_at", "2017-04-15 19:04:26.276443"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5422], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Regular User Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 10785], ["process_id", 5422], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:26.291206"], ["updated_at", "2017-04-15 19:04:26.291206"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6144], ["body", "{}"], ["created_at", "2017-04-15 19:04:26.293058"], ["updated_at", "2017-04-15 19:04:26.293058"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Admin Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 10784], ["process_id", 5422], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:26.296612"], ["updated_at", "2017-04-15 19:04:26.296612"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6145], ["body", "{}"], ["created_at", "2017-04-15 19:04:26.298103"], ["updated_at", "2017-04-15 19:04:26.298103"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:26.300980"], ["id", 5422]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5422], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:04:26.303990"], ["id", 6145]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:04:26.306073"], ["id", 6144]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/workflow/operations" for 127.0.0.1 at 2017-04-15 23:04:26 +0400 Processing by RailsWorkflow::OperationsController#index as HTML RailsWorkflow::Operation Load (0.6ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."status" = 3 ORDER BY "rails_workflow_operations"."created_at" DESC RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5422]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10784]] CACHE (0.0ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5422]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10785]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operations/index.html.slim within layouts/rails_workflow/application (18.9ms) Completed 200 OK in 153ms (Views: 144.2ms | ActiveRecord: 1.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/workflow/config" for 127.0.0.1 at 2017-04-15 23:04:26 +0400 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/application/_flash.html.slim (2.4ms) RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (13.8ms) Completed 200 OK in 17ms (Views: 16.0ms | ActiveRecord: 0.4ms) Started GET "/workflow/config/new" for 127.0.0.1 at 2017-04-15 23:04:26 +0400 Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/_form.html.slim (17.7ms) Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (23.1ms) Completed 200 OK in 26ms (Views: 25.7ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.553189"], ["updated_at", "2017-04-15 19:04:26.553189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:04:26.555229"], ["updated_at", "2017-04-15 19:04:26.555229"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5423], ["updated_at", "2017-04-15 19:04:26.556719"], ["id", 9123]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:26.561183"], ["updated_at", "2017-04-15 19:04:26.561183"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 19:04:26.563294"], ["updated_at", "2017-04-15 19:04:26.563294"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6146], ["updated_at", "2017-04-15 19:04:26.564800"], ["id", 9124]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "eb3803dd-b837-8d9c-a304-47b31f45894c"], ["created_at", "2017-04-15 19:04:26.567729"], ["updated_at", "2017-04-15 19:04:26.567729"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11967], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "33184cf3-816c-a4a5-3b8b-162b206a8d54"], ["created_at", "2017-04-15 19:04:26.570023"], ["updated_at", "2017-04-15 19:04:26.570023"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10786], ["process_id", 5423], ["status", 0], ["dependencies", "[{\"operation_id\":6146,\"status\":4}]"], ["created_at", "2017-04-15 19:04:26.580941"], ["updated_at", "2017-04-15 19:04:26.580941"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6147], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:26.582489"], ["updated_at", "2017-04-15 19:04:26.582489"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.587046"], ["updated_at", "2017-04-15 19:04:26.587046"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:04:26.588949"], ["updated_at", "2017-04-15 19:04:26.588949"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5424], ["updated_at", "2017-04-15 19:04:26.590900"], ["id", 9126]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 19:04:26.594087"], ["updated_at", "2017-04-15 19:04:26.594087"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.597648"], ["updated_at", "2017-04-15 19:04:26.597648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:04:26.599309"], ["updated_at", "2017-04-15 19:04:26.599309"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5425], ["updated_at", "2017-04-15 19:04:26.600534"], ["id", 9128]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:04:26.603130"], ["updated_at", "2017-04-15 19:04:26.603130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resource\":{\"id\":6148,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5425,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 19:04:26.605114"], ["updated_at", "2017-04-15 19:04:26.605114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.609232"], ["updated_at", "2017-04-15 19:04:26.609232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:04:26.610924"], ["updated_at", "2017-04-15 19:04:26.610924"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5426], ["updated_at", "2017-04-15 19:04:26.612090"], ["id", 9130]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:04:26.615378"], ["updated_at", "2017-04-15 19:04:26.615378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":6149,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5426,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 19:04:26.617631"], ["updated_at", "2017-04-15 19:04:26.617631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.623582"], ["updated_at", "2017-04-15 19:04:26.623582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:04:26.625926"], ["updated_at", "2017-04-15 19:04:26.625926"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5427], ["updated_at", "2017-04-15 19:04:26.627781"], ["id", 9132]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:04:26.631639"], ["updated_at", "2017-04-15 19:04:26.631639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 6150], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 19:04:26.634343"], ["updated_at", "2017-04-15 19:04:26.634343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9133]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.640261"], ["updated_at", "2017-04-15 19:04:26.640261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:04:26.642437"], ["updated_at", "2017-04-15 19:04:26.642437"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5428], ["updated_at", "2017-04-15 19:04:26.643998"], ["id", 9134]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:04:26.647670"], ["updated_at", "2017-04-15 19:04:26.647670"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 6151], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"resource\":{\"id\":6151,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5428,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 19:04:26.655578"], ["updated_at", "2017-04-15 19:04:26.655578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9135]] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6151]] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5428]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.662423"], ["updated_at", "2017-04-15 19:04:26.662423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:04:26.664222"], ["updated_at", "2017-04-15 19:04:26.664222"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5429], ["updated_at", "2017-04-15 19:04:26.665536"], ["id", 9136]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:04:26.668877"], ["updated_at", "2017-04-15 19:04:26.668877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":6152,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5429,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 19:04:26.671232"], ["updated_at", "2017-04-15 19:04:26.671232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9137]] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6152]] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5429]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.677835"], ["updated_at", "2017-04-15 19:04:26.677835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:04:26.679653"], ["updated_at", "2017-04-15 19:04:26.679653"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5430], ["updated_at", "2017-04-15 19:04:26.680962"], ["id", 9138]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "46127650-fc16-5893-f84f-dfad0ebaaa15"], ["created_at", "2017-04-15 19:04:26.684727"], ["updated_at", "2017-04-15 19:04:26.684727"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11968], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "b13288ce-8841-0baa-c474-6331f215edbd"], ["created_at", "2017-04-15 19:04:26.687373"], ["updated_at", "2017-04-15 19:04:26.687373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10787], ["process_id", 5430], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:26.691045"], ["updated_at", "2017-04-15 19:04:26.691045"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6153], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.692608"], ["updated_at", "2017-04-15 19:04:26.692608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.696466"], ["updated_at", "2017-04-15 19:04:26.696466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:04:26.698477"], ["updated_at", "2017-04-15 19:04:26.698477"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5431], ["updated_at", "2017-04-15 19:04:26.699853"], ["id", 9140]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "90fa7342-d626-6e8a-486e-5efb32814b32"], ["created_at", "2017-04-15 19:04:26.703915"], ["updated_at", "2017-04-15 19:04:26.703915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11969], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "11555afb-f210-9436-7b9b-82044db3445b"], ["created_at", "2017-04-15 19:04:26.706329"], ["updated_at", "2017-04-15 19:04:26.706329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10788], ["process_id", 5431], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:26.710409"], ["updated_at", "2017-04-15 19:04:26.710409"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6154], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.712531"], ["updated_at", "2017-04-15 19:04:26.712531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.717066"], ["updated_at", "2017-04-15 19:04:26.717066"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:04:26.719920"], ["updated_at", "2017-04-15 19:04:26.719920"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5432], ["updated_at", "2017-04-15 19:04:26.721538"], ["id", 9142]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "cacba240-dc2c-417d-873b-15fabbf80c38"], ["created_at", "2017-04-15 19:04:26.725996"], ["updated_at", "2017-04-15 19:04:26.725996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11970], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "6b402821-a55d-4060-8e0e-db2d605fc403"], ["created_at", "2017-04-15 19:04:26.728568"], ["updated_at", "2017-04-15 19:04:26.728568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10789], ["process_id", 5432], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:26.732619"], ["updated_at", "2017-04-15 19:04:26.732619"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6155], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.734508"], ["updated_at", "2017-04-15 19:04:26.734508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.738976"], ["updated_at", "2017-04-15 19:04:26.738976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:04:26.741248"], ["updated_at", "2017-04-15 19:04:26.741248"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5433], ["updated_at", "2017-04-15 19:04:26.742806"], ["id", 9144]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "843ed290-6c42-5d4e-feec-a3026a2f159e"], ["created_at", "2017-04-15 19:04:26.747613"], ["updated_at", "2017-04-15 19:04:26.747613"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11971], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "fcaea3f2-dfb7-262a-be3b-c2a8b75f4ea2"], ["created_at", "2017-04-15 19:04:26.750786"], ["updated_at", "2017-04-15 19:04:26.750786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10790], ["process_id", 5433], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:26.755637"], ["updated_at", "2017-04-15 19:04:26.755637"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6156], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.757480"], ["updated_at", "2017-04-15 19:04:26.757480"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.762841"], ["updated_at", "2017-04-15 19:04:26.762841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:04:26.765442"], ["updated_at", "2017-04-15 19:04:26.765442"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5434], ["updated_at", "2017-04-15 19:04:26.767036"], ["id", 9146]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "bbfc69ed-d9ac-59e7-00c2-0f216894e5b5"], ["created_at", "2017-04-15 19:04:26.771922"], ["updated_at", "2017-04-15 19:04:26.771922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11972], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "b297aea5-2a6b-33b0-f5ee-804485915607"], ["created_at", "2017-04-15 19:04:26.774101"], ["updated_at", "2017-04-15 19:04:26.774101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10791], ["process_id", 5434], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:26.778530"], ["updated_at", "2017-04-15 19:04:26.778530"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6157], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.780592"], ["updated_at", "2017-04-15 19:04:26.780592"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.785420"], ["updated_at", "2017-04-15 19:04:26.785420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:04:26.787545"], ["updated_at", "2017-04-15 19:04:26.787545"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5435], ["updated_at", "2017-04-15 19:04:26.788943"], ["id", 9148]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3b7a4324-ea02-adf4-896f-54878fcc6c8f"], ["created_at", "2017-04-15 19:04:26.792926"], ["updated_at", "2017-04-15 19:04:26.792926"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11973], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "b10f7d66-96d8-b1af-1153-887470fb4a60"], ["created_at", "2017-04-15 19:04:26.795311"], ["updated_at", "2017-04-15 19:04:26.795311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10792], ["process_id", 5435], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:26.799183"], ["updated_at", "2017-04-15 19:04:26.799183"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6158], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.800759"], ["updated_at", "2017-04-15 19:04:26.800759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.805215"], ["updated_at", "2017-04-15 19:04:26.805215"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:04:26.807522"], ["updated_at", "2017-04-15 19:04:26.807522"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5436], ["updated_at", "2017-04-15 19:04:26.809043"], ["id", 9150]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8abe0eaa-987f-18a8-76c5-26430c9d8348"], ["created_at", "2017-04-15 19:04:26.814299"], ["updated_at", "2017-04-15 19:04:26.814299"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b82c0522-b70c-e18a-e554-0b2c9d62402e"], ["created_at", "2017-04-15 19:04:26.816990"], ["updated_at", "2017-04-15 19:04:26.816990"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11974], ["child_process_id", 11975], ["uuid", "517e624b-469d-27ad-b1a2-49679345377b"], ["created_at", "2017-04-15 19:04:26.819319"], ["updated_at", "2017-04-15 19:04:26.819319"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1719323c-5eee-16b4-b4a6-50049d885a1d"], ["created_at", "2017-04-15 19:04:26.822518"], ["updated_at", "2017-04-15 19:04:26.822518"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11976], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "14ada170-9a72-f3e5-856b-9c609973bbc9"], ["created_at", "2017-04-15 19:04:26.825303"], ["updated_at", "2017-04-15 19:04:26.825303"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10794], ["process_id", 5436], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:26.830040"], ["updated_at", "2017-04-15 19:04:26.830040"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6159], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.831717"], ["updated_at", "2017-04-15 19:04:26.831717"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10793], ["process_id", 5436], ["status", 0], ["dependencies", "[{\"operation_id\":6159,\"status\":0}]"], ["created_at", "2017-04-15 19:04:26.835819"], ["updated_at", "2017-04-15 19:04:26.835819"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6160], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.837494"], ["updated_at", "2017-04-15 19:04:26.837494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11975]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11975) [["id", 11975]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 11975], ["created_at", "2017-04-15 19:04:26.844255"], ["updated_at", "2017-04-15 19:04:26.844255"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:04:26.846500"], ["id", 5437]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5437], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.848447"], ["updated_at", "2017-04-15 19:04:26.848447"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5437], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.853691"], ["updated_at", "2017-04-15 19:04:26.853691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:04:26.855749"], ["updated_at", "2017-04-15 19:04:26.855749"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5438], ["updated_at", "2017-04-15 19:04:26.857057"], ["id", 9154]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c8492112-c6be-e096-d7dd-2d8df5729a07"], ["created_at", "2017-04-15 19:04:26.860868"], ["updated_at", "2017-04-15 19:04:26.860868"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11977], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "198b4382-527a-7f6f-15e2-fe439120e569"], ["created_at", "2017-04-15 19:04:26.863315"], ["updated_at", "2017-04-15 19:04:26.863315"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10795], ["process_id", 5438], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:26.867366"], ["updated_at", "2017-04-15 19:04:26.867366"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6161], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.868801"], ["updated_at", "2017-04-15 19:04:26.868801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.873850"], ["updated_at", "2017-04-15 19:04:26.873850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:04:26.875909"], ["updated_at", "2017-04-15 19:04:26.875909"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5439], ["updated_at", "2017-04-15 19:04:26.877696"], ["id", 9156]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 19:04:26.882737"], ["updated_at", "2017-04-15 19:04:26.882737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ad5c5b5f-721d-fafa-322e-5877817bc434"], ["created_at", "2017-04-15 19:04:26.886102"], ["updated_at", "2017-04-15 19:04:26.886102"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11978], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "9990f3be-616e-673a-217a-550d73f2e10f"], ["created_at", "2017-04-15 19:04:26.888683"], ["updated_at", "2017-04-15 19:04:26.888683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6162], ["parent_type", "RailsWorkflow::Operation"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10796], ["process_id", 5439], ["status", 0], ["dependencies", "[{\"operation_id\":6162,\"status\":4}]"], ["created_at", "2017-04-15 19:04:26.901732"], ["updated_at", "2017-04-15 19:04:26.901732"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6163], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.903283"], ["updated_at", "2017-04-15 19:04:26.903283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.906866"], ["updated_at", "2017-04-15 19:04:26.906866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:04:26.908609"], ["updated_at", "2017-04-15 19:04:26.908609"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5440], ["updated_at", "2017-04-15 19:04:26.909779"], ["id", 9158]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a4996a62-6a51-c42a-89b1-50a708f6b70c"], ["created_at", "2017-04-15 19:04:26.913422"], ["updated_at", "2017-04-15 19:04:26.913422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11979], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "7af79e33-6e3e-1f7c-5578-238cbd3efa3d"], ["created_at", "2017-04-15 19:04:26.915399"], ["updated_at", "2017-04-15 19:04:26.915399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10797], ["process_id", 5440], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:04:26.918452"], ["updated_at", "2017-04-15 19:04:26.918452"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6164], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:26.919941"], ["updated_at", "2017-04-15 19:04:26.919941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:04:26.923364"], ["updated_at", "2017-04-15 19:04:26.923364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$wkNsWHk3ul46Nh9kLN9A9.DBusB0qOcjzU/nIbLGqYj2qsj.92b5W"], ["created_at", "2017-04-15 19:04:26.927710"], ["updated_at", "2017-04-15 19:04:26.927710"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1597], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1597], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:04:26.929473"], ["updated_at", "2017-04-15 19:04:26.931185"], ["id", 6165]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:04:26.934464"], ["updated_at", "2017-04-15 19:04:26.934464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$xentbIU2Ez0qE4lcezNgbO1XuxTIOVaOvw2AzuP0qtC1X3aHEoghy"], ["created_at", "2017-04-15 19:04:26.938529"], ["updated_at", "2017-04-15 19:04:26.938529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1598], ["assignment_type", "User"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1598], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:04:26.939914"], ["updated_at", "2017-04-15 19:04:26.941570"], ["id", 6166]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:04:26.943890"], ["updated_at", "2017-04-15 19:04:26.943890"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1598], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1598], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:04:26.945644"], ["updated_at", "2017-04-15 19:04:26.947031"], ["id", 6167]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6166]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:04:26.950889"], ["updated_at", "2017-04-15 19:04:26.950889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$8rY9hCt965BT4uMy/qXGPuzlcI/O91/90HojUWQ/Xf93uYfwpv2O6"], ["created_at", "2017-04-15 19:04:26.955342"], ["updated_at", "2017-04-15 19:04:26.955342"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1599], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1599], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:04:26.957926"], ["updated_at", "2017-04-15 19:04:26.959472"], ["id", 6168]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "updated_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["assignment_id", nil], ["assignment_type", nil], ["is_active", "f"], ["updated_at", "2017-04-15 19:04:26.961576"], ["id", 6168]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:04:26.964722"], ["updated_at", "2017-04-15 19:04:26.964722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$ze80H8MTNdyWhVQVRvWqVeG6dBFUXt4D5eCgAMb4GJVK8Cz89roOW"], ["created_at", "2017-04-15 19:04:26.968884"], ["updated_at", "2017-04-15 19:04:26.968884"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1600], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1600], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:04:26.970334"], ["updated_at", "2017-04-15 19:04:26.971802"], ["id", 6169]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$lfrsE2RmtFap3734wE8V9uAONGVcDrOyQ1SgXzwNF/XT4IsIkdF6m"], ["created_at", "2017-04-15 19:04:26.976774"], ["updated_at", "2017-04-15 19:04:26.976774"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6169]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1600]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:04:26.982715"], ["updated_at", "2017-04-15 19:04:26.982715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$mqVaiFNPZQVRC35O5wD9wOq3OWFCBNdCw5zFsLNCayYupVb44kMZK"], ["created_at", "2017-04-15 19:04:26.986873"], ["updated_at", "2017-04-15 19:04:26.986873"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1602], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1602], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:04:26.988365"], ["updated_at", "2017-04-15 19:04:26.989792"], ["id", 6170]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$70QR6vF5o6wp84lhpVq5Nue95FsSuXKBx.pixS.YszZr9oLb/4K8m"], ["created_at", "2017-04-15 19:04:26.994323"], ["updated_at", "2017-04-15 19:04:26.994323"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:04:26.997715"], ["updated_at", "2017-04-15 19:04:26.997715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$ChTcV39Dzsc1RQPtmzq.meS//VU4YbFnlRDmK1T66Df8/jXst4qda"], ["created_at", "2017-04-15 19:04:27.001841"], ["updated_at", "2017-04-15 19:04:27.001841"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1604], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1604], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:04:27.003563"], ["updated_at", "2017-04-15 19:04:27.005056"], ["id", 6171]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$Isn.LHaMkmNhbABCTktb6.gKwLJtBwKOoWYsHGZOect7L5O2D7Kd6"], ["created_at", "2017-04-15 19:04:27.009732"], ["updated_at", "2017-04-15 19:04:27.009732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "938908a8-f8f3-bd2b-6653-9ef647b20b3d"], ["created_at", "2017-04-15 19:04:27.012925"], ["updated_at", "2017-04-15 19:04:27.012925"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "role", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11980], ["role", "admin"], ["uuid", "224f520d-2ec2-70c4-296d-fd655fa652a4"], ["created_at", "2017-04-15 19:04:27.014909"], ["updated_at", "2017-04-15 19:04:27.014909"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8088cc1f-3a70-4f12-5d08-148e13ef7506"], ["created_at", "2017-04-15 19:04:27.017427"], ["updated_at", "2017-04-15 19:04:27.017427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "group", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11981], ["group", "some_group"], ["uuid", "604e1106-5a6b-6f3d-f424-77b6ff21fa16"], ["created_at", "2017-04-15 19:04:27.019213"], ["updated_at", "2017-04-15 19:04:27.019213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 10799], ["created_at", "2017-04-15 19:04:27.021865"], ["updated_at", "2017-04-15 19:04:27.021865"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 10798], ["created_at", "2017-04-15 19:04:27.025443"], ["updated_at", "2017-04-15 19:04:27.025443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$jCvAjhmDYFwrPvm2ojrIPeXAxP8.0CWru.4l7CLWTRsxXP4B6lKfq"], ["role", "admin"], ["created_at", "2017-04-15 19:04:27.030137"], ["updated_at", "2017-04-15 19:04:27.030137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.6ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'admin')  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'fake@email.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "fake@email.com"], ["encrypted_password", "$2a$04$9ZAGmYwoxDY2lv/YHqDvxeajKpdOKl140aAiAjjR8r111mjoZcZ3a"], ["role", "fake"], ["created_at", "2017-04-15 19:04:27.036389"], ["updated_at", "2017-04-15 19:04:27.036389"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'fake') SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1606], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1606], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:04:27.039574"], ["updated_at", "2017-04-15 19:04:27.040973"], ["id", 6173]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."assignment_id" IS NULL  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:04:27.045850"], ["updated_at", "2017-04-15 19:04:27.045850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:04:27.047610"], ["updated_at", "2017-04-15 19:04:27.047610"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6174], ["updated_at", "2017-04-15 19:04:27.048803"], ["id", 9160]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:04:27.050779"], ["id", 6174]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:04:27.054930"], ["updated_at", "2017-04-15 19:04:27.054930"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:04:27.057432"], ["updated_at", "2017-04-15 19:04:27.057432"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:04:27.059275"], ["updated_at", "2017-04-15 19:04:27.059275"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5441], ["updated_at", "2017-04-15 19:04:27.060429"], ["id", 9161]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "child_process_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["child_process_id", 5441], ["updated_at", "2017-04-15 19:04:27.062455"], ["id", 6175]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:27.064172"], ["id", 6175]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6175 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6175]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5441]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:04:27.068563"], ["id", 5441]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5441], ["status", 0]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6175], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8] SQL (0.5ms) INSERT INTO "rails_workflow_errors" ("parent_id", "parent_type", "message", "stack_trace", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["parent_id", 6175], ["parent_type", "RailsWorkflow::Operation"], ["message", "undefined method `save' for nil:NilClass"], ["stack_trace", "/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:60:in `execute_in_transaction'
\n/home/maxim/rails_workflow/app/jobs/rails_workflow/operation_execution_job.rb:12:in `perform'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:32:in `block in perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/i18n-0.7.0/lib/i18n.rb:257:in `with_locale'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/translation.rb:7:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:23:in `block (4 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `block in instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:22:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `block in tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:26:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:19:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_perform_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:31:in `perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:16:in `perform_now'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:28:in `starting'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:18:in `start'
\n/home/maxim/rails_workflow/spec/models/rails_workflow/operation_spec.rb:179:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `block in with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `block in with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:618:in `block in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-rails-3.4.2/lib/rspec/rails/adapters.rb:127:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:389:in `execute_with'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:620:in `block (2 levels) in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:621:in `run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:233:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:581:in `block in run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:543:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (3 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (2 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/configuration.rb:1680:in `with_suite_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:118:in `block in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/reporter.rb:77:in `report'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:117:in `run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:93:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:78:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:45:in `invoke'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/exe/rspec:4:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `kernel_load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:335:in `exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:20:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:11:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:32:in `block in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:24:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `
'"], ["created_at", "2017-04-15 19:04:27.077059"], ["updated_at", "2017-04-15 19:04:27.077059"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 140], ["parent_type", "RailsWorkflow::Error"], ["body", "{\"parent\":{\"id\":6175,\"class\":\"RailsWorkflow::Operation\"},\"target\":{\"id\":6175,\"class\":\"RailsWorkflow::Operation\"},\"method\":\"execute_in_transaction\"}"], ["created_at", "2017-04-15 19:04:27.081229"], ["updated_at", "2017-04-15 19:04:27.081229"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 140], ["parent_type", "RailsWorkflow::Error"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6175]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6175]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6175]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 4], ["updated_at", "2017-04-15 19:04:27.087294"], ["id", 6175]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [f716b19d-6487-4798-8cf8-5c45a8cb0ba8] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 23.26ms RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5441]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 2], ["completed_at", "2017-04-15 19:04:27.091787"], ["created_at", "2017-04-15 19:04:27.092344"], ["updated_at", "2017-04-15 19:04:27.092344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 6], ["completed_at", "2017-04-15 19:04:27.096286"], ["created_at", "2017-04-15 19:04:27.096824"], ["updated_at", "2017-04-15 19:04:27.096824"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 5], ["completed_at", "2017-04-15 19:04:27.101076"], ["created_at", "2017-04-15 19:04:27.101810"], ["updated_at", "2017-04-15 19:04:27.101810"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3238f543-0eb3-a973-1625-a5c1cbfa09a1"], ["created_at", "2017-04-15 19:04:27.106831"], ["updated_at", "2017-04-15 19:04:27.106831"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 11982], ["uuid", "7cc6c9fa-5d87-db64-da47-fbb3bb8ade67"], ["created_at", "2017-04-15 19:04:27.109011"], ["updated_at", "2017-04-15 19:04:27.109011"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::TestProcess"], ["uuid", "f36e8f43-3def-b4e1-a2a5-79ecd4b6ffe4"], ["created_at", "2017-04-15 19:04:27.113840"], ["updated_at", "2017-04-15 19:04:27.113840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("type", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "RailsWorkflow::TestProcess"], ["template_id", 11983], ["created_at", "2017-04-15 19:04:27.119708"], ["updated_at", "2017-04-15 19:04:27.119708"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:04:27.121979"], ["id", 5442]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5442], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:04:27.123972"], ["updated_at", "2017-04-15 19:04:27.123972"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5442], ["parent_type", "RailsWorkflow::Process"]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11983]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::Process"], ["uuid", "b282e422-4f7b-5bfc-0cf1-d2edecc73e55"], ["created_at", "2017-04-15 19:04:27.129888"], ["updated_at", "2017-04-15 19:04:27.129888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11984], ["uuid", "a84e99d3-a0a3-9e5d-3e8e-6110582d80d3"], ["created_at", "2017-04-15 19:04:27.132613"], ["updated_at", "2017-04-15 19:04:27.132613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11984], ["dependencies", "[{\"id\":10801,\"statuses\":[2]}]"], ["uuid", "874d0e1f-88fa-748b-9fe5-3be6f239b766"], ["created_at", "2017-04-15 19:04:27.134768"], ["updated_at", "2017-04-15 19:04:27.134768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11984]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (11984) [["id", 11984]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "738a9da0-1e38-3835-c60c-b55ad6124996"], ["created_at", "2017-04-15 19:04:27.142793"], ["updated_at", "2017-04-15 19:04:27.142793"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2dac2646-cee7-ec40-3413-9d2db01dd978"], ["created_at", "2017-04-15 19:04:27.145016"], ["updated_at", "2017-04-15 19:04:27.145016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "913f360c-ce21-c744-d000-a63f07762ebe"], ["created_at", "2017-04-15 19:04:27.146774"], ["updated_at", "2017-04-15 19:04:27.146774"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11986], ["child_process_id", 11987], ["uuid", "d4c9a003-cf17-5839-aed7-73a66988cde3"], ["created_at", "2017-04-15 19:04:27.148654"], ["updated_at", "2017-04-15 19:04:27.148654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11985]] SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 11985], ["updated_at", "2017-04-15 19:04:27.151636"], ["id", 10803]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11985]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11987]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2d1de655-6f49-401e-d25a-0e02e2ac336c"], ["created_at", "2017-04-15 19:04:27.159560"], ["updated_at", "2017-04-15 19:04:27.159560"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "413c5032-d928-2585-cb26-74a32f22f7ec"], ["created_at", "2017-04-15 19:04:27.162234"], ["updated_at", "2017-04-15 19:04:27.162234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 11989], ["uuid", "9b26ad3b-cc6f-5633-5be0-a31ee1a6be40"], ["created_at", "2017-04-15 19:04:27.164374"], ["updated_at", "2017-04-15 19:04:27.164374"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11988]] SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 11988], ["updated_at", "2017-04-15 19:04:27.167282"], ["id", 10804]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11988]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:04:27.174172"], ["updated_at", "2017-04-15 19:04:27.174172"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:04:27.176115"], ["id", 11990]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11990]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11990], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11990], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:04:27.180202"], ["updated_at", "2017-04-15 19:04:27.180202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.182360"], ["id", 10805]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11990], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11990], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:04:27.185706"], ["updated_at", "2017-04-15 19:04:27.185706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.187903"], ["id", 10806]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11990], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11990], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:04:27.192127"], ["updated_at", "2017-04-15 19:04:27.192127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.194724"], ["id", 10807]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10805}]"], ["updated_at", "2017-04-15 19:04:27.199221"], ["id", 10806]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10806}]"], ["updated_at", "2017-04-15 19:04:27.201843"], ["id", 10807]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:04:27.207202"], ["updated_at", "2017-04-15 19:04:27.207202"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:04:27.209320"], ["id", 11991]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11991]] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11991], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11991], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:04:27.213765"], ["updated_at", "2017-04-15 19:04:27.213765"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.216202"], ["id", 10808]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11991], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11991], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:04:27.219795"], ["updated_at", "2017-04-15 19:04:27.219795"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.221964"], ["id", 10809]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11991], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11991], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:04:27.226086"], ["updated_at", "2017-04-15 19:04:27.226086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.228478"], ["id", 10810]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10808}]"], ["updated_at", "2017-04-15 19:04:27.231916"], ["id", 10809]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10809}]"], ["updated_at", "2017-04-15 19:04:27.234377"], ["id", 10810]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Some new name"], ["updated_at", "2017-04-15 19:04:27.236782"], ["id", 11991]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Test Process"], ["updated_at", "2017-04-15 19:04:27.240002"], ["id", 11991]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11991]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11991], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11991], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:04:27.247031"], ["id", 10809]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11991], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:04:27.250540"], ["id", 10810]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10808}]"], ["updated_at", "2017-04-15 19:04:27.253729"], ["id", 10809]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10809}]"], ["updated_at", "2017-04-15 19:04:27.256571"], ["id", 10810]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:04:27.261498"], ["updated_at", "2017-04-15 19:04:27.261498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:04:27.263208"], ["id", 11992]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11992]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11992], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11992], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:04:27.267235"], ["updated_at", "2017-04-15 19:04:27.267235"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.269341"], ["id", 10811]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11992], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11992], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:04:27.272856"], ["updated_at", "2017-04-15 19:04:27.272856"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.274983"], ["id", 10812]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11992], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11992], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:04:27.278739"], ["updated_at", "2017-04-15 19:04:27.278739"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.280921"], ["id", 10813]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10811}]"], ["updated_at", "2017-04-15 19:04:27.284118"], ["id", 10812]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10812}]"], ["updated_at", "2017-04-15 19:04:27.286767"], ["id", 10813]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11992]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:04:27.293450"], ["updated_at", "2017-04-15 19:04:27.293450"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:04:27.295365"], ["id", 11993]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11993]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11993], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11993], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:04:27.299514"], ["updated_at", "2017-04-15 19:04:27.299514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.301691"], ["id", 10814]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11993], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11993], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:04:27.304814"], ["updated_at", "2017-04-15 19:04:27.304814"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.307008"], ["id", 10815]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11993], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11993], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:04:27.310505"], ["updated_at", "2017-04-15 19:04:27.310505"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.312668"], ["id", 10816]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10814}]"], ["updated_at", "2017-04-15 19:04:27.316054"], ["id", 10815]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10815}]"], ["updated_at", "2017-04-15 19:04:27.318711"], ["id", 10816]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11993]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Some new operation name"], ["updated_at", "2017-04-15 19:04:27.323369"], ["id", 10814]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11993]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11993], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Default Operation 2"], ["updated_at", "2017-04-15 19:04:27.329669"], ["id", 10814]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11993], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:04:27.332864"], ["id", 10815]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11993], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:04:27.336156"], ["id", 10816]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10814}]"], ["updated_at", "2017-04-15 19:04:27.339305"], ["id", 10815]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10815}]"], ["updated_at", "2017-04-15 19:04:27.341628"], ["id", 10816]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10814]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:04:27.346629"], ["updated_at", "2017-04-15 19:04:27.346629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:04:27.348785"], ["id", 11994]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11994]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11994], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11994], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:04:27.353094"], ["updated_at", "2017-04-15 19:04:27.353094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.355121"], ["id", 10817]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11994], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11994], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:04:27.358211"], ["updated_at", "2017-04-15 19:04:27.358211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.360272"], ["id", 10818]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11994], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11994], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:04:27.363503"], ["updated_at", "2017-04-15 19:04:27.363503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.365517"], ["id", 10819]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10817}]"], ["updated_at", "2017-04-15 19:04:27.368746"], ["id", 10818]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10818}]"], ["updated_at", "2017-04-15 19:04:27.371069"], ["id", 10819]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Some new operation"], ["process_template_id", 11994], ["uuid", "d721bf8f-08f3-d755-c89e-92dcfcb21f0b"], ["created_at", "2017-04-15 19:04:27.374075"], ["updated_at", "2017-04-15 19:04:27.374075"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11994]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11994]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11994], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11994], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:04:27.382789"], ["id", 10818]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11994], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:04:27.385999"], ["id", 10819]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = 10820  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10817}]"], ["updated_at", "2017-04-15 19:04:27.389611"], ["id", 10818]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10818}]"], ["updated_at", "2017-04-15 19:04:27.391885"], ["id", 10819]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 11994]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:04:27.397143"], ["updated_at", "2017-04-15 19:04:27.397143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:04:27.398797"], ["id", 11995]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11995]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11995], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11995], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:04:27.402349"], ["updated_at", "2017-04-15 19:04:27.402349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.404253"], ["id", 10821]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11995], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11995], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:04:27.407451"], ["updated_at", "2017-04-15 19:04:27.407451"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.409552"], ["id", 10822]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11995], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11995], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:04:27.412860"], ["updated_at", "2017-04-15 19:04:27.412860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.414869"], ["id", 10823]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10821}]"], ["updated_at", "2017-04-15 19:04:27.418014"], ["id", 10822]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10822}]"], ["updated_at", "2017-04-15 19:04:27.420401"], ["id", 10823]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10821]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:04:27.427734"], ["updated_at", "2017-04-15 19:04:27.427734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 19:04:27.430217"], ["updated_at", "2017-04-15 19:04:27.430217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:04:27.431685"], ["id", 11997]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11997]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11997], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11997], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 19:04:27.434876"], ["updated_at", "2017-04-15 19:04:27.434876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.436616"], ["id", 10824]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:04:27.439142"], ["id", 11996]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11996]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11996], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11996], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:04:27.443225"], ["updated_at", "2017-04-15 19:04:27.443225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.445145"], ["id", 10825]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11996], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11996], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:04:27.448080"], ["updated_at", "2017-04-15 19:04:27.448080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 11997], ["updated_at", "2017-04-15 19:04:27.450755"], ["id", 10826]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":10825}]"], ["updated_at", "2017-04-15 19:04:27.454709"], ["id", 10826]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:04:27.459682"], ["updated_at", "2017-04-15 19:04:27.459682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 19:04:27.461838"], ["updated_at", "2017-04-15 19:04:27.461838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:04:27.463359"], ["id", 11999]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11999]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11999], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11999], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 19:04:27.466728"], ["updated_at", "2017-04-15 19:04:27.466728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.468717"], ["id", 10827]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:04:27.471414"], ["id", 11998]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11998]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11998], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11998], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:04:27.474938"], ["updated_at", "2017-04-15 19:04:27.474938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.476963"], ["id", 10828]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 11998], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 11998], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:04:27.480025"], ["updated_at", "2017-04-15 19:04:27.480025"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 11999], ["updated_at", "2017-04-15 19:04:27.482922"], ["id", 10829]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":10828}]"], ["updated_at", "2017-04-15 19:04:27.487363"], ["id", 10829]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Parent Process"]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 11998]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 11999]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:04:27.495888"], ["updated_at", "2017-04-15 19:04:27.495888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:04:27.497716"], ["id", 12000]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12000]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12000], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12000], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:04:27.501322"], ["updated_at", "2017-04-15 19:04:27.501322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:04:27.503301"], ["id", 10830]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12000], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12000], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:04:27.506214"], ["updated_at", "2017-04-15 19:04:27.506214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8b3f8ab4-60ea-d8bf-dccd-f9865467d62f"], ["created_at", "2017-04-15 19:05:51.156339"], ["updated_at", "2017-04-15 19:05:51.156339"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12001], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "d36503a0-c012-4f5b-b166-73a906b35dce"], ["created_at", "2017-04-15 19:05:51.171103"], ["updated_at", "2017-04-15 19:05:51.171103"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#index as HTML Parameters: {"process_template_id"=>"12001"} RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12001]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 24ms (Views: 8.0ms | ActiveRecord: 0.4ms) RailsWorkflow::OperationTemplate Load (0.5ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12001]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0063fc49-af64-40e8-4f51-567705595141"], ["created_at", "2017-04-15 19:05:51.206505"], ["updated_at", "2017-04-15 19:05:51.206505"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12002], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "fae5d722-51a6-6cf5-1462-3ce8ada58334"], ["created_at", "2017-04-15 19:05:51.208939"], ["updated_at", "2017-04-15 19:05:51.208939"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#show as HTML Parameters: {"process_template_id"=>"12002", "id"=>"10833"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10833]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12002]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7e3ad42f-5796-3dea-3c56-d7f55a431005"], ["created_at", "2017-04-15 19:05:51.228059"], ["updated_at", "2017-04-15 19:05:51.228059"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a56532e6-ed20-cbc9-2036-c5806277aeef"], ["created_at", "2017-04-15 19:05:51.230375"], ["updated_at", "2017-04-15 19:05:51.230375"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#new as HTML Parameters: {"process_template_id"=>"12004"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12004]] Unpermitted parameter: process_template_id Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/new.html.slim within layouts/rails_workflow/application (0.7ms) Completed 200 OK in 7ms (Views: 2.0ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "288e2484-fa66-51d8-8d8c-af355b33c055"], ["created_at", "2017-04-15 19:05:51.246099"], ["updated_at", "2017-04-15 19:05:51.246099"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12005], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "973b031a-5bd0-66ff-1dbe-2038618e37d1"], ["created_at", "2017-04-15 19:05:51.248676"], ["updated_at", "2017-04-15 19:05:51.248676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#edit as HTML Parameters: {"process_template_id"=>"12005", "id"=>"10834"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10834]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12005]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/edit.html.slim within layouts/rails_workflow/application (0.4ms) Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "52b625e6-0dc9-f1a6-6f83-96523c3e6615"], ["created_at", "2017-04-15 19:05:51.268023"], ["updated_at", "2017-04-15 19:05:51.268023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12006", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12006"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12006]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 12006], ["uuid", "3559e4f6-7484-306d-da56-21f17688dd70"], ["created_at", "2017-04-15 19:05:51.279591"], ["updated_at", "2017-04-15 19:05:51.279591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12006/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 12006]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "84b7009f-a5f8-3b97-4958-c58f1242f7de"], ["created_at", "2017-04-15 19:05:51.289007"], ["updated_at", "2017-04-15 19:05:51.289007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate') Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12007", "type"=>"RailsWorkflow::CustomOperationTemplate"}, "process_template_id"=>"12007"} RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12007]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 12007], ["uuid", "6905f336-9eae-ceb0-8593-ea57be0fc138"], ["created_at", "2017-04-15 19:05:51.311875"], ["updated_at", "2017-04-15 19:05:51.311875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12007/operation_templates Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1c32056c-341a-a79b-8f29-7173aff21ffa"], ["created_at", "2017-04-15 19:05:51.319739"], ["updated_at", "2017-04-15 19:05:51.319739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12008", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12008"} RailsWorkflow::ProcessTemplate Load (0.6ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12008]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 12008], ["uuid", "34c1a1dd-6f4f-d958-ce92-322d0280e3a2"], ["created_at", "2017-04-15 19:05:51.329322"], ["updated_at", "2017-04-15 19:05:51.329322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12008/operation_templates Completed 302 Found in 9ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "23be3734-06ee-fdee-0caa-751ddc41581f"], ["created_at", "2017-04-15 19:05:51.336467"], ["updated_at", "2017-04-15 19:05:51.336467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12009", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12009"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12009]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 12009], ["uuid", "4d05f3fb-a0e6-c8a0-8d4c-238d1de374c7"], ["created_at", "2017-04-15 19:05:51.345388"], ["updated_at", "2017-04-15 19:05:51.345388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12009/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2f05d73a-7cd6-bc5c-9464-8cbf164f36ed"], ["created_at", "2017-04-15 19:05:51.355342"], ["updated_at", "2017-04-15 19:05:51.355342"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9661933e-bdac-09d9-ee73-b67e955d4eef"], ["created_at", "2017-04-15 19:05:51.360371"], ["updated_at", "2017-04-15 19:05:51.360371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b02394cc-17d6-46a7-bb26-dde5c29c2336"], ["created_at", "2017-04-15 19:05:51.364628"], ["updated_at", "2017-04-15 19:05:51.364628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12012], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "ee80cd25-0f3c-ba68-6f5d-dc852a5fc312"], ["created_at", "2017-04-15 19:05:51.366678"], ["updated_at", "2017-04-15 19:05:51.366678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3342c70a-c40e-c590-b60d-019639ac5cf7"], ["created_at", "2017-04-15 19:05:51.370600"], ["updated_at", "2017-04-15 19:05:51.370600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12013], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "8f8ac20f-5feb-ed46-dd27-4bb5deafcc1b"], ["created_at", "2017-04-15 19:05:51.372599"], ["updated_at", "2017-04-15 19:05:51.372599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12013", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12013", "id"=>"10840"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10840]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12013]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12013/operation_templates Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "36fa10c7-f7ee-593b-83a2-1e9daaafb386"], ["created_at", "2017-04-15 19:05:51.388080"], ["updated_at", "2017-04-15 19:05:51.388080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12014], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "90458e39-da27-8c73-4372-e3f91f569809"], ["created_at", "2017-04-15 19:05:51.390710"], ["updated_at", "2017-04-15 19:05:51.390710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12014", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12014", "id"=>"10841"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10841]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12014]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12014/operation_templates Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6d79ac70-3436-2f7e-a2c6-a7c8dd3a961b"], ["created_at", "2017-04-15 19:05:51.408422"], ["updated_at", "2017-04-15 19:05:51.408422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12015], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "c8d976ee-3ac2-dc58-f0be-ebe80eb0a993"], ["created_at", "2017-04-15 19:05:51.410878"], ["updated_at", "2017-04-15 19:05:51.410878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "fcd10e80-1fb6-27e3-c984-be2ca2f213ab"], ["created_at", "2017-04-15 19:05:51.414529"], ["updated_at", "2017-04-15 19:05:51.414529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12016], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "f0c42b49-3c13-dfc7-1b38-382f960117fe"], ["created_at", "2017-04-15 19:05:51.416559"], ["updated_at", "2017-04-15 19:05:51.416559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c7ca09ce-2da8-7cb8-330a-58fc6ad5807b"], ["created_at", "2017-04-15 19:05:51.420438"], ["updated_at", "2017-04-15 19:05:51.420438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12017], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "f56df543-765c-de33-31a6-cba8405ec34b"], ["created_at", "2017-04-15 19:05:51.422999"], ["updated_at", "2017-04-15 19:05:51.422999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12017]] Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"12017", "id"=>"10844"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10844]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12017]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 10844]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12017/operation_templates Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8f868644-9fcd-fbdc-6da3-5e481202385c"], ["created_at", "2017-04-15 19:05:51.440535"], ["updated_at", "2017-04-15 19:05:51.440535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12018], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "4ae2c091-99a8-d176-dcc4-9dfdbc5c7405"], ["created_at", "2017-04-15 19:05:51.442540"], ["updated_at", "2017-04-15 19:05:51.442540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"12018", "id"=>"10845"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10845]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12018]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 10845]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12018/operation_templates Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "53d202fd-dd64-ecab-51df-a517c413852b"], ["created_at", "2017-04-15 19:05:51.481963"], ["updated_at", "2017-04-15 19:05:51.481963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (0.3ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "91198e7b-6915-41fb-775c-68405313eed9"], ["created_at", "2017-04-15 19:05:51.496299"], ["updated_at", "2017-04-15 19:05:51.496299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#show as HTML Parameters: {"id"=>"12020"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12020]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "aeaf1c13-8a64-9dca-7746-6fc0660ab8e7"], ["created_at", "2017-04-15 19:05:51.521111"], ["updated_at", "2017-04-15 19:05:51.521111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#edit as HTML Parameters: {"id"=>"12021"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12021]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "a6009dbf-a187-bee8-a6c0-f0b08c2e635b"], ["created_at", "2017-04-15 19:05:51.542460"], ["updated_at", "2017-04-15 19:05:51.542460"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12022/operation_templates Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "59a72645-b7c6-09e9-7536-e06d66aba1fe"], ["created_at", "2017-04-15 19:05:51.554718"], ["updated_at", "2017-04-15 19:05:51.554718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12023/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "a72d427e-fa48-fc97-98f2-ec219e5c8827"], ["created_at", "2017-04-15 19:05:51.565795"], ["updated_at", "2017-04-15 19:05:51.565795"]]  (16.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12024/operation_templates Completed 302 Found in 21ms (ActiveRecord: 16.7ms) RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "dd13bdbd-3b14-54ec-dccd-5684f5e8585c"], ["created_at", "2017-04-15 19:05:51.595142"], ["updated_at", "2017-04-15 19:05:51.595142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "211b5102-9995-cfe5-45dc-801381ed8014"], ["created_at", "2017-04-15 19:05:51.598611"], ["updated_at", "2017-04-15 19:05:51.598611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"12026"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12026]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12026 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "dc0c1f2b-1f0d-58c7-3bb8-abc80df59820"], ["created_at", "2017-04-15 19:05:51.611987"], ["updated_at", "2017-04-15 19:05:51.611987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"12027"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12027]] Unpermitted parameter: id  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12027 Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "1dc804a5-9ed0-3edf-0bed-213869501d48"], ["created_at", "2017-04-15 19:05:51.627965"], ["updated_at", "2017-04-15 19:05:51.627965"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "210890ae-1916-8a89-637c-09b6d20a2068"], ["created_at", "2017-04-15 19:05:51.632223"], ["updated_at", "2017-04-15 19:05:51.632223"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "6701465d-594e-b15a-2151-4267b4ac2241"], ["created_at", "2017-04-15 19:05:51.636018"], ["updated_at", "2017-04-15 19:05:51.636018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"12030"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12030]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 12030]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "4142dae5-8311-3cd6-489c-537aca17413a"], ["created_at", "2017-04-15 19:05:51.650643"], ["updated_at", "2017-04-15 19:05:51.650643"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"12031"} RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12031]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 12031]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 5ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3c99df39-51f4-fa79-39c1-365295101b9a"], ["created_at", "2017-04-15 19:05:51.666273"], ["updated_at", "2017-04-15 19:05:51.666273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12032], ["created_at", "2017-04-15 19:05:51.674158"], ["updated_at", "2017-04-15 19:05:51.674158"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#index as HTML  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.3ms)  select status, cnt from ( select row_number() over (partition by status), count(*) over (partition by status) cnt, status from rails_workflow_processes)t where row_number = 1  Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 10ms (Views: 3.9ms | ActiveRecord: 0.7ms) RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" ASC LIMIT 30 OFFSET 0  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b46feaa0-8b7f-a94d-1ee4-492f4105b1b6"], ["created_at", "2017-04-15 19:05:51.694220"], ["updated_at", "2017-04-15 19:05:51.694220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12033], ["created_at", "2017-04-15 19:05:51.696027"], ["updated_at", "2017-04-15 19:05:51.696027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#show as HTML Parameters: {"id"=>"5444"} RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5444]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "828d3a4a-6d95-282f-a091-82ac18f3bdbd"], ["created_at", "2017-04-15 19:05:51.713174"], ["updated_at", "2017-04-15 19:05:51.713174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8e01eea5-40d8-a392-543a-0e9b085e8c7b"], ["created_at", "2017-04-15 19:05:51.721527"], ["updated_at", "2017-04-15 19:05:51.721527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12035], ["created_at", "2017-04-15 19:05:51.723217"], ["updated_at", "2017-04-15 19:05:51.723217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#edit as HTML Parameters: {"id"=>"5445"} RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5445]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d0f30599-7a48-f0bc-891a-b161abe4f17b"], ["created_at", "2017-04-15 19:05:51.739233"], ["updated_at", "2017-04-15 19:05:51.739233"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_processes" Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12036"}} SQL (0.4ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12036]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12036) [["id", 12036]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12036], ["created_at", "2017-04-15 19:05:51.755976"], ["updated_at", "2017-04-15 19:05:51.755976"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:05:51.758342"], ["id", 5446]] SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5446], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:05:51.767095"], ["updated_at", "2017-04-15 19:05:51.767095"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5446], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5446]] Redirected to http://test.host/workflow/processes/5446 Completed 302 Found in 33ms (ActiveRecord: 4.3ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9e00841a-717e-4eb2-ee42-aa929b7cfd56"], ["created_at", "2017-04-15 19:05:51.780681"], ["updated_at", "2017-04-15 19:05:51.780681"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12037"}} SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12037]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12037) [["id", 12037]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12037], ["created_at", "2017-04-15 19:05:51.789943"], ["updated_at", "2017-04-15 19:05:51.789943"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:05:51.791792"], ["id", 5447]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5447], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:05:51.793636"], ["updated_at", "2017-04-15 19:05:51.793636"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5447], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5447]] Redirected to http://test.host/workflow/processes/5447 Completed 302 Found in 14ms (ActiveRecord: 2.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0a7392d0-c849-e9fc-b71e-dc0e03fb6485"], ["created_at", "2017-04-15 19:05:51.802639"], ["updated_at", "2017-04-15 19:05:51.802639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12038"}} SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12038]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12038) [["id", 12038]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12038], ["created_at", "2017-04-15 19:05:51.811821"], ["updated_at", "2017-04-15 19:05:51.811821"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:05:51.813955"], ["id", 5448]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5448], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:05:51.815906"], ["updated_at", "2017-04-15 19:05:51.815906"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5448], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5448]] Redirected to http://test.host/workflow/processes/5448 Completed 302 Found in 15ms (ActiveRecord: 3.1ms) RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1d4ef5c8-9e0d-22fb-77e6-709ab18089d1"], ["created_at", "2017-04-15 19:05:51.828105"], ["updated_at", "2017-04-15 19:05:51.828105"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6119b1ae-8993-cd61-eb99-c82564cb05af"], ["created_at", "2017-04-15 19:05:51.832118"], ["updated_at", "2017-04-15 19:05:51.832118"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3ee5c95a-c928-5919-49b4-2b21a7bac18a"], ["created_at", "2017-04-15 19:05:51.835975"], ["updated_at", "2017-04-15 19:05:51.835975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12041], ["created_at", "2017-04-15 19:05:51.837811"], ["updated_at", "2017-04-15 19:05:51.837811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f1969ce8-b78b-1f17-94fb-ece454191003"], ["created_at", "2017-04-15 19:05:51.841008"], ["updated_at", "2017-04-15 19:05:51.841008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12042], ["created_at", "2017-04-15 19:05:51.842760"], ["updated_at", "2017-04-15 19:05:51.842760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12042"}, "id"=>"5450"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5450]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "404fbfbb-bf29-4f2c-6044-adc1af7a05a3"], ["created_at", "2017-04-15 19:05:51.854609"], ["updated_at", "2017-04-15 19:05:51.854609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12043], ["created_at", "2017-04-15 19:05:51.856501"], ["updated_at", "2017-04-15 19:05:51.856501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12043"}, "id"=>"5451"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5451]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c5804c8f-5335-b29c-39fa-e14d36d8878d"], ["created_at", "2017-04-15 19:05:51.872251"], ["updated_at", "2017-04-15 19:05:51.872251"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12044], ["created_at", "2017-04-15 19:05:51.874498"], ["updated_at", "2017-04-15 19:05:51.874498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0b358dbb-7972-5691-35ab-7db8230784f5"], ["created_at", "2017-04-15 19:05:51.877867"], ["updated_at", "2017-04-15 19:05:51.877867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12045], ["created_at", "2017-04-15 19:05:51.879720"], ["updated_at", "2017-04-15 19:05:51.879720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "689c43b3-1d7e-9f2d-16b4-ad731ded5249"], ["created_at", "2017-04-15 19:05:51.883149"], ["updated_at", "2017-04-15 19:05:51.883149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "66fdd6be-6ff2-52ec-058e-22d1ce7b4bb9"], ["created_at", "2017-04-15 19:05:51.886431"], ["updated_at", "2017-04-15 19:05:51.886431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "15334309-79f4-4652-b287-42b16e9ec1f3"], ["created_at", "2017-04-15 19:05:51.889518"], ["updated_at", "2017-04-15 19:05:51.889518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12048], ["uuid", "deade61d-b1cc-fec8-9e29-02fadfd9d444"], ["created_at", "2017-04-15 19:05:51.891833"], ["updated_at", "2017-04-15 19:05:51.891833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12048], ["dependencies", "[{\"id\":10846,\"statuses\":[2]}]"], ["uuid", "2313082b-b524-eb75-8c9b-4314181b1451"], ["created_at", "2017-04-15 19:05:51.894367"], ["updated_at", "2017-04-15 19:05:51.894367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12048]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12048) [["id", 12048]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12048], ["created_at", "2017-04-15 19:05:51.901255"], ["updated_at", "2017-04-15 19:05:51.901255"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:05:51.903088"], ["id", 5454]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5454], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:51.904966"], ["updated_at", "2017-04-15 19:05:51.904966"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5454], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10846], ["process_id", 5454], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:51.917379"], ["updated_at", "2017-04-15 19:05:51.917379"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6179], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:51.919466"], ["updated_at", "2017-04-15 19:05:51.919466"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9876e683-4a30-8b72-2a00-95d1daa539e8"], ["created_at", "2017-04-15 19:05:51.925793"], ["updated_at", "2017-04-15 19:05:51.925793"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12049], ["uuid", "67a29c9f-b4cc-521b-1fca-23c0327c1c49"], ["created_at", "2017-04-15 19:05:51.928362"], ["updated_at", "2017-04-15 19:05:51.928362"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12049], ["dependencies", "[{\"id\":10848,\"statuses\":[2]}]"], ["uuid", "c99b17ea-18a1-19e3-0e2a-eb0498955a26"], ["created_at", "2017-04-15 19:05:51.931564"], ["updated_at", "2017-04-15 19:05:51.931564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12049]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12049) [["id", 12049]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12049], ["created_at", "2017-04-15 19:05:51.936856"], ["updated_at", "2017-04-15 19:05:51.936856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:05:51.938410"], ["id", 5455]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5455], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:51.940289"], ["updated_at", "2017-04-15 19:05:51.940289"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5455], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10848], ["process_id", 5455], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:51.943782"], ["updated_at", "2017-04-15 19:05:51.943782"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6180], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:51.945122"], ["updated_at", "2017-04-15 19:05:51.945122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "559cca6b-db37-3387-4d2d-3d7c5d07a31e"], ["created_at", "2017-04-15 19:05:51.949284"], ["updated_at", "2017-04-15 19:05:51.949284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12050], ["uuid", "867b4c20-4041-62d4-0a12-ab66535bac8f"], ["created_at", "2017-04-15 19:05:51.951450"], ["updated_at", "2017-04-15 19:05:51.951450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12050], ["dependencies", "[{\"id\":10850,\"statuses\":[2]}]"], ["uuid", "ddc1b0a3-d147-982d-4f96-8b1c2f0279f8"], ["created_at", "2017-04-15 19:05:51.954032"], ["updated_at", "2017-04-15 19:05:51.954032"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 SQL (0.5ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12050]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12050) [["id", 12050]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12050], ["created_at", "2017-04-15 19:05:51.962111"], ["updated_at", "2017-04-15 19:05:51.962111"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:05:51.964983"], ["id", 5456]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5456], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:51.967023"], ["updated_at", "2017-04-15 19:05:51.967023"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5456], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10850], ["process_id", 5456], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:51.970578"], ["updated_at", "2017-04-15 19:05:51.970578"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6181], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:51.972006"], ["updated_at", "2017-04-15 19:05:51.972006"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5456]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5456]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c974f129-45bd-48ea-6de7-3cec6e63b2a1"], ["created_at", "2017-04-15 19:05:51.979145"], ["updated_at", "2017-04-15 19:05:51.979145"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12051], ["uuid", "f2040bde-304f-a18c-8b99-3a534e65ac71"], ["created_at", "2017-04-15 19:05:51.981490"], ["updated_at", "2017-04-15 19:05:51.981490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12051], ["dependencies", "[{\"id\":10852,\"statuses\":[2]}]"], ["uuid", "09da7c51-127c-90f4-f3e2-bb8c51d964d0"], ["created_at", "2017-04-15 19:05:51.983887"], ["updated_at", "2017-04-15 19:05:51.983887"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12051]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12051) [["id", 12051]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12051], ["created_at", "2017-04-15 19:05:51.989430"], ["updated_at", "2017-04-15 19:05:51.989430"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:05:51.991699"], ["id", 5457]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5457], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:51.994006"], ["updated_at", "2017-04-15 19:05:51.994006"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5457], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10852], ["process_id", 5457], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:51.997831"], ["updated_at", "2017-04-15 19:05:51.997831"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6182], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:51.999307"], ["updated_at", "2017-04-15 19:05:51.999307"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9d4b8241-c0b9-c919-6348-13c53b5aa62b"], ["created_at", "2017-04-15 19:05:52.003700"], ["updated_at", "2017-04-15 19:05:52.003700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12052], ["uuid", "244719b0-5415-6c37-15a9-35a22afa9ace"], ["created_at", "2017-04-15 19:05:52.005770"], ["updated_at", "2017-04-15 19:05:52.005770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12052], ["dependencies", "[{\"id\":10854,\"statuses\":[2]}]"], ["uuid", "50cfac19-3302-36eb-4408-983fba193493"], ["created_at", "2017-04-15 19:05:52.008131"], ["updated_at", "2017-04-15 19:05:52.008131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12052]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12052) [["id", 12052]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12052], ["created_at", "2017-04-15 19:05:52.013660"], ["updated_at", "2017-04-15 19:05:52.013660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:05:52.015264"], ["id", 5458]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5458], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.017110"], ["updated_at", "2017-04-15 19:05:52.017110"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5458], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10854], ["process_id", 5458], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:52.020612"], ["updated_at", "2017-04-15 19:05:52.020612"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6183], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.022120"], ["updated_at", "2017-04-15 19:05:52.022120"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5458]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6183], ["parent_type", "RailsWorkflow::Operation"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b6f2848c-f680-4813-9ba2-4db763bc8275"], ["created_at", "2017-04-15 19:05:52.042706"], ["updated_at", "2017-04-15 19:05:52.042706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12053], ["uuid", "8553cd86-31e7-6ccd-93d0-4bfa5fd96bb8"], ["created_at", "2017-04-15 19:05:52.045013"], ["updated_at", "2017-04-15 19:05:52.045013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12053], ["dependencies", "[{\"id\":10856,\"statuses\":[2]}]"], ["uuid", "00f6bb84-a947-b26e-cf71-78cbceef142f"], ["created_at", "2017-04-15 19:05:52.047502"], ["updated_at", "2017-04-15 19:05:52.047502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12053]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12053) [["id", 12053]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12053], ["created_at", "2017-04-15 19:05:52.053236"], ["updated_at", "2017-04-15 19:05:52.053236"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:05:52.055231"], ["id", 5459]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5459], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.057985"], ["updated_at", "2017-04-15 19:05:52.057985"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5459], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10856], ["process_id", 5459], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:52.062243"], ["updated_at", "2017-04-15 19:05:52.062243"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6184], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.063887"], ["updated_at", "2017-04-15 19:05:52.063887"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b9bb6164-a067-7b10-f6fc-0bf7281fb111"], ["created_at", "2017-04-15 19:05:52.069534"], ["updated_at", "2017-04-15 19:05:52.069534"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12054], ["uuid", "6e82f4c8-ca55-3296-0a0f-72ef1f5be09b"], ["created_at", "2017-04-15 19:05:52.071865"], ["updated_at", "2017-04-15 19:05:52.071865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12054], ["dependencies", "[{\"id\":10858,\"statuses\":[2]}]"], ["uuid", "6a9ad4f4-ba5a-4a9e-a4ab-f05709e227a4"], ["created_at", "2017-04-15 19:05:52.074122"], ["updated_at", "2017-04-15 19:05:52.074122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12054]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12054) [["id", 12054]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12054], ["created_at", "2017-04-15 19:05:52.079426"], ["updated_at", "2017-04-15 19:05:52.079426"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:05:52.081204"], ["id", 5460]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5460], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.082987"], ["updated_at", "2017-04-15 19:05:52.082987"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5460], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10858], ["process_id", 5460], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:52.086674"], ["updated_at", "2017-04-15 19:05:52.086674"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6185], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.088191"], ["updated_at", "2017-04-15 19:05:52.088191"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:52.091756"], ["id", 5460]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5460], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:52.095226"], ["id", 6185]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3f4309ec-f29d-4152-bce9-d69cfc2d1a3a] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6185 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3f4309ec-f29d-4152-bce9-d69cfc2d1a3a] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6185]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3f4309ec-f29d-4152-bce9-d69cfc2d1a3a]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3f4309ec-f29d-4152-bce9-d69cfc2d1a3a]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3f4309ec-f29d-4152-bce9-d69cfc2d1a3a] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6185], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3f4309ec-f29d-4152-bce9-d69cfc2d1a3a]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3f4309ec-f29d-4152-bce9-d69cfc2d1a3a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3f4309ec-f29d-4152-bce9-d69cfc2d1a3a] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 5.44ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "dc3e4f93-8ad5-6185-bd5f-caae9837009f"], ["created_at", "2017-04-15 19:05:52.105707"], ["updated_at", "2017-04-15 19:05:52.105707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12055], ["uuid", "eac1aa5b-cb2a-c6c4-3abb-53c0e32b157a"], ["created_at", "2017-04-15 19:05:52.107926"], ["updated_at", "2017-04-15 19:05:52.107926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12055], ["dependencies", "[{\"id\":10860,\"statuses\":[2]}]"], ["uuid", "0da3c316-0749-7f47-0678-688c6d7f0c33"], ["created_at", "2017-04-15 19:05:52.110282"], ["updated_at", "2017-04-15 19:05:52.110282"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12055]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12055) [["id", 12055]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12055], ["created_at", "2017-04-15 19:05:52.116720"], ["updated_at", "2017-04-15 19:05:52.116720"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:05:52.119121"], ["id", 5461]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5461], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.121470"], ["updated_at", "2017-04-15 19:05:52.121470"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5461], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10860], ["process_id", 5461], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:52.125265"], ["updated_at", "2017-04-15 19:05:52.125265"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6186], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.126721"], ["updated_at", "2017-04-15 19:05:52.126721"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:52.129967"], ["id", 5461]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5461], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:52.132983"], ["id", 6186]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c0327cc5-4f64-4c41-8f2a-ea2200e43b7e] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6186 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c0327cc5-4f64-4c41-8f2a-ea2200e43b7e] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6186]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c0327cc5-4f64-4c41-8f2a-ea2200e43b7e]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c0327cc5-4f64-4c41-8f2a-ea2200e43b7e]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c0327cc5-4f64-4c41-8f2a-ea2200e43b7e] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6186], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c0327cc5-4f64-4c41-8f2a-ea2200e43b7e]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c0327cc5-4f64-4c41-8f2a-ea2200e43b7e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c0327cc5-4f64-4c41-8f2a-ea2200e43b7e] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 3.65ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5461]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a2dadd16-4022-5830-31e3-7ca3af938437"], ["created_at", "2017-04-15 19:05:52.141997"], ["updated_at", "2017-04-15 19:05:52.141997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12056], ["uuid", "f1d52edb-df0f-2ffb-ffa8-13946a68072f"], ["created_at", "2017-04-15 19:05:52.144246"], ["updated_at", "2017-04-15 19:05:52.144246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12056], ["dependencies", "[{\"id\":10862,\"statuses\":[2]}]"], ["uuid", "2184e701-ed8b-e006-f1c0-b73d504821ad"], ["created_at", "2017-04-15 19:05:52.146523"], ["updated_at", "2017-04-15 19:05:52.146523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12056]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12056) [["id", 12056]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12056], ["created_at", "2017-04-15 19:05:52.152618"], ["updated_at", "2017-04-15 19:05:52.152618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:05:52.154167"], ["id", 5462]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5462], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.155912"], ["updated_at", "2017-04-15 19:05:52.155912"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5462], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10862], ["process_id", 5462], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:52.159288"], ["updated_at", "2017-04-15 19:05:52.159288"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6187], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.160588"], ["updated_at", "2017-04-15 19:05:52.160588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:52.163494"], ["id", 5462]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5462], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:52.166102"], ["id", 6187]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6187 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6187]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6187], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:05:52.170939"], ["updated_at", "2017-04-15 19:05:52.171477"], ["id", 6187]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5462]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12056]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12056]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10862]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5462]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10862]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5462], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec] SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:05:52.184061"], ["id", 5462]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5462]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6fedc93-9479-4e47-98c7-2db802765bec] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 20.08ms RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5462]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:05:52.189055"], ["updated_at", "2017-04-15 19:05:52.189832"], ["id", 6187]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10862]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5462]]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5462], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:05:52.196258"], ["id", 5462]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5462]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c9071de0-2e4e-61e9-526c-2ed02efd8563"], ["created_at", "2017-04-15 19:05:52.200668"], ["updated_at", "2017-04-15 19:05:52.200668"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12057], ["uuid", "17951491-b23d-14d3-a0e4-30cf04aec282"], ["created_at", "2017-04-15 19:05:52.202972"], ["updated_at", "2017-04-15 19:05:52.202972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12057], ["dependencies", "[{\"id\":10864,\"statuses\":[2]}]"], ["uuid", "26e178ee-04b5-ab30-e80d-7d31ef30c32f"], ["created_at", "2017-04-15 19:05:52.205277"], ["updated_at", "2017-04-15 19:05:52.205277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12057]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12057) [["id", 12057]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12057], ["created_at", "2017-04-15 19:05:52.210827"], ["updated_at", "2017-04-15 19:05:52.210827"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:05:52.212760"], ["id", 5463]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5463], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.214576"], ["updated_at", "2017-04-15 19:05:52.214576"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5463], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10864], ["process_id", 5463], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:52.217976"], ["updated_at", "2017-04-15 19:05:52.217976"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6188], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.219263"], ["updated_at", "2017-04-15 19:05:52.219263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:52.222113"], ["id", 5463]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5463], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:52.224842"], ["id", 6188]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6188 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6188]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6188], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:05:52.230626"], ["updated_at", "2017-04-15 19:05:52.231159"], ["id", 6188]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5463]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12057]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12057]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10864]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5463]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10864]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10865], ["process_id", 5463], ["status", 0], ["dependencies", "[{\"operation_id\":6188,\"status\":2}]"], ["created_at", "2017-04-15 19:05:52.239036"], ["updated_at", "2017-04-15 19:05:52.239036"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6189], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.240372"], ["updated_at", "2017-04-15 19:05:52.240372"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:52.244039"], ["id", 6189]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6189 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6189]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6189], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:05:52.248912"], ["updated_at", "2017-04-15 19:05:52.249417"], ["id", 6189]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5463]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12057]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12057]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10865]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5463]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10865]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10864]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5463], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12] SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:05:52.258335"], ["id", 5463]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5463]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] [RailsWorkflow::OperationExecutionJob] [217c6415-1a28-4da1-a16f-638c5cb7ea12] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 14.77ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e0efa2c2-b271-4524-a14a-66db6a5f9db6] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 33.68ms RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5463]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:05:52.261883"], ["updated_at", "2017-04-15 19:05:52.262642"], ["id", 6188]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10864]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5463]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10865]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5463], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:05:52.268874"], ["id", 5463]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5463]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "41b7c22b-aef3-403f-cc3e-c6ba352341e1"], ["created_at", "2017-04-15 19:05:52.272769"], ["updated_at", "2017-04-15 19:05:52.272769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12058], ["uuid", "0d3f9ac6-b58f-73d1-cde2-015f5c810ce9"], ["created_at", "2017-04-15 19:05:52.274894"], ["updated_at", "2017-04-15 19:05:52.274894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12058], ["dependencies", "[{\"id\":10866,\"statuses\":[2]}]"], ["uuid", "9ba110c4-37f1-8a9d-6c90-13f1a3917d6f"], ["created_at", "2017-04-15 19:05:52.277233"], ["updated_at", "2017-04-15 19:05:52.277233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12058]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12058) [["id", 12058]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12058], ["created_at", "2017-04-15 19:05:52.282753"], ["updated_at", "2017-04-15 19:05:52.282753"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:05:52.284771"], ["id", 5464]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5464], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.286689"], ["updated_at", "2017-04-15 19:05:52.286689"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5464], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10866], ["process_id", 5464], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:52.290193"], ["updated_at", "2017-04-15 19:05:52.290193"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6190], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.291523"], ["updated_at", "2017-04-15 19:05:52.291523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:52.294348"], ["id", 5464]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5464], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:52.296917"], ["id", 6190]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6190 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6190]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6190], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:05:52.302870"], ["updated_at", "2017-04-15 19:05:52.303382"], ["id", 6190]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5464]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12058]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12058]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10866]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5464]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10866]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10867], ["process_id", 5464], ["status", 0], ["dependencies", "[{\"operation_id\":6190,\"status\":2}]"], ["created_at", "2017-04-15 19:05:52.311401"], ["updated_at", "2017-04-15 19:05:52.311401"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6191], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.312912"], ["updated_at", "2017-04-15 19:05:52.312912"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:52.316460"], ["id", 6191]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6191 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6191]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6191], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:05:52.320891"], ["updated_at", "2017-04-15 19:05:52.321408"], ["id", 6191]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5464]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12058]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12058]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10867]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5464]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10867]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10866]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5464], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:05:52.330031"], ["id", 5464]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5464]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] [RailsWorkflow::OperationExecutionJob] [e3687c67-859a-4bc9-9dd1-9f89625d2caa] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 14.05ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6dadf4be-3ca4-41ef-a5d0-d1d11bce10fc] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 33.3ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5464]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:05:52.333395"], ["updated_at", "2017-04-15 19:05:52.334146"], ["id", 6190]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10866]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5464]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10867]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5464], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:05:52.340570"], ["id", 5464]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5464]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 2], ["created_at", "2017-04-15 19:05:52.290193"], ["updated_at", "2017-04-15 19:05:52.334146"], ["completed_at", "2017-04-15 19:05:52.342783"], ["id", 6190]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ac56e25e-0d18-78b0-c1d5-f75d51406d0e"], ["created_at", "2017-04-15 19:05:52.347081"], ["updated_at", "2017-04-15 19:05:52.347081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12059], ["uuid", "e7f27e93-ded9-9da9-4d51-9032b9830bf8"], ["created_at", "2017-04-15 19:05:52.349267"], ["updated_at", "2017-04-15 19:05:52.349267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12059], ["dependencies", "[{\"id\":10868,\"statuses\":[2]}]"], ["uuid", "d21b3e21-9cc8-0cca-6681-3ffbdbe79e2a"], ["created_at", "2017-04-15 19:05:52.351581"], ["updated_at", "2017-04-15 19:05:52.351581"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12059]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12059) [["id", 12059]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12059], ["created_at", "2017-04-15 19:05:52.357640"], ["updated_at", "2017-04-15 19:05:52.357640"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:05:52.359495"], ["id", 5465]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5465], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.361390"], ["updated_at", "2017-04-15 19:05:52.361390"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5465], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10868], ["process_id", 5465], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:52.365008"], ["updated_at", "2017-04-15 19:05:52.365008"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6192], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.366438"], ["updated_at", "2017-04-15 19:05:52.366438"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:52.369318"], ["id", 5465]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5465], ["status", 0]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:52.372298"], ["id", 6192]]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6192 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6192]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6192], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:05:52.377728"], ["updated_at", "2017-04-15 19:05:52.378254"], ["id", 6192]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5465]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12059]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12059]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10868]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5465]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10868]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10869], ["process_id", 5465], ["status", 0], ["dependencies", "[{\"operation_id\":6192,\"status\":2}]"], ["created_at", "2017-04-15 19:05:52.386425"], ["updated_at", "2017-04-15 19:05:52.386425"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6193], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.387806"], ["updated_at", "2017-04-15 19:05:52.387806"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:52.390962"], ["id", 6193]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6193 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6193]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6193], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:05:52.395538"], ["updated_at", "2017-04-15 19:05:52.396051"], ["id", 6193]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5465]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12059]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12059]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10869]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5465]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10869]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10868]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5465], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:05:52.411391"], ["id", 5465]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5465]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] [RailsWorkflow::OperationExecutionJob] [9a4325bb-a29c-4319-8fae-2533d9eb859a] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 20.81ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [a159fc71-591a-473c-94d4-65abe5764f8f] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 39.31ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5465]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:05:52.414551"], ["updated_at", "2017-04-15 19:05:52.415203"], ["id", 6192]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10868]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5465]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10869]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5465], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:05:52.421431"], ["id", 5465]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5465]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 6], ["created_at", "2017-04-15 19:05:52.365008"], ["updated_at", "2017-04-15 19:05:52.415203"], ["completed_at", "2017-04-15 19:05:52.423308"], ["id", 6192]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9cc39ce5-9ea1-22fe-dff4-267e2c5b05af"], ["created_at", "2017-04-15 19:05:52.426984"], ["updated_at", "2017-04-15 19:05:52.426984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12060], ["uuid", "bf4c457e-d34b-ce2b-ce0f-467c4a17e821"], ["created_at", "2017-04-15 19:05:52.429164"], ["updated_at", "2017-04-15 19:05:52.429164"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12060], ["dependencies", "[{\"id\":10870,\"statuses\":[2]}]"], ["uuid", "a9da23f5-44f1-c2b6-f8a6-f713d01d8324"], ["created_at", "2017-04-15 19:05:52.431907"], ["updated_at", "2017-04-15 19:05:52.431907"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12060]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12060) [["id", 12060]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12060], ["created_at", "2017-04-15 19:05:52.437552"], ["updated_at", "2017-04-15 19:05:52.437552"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:05:52.439471"], ["id", 5466]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5466], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.441286"], ["updated_at", "2017-04-15 19:05:52.441286"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5466], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10870], ["process_id", 5466], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:52.444713"], ["updated_at", "2017-04-15 19:05:52.444713"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6194], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.446029"], ["updated_at", "2017-04-15 19:05:52.446029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:52.448906"], ["id", 5466]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5466], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:52.451385"], ["id", 6194]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6194 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6194]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6194], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:05:52.457378"], ["updated_at", "2017-04-15 19:05:52.457953"], ["id", 6194]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5466]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12060]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12060]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10870]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5466]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10870]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10871], ["process_id", 5466], ["status", 0], ["dependencies", "[{\"operation_id\":6194,\"status\":2}]"], ["created_at", "2017-04-15 19:05:52.465895"], ["updated_at", "2017-04-15 19:05:52.465895"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6195], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.467290"], ["updated_at", "2017-04-15 19:05:52.467290"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:52.470340"], ["id", 6195]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6195 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6195]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6195], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:05:52.474670"], ["updated_at", "2017-04-15 19:05:52.475220"], ["id", 6195]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5466]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12060]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12060]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10871]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5466]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10871]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10870]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5466], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:05:52.483243"], ["id", 5466]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5466]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] [RailsWorkflow::OperationExecutionJob] [e37c99b2-c9df-4fde-b9ba-4373386919d2] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 13.26ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [fea0d269-e93c-4ef0-ba5e-a33aa5544c72] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 32.03ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5466]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:05:52.486391"], ["updated_at", "2017-04-15 19:05:52.487026"], ["id", 6194]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10870]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5466]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10871]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5466], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:05:52.492923"], ["id", 5466]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5466]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 5], ["created_at", "2017-04-15 19:05:52.444713"], ["updated_at", "2017-04-15 19:05:52.487026"], ["completed_at", "2017-04-15 19:05:52.494823"], ["id", 6194]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'regular_user@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "regular_user@test.com"], ["encrypted_password", "$2a$04$dJ1RJGm7No/vCqXSjku40OaJvczORg0en.kikmRpZPNPAeVm3u0hC"], ["role", "regular_user"], ["created_at", "2017-04-15 19:05:52.513574"], ["updated_at", "2017-04-15 19:05:52.513574"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'admin@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "admin@test.com"], ["encrypted_password", "$2a$04$TeC07kZAu45W03u6FfopqelKoZHC67F8b1CMmNRojO98gZDhcR/NO"], ["role", "admin"], ["created_at", "2017-04-15 19:05:52.518227"], ["updated_at", "2017-04-15 19:05:52.518227"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:05:52.522787"], ["updated_at", "2017-04-15 19:05:52.522787"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "User Operation Template"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:05:52.525237"], ["id", 12061]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12061]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12061], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12061], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:05:52.530699"], ["updated_at", "2017-04-15 19:05:52.530699"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:52.533327"], ["id", 10872]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12061], ["uuid", nil]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12061], ["uuid", "c6446d00-a78f-e24f-5219-08b064f65c5c"], ["created_at", "2017-04-15 19:05:52.538261"], ["updated_at", "2017-04-15 19:05:52.538261"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "uuid" = $1, "title" = $2, "dependencies" = $3, "operation_class" = $4, "async" = $5, "kind" = $6, "role" = $7, "instruction" = $8, "type" = $9, "partial_name" = $10, "updated_at" = $11 WHERE "rails_workflow_operation_templates"."id" = $12 [["uuid", "fe63efbe-c89a-fed1-ad91-f8df02609843"], ["title", "Regular User Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "regular_user"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:52.540806"], ["id", 10873]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "User Operation Template"]] SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12061]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12061) [["id", 12061]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12061], ["created_at", "2017-04-15 19:05:52.549180"], ["updated_at", "2017-04-15 19:05:52.549180"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "User Operation Template"], ["status", 0], ["updated_at", "2017-04-15 19:05:52.550864"], ["id", 5467]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5467], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:05:52.552783"], ["updated_at", "2017-04-15 19:05:52.552783"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5467], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Regular User Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 10873], ["process_id", 5467], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:52.567843"], ["updated_at", "2017-04-15 19:05:52.567843"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6196], ["body", "{}"], ["created_at", "2017-04-15 19:05:52.569673"], ["updated_at", "2017-04-15 19:05:52.569673"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Admin Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 10872], ["process_id", 5467], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:52.573271"], ["updated_at", "2017-04-15 19:05:52.573271"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6197], ["body", "{}"], ["created_at", "2017-04-15 19:05:52.574783"], ["updated_at", "2017-04-15 19:05:52.574783"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:52.577929"], ["id", 5467]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5467], ["status", 0]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:05:52.581453"], ["id", 6197]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:05:52.583842"], ["id", 6196]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/workflow/operations" for 127.0.0.1 at 2017-04-15 23:05:52 +0400 Processing by RailsWorkflow::OperationsController#index as HTML RailsWorkflow::Operation Load (0.6ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."status" = 3 ORDER BY "rails_workflow_operations"."created_at" DESC RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5467]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10872]] CACHE (0.0ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5467]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10873]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operations/index.html.slim within layouts/rails_workflow/application (19.1ms) Completed 200 OK in 153ms (Views: 143.9ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/workflow/config" for 127.0.0.1 at 2017-04-15 23:05:52 +0400 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/application/_flash.html.slim (2.4ms) RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (12.9ms) Completed 200 OK in 16ms (Views: 15.3ms | ActiveRecord: 0.3ms) Started GET "/workflow/config/new" for 127.0.0.1 at 2017-04-15 23:05:52 +0400 Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/_form.html.slim (17.4ms) Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (22.7ms) Completed 200 OK in 26ms (Views: 25.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:52.830095"], ["updated_at", "2017-04-15 19:05:52.830095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:05:52.832160"], ["updated_at", "2017-04-15 19:05:52.832160"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5468], ["updated_at", "2017-04-15 19:05:52.833616"], ["id", 9200]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.837779"], ["updated_at", "2017-04-15 19:05:52.837779"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 19:05:52.840087"], ["updated_at", "2017-04-15 19:05:52.840087"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6198], ["updated_at", "2017-04-15 19:05:52.841816"], ["id", 9201]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3f4e5190-026c-86af-4ef5-1392510a121f"], ["created_at", "2017-04-15 19:05:52.844389"], ["updated_at", "2017-04-15 19:05:52.844389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12062], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "fef8bf61-b36e-58bc-2de8-1a84432ccf9b"], ["created_at", "2017-04-15 19:05:52.846268"], ["updated_at", "2017-04-15 19:05:52.846268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10874], ["process_id", 5468], ["status", 0], ["dependencies", "[{\"operation_id\":6198,\"status\":4}]"], ["created_at", "2017-04-15 19:05:52.856381"], ["updated_at", "2017-04-15 19:05:52.856381"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6199], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:52.857950"], ["updated_at", "2017-04-15 19:05:52.857950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:52.862147"], ["updated_at", "2017-04-15 19:05:52.862147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:05:52.863803"], ["updated_at", "2017-04-15 19:05:52.863803"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5469], ["updated_at", "2017-04-15 19:05:52.864975"], ["id", 9203]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 19:05:52.868108"], ["updated_at", "2017-04-15 19:05:52.868108"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:52.872005"], ["updated_at", "2017-04-15 19:05:52.872005"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:05:52.873889"], ["updated_at", "2017-04-15 19:05:52.873889"]] SQL (0.4ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5470], ["updated_at", "2017-04-15 19:05:52.875077"], ["id", 9205]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:05:52.878019"], ["updated_at", "2017-04-15 19:05:52.878019"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resource\":{\"id\":6200,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5470,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 19:05:52.880501"], ["updated_at", "2017-04-15 19:05:52.880501"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:52.885102"], ["updated_at", "2017-04-15 19:05:52.885102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:05:52.886782"], ["updated_at", "2017-04-15 19:05:52.886782"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5471], ["updated_at", "2017-04-15 19:05:52.888296"], ["id", 9207]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:05:52.892037"], ["updated_at", "2017-04-15 19:05:52.892037"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":6201,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5471,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 19:05:52.895549"], ["updated_at", "2017-04-15 19:05:52.895549"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:52.901684"], ["updated_at", "2017-04-15 19:05:52.901684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:05:52.904139"], ["updated_at", "2017-04-15 19:05:52.904139"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5472], ["updated_at", "2017-04-15 19:05:52.905677"], ["id", 9209]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:05:52.909651"], ["updated_at", "2017-04-15 19:05:52.909651"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 6202], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 19:05:52.913138"], ["updated_at", "2017-04-15 19:05:52.913138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9210]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:52.918636"], ["updated_at", "2017-04-15 19:05:52.918636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:05:52.920634"], ["updated_at", "2017-04-15 19:05:52.920634"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5473], ["updated_at", "2017-04-15 19:05:52.922071"], ["id", 9211]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:05:52.932979"], ["updated_at", "2017-04-15 19:05:52.932979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 6203], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"resource\":{\"id\":6203,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5473,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 19:05:52.935763"], ["updated_at", "2017-04-15 19:05:52.935763"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9212]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6203]] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5473]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:52.942602"], ["updated_at", "2017-04-15 19:05:52.942602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:05:52.944716"], ["updated_at", "2017-04-15 19:05:52.944716"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5474], ["updated_at", "2017-04-15 19:05:52.945909"], ["id", 9213]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:05:52.949219"], ["updated_at", "2017-04-15 19:05:52.949219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":6204,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5474,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 19:05:52.951541"], ["updated_at", "2017-04-15 19:05:52.951541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9214]] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6204]] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5474]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:52.958414"], ["updated_at", "2017-04-15 19:05:52.958414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:05:52.960236"], ["updated_at", "2017-04-15 19:05:52.960236"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5475], ["updated_at", "2017-04-15 19:05:52.961770"], ["id", 9215]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0b454f23-259f-9073-95a5-4f315419591f"], ["created_at", "2017-04-15 19:05:52.966213"], ["updated_at", "2017-04-15 19:05:52.966213"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12063], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "78be6a98-d076-7f96-08a3-342c70026c86"], ["created_at", "2017-04-15 19:05:52.968624"], ["updated_at", "2017-04-15 19:05:52.968624"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10875], ["process_id", 5475], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:52.972843"], ["updated_at", "2017-04-15 19:05:52.972843"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6205], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:52.974772"], ["updated_at", "2017-04-15 19:05:52.974772"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:52.979189"], ["updated_at", "2017-04-15 19:05:52.979189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:05:52.981124"], ["updated_at", "2017-04-15 19:05:52.981124"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5476], ["updated_at", "2017-04-15 19:05:52.982738"], ["id", 9217]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4519f8c5-981f-e250-efd4-324bffb67b67"], ["created_at", "2017-04-15 19:05:52.987752"], ["updated_at", "2017-04-15 19:05:52.987752"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12064], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "f3ce9e8c-d330-0ecd-d669-958e88178099"], ["created_at", "2017-04-15 19:05:52.990506"], ["updated_at", "2017-04-15 19:05:52.990506"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10876], ["process_id", 5476], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:52.995735"], ["updated_at", "2017-04-15 19:05:52.995735"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6206], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:52.997663"], ["updated_at", "2017-04-15 19:05:52.997663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:53.002472"], ["updated_at", "2017-04-15 19:05:53.002472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:05:53.004516"], ["updated_at", "2017-04-15 19:05:53.004516"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5477], ["updated_at", "2017-04-15 19:05:53.006417"], ["id", 9219]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3e8d6af9-a321-3826-4a81-dc1f6b0757d2"], ["created_at", "2017-04-15 19:05:53.011206"], ["updated_at", "2017-04-15 19:05:53.011206"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12065], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "abed45f5-2568-0986-8c11-9b7610115ca0"], ["created_at", "2017-04-15 19:05:53.013868"], ["updated_at", "2017-04-15 19:05:53.013868"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10877], ["process_id", 5477], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:53.018215"], ["updated_at", "2017-04-15 19:05:53.018215"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6207], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:53.020289"], ["updated_at", "2017-04-15 19:05:53.020289"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:53.025580"], ["updated_at", "2017-04-15 19:05:53.025580"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:05:53.028500"], ["updated_at", "2017-04-15 19:05:53.028500"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5478], ["updated_at", "2017-04-15 19:05:53.030233"], ["id", 9221]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3c8f6c1e-5058-9af0-6201-28a7b8a93e08"], ["created_at", "2017-04-15 19:05:53.034823"], ["updated_at", "2017-04-15 19:05:53.034823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12066], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "1a3be0cf-58bf-4714-115b-5768d5780cc8"], ["created_at", "2017-04-15 19:05:53.037132"], ["updated_at", "2017-04-15 19:05:53.037132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10878], ["process_id", 5478], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:53.041485"], ["updated_at", "2017-04-15 19:05:53.041485"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6208], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:53.043305"], ["updated_at", "2017-04-15 19:05:53.043305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:53.048945"], ["updated_at", "2017-04-15 19:05:53.048945"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:05:53.051904"], ["updated_at", "2017-04-15 19:05:53.051904"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5479], ["updated_at", "2017-04-15 19:05:53.053683"], ["id", 9223]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b1d59d03-995d-f62d-6de9-9a3e36f3df67"], ["created_at", "2017-04-15 19:05:53.061218"], ["updated_at", "2017-04-15 19:05:53.061218"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12067], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "5251b5c5-63c3-e947-c65a-181f098ae21f"], ["created_at", "2017-04-15 19:05:53.064032"], ["updated_at", "2017-04-15 19:05:53.064032"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10879], ["process_id", 5479], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:53.068525"], ["updated_at", "2017-04-15 19:05:53.068525"]] SQL (0.5ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6209], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:53.070510"], ["updated_at", "2017-04-15 19:05:53.070510"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:53.075195"], ["updated_at", "2017-04-15 19:05:53.075195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:05:53.077200"], ["updated_at", "2017-04-15 19:05:53.077200"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5480], ["updated_at", "2017-04-15 19:05:53.078662"], ["id", 9225]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9ca10cef-520d-97d2-f491-132ed2de01fd"], ["created_at", "2017-04-15 19:05:53.083089"], ["updated_at", "2017-04-15 19:05:53.083089"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12068], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "48d01f9e-a04f-8737-627a-ec5621c45e38"], ["created_at", "2017-04-15 19:05:53.085789"], ["updated_at", "2017-04-15 19:05:53.085789"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10880], ["process_id", 5480], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:53.090051"], ["updated_at", "2017-04-15 19:05:53.090051"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6210], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:53.092457"], ["updated_at", "2017-04-15 19:05:53.092457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:53.096960"], ["updated_at", "2017-04-15 19:05:53.096960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:05:53.098965"], ["updated_at", "2017-04-15 19:05:53.098965"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5481], ["updated_at", "2017-04-15 19:05:53.100397"], ["id", 9227]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9ef443e7-b9a0-0b98-41b8-bf24c8126d64"], ["created_at", "2017-04-15 19:05:53.105187"], ["updated_at", "2017-04-15 19:05:53.105187"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "28d357c4-70cd-8050-f809-ee9db448b650"], ["created_at", "2017-04-15 19:05:53.107693"], ["updated_at", "2017-04-15 19:05:53.107693"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12069], ["child_process_id", 12070], ["uuid", "e75cbf58-db23-aae1-4573-2e0a1e0f4224"], ["created_at", "2017-04-15 19:05:53.110348"], ["updated_at", "2017-04-15 19:05:53.110348"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9e0a4ace-7031-2035-542d-f873fa3bde12"], ["created_at", "2017-04-15 19:05:53.113469"], ["updated_at", "2017-04-15 19:05:53.113469"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12071], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "edf8f76d-8d13-8a23-3099-c32412821b29"], ["created_at", "2017-04-15 19:05:53.115781"], ["updated_at", "2017-04-15 19:05:53.115781"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10882], ["process_id", 5481], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:53.121164"], ["updated_at", "2017-04-15 19:05:53.121164"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6211], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:53.123163"], ["updated_at", "2017-04-15 19:05:53.123163"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10881], ["process_id", 5481], ["status", 0], ["dependencies", "[{\"operation_id\":6211,\"status\":0}]"], ["created_at", "2017-04-15 19:05:53.127565"], ["updated_at", "2017-04-15 19:05:53.127565"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6212], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:53.129214"], ["updated_at", "2017-04-15 19:05:53.129214"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12070]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12070) [["id", 12070]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12070], ["created_at", "2017-04-15 19:05:53.136107"], ["updated_at", "2017-04-15 19:05:53.136107"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:05:53.138204"], ["id", 5482]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5482], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:53.140460"], ["updated_at", "2017-04-15 19:05:53.140460"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5482], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:53.145625"], ["updated_at", "2017-04-15 19:05:53.145625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:05:53.147475"], ["updated_at", "2017-04-15 19:05:53.147475"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5483], ["updated_at", "2017-04-15 19:05:53.148801"], ["id", 9231]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8b49a82d-ecfd-622d-c61d-fb44f05352fc"], ["created_at", "2017-04-15 19:05:53.152599"], ["updated_at", "2017-04-15 19:05:53.152599"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12072], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "84ce65e8-7d5c-1e67-ae42-4bd2ad13a80e"], ["created_at", "2017-04-15 19:05:53.155452"], ["updated_at", "2017-04-15 19:05:53.155452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10883], ["process_id", 5483], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:53.159275"], ["updated_at", "2017-04-15 19:05:53.159275"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6213], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:53.160990"], ["updated_at", "2017-04-15 19:05:53.160990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:53.165773"], ["updated_at", "2017-04-15 19:05:53.165773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:05:53.168125"], ["updated_at", "2017-04-15 19:05:53.168125"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5484], ["updated_at", "2017-04-15 19:05:53.169623"], ["id", 9233]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 19:05:53.174168"], ["updated_at", "2017-04-15 19:05:53.174168"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0f1d9730-9168-cdac-56f8-f4b2bb190196"], ["created_at", "2017-04-15 19:05:53.177333"], ["updated_at", "2017-04-15 19:05:53.177333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12073], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "a7d1b215-153d-cbdc-7123-54bd64e161ef"], ["created_at", "2017-04-15 19:05:53.179860"], ["updated_at", "2017-04-15 19:05:53.179860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6214], ["parent_type", "RailsWorkflow::Operation"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10884], ["process_id", 5484], ["status", 0], ["dependencies", "[{\"operation_id\":6214,\"status\":4}]"], ["created_at", "2017-04-15 19:05:53.185336"], ["updated_at", "2017-04-15 19:05:53.185336"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6215], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:53.187560"], ["updated_at", "2017-04-15 19:05:53.187560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:53.197906"], ["updated_at", "2017-04-15 19:05:53.197906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:05:53.199522"], ["updated_at", "2017-04-15 19:05:53.199522"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5485], ["updated_at", "2017-04-15 19:05:53.200638"], ["id", 9235]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "64e72171-d6b7-7f0c-4836-48c6ad5a175a"], ["created_at", "2017-04-15 19:05:53.203433"], ["updated_at", "2017-04-15 19:05:53.203433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12074], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "b0a442f1-ea97-acd7-1bbd-579bdf86cc51"], ["created_at", "2017-04-15 19:05:53.205240"], ["updated_at", "2017-04-15 19:05:53.205240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10885], ["process_id", 5485], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:05:53.208310"], ["updated_at", "2017-04-15 19:05:53.208310"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6216], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:53.209679"], ["updated_at", "2017-04-15 19:05:53.209679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:05:53.212989"], ["updated_at", "2017-04-15 19:05:53.212989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$b30NMpIKNLtSRYq/Mk.fx.aM.xPtpJN7Lm6Z416DFX6xFB5YK0JSG"], ["created_at", "2017-04-15 19:05:53.217851"], ["updated_at", "2017-04-15 19:05:53.217851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1610], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1610], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:05:53.219440"], ["updated_at", "2017-04-15 19:05:53.220704"], ["id", 6217]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:05:53.223444"], ["updated_at", "2017-04-15 19:05:53.223444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$h0AGtyA5w6C8/OdjXp4HZewtOiifHgDZcYBuvKMFXrIWdTDpnozHO"], ["created_at", "2017-04-15 19:05:53.227903"], ["updated_at", "2017-04-15 19:05:53.227903"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1611], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1611], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:05:53.229634"], ["updated_at", "2017-04-15 19:05:53.231087"], ["id", 6218]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:05:53.233314"], ["updated_at", "2017-04-15 19:05:53.233314"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1611], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1611], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:05:53.234935"], ["updated_at", "2017-04-15 19:05:53.236134"], ["id", 6219]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6218]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:05:53.240213"], ["updated_at", "2017-04-15 19:05:53.240213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$wwXP2AwPRruC31jl6e14keMf2qyX.fEE7Wr82qMzl4RHfbCs2cSDu"], ["created_at", "2017-04-15 19:05:53.244329"], ["updated_at", "2017-04-15 19:05:53.244329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1612], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1612], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:05:53.245778"], ["updated_at", "2017-04-15 19:05:53.247293"], ["id", 6220]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "updated_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["assignment_id", nil], ["assignment_type", nil], ["is_active", "f"], ["updated_at", "2017-04-15 19:05:53.249401"], ["id", 6220]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:05:53.252378"], ["updated_at", "2017-04-15 19:05:53.252378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$pt6/gOpha2XXtveWliWNMetZtwgHRMH/WU6uLP2vrziBxKRpcEbiW"], ["created_at", "2017-04-15 19:05:53.256474"], ["updated_at", "2017-04-15 19:05:53.256474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1613], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1613], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:05:53.257895"], ["updated_at", "2017-04-15 19:05:53.259103"], ["id", 6221]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$QHphYAQrlcAfGAPb3NhWZ.XQ4.yGLS2PsfCMU2hOnOgeLdMt4Rcgu"], ["created_at", "2017-04-15 19:05:53.263310"], ["updated_at", "2017-04-15 19:05:53.263310"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6221]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1613]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:05:53.268854"], ["updated_at", "2017-04-15 19:05:53.268854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$vXgBZKDX5Ru57UNSFmNauOImsszJBPYUetUU6v6hDQN6UqkOLB.3S"], ["created_at", "2017-04-15 19:05:53.273034"], ["updated_at", "2017-04-15 19:05:53.273034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1615], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1615], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:05:53.274457"], ["updated_at", "2017-04-15 19:05:53.275807"], ["id", 6222]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$oJfQu3v7iyQjinn0Dh8Krubx51VV6hhkdQhRfNpbDpM3PzaYRLah6"], ["created_at", "2017-04-15 19:05:53.280509"], ["updated_at", "2017-04-15 19:05:53.280509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:05:53.283395"], ["updated_at", "2017-04-15 19:05:53.283395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$1U2h71xXAu0WkfpCKZOp6OaIsH3n.uhE1ZL8hFfNU9Voy7Qu4gktS"], ["created_at", "2017-04-15 19:05:53.287404"], ["updated_at", "2017-04-15 19:05:53.287404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1617], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1617], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:05:53.288738"], ["updated_at", "2017-04-15 19:05:53.289827"], ["id", 6223]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$eZP/yr4YWzPMEhgg6QegUeKtlxWmp55WrBg.y3jbpkW3UQVf3PG42"], ["created_at", "2017-04-15 19:05:53.293867"], ["updated_at", "2017-04-15 19:05:53.293867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "23e652b2-372b-7b8c-cf79-ab92db377fb8"], ["created_at", "2017-04-15 19:05:53.297033"], ["updated_at", "2017-04-15 19:05:53.297033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "role", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12075], ["role", "admin"], ["uuid", "f210d97d-b80e-76a8-84a2-d2426d76356c"], ["created_at", "2017-04-15 19:05:53.298976"], ["updated_at", "2017-04-15 19:05:53.298976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7564e2e2-608f-ad1f-af44-321a5d72c4d6"], ["created_at", "2017-04-15 19:05:53.301767"], ["updated_at", "2017-04-15 19:05:53.301767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "group", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12076], ["group", "some_group"], ["uuid", "bdce8499-5e10-445d-7d98-8cd55ecfb3a2"], ["created_at", "2017-04-15 19:05:53.303711"], ["updated_at", "2017-04-15 19:05:53.303711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 10887], ["created_at", "2017-04-15 19:05:53.305990"], ["updated_at", "2017-04-15 19:05:53.305990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 10886], ["created_at", "2017-04-15 19:05:53.308137"], ["updated_at", "2017-04-15 19:05:53.308137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$TW3KS/A3ivRTDsJQIcuLcetzNRL4jzrUX5kNjT5Om7NqzYQ3MRZHO"], ["role", "admin"], ["created_at", "2017-04-15 19:05:53.313132"], ["updated_at", "2017-04-15 19:05:53.313132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'admin')  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'fake@email.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "fake@email.com"], ["encrypted_password", "$2a$04$hHvtZk4E81s7v8.ftKMPZO738rea8.B0VIQNbLxMc6y0H83ZGqBq2"], ["role", "fake"], ["created_at", "2017-04-15 19:05:53.318974"], ["updated_at", "2017-04-15 19:05:53.318974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'fake') SQL (0.1ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1619], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1619], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:05:53.321626"], ["updated_at", "2017-04-15 19:05:53.322773"], ["id", 6225]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."assignment_id" IS NULL  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:05:53.326605"], ["updated_at", "2017-04-15 19:05:53.326605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:05:53.328283"], ["updated_at", "2017-04-15 19:05:53.328283"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6226], ["updated_at", "2017-04-15 19:05:53.329486"], ["id", 9237]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:05:53.331453"], ["id", 6226]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:05:53.334792"], ["updated_at", "2017-04-15 19:05:53.334792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:05:53.336891"], ["updated_at", "2017-04-15 19:05:53.336891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:05:53.338437"], ["updated_at", "2017-04-15 19:05:53.338437"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5486], ["updated_at", "2017-04-15 19:05:53.339606"], ["id", 9238]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "child_process_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["child_process_id", 5486], ["updated_at", "2017-04-15 19:05:53.341726"], ["id", 6227]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:53.343782"], ["id", 6227]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6227 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6227]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5486]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:05:53.347538"], ["id", 5486]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5486], ["status", 0]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6227], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c] SQL (0.5ms) INSERT INTO "rails_workflow_errors" ("parent_id", "parent_type", "message", "stack_trace", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["parent_id", 6227], ["parent_type", "RailsWorkflow::Operation"], ["message", "undefined method `save' for nil:NilClass"], ["stack_trace", "/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:60:in `execute_in_transaction'
\n/home/maxim/rails_workflow/app/jobs/rails_workflow/operation_execution_job.rb:12:in `perform'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:32:in `block in perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/i18n-0.7.0/lib/i18n.rb:257:in `with_locale'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/translation.rb:7:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:23:in `block (4 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `block in instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:22:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `block in tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:26:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:19:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_perform_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:31:in `perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:16:in `perform_now'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:28:in `starting'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:18:in `start'
\n/home/maxim/rails_workflow/spec/models/rails_workflow/operation_spec.rb:179:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `block in with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `block in with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:618:in `block in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-rails-3.4.2/lib/rspec/rails/adapters.rb:127:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:389:in `execute_with'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:620:in `block (2 levels) in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:621:in `run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:233:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:581:in `block in run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:543:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (3 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (2 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/configuration.rb:1680:in `with_suite_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:118:in `block in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/reporter.rb:77:in `report'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:117:in `run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:93:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:78:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:45:in `invoke'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/exe/rspec:4:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `kernel_load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:335:in `exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:20:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:11:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:32:in `block in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:24:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `
'"], ["created_at", "2017-04-15 19:05:53.354759"], ["updated_at", "2017-04-15 19:05:53.354759"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 141], ["parent_type", "RailsWorkflow::Error"], ["body", "{\"parent\":{\"id\":6227,\"class\":\"RailsWorkflow::Operation\"},\"target\":{\"id\":6227,\"class\":\"RailsWorkflow::Operation\"},\"method\":\"execute_in_transaction\"}"], ["created_at", "2017-04-15 19:05:53.358623"], ["updated_at", "2017-04-15 19:05:53.358623"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 141], ["parent_type", "RailsWorkflow::Error"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6227]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6227]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6227]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c] SQL (0.1ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 4], ["updated_at", "2017-04-15 19:05:53.363948"], ["id", 6227]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aa64361-b110-4497-bd02-94179b2ff46c] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 20.13ms RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5486]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 2], ["completed_at", "2017-04-15 19:05:53.368067"], ["created_at", "2017-04-15 19:05:53.368615"], ["updated_at", "2017-04-15 19:05:53.368615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 6], ["completed_at", "2017-04-15 19:05:53.372161"], ["created_at", "2017-04-15 19:05:53.373017"], ["updated_at", "2017-04-15 19:05:53.373017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 5], ["completed_at", "2017-04-15 19:05:53.377549"], ["created_at", "2017-04-15 19:05:53.378136"], ["updated_at", "2017-04-15 19:05:53.378136"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f8b55e1d-79d8-1567-f95c-32d31f7f3976"], ["created_at", "2017-04-15 19:05:53.382709"], ["updated_at", "2017-04-15 19:05:53.382709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 12077], ["uuid", "b992e393-ab94-c726-3f3c-b14dd714e078"], ["created_at", "2017-04-15 19:05:53.384655"], ["updated_at", "2017-04-15 19:05:53.384655"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::TestProcess"], ["uuid", "99eb66bf-fc45-9e2e-7867-828b1b386c51"], ["created_at", "2017-04-15 19:05:53.389473"], ["updated_at", "2017-04-15 19:05:53.389473"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("type", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "RailsWorkflow::TestProcess"], ["template_id", 12078], ["created_at", "2017-04-15 19:05:53.395723"], ["updated_at", "2017-04-15 19:05:53.395723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:05:53.397777"], ["id", 5487]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5487], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:05:53.399868"], ["updated_at", "2017-04-15 19:05:53.399868"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5487], ["parent_type", "RailsWorkflow::Process"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12078]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::Process"], ["uuid", "a21e2b9e-ef7f-ff81-7393-6102d3e9f238"], ["created_at", "2017-04-15 19:05:53.406231"], ["updated_at", "2017-04-15 19:05:53.406231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12079], ["uuid", "47b3633c-de1e-4f01-023a-1f7375bc1a19"], ["created_at", "2017-04-15 19:05:53.409163"], ["updated_at", "2017-04-15 19:05:53.409163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12079], ["dependencies", "[{\"id\":10889,\"statuses\":[2]}]"], ["uuid", "aef72d1b-cfbe-9e8a-2bf1-df0336e52f42"], ["created_at", "2017-04-15 19:05:53.411649"], ["updated_at", "2017-04-15 19:05:53.411649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12079]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12079) [["id", 12079]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f22efe6c-6c1a-6e8d-5446-e03553b7d525"], ["created_at", "2017-04-15 19:05:53.420411"], ["updated_at", "2017-04-15 19:05:53.420411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a054c6e5-1701-2794-06f2-655aa866a920"], ["created_at", "2017-04-15 19:05:53.422560"], ["updated_at", "2017-04-15 19:05:53.422560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0d141b11-d11d-4049-7b4e-f5fe417e2a3c"], ["created_at", "2017-04-15 19:05:53.424396"], ["updated_at", "2017-04-15 19:05:53.424396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12081], ["child_process_id", 12082], ["uuid", "b951444e-b2c4-2695-7040-2c90c908d469"], ["created_at", "2017-04-15 19:05:53.426169"], ["updated_at", "2017-04-15 19:05:53.426169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12080]] SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 12080], ["updated_at", "2017-04-15 19:05:53.429274"], ["id", 10891]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12080]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12082]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "15839dc7-6256-eff8-a0d1-20aa70bd7fa7"], ["created_at", "2017-04-15 19:05:53.437462"], ["updated_at", "2017-04-15 19:05:53.437462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a9975ed9-58e1-a992-0800-fd08008b6a36"], ["created_at", "2017-04-15 19:05:53.440278"], ["updated_at", "2017-04-15 19:05:53.440278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12084], ["uuid", "52837fbc-4a8a-a9d9-d9f5-89a453e714d4"], ["created_at", "2017-04-15 19:05:53.442044"], ["updated_at", "2017-04-15 19:05:53.442044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12083]] SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 12083], ["updated_at", "2017-04-15 19:05:53.445091"], ["id", 10892]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12083]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:05:53.452542"], ["updated_at", "2017-04-15 19:05:53.452542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:05:53.454357"], ["id", 12085]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12085]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12085], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12085], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:05:53.458705"], ["updated_at", "2017-04-15 19:05:53.458705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.461053"], ["id", 10893]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12085], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12085], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:05:53.465370"], ["updated_at", "2017-04-15 19:05:53.465370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.468541"], ["id", 10894]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12085], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12085], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:05:53.473521"], ["updated_at", "2017-04-15 19:05:53.473521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.475925"], ["id", 10895]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10893}]"], ["updated_at", "2017-04-15 19:05:53.480783"], ["id", 10894]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10894}]"], ["updated_at", "2017-04-15 19:05:53.483911"], ["id", 10895]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:05:53.489505"], ["updated_at", "2017-04-15 19:05:53.489505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:05:53.491446"], ["id", 12086]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12086]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12086], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12086], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:05:53.495935"], ["updated_at", "2017-04-15 19:05:53.495935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.498078"], ["id", 10896]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12086], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12086], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:05:53.502243"], ["updated_at", "2017-04-15 19:05:53.502243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.504736"], ["id", 10897]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12086], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12086], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:05:53.508324"], ["updated_at", "2017-04-15 19:05:53.508324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.510608"], ["id", 10898]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10896}]"], ["updated_at", "2017-04-15 19:05:53.514322"], ["id", 10897]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10897}]"], ["updated_at", "2017-04-15 19:05:53.517108"], ["id", 10898]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Some new name"], ["updated_at", "2017-04-15 19:05:53.519725"], ["id", 12086]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Test Process"], ["updated_at", "2017-04-15 19:05:53.522791"], ["id", 12086]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12086]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12086], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12086], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:05:53.529456"], ["id", 10897]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12086], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:05:53.533116"], ["id", 10898]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10896}]"], ["updated_at", "2017-04-15 19:05:53.536652"], ["id", 10897]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10897}]"], ["updated_at", "2017-04-15 19:05:53.539393"], ["id", 10898]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:05:53.543843"], ["updated_at", "2017-04-15 19:05:53.543843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:05:53.545469"], ["id", 12087]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12087]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12087], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12087], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:05:53.549075"], ["updated_at", "2017-04-15 19:05:53.549075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.550953"], ["id", 10899]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12087], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12087], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:05:53.554428"], ["updated_at", "2017-04-15 19:05:53.554428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.556650"], ["id", 10900]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12087], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12087], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:05:53.559772"], ["updated_at", "2017-04-15 19:05:53.559772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.561678"], ["id", 10901]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10899}]"], ["updated_at", "2017-04-15 19:05:53.564814"], ["id", 10900]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10900}]"], ["updated_at", "2017-04-15 19:05:53.567013"], ["id", 10901]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 12087]]  (0.4ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:05:53.573518"], ["updated_at", "2017-04-15 19:05:53.573518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:05:53.575156"], ["id", 12088]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12088]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12088], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12088], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:05:53.579915"], ["updated_at", "2017-04-15 19:05:53.579915"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.582641"], ["id", 10902]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12088], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12088], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:05:53.586118"], ["updated_at", "2017-04-15 19:05:53.586118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.588121"], ["id", 10903]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12088], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12088], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:05:53.591389"], ["updated_at", "2017-04-15 19:05:53.591389"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.593508"], ["id", 10904]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10902}]"], ["updated_at", "2017-04-15 19:05:53.596915"], ["id", 10903]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10903}]"], ["updated_at", "2017-04-15 19:05:53.599805"], ["id", 10904]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12088]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Some new operation name"], ["updated_at", "2017-04-15 19:05:53.604511"], ["id", 10902]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12088]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12088], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Default Operation 2"], ["updated_at", "2017-04-15 19:05:53.610961"], ["id", 10902]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12088], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:05:53.614115"], ["id", 10903]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12088], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:05:53.617732"], ["id", 10904]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10902}]"], ["updated_at", "2017-04-15 19:05:53.620829"], ["id", 10903]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10903}]"], ["updated_at", "2017-04-15 19:05:53.623090"], ["id", 10904]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10902]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:05:53.627650"], ["updated_at", "2017-04-15 19:05:53.627650"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:05:53.629722"], ["id", 12089]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12089]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12089], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12089], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:05:53.634537"], ["updated_at", "2017-04-15 19:05:53.634537"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.636878"], ["id", 10905]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12089], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12089], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:05:53.640008"], ["updated_at", "2017-04-15 19:05:53.640008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.642008"], ["id", 10906]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12089], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12089], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:05:53.645222"], ["updated_at", "2017-04-15 19:05:53.645222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.647327"], ["id", 10907]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10905}]"], ["updated_at", "2017-04-15 19:05:53.650548"], ["id", 10906]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10906}]"], ["updated_at", "2017-04-15 19:05:53.652855"], ["id", 10907]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Some new operation"], ["process_template_id", 12089], ["uuid", "80110ebd-1c57-d5eb-7f37-cb552303dfa3"], ["created_at", "2017-04-15 19:05:53.655971"], ["updated_at", "2017-04-15 19:05:53.655971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 12089]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12089]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12089], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12089], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:05:53.664690"], ["id", 10906]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12089], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:05:53.667841"], ["id", 10907]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = 10908  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10905}]"], ["updated_at", "2017-04-15 19:05:53.671519"], ["id", 10906]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10906}]"], ["updated_at", "2017-04-15 19:05:53.673809"], ["id", 10907]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 12089]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:05:53.679235"], ["updated_at", "2017-04-15 19:05:53.679235"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:05:53.681086"], ["id", 12090]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12090]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12090], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12090], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:05:53.684973"], ["updated_at", "2017-04-15 19:05:53.684973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.686966"], ["id", 10909]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12090], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12090], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:05:53.690265"], ["updated_at", "2017-04-15 19:05:53.690265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.692292"], ["id", 10910]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12090], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12090], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:05:53.695534"], ["updated_at", "2017-04-15 19:05:53.695534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.697544"], ["id", 10911]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10909}]"], ["updated_at", "2017-04-15 19:05:53.701389"], ["id", 10910]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10910}]"], ["updated_at", "2017-04-15 19:05:53.703935"], ["id", 10911]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10909]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:05:53.709535"], ["updated_at", "2017-04-15 19:05:53.709535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 19:05:53.712012"], ["updated_at", "2017-04-15 19:05:53.712012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:05:53.713859"], ["id", 12092]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12092]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12092], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12092], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 19:05:53.717954"], ["updated_at", "2017-04-15 19:05:53.717954"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.720238"], ["id", 10912]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:05:53.722951"], ["id", 12091]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12091]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12091], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12091], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:05:53.726388"], ["updated_at", "2017-04-15 19:05:53.726388"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.728605"], ["id", 10913]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12091], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12091], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:05:53.731721"], ["updated_at", "2017-04-15 19:05:53.731721"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 12092], ["updated_at", "2017-04-15 19:05:53.734910"], ["id", 10914]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":10913}]"], ["updated_at", "2017-04-15 19:05:53.739824"], ["id", 10914]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:05:53.744217"], ["updated_at", "2017-04-15 19:05:53.744217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 19:05:53.746496"], ["updated_at", "2017-04-15 19:05:53.746496"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:05:53.748370"], ["id", 12094]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12094]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12094], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12094], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 19:05:53.752071"], ["updated_at", "2017-04-15 19:05:53.752071"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.754215"], ["id", 10915]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:05:53.757177"], ["id", 12093]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12093]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12093], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12093], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:05:53.761384"], ["updated_at", "2017-04-15 19:05:53.761384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.763277"], ["id", 10916]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12093], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12093], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:05:53.766467"], ["updated_at", "2017-04-15 19:05:53.766467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 12094], ["updated_at", "2017-04-15 19:05:53.770456"], ["id", 10917]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":10916}]"], ["updated_at", "2017-04-15 19:05:53.773864"], ["id", 10917]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Parent Process"]] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12093]] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12094]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:05:53.781378"], ["updated_at", "2017-04-15 19:05:53.781378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:05:53.782962"], ["id", 12095]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12095]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12095], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12095], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:05:53.786394"], ["updated_at", "2017-04-15 19:05:53.786394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:05:53.788331"], ["id", 10918]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12095], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12095], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:05:53.791249"], ["updated_at", "2017-04-15 19:05:53.791249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e20f50cd-60aa-220c-2c21-09e1421d0007"], ["created_at", "2017-04-15 19:14:01.722017"], ["updated_at", "2017-04-15 19:14:01.722017"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12096], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "0137af0d-36be-a04b-9f09-7ad3f74bbc4c"], ["created_at", "2017-04-15 19:14:01.736570"], ["updated_at", "2017-04-15 19:14:01.736570"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#index as HTML Parameters: {"process_template_id"=>"12096"} RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12096]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 24ms (Views: 7.8ms | ActiveRecord: 0.4ms) RailsWorkflow::OperationTemplate Load (0.5ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12096]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "15bae3b2-2ced-5c8d-6a59-e2ccb7c21501"], ["created_at", "2017-04-15 19:14:01.772415"], ["updated_at", "2017-04-15 19:14:01.772415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12097], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "c1ac8664-af73-f0bf-3b8a-b63cdc1572f5"], ["created_at", "2017-04-15 19:14:01.774578"], ["updated_at", "2017-04-15 19:14:01.774578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#show as HTML Parameters: {"process_template_id"=>"12097", "id"=>"10921"} RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10921]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12097]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a76824b8-b251-0685-3f01-31a71d12f92f"], ["created_at", "2017-04-15 19:14:01.793580"], ["updated_at", "2017-04-15 19:14:01.793580"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "44b8e8ca-7cca-97fa-17c3-5aa12a8c8e23"], ["created_at", "2017-04-15 19:14:01.795759"], ["updated_at", "2017-04-15 19:14:01.795759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#new as HTML Parameters: {"process_template_id"=>"12099"} RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12099]] Unpermitted parameter: process_template_id Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/new.html.slim within layouts/rails_workflow/application (0.4ms) Completed 200 OK in 8ms (Views: 1.8ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6eac1322-00d4-5e31-f4a7-7f4f5731c107"], ["created_at", "2017-04-15 19:14:01.812116"], ["updated_at", "2017-04-15 19:14:01.812116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12100], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "c8376e66-f969-c64c-c0f5-603f5ff0dea6"], ["created_at", "2017-04-15 19:14:01.814400"], ["updated_at", "2017-04-15 19:14:01.814400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#edit as HTML Parameters: {"process_template_id"=>"12100", "id"=>"10922"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10922]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12100]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7f500137-c4b2-51c3-0844-df561f85d19d"], ["created_at", "2017-04-15 19:14:01.833927"], ["updated_at", "2017-04-15 19:14:01.833927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12101", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12101"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12101]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 12101], ["uuid", "a9e8f6f8-1336-16d2-e355-3d58360615d0"], ["created_at", "2017-04-15 19:14:01.845562"], ["updated_at", "2017-04-15 19:14:01.845562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12101/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 12101]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "01d9b405-fa2e-2ffd-6fac-4253f8827a13"], ["created_at", "2017-04-15 19:14:01.854985"], ["updated_at", "2017-04-15 19:14:01.854985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate') Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12102", "type"=>"RailsWorkflow::CustomOperationTemplate"}, "process_template_id"=>"12102"} RailsWorkflow::ProcessTemplate Load (0.5ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12102]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 12102], ["uuid", "46e619d0-db36-6e50-747e-287e2f3e5916"], ["created_at", "2017-04-15 19:14:01.876373"], ["updated_at", "2017-04-15 19:14:01.876373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12102/operation_templates Completed 302 Found in 18ms (ActiveRecord: 0.9ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d00b1926-7acc-bf78-6600-0020bcf15394"], ["created_at", "2017-04-15 19:14:01.884347"], ["updated_at", "2017-04-15 19:14:01.884347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12103", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12103"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12103]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 12103], ["uuid", "e42efdaf-1e28-8f6e-de7c-82d61a9e1ab7"], ["created_at", "2017-04-15 19:14:01.893398"], ["updated_at", "2017-04-15 19:14:01.893398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12103/operation_templates Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9c0f4129-afc5-b810-0574-4c6eeb79e750"], ["created_at", "2017-04-15 19:14:01.900864"], ["updated_at", "2017-04-15 19:14:01.900864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12104", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12104"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12104]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 12104], ["uuid", "0d2a79a3-3842-b24b-7bdb-0f39d8cc28e6"], ["created_at", "2017-04-15 19:14:01.909404"], ["updated_at", "2017-04-15 19:14:01.909404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12104/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3b2fd885-7a46-d4c6-afe3-8de640b41088"], ["created_at", "2017-04-15 19:14:01.919199"], ["updated_at", "2017-04-15 19:14:01.919199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "02a53e4f-ea8f-b733-8f94-ee137d775482"], ["created_at", "2017-04-15 19:14:01.923207"], ["updated_at", "2017-04-15 19:14:01.923207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "fae6e268-a6d6-a2f6-de2b-df6d7dfe014f"], ["created_at", "2017-04-15 19:14:01.928435"], ["updated_at", "2017-04-15 19:14:01.928435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12107], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "f5ce4d06-9454-68fb-97c4-e99b8d88dc9c"], ["created_at", "2017-04-15 19:14:01.930636"], ["updated_at", "2017-04-15 19:14:01.930636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "83c44e0d-a9dc-9a64-3959-a2889f916baa"], ["created_at", "2017-04-15 19:14:01.934640"], ["updated_at", "2017-04-15 19:14:01.934640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12108], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "ecf3bc1f-d12a-19c0-a8ed-0db58320e6ba"], ["created_at", "2017-04-15 19:14:01.936846"], ["updated_at", "2017-04-15 19:14:01.936846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12108", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12108", "id"=>"10928"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10928]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12108]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12108/operation_templates Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "062b222f-9348-7f60-cbb4-56a54c3cd045"], ["created_at", "2017-04-15 19:14:01.952424"], ["updated_at", "2017-04-15 19:14:01.952424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12109], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "2e9d3c00-6c1e-c25b-bbad-83bf755e1dec"], ["created_at", "2017-04-15 19:14:01.955943"], ["updated_at", "2017-04-15 19:14:01.955943"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12109", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12109", "id"=>"10929"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10929]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12109]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12109/operation_templates Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "86ce993b-f4a2-b929-9edc-a9b2deb6660a"], ["created_at", "2017-04-15 19:14:01.975093"], ["updated_at", "2017-04-15 19:14:01.975093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12110], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "b2ee1689-da3b-da00-a78c-0e3a9d01d900"], ["created_at", "2017-04-15 19:14:01.977268"], ["updated_at", "2017-04-15 19:14:01.977268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0b74153a-4d32-b24f-f5e3-e06fdf2106e4"], ["created_at", "2017-04-15 19:14:01.981196"], ["updated_at", "2017-04-15 19:14:01.981196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12111], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "f66d33b7-604b-c7e5-7812-6c5400e2abec"], ["created_at", "2017-04-15 19:14:01.983232"], ["updated_at", "2017-04-15 19:14:01.983232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "bc155206-9e06-52d7-ea07-ae3fb0fa71ec"], ["created_at", "2017-04-15 19:14:01.987053"], ["updated_at", "2017-04-15 19:14:01.987053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12112], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "b7d3c30b-6fb9-0f2e-4102-06e7530d76f1"], ["created_at", "2017-04-15 19:14:01.989338"], ["updated_at", "2017-04-15 19:14:01.989338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12112]] Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"12112", "id"=>"10932"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10932]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12112]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 10932]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12112/operation_templates Completed 302 Found in 6ms (ActiveRecord: 1.0ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d44e45be-55cc-e804-950d-7d6a7fbbe37f"], ["created_at", "2017-04-15 19:14:02.007009"], ["updated_at", "2017-04-15 19:14:02.007009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12113], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "02a724ba-2561-ff6e-349b-cf4349ada034"], ["created_at", "2017-04-15 19:14:02.009030"], ["updated_at", "2017-04-15 19:14:02.009030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"12113", "id"=>"10933"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10933]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12113]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 10933]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12113/operation_templates Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "08658096-2544-c07a-1977-f4930bd4a212"], ["created_at", "2017-04-15 19:14:02.047538"], ["updated_at", "2017-04-15 19:14:02.047538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "cbb25b61-515d-b93f-50b2-fa20db1ef702"], ["created_at", "2017-04-15 19:14:02.061757"], ["updated_at", "2017-04-15 19:14:02.061757"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#show as HTML Parameters: {"id"=>"12115"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12115]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (0.5ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "e5dc8626-246b-2405-1021-812cc9f4f168"], ["created_at", "2017-04-15 19:14:02.086001"], ["updated_at", "2017-04-15 19:14:02.086001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#edit as HTML Parameters: {"id"=>"12116"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12116]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "813feb6f-8f89-ffa4-4ce9-3795b19c9891"], ["created_at", "2017-04-15 19:14:02.107526"], ["updated_at", "2017-04-15 19:14:02.107526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12117/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.1ms) ROLLBACK  (0.6ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "49942353-a908-ef99-40a8-f299435f5202"], ["created_at", "2017-04-15 19:14:02.119417"], ["updated_at", "2017-04-15 19:14:02.119417"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12118/operation_templates Completed 302 Found in 21ms (ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "1f357bbe-c027-a13f-133d-24ae34579100"], ["created_at", "2017-04-15 19:14:02.146314"], ["updated_at", "2017-04-15 19:14:02.146314"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12119/operation_templates Completed 302 Found in 6ms (ActiveRecord: 0.8ms) RailsWorkflow::ProcessTemplate Load (0.5ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "1c62425a-088d-2d9d-5074-3dfbdeb34cce"], ["created_at", "2017-04-15 19:14:02.160555"], ["updated_at", "2017-04-15 19:14:02.160555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "f0f95890-e2c1-60a7-6be9-d5465d682354"], ["created_at", "2017-04-15 19:14:02.163995"], ["updated_at", "2017-04-15 19:14:02.163995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"12121"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12121]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12121 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "83b753cc-9411-86a2-2f23-60e2bb46752c"], ["created_at", "2017-04-15 19:14:02.176455"], ["updated_at", "2017-04-15 19:14:02.176455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"12122"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12122]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12122 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "8a3786d4-cfc4-40c6-8dd3-291091b24dd0"], ["created_at", "2017-04-15 19:14:02.192418"], ["updated_at", "2017-04-15 19:14:02.192418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "c0e0cda9-9f5f-4195-b270-5483c46a817c"], ["created_at", "2017-04-15 19:14:02.195882"], ["updated_at", "2017-04-15 19:14:02.195882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "6f53888a-d421-7861-0630-ab3a3ae3b501"], ["created_at", "2017-04-15 19:14:02.199422"], ["updated_at", "2017-04-15 19:14:02.199422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"12125"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12125]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 12125]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "9b5543a3-8aeb-9e2a-8984-191daa925abe"], ["created_at", "2017-04-15 19:14:02.213691"], ["updated_at", "2017-04-15 19:14:02.213691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"12126"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12126]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 12126]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "41e12732-a5d8-4816-b6b2-008b8f479ba6"], ["created_at", "2017-04-15 19:14:02.228716"], ["updated_at", "2017-04-15 19:14:02.228716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12127], ["created_at", "2017-04-15 19:14:02.236383"], ["updated_at", "2017-04-15 19:14:02.236383"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#index as HTML  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.3ms)  select status, cnt from ( select row_number() over (partition by status), count(*) over (partition by status) cnt, status from rails_workflow_processes)t where row_number = 1  Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 11ms (Views: 3.9ms | ActiveRecord: 0.8ms) RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" ASC LIMIT 30 OFFSET 0  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0c8d58e2-8082-bcb1-f631-70f2cb8380c0"], ["created_at", "2017-04-15 19:14:02.257531"], ["updated_at", "2017-04-15 19:14:02.257531"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12128], ["created_at", "2017-04-15 19:14:02.259683"], ["updated_at", "2017-04-15 19:14:02.259683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#show as HTML Parameters: {"id"=>"5489"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5489]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "11bbd443-a430-466a-2799-b7d741b8b5b1"], ["created_at", "2017-04-15 19:14:02.277686"], ["updated_at", "2017-04-15 19:14:02.277686"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c865bd84-307d-9fda-5b39-09b9fd5fe1d3"], ["created_at", "2017-04-15 19:14:02.286374"], ["updated_at", "2017-04-15 19:14:02.286374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12130], ["created_at", "2017-04-15 19:14:02.288219"], ["updated_at", "2017-04-15 19:14:02.288219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#edit as HTML Parameters: {"id"=>"5490"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5490]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6be98d08-e8b5-8dac-ffd9-c2b9e8c3c861"], ["created_at", "2017-04-15 19:14:02.304008"], ["updated_at", "2017-04-15 19:14:02.304008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_processes" Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12131"}} SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12131]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12131) [["id", 12131]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12131], ["created_at", "2017-04-15 19:14:02.320576"], ["updated_at", "2017-04-15 19:14:02.320576"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:02.322743"], ["id", 5491]] SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5491], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:14:02.331921"], ["updated_at", "2017-04-15 19:14:02.331921"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5491], ["parent_type", "RailsWorkflow::Process"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5491]] Redirected to http://test.host/workflow/processes/5491 Completed 302 Found in 32ms (ActiveRecord: 4.3ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a79c4e3a-7041-edb0-8660-a45767cd17f6"], ["created_at", "2017-04-15 19:14:02.344469"], ["updated_at", "2017-04-15 19:14:02.344469"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12132"}} SQL (0.4ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12132]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12132) [["id", 12132]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12132], ["created_at", "2017-04-15 19:14:02.353350"], ["updated_at", "2017-04-15 19:14:02.353350"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:02.355417"], ["id", 5492]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5492], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:14:02.357396"], ["updated_at", "2017-04-15 19:14:02.357396"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5492], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5492]] Redirected to http://test.host/workflow/processes/5492 Completed 302 Found in 14ms (ActiveRecord: 3.1ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ea24f2d4-3ee0-f949-70c2-02fcc53b56cb"], ["created_at", "2017-04-15 19:14:02.366075"], ["updated_at", "2017-04-15 19:14:02.366075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12133"}} SQL (0.4ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12133]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12133) [["id", 12133]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12133], ["created_at", "2017-04-15 19:14:02.375557"], ["updated_at", "2017-04-15 19:14:02.375557"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:02.377505"], ["id", 5493]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5493], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:14:02.379502"], ["updated_at", "2017-04-15 19:14:02.379502"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5493], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5493]] Redirected to http://test.host/workflow/processes/5493 Completed 302 Found in 15ms (ActiveRecord: 3.1ms) RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" DESC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "63c0cdc0-29cf-703f-7d33-9cec8e0ff012"], ["created_at", "2017-04-15 19:14:02.391779"], ["updated_at", "2017-04-15 19:14:02.391779"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4bfa09da-48b8-d4e1-c9f6-e251ecf32bb8"], ["created_at", "2017-04-15 19:14:02.395279"], ["updated_at", "2017-04-15 19:14:02.395279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2be7704d-f4ae-6f4a-cad9-7f08c89cf21b"], ["created_at", "2017-04-15 19:14:02.398706"], ["updated_at", "2017-04-15 19:14:02.398706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12136], ["created_at", "2017-04-15 19:14:02.400508"], ["updated_at", "2017-04-15 19:14:02.400508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "50c85ddb-88fe-eedd-6e23-08b3ea1886ee"], ["created_at", "2017-04-15 19:14:02.404539"], ["updated_at", "2017-04-15 19:14:02.404539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12137], ["created_at", "2017-04-15 19:14:02.406476"], ["updated_at", "2017-04-15 19:14:02.406476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12137"}, "id"=>"5495"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5495]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a7ed7657-a7ef-9aea-19cf-3ae8ae8594d5"], ["created_at", "2017-04-15 19:14:02.418422"], ["updated_at", "2017-04-15 19:14:02.418422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12138], ["created_at", "2017-04-15 19:14:02.420300"], ["updated_at", "2017-04-15 19:14:02.420300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12138"}, "id"=>"5496"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5496]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "27a0c7c7-2b1c-e10c-7dd6-79f54511dffb"], ["created_at", "2017-04-15 19:14:02.435190"], ["updated_at", "2017-04-15 19:14:02.435190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12139], ["created_at", "2017-04-15 19:14:02.437424"], ["updated_at", "2017-04-15 19:14:02.437424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "71af145c-a024-1acf-1be6-85e9068bd5c8"], ["created_at", "2017-04-15 19:14:02.440946"], ["updated_at", "2017-04-15 19:14:02.440946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12140], ["created_at", "2017-04-15 19:14:02.442837"], ["updated_at", "2017-04-15 19:14:02.442837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "46a360ca-6a15-6977-4554-511e34de3ea1"], ["created_at", "2017-04-15 19:14:02.446301"], ["updated_at", "2017-04-15 19:14:02.446301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "39675bfc-5f83-546e-26b9-58c66c4da44b"], ["created_at", "2017-04-15 19:14:02.449507"], ["updated_at", "2017-04-15 19:14:02.449507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4a9c02ec-a547-c1ce-794c-8641419f4650"], ["created_at", "2017-04-15 19:14:02.452642"], ["updated_at", "2017-04-15 19:14:02.452642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12143], ["uuid", "d69c1d0f-4248-4f21-ecfe-8442fc13c1c2"], ["created_at", "2017-04-15 19:14:02.455055"], ["updated_at", "2017-04-15 19:14:02.455055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12143], ["dependencies", "[{\"id\":10934,\"statuses\":[2]}]"], ["uuid", "359da3ad-4cc4-657e-3916-430efde6a9fb"], ["created_at", "2017-04-15 19:14:02.457694"], ["updated_at", "2017-04-15 19:14:02.457694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12143]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12143) [["id", 12143]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12143], ["created_at", "2017-04-15 19:14:02.463587"], ["updated_at", "2017-04-15 19:14:02.463587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:02.465682"], ["id", 5499]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5499], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.467987"], ["updated_at", "2017-04-15 19:14:02.467987"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5499], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10934], ["process_id", 5499], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:02.480782"], ["updated_at", "2017-04-15 19:14:02.480782"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6231], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.482774"], ["updated_at", "2017-04-15 19:14:02.482774"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e7ba2b47-9c5d-05db-f697-dcd430647da0"], ["created_at", "2017-04-15 19:14:02.488964"], ["updated_at", "2017-04-15 19:14:02.488964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12144], ["uuid", "67342bf4-216f-d35c-38ea-17e530bb4ccc"], ["created_at", "2017-04-15 19:14:02.491155"], ["updated_at", "2017-04-15 19:14:02.491155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12144], ["dependencies", "[{\"id\":10936,\"statuses\":[2]}]"], ["uuid", "83b78496-fa5d-e2d8-9c09-b44be381b5c2"], ["created_at", "2017-04-15 19:14:02.493498"], ["updated_at", "2017-04-15 19:14:02.493498"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.6ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12144]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12144) [["id", 12144]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12144], ["created_at", "2017-04-15 19:14:02.500121"], ["updated_at", "2017-04-15 19:14:02.500121"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:02.502145"], ["id", 5500]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5500], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.504088"], ["updated_at", "2017-04-15 19:14:02.504088"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5500], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10936], ["process_id", 5500], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:02.507711"], ["updated_at", "2017-04-15 19:14:02.507711"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6232], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.509197"], ["updated_at", "2017-04-15 19:14:02.509197"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "906973e8-8f5b-3149-cfae-02d7a9123aa7"], ["created_at", "2017-04-15 19:14:02.514034"], ["updated_at", "2017-04-15 19:14:02.514034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12145], ["uuid", "38959e3c-3de0-5c27-f708-4f77682ecc46"], ["created_at", "2017-04-15 19:14:02.516254"], ["updated_at", "2017-04-15 19:14:02.516254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12145], ["dependencies", "[{\"id\":10938,\"statuses\":[2]}]"], ["uuid", "212881d9-36f8-e1d2-e455-30e6dc8af380"], ["created_at", "2017-04-15 19:14:02.518685"], ["updated_at", "2017-04-15 19:14:02.518685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12145]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12145) [["id", 12145]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12145], ["created_at", "2017-04-15 19:14:02.524103"], ["updated_at", "2017-04-15 19:14:02.524103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:02.525733"], ["id", 5501]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5501], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.528012"], ["updated_at", "2017-04-15 19:14:02.528012"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5501], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10938], ["process_id", 5501], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:02.532180"], ["updated_at", "2017-04-15 19:14:02.532180"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6233], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.533653"], ["updated_at", "2017-04-15 19:14:02.533653"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5501]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5501]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d7d10521-af6c-8bdd-0e98-00b700c345d6"], ["created_at", "2017-04-15 19:14:02.540998"], ["updated_at", "2017-04-15 19:14:02.540998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12146], ["uuid", "a5c84661-5fa7-3e2a-82fb-536da2718534"], ["created_at", "2017-04-15 19:14:02.543201"], ["updated_at", "2017-04-15 19:14:02.543201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12146], ["dependencies", "[{\"id\":10940,\"statuses\":[2]}]"], ["uuid", "2b988fff-a868-1ca0-b035-ca7c84e773a3"], ["created_at", "2017-04-15 19:14:02.545597"], ["updated_at", "2017-04-15 19:14:02.545597"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12146]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12146) [["id", 12146]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12146], ["created_at", "2017-04-15 19:14:02.551282"], ["updated_at", "2017-04-15 19:14:02.551282"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:02.553231"], ["id", 5502]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5502], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.555108"], ["updated_at", "2017-04-15 19:14:02.555108"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5502], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10940], ["process_id", 5502], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:02.558755"], ["updated_at", "2017-04-15 19:14:02.558755"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6234], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.560589"], ["updated_at", "2017-04-15 19:14:02.560589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4e896c25-3a7d-1de6-8565-da8d555e475a"], ["created_at", "2017-04-15 19:14:02.565361"], ["updated_at", "2017-04-15 19:14:02.565361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12147], ["uuid", "d592d26b-e597-5d47-45a4-a7c9418b3d76"], ["created_at", "2017-04-15 19:14:02.567555"], ["updated_at", "2017-04-15 19:14:02.567555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12147], ["dependencies", "[{\"id\":10942,\"statuses\":[2]}]"], ["uuid", "7ccebf74-6a46-6fc1-2a11-4e3cac0a7c7a"], ["created_at", "2017-04-15 19:14:02.569902"], ["updated_at", "2017-04-15 19:14:02.569902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12147]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12147) [["id", 12147]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12147], ["created_at", "2017-04-15 19:14:02.575168"], ["updated_at", "2017-04-15 19:14:02.575168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:02.576757"], ["id", 5503]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5503], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.578580"], ["updated_at", "2017-04-15 19:14:02.578580"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5503], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10942], ["process_id", 5503], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:02.581990"], ["updated_at", "2017-04-15 19:14:02.581990"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6235], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.583381"], ["updated_at", "2017-04-15 19:14:02.583381"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5503]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6235], ["parent_type", "RailsWorkflow::Operation"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "bea0e5bd-f384-9856-f34a-9cd699950852"], ["created_at", "2017-04-15 19:14:02.603302"], ["updated_at", "2017-04-15 19:14:02.603302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12148], ["uuid", "260ab4e6-ced5-f47e-ea24-b9ef80198163"], ["created_at", "2017-04-15 19:14:02.605402"], ["updated_at", "2017-04-15 19:14:02.605402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12148], ["dependencies", "[{\"id\":10944,\"statuses\":[2]}]"], ["uuid", "f31e2d50-46d0-9c9c-353f-eded0638b69f"], ["created_at", "2017-04-15 19:14:02.607642"], ["updated_at", "2017-04-15 19:14:02.607642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12148]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12148) [["id", 12148]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12148], ["created_at", "2017-04-15 19:14:02.612934"], ["updated_at", "2017-04-15 19:14:02.612934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:02.614433"], ["id", 5504]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5504], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.616237"], ["updated_at", "2017-04-15 19:14:02.616237"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5504], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10944], ["process_id", 5504], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:02.620125"], ["updated_at", "2017-04-15 19:14:02.620125"]] SQL (0.6ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6236], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.621510"], ["updated_at", "2017-04-15 19:14:02.621510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a1136e2d-ff47-56cb-a3bf-653a013f171b"], ["created_at", "2017-04-15 19:14:02.627685"], ["updated_at", "2017-04-15 19:14:02.627685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12149], ["uuid", "514ba39d-246a-fcd8-41a5-1cc28148bee3"], ["created_at", "2017-04-15 19:14:02.629890"], ["updated_at", "2017-04-15 19:14:02.629890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12149], ["dependencies", "[{\"id\":10946,\"statuses\":[2]}]"], ["uuid", "96efa167-4bff-d5e4-3121-d082f8562414"], ["created_at", "2017-04-15 19:14:02.632265"], ["updated_at", "2017-04-15 19:14:02.632265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12149]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12149) [["id", 12149]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12149], ["created_at", "2017-04-15 19:14:02.637613"], ["updated_at", "2017-04-15 19:14:02.637613"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:02.639454"], ["id", 5505]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5505], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.641321"], ["updated_at", "2017-04-15 19:14:02.641321"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5505], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10946], ["process_id", 5505], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:02.644808"], ["updated_at", "2017-04-15 19:14:02.644808"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6237], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.646241"], ["updated_at", "2017-04-15 19:14:02.646241"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:02.649352"], ["id", 5505]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5505], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:02.652730"], ["id", 6237]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [07155dd2-4f2d-4549-9441-0fcbdf773a27] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6237 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [07155dd2-4f2d-4549-9441-0fcbdf773a27] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6237]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [07155dd2-4f2d-4549-9441-0fcbdf773a27]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [07155dd2-4f2d-4549-9441-0fcbdf773a27]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [07155dd2-4f2d-4549-9441-0fcbdf773a27] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6237], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [07155dd2-4f2d-4549-9441-0fcbdf773a27]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [07155dd2-4f2d-4549-9441-0fcbdf773a27]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [07155dd2-4f2d-4549-9441-0fcbdf773a27] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 5.25ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9caf73d4-1d39-0dbf-4863-836147aa3d7c"], ["created_at", "2017-04-15 19:14:02.663671"], ["updated_at", "2017-04-15 19:14:02.663671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12150], ["uuid", "cbce3969-7df3-3169-3ae3-f3703ce2b07c"], ["created_at", "2017-04-15 19:14:02.665871"], ["updated_at", "2017-04-15 19:14:02.665871"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12150], ["dependencies", "[{\"id\":10948,\"statuses\":[2]}]"], ["uuid", "8292940b-aec4-c0bd-05bc-130e43fcdf1e"], ["created_at", "2017-04-15 19:14:02.668277"], ["updated_at", "2017-04-15 19:14:02.668277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12150]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12150) [["id", 12150]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12150], ["created_at", "2017-04-15 19:14:02.673811"], ["updated_at", "2017-04-15 19:14:02.673811"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:02.675799"], ["id", 5506]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5506], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.677655"], ["updated_at", "2017-04-15 19:14:02.677655"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5506], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10948], ["process_id", 5506], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:02.681181"], ["updated_at", "2017-04-15 19:14:02.681181"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6238], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.682515"], ["updated_at", "2017-04-15 19:14:02.682515"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:02.685555"], ["id", 5506]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5506], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:02.689244"], ["id", 6238]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [da4fe3b2-9fc2-4396-b042-837052e15172] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6238 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [da4fe3b2-9fc2-4396-b042-837052e15172] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6238]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [da4fe3b2-9fc2-4396-b042-837052e15172]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [da4fe3b2-9fc2-4396-b042-837052e15172]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [da4fe3b2-9fc2-4396-b042-837052e15172] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6238], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [da4fe3b2-9fc2-4396-b042-837052e15172]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [da4fe3b2-9fc2-4396-b042-837052e15172]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [da4fe3b2-9fc2-4396-b042-837052e15172] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 3.42ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5506]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b265c0bb-1d50-c4bd-58ab-0d8759ed1c74"], ["created_at", "2017-04-15 19:14:02.698354"], ["updated_at", "2017-04-15 19:14:02.698354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12151], ["uuid", "b04f6787-0b18-f345-ec4e-023d421dbb0a"], ["created_at", "2017-04-15 19:14:02.700588"], ["updated_at", "2017-04-15 19:14:02.700588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12151], ["dependencies", "[{\"id\":10950,\"statuses\":[2]}]"], ["uuid", "e7dfd814-c8ed-1ef8-0330-4bd0877d6d98"], ["created_at", "2017-04-15 19:14:02.702949"], ["updated_at", "2017-04-15 19:14:02.702949"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12151]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12151) [["id", 12151]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12151], ["created_at", "2017-04-15 19:14:02.708349"], ["updated_at", "2017-04-15 19:14:02.708349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:02.709920"], ["id", 5507]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5507], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.711873"], ["updated_at", "2017-04-15 19:14:02.711873"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5507], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10950], ["process_id", 5507], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:02.715232"], ["updated_at", "2017-04-15 19:14:02.715232"]] SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6239], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.716544"], ["updated_at", "2017-04-15 19:14:02.716544"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:02.720363"], ["id", 5507]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5507], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:02.723337"], ["id", 6239]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6239 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6239]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6239], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:02.728449"], ["updated_at", "2017-04-15 19:14:02.728980"], ["id", 6239]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e] RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5507]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12151]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12151]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10950]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5507]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10950]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5507], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e] SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:02.741807"], ["id", 5507]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5507]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [694fce67-57ee-4e4d-9404-63958600bf5e] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 20.61ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5507]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:14:02.746873"], ["updated_at", "2017-04-15 19:14:02.747647"], ["id", 6239]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10950]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5507]]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5507], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:02.754112"], ["id", 5507]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5507]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0789348c-7048-3c98-d4bd-d78fa3183c16"], ["created_at", "2017-04-15 19:14:02.758120"], ["updated_at", "2017-04-15 19:14:02.758120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12152], ["uuid", "a3668800-8d66-472f-4dcf-16fc3eb8e7ed"], ["created_at", "2017-04-15 19:14:02.760318"], ["updated_at", "2017-04-15 19:14:02.760318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12152], ["dependencies", "[{\"id\":10952,\"statuses\":[2]}]"], ["uuid", "23d243ad-ef5f-8d3c-1749-df5b5da704be"], ["created_at", "2017-04-15 19:14:02.762659"], ["updated_at", "2017-04-15 19:14:02.762659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12152]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12152) [["id", 12152]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12152], ["created_at", "2017-04-15 19:14:02.768147"], ["updated_at", "2017-04-15 19:14:02.768147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:02.769665"], ["id", 5508]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5508], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.771428"], ["updated_at", "2017-04-15 19:14:02.771428"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5508], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10952], ["process_id", 5508], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:02.774739"], ["updated_at", "2017-04-15 19:14:02.774739"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6240], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.776125"], ["updated_at", "2017-04-15 19:14:02.776125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:02.779001"], ["id", 5508]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5508], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:02.782462"], ["id", 6240]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6240 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6240]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6240], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:02.788341"], ["updated_at", "2017-04-15 19:14:02.788990"], ["id", 6240]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5508]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12152]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12152]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10952]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5508]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10952]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10953], ["process_id", 5508], ["status", 0], ["dependencies", "[{\"operation_id\":6240,\"status\":2}]"], ["created_at", "2017-04-15 19:14:02.797890"], ["updated_at", "2017-04-15 19:14:02.797890"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6241], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.799283"], ["updated_at", "2017-04-15 19:14:02.799283"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:02.802535"], ["id", 6241]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6241 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6241]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6241], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:02.806992"], ["updated_at", "2017-04-15 19:14:02.807527"], ["id", 6241]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5508]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12152]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12152]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10953]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5508]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10953]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10952]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5508], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d] SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:02.816254"], ["id", 5508]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5508]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] [RailsWorkflow::OperationExecutionJob] [273173dc-f677-453c-ba2b-cb9695991a2d] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 14.61ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [7f5932b3-9528-4ed1-8bff-4d9b0954c934] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 34.7ms RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5508]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:14:02.820163"], ["updated_at", "2017-04-15 19:14:02.820964"], ["id", 6240]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10952]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5508]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10953]]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5508], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:02.827759"], ["id", 5508]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5508]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "87f0e450-dc26-be39-7b56-15ca7f18c79d"], ["created_at", "2017-04-15 19:14:02.831936"], ["updated_at", "2017-04-15 19:14:02.831936"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12153], ["uuid", "ef5f5926-8164-714f-7685-e482c8206a28"], ["created_at", "2017-04-15 19:14:02.834180"], ["updated_at", "2017-04-15 19:14:02.834180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12153], ["dependencies", "[{\"id\":10954,\"statuses\":[2]}]"], ["uuid", "4044fb9b-eee1-e70c-a2ff-5550a85c49fa"], ["created_at", "2017-04-15 19:14:02.836461"], ["updated_at", "2017-04-15 19:14:02.836461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12153]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12153) [["id", 12153]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12153], ["created_at", "2017-04-15 19:14:02.841880"], ["updated_at", "2017-04-15 19:14:02.841880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:02.843628"], ["id", 5509]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5509], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.845439"], ["updated_at", "2017-04-15 19:14:02.845439"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5509], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10954], ["process_id", 5509], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:02.849065"], ["updated_at", "2017-04-15 19:14:02.849065"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6242], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.850479"], ["updated_at", "2017-04-15 19:14:02.850479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:02.853413"], ["id", 5509]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5509], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:02.856361"], ["id", 6242]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6242 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6242]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6242], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:02.862205"], ["updated_at", "2017-04-15 19:14:02.862712"], ["id", 6242]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5509]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12153]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12153]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10954]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5509]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10954]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10955], ["process_id", 5509], ["status", 0], ["dependencies", "[{\"operation_id\":6242,\"status\":2}]"], ["created_at", "2017-04-15 19:14:02.870661"], ["updated_at", "2017-04-15 19:14:02.870661"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6243], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.872036"], ["updated_at", "2017-04-15 19:14:02.872036"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:02.875427"], ["id", 6243]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6243 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6243]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6243], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:02.880123"], ["updated_at", "2017-04-15 19:14:02.880650"], ["id", 6243]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5509]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12153]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12153]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10955]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5509]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10955]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10954]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5509], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:02.889116"], ["id", 5509]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5509]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] [RailsWorkflow::OperationExecutionJob] [b6f4d065-66ca-4057-9a2e-2d1c829fa5a9] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 14.04ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2668c3b2-28b3-4385-9481-04bda00046de] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 33.05ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5509]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:14:02.892462"], ["updated_at", "2017-04-15 19:14:02.893215"], ["id", 6242]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10954]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5509]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10955]]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5509], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:02.899791"], ["id", 5509]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5509]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 2], ["created_at", "2017-04-15 19:14:02.849065"], ["updated_at", "2017-04-15 19:14:02.893215"], ["completed_at", "2017-04-15 19:14:02.901711"], ["id", 6242]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7c84c5f3-660f-be09-909f-02d57b1270b1"], ["created_at", "2017-04-15 19:14:02.906212"], ["updated_at", "2017-04-15 19:14:02.906212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12154], ["uuid", "e37e6346-fb7e-4a74-bdcb-488ab6cea9c8"], ["created_at", "2017-04-15 19:14:02.908419"], ["updated_at", "2017-04-15 19:14:02.908419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12154], ["dependencies", "[{\"id\":10956,\"statuses\":[2]}]"], ["uuid", "55c6b08c-8d25-cdb8-4da9-caa491a65ccb"], ["created_at", "2017-04-15 19:14:02.910696"], ["updated_at", "2017-04-15 19:14:02.910696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12154]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12154) [["id", 12154]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12154], ["created_at", "2017-04-15 19:14:02.916051"], ["updated_at", "2017-04-15 19:14:02.916051"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:02.918064"], ["id", 5510]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5510], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.919961"], ["updated_at", "2017-04-15 19:14:02.919961"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5510], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10956], ["process_id", 5510], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:02.923412"], ["updated_at", "2017-04-15 19:14:02.923412"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6244], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.924762"], ["updated_at", "2017-04-15 19:14:02.924762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:02.927646"], ["id", 5510]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5510], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:02.930228"], ["id", 6244]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6244 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6244]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6244], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:02.935439"], ["updated_at", "2017-04-15 19:14:02.936073"], ["id", 6244]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5510]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12154]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12154]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10956]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5510]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10956]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10957], ["process_id", 5510], ["status", 0], ["dependencies", "[{\"operation_id\":6244,\"status\":2}]"], ["created_at", "2017-04-15 19:14:02.943851"], ["updated_at", "2017-04-15 19:14:02.943851"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6245], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:02.945228"], ["updated_at", "2017-04-15 19:14:02.945228"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:02.948499"], ["id", 6245]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6245 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6245]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6245], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:02.961968"], ["updated_at", "2017-04-15 19:14:02.962470"], ["id", 6245]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5510]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12154]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12154]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10957]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5510]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10957]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10956]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5510], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:02.970427"], ["id", 5510]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5510]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] [RailsWorkflow::OperationExecutionJob] [c27bb667-cf15-41d6-b20f-b02691595fad] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 22.28ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [088fef24-b33e-4019-bad1-9db20b9a11ae] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 40.78ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5510]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:14:02.973612"], ["updated_at", "2017-04-15 19:14:02.974277"], ["id", 6244]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10956]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5510]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10957]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5510], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:02.980542"], ["id", 5510]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5510]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 6], ["created_at", "2017-04-15 19:14:02.923412"], ["updated_at", "2017-04-15 19:14:02.974277"], ["completed_at", "2017-04-15 19:14:02.982469"], ["id", 6244]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7e894f65-09b4-693e-bf74-7e701185c9cd"], ["created_at", "2017-04-15 19:14:02.986456"], ["updated_at", "2017-04-15 19:14:02.986456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12155], ["uuid", "49ac357f-a903-353b-e897-7eef9340a728"], ["created_at", "2017-04-15 19:14:02.988666"], ["updated_at", "2017-04-15 19:14:02.988666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12155], ["dependencies", "[{\"id\":10958,\"statuses\":[2]}]"], ["uuid", "21504c8f-db77-3329-c171-e2effd10ff89"], ["created_at", "2017-04-15 19:14:02.990961"], ["updated_at", "2017-04-15 19:14:02.990961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12155]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12155) [["id", 12155]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12155], ["created_at", "2017-04-15 19:14:02.996299"], ["updated_at", "2017-04-15 19:14:02.996299"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:02.998262"], ["id", 5511]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5511], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:03.000212"], ["updated_at", "2017-04-15 19:14:03.000212"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5511], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10958], ["process_id", 5511], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:03.003793"], ["updated_at", "2017-04-15 19:14:03.003793"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6246], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:03.005218"], ["updated_at", "2017-04-15 19:14:03.005218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:03.008139"], ["id", 5511]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5511], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:03.010576"], ["id", 6246]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6246 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6246]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6246], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:03.015971"], ["updated_at", "2017-04-15 19:14:03.016506"], ["id", 6246]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5511]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12155]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12155]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10958]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5511]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10958]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10959], ["process_id", 5511], ["status", 0], ["dependencies", "[{\"operation_id\":6246,\"status\":2}]"], ["created_at", "2017-04-15 19:14:03.024090"], ["updated_at", "2017-04-15 19:14:03.024090"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6247], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:03.025378"], ["updated_at", "2017-04-15 19:14:03.025378"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] SQL (0.1ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:03.028483"], ["id", 6247]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6247 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6247]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6247], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:03.032613"], ["updated_at", "2017-04-15 19:14:03.033107"], ["id", 6247]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5511]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12155]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12155]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10959]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5511]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10959]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10958]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3]  (0.1ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5511], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:03.040740"], ["id", 5511]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5511]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] [RailsWorkflow::OperationExecutionJob] [8a2aa832-4310-4759-9249-1a42e04373f3] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 12.71ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [91678e9e-daf7-4a38-bd30-d9043e7bdd23] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 30.51ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5511]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:14:03.043837"], ["updated_at", "2017-04-15 19:14:03.044446"], ["id", 6246]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10958]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5511]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10959]]  (0.1ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5511], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:03.050166"], ["id", 5511]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5511]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 5], ["created_at", "2017-04-15 19:14:03.003793"], ["updated_at", "2017-04-15 19:14:03.044446"], ["completed_at", "2017-04-15 19:14:03.052014"], ["id", 6246]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'regular_user@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "regular_user@test.com"], ["encrypted_password", "$2a$04$qDD9OWzQLa.Gx4L4WXAdpeNcaA4BK7oTHTdVJE8/u3GqHoxxjr7we"], ["role", "regular_user"], ["created_at", "2017-04-15 19:14:03.070138"], ["updated_at", "2017-04-15 19:14:03.070138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'admin@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "admin@test.com"], ["encrypted_password", "$2a$04$pjymGK003srAGzvxUSHbnOoXG2kRONvMcgrnzdgSMTvATJRhlNmtK"], ["role", "admin"], ["created_at", "2017-04-15 19:14:03.074642"], ["updated_at", "2017-04-15 19:14:03.074642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:03.078940"], ["updated_at", "2017-04-15 19:14:03.078940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "User Operation Template"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:03.080962"], ["id", 12156]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12156]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12156], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12156], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:03.086432"], ["updated_at", "2017-04-15 19:14:03.086432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:03.088734"], ["id", 10960]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12156], ["uuid", nil]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12156], ["uuid", "ed8b0577-e47f-4ea6-b72e-44f6b3043d47"], ["created_at", "2017-04-15 19:14:03.093717"], ["updated_at", "2017-04-15 19:14:03.093717"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "uuid" = $1, "title" = $2, "dependencies" = $3, "operation_class" = $4, "async" = $5, "kind" = $6, "role" = $7, "instruction" = $8, "type" = $9, "partial_name" = $10, "updated_at" = $11 WHERE "rails_workflow_operation_templates"."id" = $12 [["uuid", "276bd055-c55f-d63b-72c6-ef43517c226a"], ["title", "Regular User Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "regular_user"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:03.096180"], ["id", 10961]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "User Operation Template"]] SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12156]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12156) [["id", 12156]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12156], ["created_at", "2017-04-15 19:14:03.104450"], ["updated_at", "2017-04-15 19:14:03.104450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "User Operation Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:03.106031"], ["id", 5512]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5512], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:14:03.107820"], ["updated_at", "2017-04-15 19:14:03.107820"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5512], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Regular User Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 10961], ["process_id", 5512], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:03.123361"], ["updated_at", "2017-04-15 19:14:03.123361"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6248], ["body", "{}"], ["created_at", "2017-04-15 19:14:03.125261"], ["updated_at", "2017-04-15 19:14:03.125261"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Admin Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 10960], ["process_id", 5512], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:03.128877"], ["updated_at", "2017-04-15 19:14:03.128877"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6249], ["body", "{}"], ["created_at", "2017-04-15 19:14:03.130363"], ["updated_at", "2017-04-15 19:14:03.130363"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:03.134081"], ["id", 5512]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5512], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:14:03.137063"], ["id", 6249]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:14:03.138906"], ["id", 6248]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/workflow/operations" for 127.0.0.1 at 2017-04-15 23:14:03 +0400 Processing by RailsWorkflow::OperationsController#index as HTML RailsWorkflow::Operation Load (0.6ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."status" = 3 ORDER BY "rails_workflow_operations"."created_at" DESC RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5512]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10960]] CACHE (0.0ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5512]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10961]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operations/index.html.slim within layouts/rails_workflow/application (19.2ms) Completed 200 OK in 152ms (Views: 143.1ms | ActiveRecord: 1.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/workflow/config" for 127.0.0.1 at 2017-04-15 23:14:03 +0400 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/application/_flash.html.slim (2.5ms) RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (12.9ms) Completed 200 OK in 16ms (Views: 15.2ms | ActiveRecord: 0.3ms) Started GET "/workflow/config/new" for 127.0.0.1 at 2017-04-15 23:14:03 +0400 Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/_form.html.slim (17.5ms) Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (22.7ms) Completed 200 OK in 26ms (Views: 25.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.383575"], ["updated_at", "2017-04-15 19:14:03.383575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:03.385605"], ["updated_at", "2017-04-15 19:14:03.385605"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5513], ["updated_at", "2017-04-15 19:14:03.387018"], ["id", 9277]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:03.391056"], ["updated_at", "2017-04-15 19:14:03.391056"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 19:14:03.393208"], ["updated_at", "2017-04-15 19:14:03.393208"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6250], ["updated_at", "2017-04-15 19:14:03.394759"], ["id", 9278]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d682e3d0-72a1-e36b-6d2f-6d43feb2e4ab"], ["created_at", "2017-04-15 19:14:03.397329"], ["updated_at", "2017-04-15 19:14:03.397329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12157], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "40bca0e2-888e-ac7a-cf13-53a408397d89"], ["created_at", "2017-04-15 19:14:03.399211"], ["updated_at", "2017-04-15 19:14:03.399211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10962], ["process_id", 5513], ["status", 0], ["dependencies", "[{\"operation_id\":6250,\"status\":4}]"], ["created_at", "2017-04-15 19:14:03.409514"], ["updated_at", "2017-04-15 19:14:03.409514"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6251], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:03.411097"], ["updated_at", "2017-04-15 19:14:03.411097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.415368"], ["updated_at", "2017-04-15 19:14:03.415368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:03.416982"], ["updated_at", "2017-04-15 19:14:03.416982"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5514], ["updated_at", "2017-04-15 19:14:03.418419"], ["id", 9280]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 19:14:03.421565"], ["updated_at", "2017-04-15 19:14:03.421565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.425333"], ["updated_at", "2017-04-15 19:14:03.425333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:03.427045"], ["updated_at", "2017-04-15 19:14:03.427045"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5515], ["updated_at", "2017-04-15 19:14:03.428243"], ["id", 9282]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:03.430730"], ["updated_at", "2017-04-15 19:14:03.430730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resource\":{\"id\":6252,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5515,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 19:14:03.432992"], ["updated_at", "2017-04-15 19:14:03.432992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.437192"], ["updated_at", "2017-04-15 19:14:03.437192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:03.438779"], ["updated_at", "2017-04-15 19:14:03.438779"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5516], ["updated_at", "2017-04-15 19:14:03.440111"], ["id", 9284]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:03.443338"], ["updated_at", "2017-04-15 19:14:03.443338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":6253,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5516,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 19:14:03.446786"], ["updated_at", "2017-04-15 19:14:03.446786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.451349"], ["updated_at", "2017-04-15 19:14:03.451349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:03.454045"], ["updated_at", "2017-04-15 19:14:03.454045"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5517], ["updated_at", "2017-04-15 19:14:03.455927"], ["id", 9286]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:03.460160"], ["updated_at", "2017-04-15 19:14:03.460160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 6254], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 19:14:03.463022"], ["updated_at", "2017-04-15 19:14:03.463022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9287]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.468418"], ["updated_at", "2017-04-15 19:14:03.468418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:03.470654"], ["updated_at", "2017-04-15 19:14:03.470654"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5518], ["updated_at", "2017-04-15 19:14:03.472218"], ["id", 9288]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:03.480521"], ["updated_at", "2017-04-15 19:14:03.480521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 6255], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"resource\":{\"id\":6255,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5518,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 19:14:03.483168"], ["updated_at", "2017-04-15 19:14:03.483168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9289]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6255]] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5518]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.490503"], ["updated_at", "2017-04-15 19:14:03.490503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:03.492557"], ["updated_at", "2017-04-15 19:14:03.492557"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5519], ["updated_at", "2017-04-15 19:14:03.493922"], ["id", 9290]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:03.497080"], ["updated_at", "2017-04-15 19:14:03.497080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":6256,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5519,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 19:14:03.499584"], ["updated_at", "2017-04-15 19:14:03.499584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9291]] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6256]] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5519]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.506007"], ["updated_at", "2017-04-15 19:14:03.506007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:03.507819"], ["updated_at", "2017-04-15 19:14:03.507819"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5520], ["updated_at", "2017-04-15 19:14:03.509318"], ["id", 9292]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "65fc9fc4-99f5-0bf5-392d-850912fb49b4"], ["created_at", "2017-04-15 19:14:03.512940"], ["updated_at", "2017-04-15 19:14:03.512940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12158], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "220d1203-e3ee-d4b4-efa6-2a4b4ad60518"], ["created_at", "2017-04-15 19:14:03.515155"], ["updated_at", "2017-04-15 19:14:03.515155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10963], ["process_id", 5520], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:03.519222"], ["updated_at", "2017-04-15 19:14:03.519222"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6257], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.521047"], ["updated_at", "2017-04-15 19:14:03.521047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.525145"], ["updated_at", "2017-04-15 19:14:03.525145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:03.527021"], ["updated_at", "2017-04-15 19:14:03.527021"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5521], ["updated_at", "2017-04-15 19:14:03.528351"], ["id", 9294]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e556eaca-a71c-4edd-9fcd-d9d6e4bc73b5"], ["created_at", "2017-04-15 19:14:03.533207"], ["updated_at", "2017-04-15 19:14:03.533207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12159], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "adb9f636-4ad0-ed65-e4a0-966c8417f26f"], ["created_at", "2017-04-15 19:14:03.535421"], ["updated_at", "2017-04-15 19:14:03.535421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10964], ["process_id", 5521], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:03.539562"], ["updated_at", "2017-04-15 19:14:03.539562"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6258], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.541673"], ["updated_at", "2017-04-15 19:14:03.541673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.546721"], ["updated_at", "2017-04-15 19:14:03.546721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:03.549646"], ["updated_at", "2017-04-15 19:14:03.549646"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5522], ["updated_at", "2017-04-15 19:14:03.551377"], ["id", 9296]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "04b96ba5-fd14-7786-d9f7-48fcf9015427"], ["created_at", "2017-04-15 19:14:03.555974"], ["updated_at", "2017-04-15 19:14:03.555974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12160], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "c4e9ceb0-84a7-a44c-98f9-1745bca4fbd9"], ["created_at", "2017-04-15 19:14:03.558474"], ["updated_at", "2017-04-15 19:14:03.558474"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10965], ["process_id", 5522], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:03.563138"], ["updated_at", "2017-04-15 19:14:03.563138"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6259], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.564905"], ["updated_at", "2017-04-15 19:14:03.564905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.570253"], ["updated_at", "2017-04-15 19:14:03.570253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:03.572338"], ["updated_at", "2017-04-15 19:14:03.572338"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5523], ["updated_at", "2017-04-15 19:14:03.574223"], ["id", 9298]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "14751bee-f695-7135-b6cd-bfc62c89faa5"], ["created_at", "2017-04-15 19:14:03.579424"], ["updated_at", "2017-04-15 19:14:03.579424"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12161], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "89a7fae5-921a-a9f5-2c1f-ce6313d49994"], ["created_at", "2017-04-15 19:14:03.582018"], ["updated_at", "2017-04-15 19:14:03.582018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10966], ["process_id", 5523], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:03.586385"], ["updated_at", "2017-04-15 19:14:03.586385"]] SQL (0.1ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6260], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.588639"], ["updated_at", "2017-04-15 19:14:03.588639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.593294"], ["updated_at", "2017-04-15 19:14:03.593294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:03.595348"], ["updated_at", "2017-04-15 19:14:03.595348"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5524], ["updated_at", "2017-04-15 19:14:03.596977"], ["id", 9300]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e3d2225a-bd17-04eb-084d-3850ed02b1aa"], ["created_at", "2017-04-15 19:14:03.601418"], ["updated_at", "2017-04-15 19:14:03.601418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12162], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "57c53ba0-ebed-33c8-039e-a6348375a3b5"], ["created_at", "2017-04-15 19:14:03.603840"], ["updated_at", "2017-04-15 19:14:03.603840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10967], ["process_id", 5524], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:03.607768"], ["updated_at", "2017-04-15 19:14:03.607768"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6261], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.609964"], ["updated_at", "2017-04-15 19:14:03.609964"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.615126"], ["updated_at", "2017-04-15 19:14:03.615126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:03.617139"], ["updated_at", "2017-04-15 19:14:03.617139"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5525], ["updated_at", "2017-04-15 19:14:03.618598"], ["id", 9302]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "eae1b813-2d4f-a7cf-cf68-ab2ca4eb0896"], ["created_at", "2017-04-15 19:14:03.622526"], ["updated_at", "2017-04-15 19:14:03.622526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12163], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "aeadd04e-360c-34d0-d271-a60a20763ce2"], ["created_at", "2017-04-15 19:14:03.624912"], ["updated_at", "2017-04-15 19:14:03.624912"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10968], ["process_id", 5525], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:03.628875"], ["updated_at", "2017-04-15 19:14:03.628875"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6262], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.630493"], ["updated_at", "2017-04-15 19:14:03.630493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.634768"], ["updated_at", "2017-04-15 19:14:03.634768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:03.636696"], ["updated_at", "2017-04-15 19:14:03.636696"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5526], ["updated_at", "2017-04-15 19:14:03.638334"], ["id", 9304]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "74ccb7e6-7433-f715-7884-9b0adc595d9d"], ["created_at", "2017-04-15 19:14:03.643259"], ["updated_at", "2017-04-15 19:14:03.643259"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "526c6ab9-b788-1d58-0549-24f6ab4892f9"], ["created_at", "2017-04-15 19:14:03.645858"], ["updated_at", "2017-04-15 19:14:03.645858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12164], ["child_process_id", 12165], ["uuid", "4bb325d9-1aee-21ba-0eb7-b946d7001329"], ["created_at", "2017-04-15 19:14:03.648291"], ["updated_at", "2017-04-15 19:14:03.648291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5a714e09-e0d0-70bf-ef63-d6f8dd554d51"], ["created_at", "2017-04-15 19:14:03.651278"], ["updated_at", "2017-04-15 19:14:03.651278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12166], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "a2268e1f-f4da-1cf5-7820-80d2c9109750"], ["created_at", "2017-04-15 19:14:03.653466"], ["updated_at", "2017-04-15 19:14:03.653466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10970], ["process_id", 5526], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:03.657511"], ["updated_at", "2017-04-15 19:14:03.657511"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6263], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.659484"], ["updated_at", "2017-04-15 19:14:03.659484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 10969], ["process_id", 5526], ["status", 0], ["dependencies", "[{\"operation_id\":6263,\"status\":0}]"], ["created_at", "2017-04-15 19:14:03.663209"], ["updated_at", "2017-04-15 19:14:03.663209"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6264], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.664721"], ["updated_at", "2017-04-15 19:14:03.664721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12165]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12165) [["id", 12165]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12165], ["created_at", "2017-04-15 19:14:03.671159"], ["updated_at", "2017-04-15 19:14:03.671159"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:03.673340"], ["id", 5527]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5527], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.676121"], ["updated_at", "2017-04-15 19:14:03.676121"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5527], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.681625"], ["updated_at", "2017-04-15 19:14:03.681625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:03.683517"], ["updated_at", "2017-04-15 19:14:03.683517"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5528], ["updated_at", "2017-04-15 19:14:03.685040"], ["id", 9308]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "da487981-0a25-6be0-4f18-5d0bee5140a5"], ["created_at", "2017-04-15 19:14:03.688906"], ["updated_at", "2017-04-15 19:14:03.688906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12167], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "d193823f-4915-3ff0-583b-a1105352ec09"], ["created_at", "2017-04-15 19:14:03.690835"], ["updated_at", "2017-04-15 19:14:03.690835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10971], ["process_id", 5528], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:03.694693"], ["updated_at", "2017-04-15 19:14:03.694693"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6265], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.696454"], ["updated_at", "2017-04-15 19:14:03.696454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.700808"], ["updated_at", "2017-04-15 19:14:03.700808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:03.702687"], ["updated_at", "2017-04-15 19:14:03.702687"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5529], ["updated_at", "2017-04-15 19:14:03.704264"], ["id", 9310]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 19:14:03.709229"], ["updated_at", "2017-04-15 19:14:03.709229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "60eca38e-a457-8410-266a-1ca54d6b56a9"], ["created_at", "2017-04-15 19:14:03.712567"], ["updated_at", "2017-04-15 19:14:03.712567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12168], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "6b0c6411-dd2e-1516-3eef-f00596b3178e"], ["created_at", "2017-04-15 19:14:03.714937"], ["updated_at", "2017-04-15 19:14:03.714937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6266], ["parent_type", "RailsWorkflow::Operation"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10972], ["process_id", 5529], ["status", 0], ["dependencies", "[{\"operation_id\":6266,\"status\":4}]"], ["created_at", "2017-04-15 19:14:03.720177"], ["updated_at", "2017-04-15 19:14:03.720177"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6267], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.722158"], ["updated_at", "2017-04-15 19:14:03.722158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.726573"], ["updated_at", "2017-04-15 19:14:03.726573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:03.728539"], ["updated_at", "2017-04-15 19:14:03.728539"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5530], ["updated_at", "2017-04-15 19:14:03.730200"], ["id", 9312]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d11cf20d-2d18-c6a1-97f7-1bdfec3d8754"], ["created_at", "2017-04-15 19:14:03.733972"], ["updated_at", "2017-04-15 19:14:03.733972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12169], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "72542d24-5a0a-186b-0d45-22558e867a2f"], ["created_at", "2017-04-15 19:14:03.736346"], ["updated_at", "2017-04-15 19:14:03.736346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 10973], ["process_id", 5530], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:03.740427"], ["updated_at", "2017-04-15 19:14:03.740427"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6268], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.742591"], ["updated_at", "2017-04-15 19:14:03.742591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:03.746269"], ["updated_at", "2017-04-15 19:14:03.746269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$UJ120iVcNxsV/U5Z4RSHM.QLe07Kt6ZdsqLy3lBaylcW76QNfQWjW"], ["created_at", "2017-04-15 19:14:03.751271"], ["updated_at", "2017-04-15 19:14:03.751271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1623], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1623], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:03.753045"], ["updated_at", "2017-04-15 19:14:03.754571"], ["id", 6269]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:03.758062"], ["updated_at", "2017-04-15 19:14:03.758062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$.c74WZlMym4kMVlzdavWk.3vv0fQTE1MUpZ0bV7vMr0tK8kZHDUY2"], ["created_at", "2017-04-15 19:14:03.762706"], ["updated_at", "2017-04-15 19:14:03.762706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1624], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1624], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:03.771037"], ["updated_at", "2017-04-15 19:14:03.772558"], ["id", 6270]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:03.774590"], ["updated_at", "2017-04-15 19:14:03.774590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1624], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1624], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:03.776004"], ["updated_at", "2017-04-15 19:14:03.777108"], ["id", 6271]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6270]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:03.781163"], ["updated_at", "2017-04-15 19:14:03.781163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$g2Imt5zg2bMfZbEDj15X7OZZd9aNUMdO6f9QqCShCcQ8.4UHVzEYq"], ["created_at", "2017-04-15 19:14:03.785215"], ["updated_at", "2017-04-15 19:14:03.785215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1625], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1625], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:03.786621"], ["updated_at", "2017-04-15 19:14:03.787797"], ["id", 6272]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "updated_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["assignment_id", nil], ["assignment_type", nil], ["is_active", "f"], ["updated_at", "2017-04-15 19:14:03.789418"], ["id", 6272]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:03.792250"], ["updated_at", "2017-04-15 19:14:03.792250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$54dZpD6WpmqgUnFotARPX.9zIxeLsTbg2QoL8GdL3MfwbrofT7yYK"], ["created_at", "2017-04-15 19:14:03.796374"], ["updated_at", "2017-04-15 19:14:03.796374"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1626], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1626], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:03.797903"], ["updated_at", "2017-04-15 19:14:03.799363"], ["id", 6273]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$NL66fTuVrBdUMmiHNk1Ttu3KNEIxJk97YeZv/jGX6uYtJvhN8cV3i"], ["created_at", "2017-04-15 19:14:03.804310"], ["updated_at", "2017-04-15 19:14:03.804310"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6273]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1626]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:03.810276"], ["updated_at", "2017-04-15 19:14:03.810276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$WImvvQwATdhWlMmZdYX9HOTYnQ5MNbnLYBwN.dX5OCTqg9YjSq252"], ["created_at", "2017-04-15 19:14:03.814429"], ["updated_at", "2017-04-15 19:14:03.814429"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1628], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1628], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:03.815951"], ["updated_at", "2017-04-15 19:14:03.817271"], ["id", 6274]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$h5G/ESYp7h6TtbTsEz80U.Df1On9LZkNOnlekZ5x/77tlLJGH/jP."], ["created_at", "2017-04-15 19:14:03.821936"], ["updated_at", "2017-04-15 19:14:03.821936"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:03.825243"], ["updated_at", "2017-04-15 19:14:03.825243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$CIa0MMIXXT21E9Mhz5V95.AHFyF6XM0SJKu0KlDVLrchzQm/rEW4K"], ["created_at", "2017-04-15 19:14:03.829335"], ["updated_at", "2017-04-15 19:14:03.829335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1630], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1630], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:03.830722"], ["updated_at", "2017-04-15 19:14:03.832021"], ["id", 6275]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$YMAxrHR.oUV0mcEhAwQDJeLichtgfg8AYZ8EUXd/XavjkOzjnPF6u"], ["created_at", "2017-04-15 19:14:03.836971"], ["updated_at", "2017-04-15 19:14:03.836971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6692a231-0329-ed1e-aa06-e18d53ad8283"], ["created_at", "2017-04-15 19:14:03.840220"], ["updated_at", "2017-04-15 19:14:03.840220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "role", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12170], ["role", "admin"], ["uuid", "8b1b9aee-90c2-2871-1afa-b94e5ea675de"], ["created_at", "2017-04-15 19:14:03.842057"], ["updated_at", "2017-04-15 19:14:03.842057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5daa05fb-55c7-3abf-0178-bdecb4415937"], ["created_at", "2017-04-15 19:14:03.844451"], ["updated_at", "2017-04-15 19:14:03.844451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "group", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12171], ["group", "some_group"], ["uuid", "c709b232-e1d7-b7ad-7d7f-bf0e2777e7ec"], ["created_at", "2017-04-15 19:14:03.846143"], ["updated_at", "2017-04-15 19:14:03.846143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 10975], ["created_at", "2017-04-15 19:14:03.848461"], ["updated_at", "2017-04-15 19:14:03.848461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 10974], ["created_at", "2017-04-15 19:14:03.850553"], ["updated_at", "2017-04-15 19:14:03.850553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$talmEBWMv2Y1oVXCQYTT/uqHlIwl6UVPyfFH18vbSmfrZpNfI/806"], ["role", "admin"], ["created_at", "2017-04-15 19:14:03.854627"], ["updated_at", "2017-04-15 19:14:03.854627"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'admin')  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'fake@email.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "fake@email.com"], ["encrypted_password", "$2a$04$oF7gwj3Y3T3T6X8tgIF28uKGFnOVcmL6WkDIsbrQMvfdH7x.XY/Ma"], ["role", "fake"], ["created_at", "2017-04-15 19:14:03.860729"], ["updated_at", "2017-04-15 19:14:03.860729"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'fake') SQL (0.5ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1632], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1632], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:03.863755"], ["updated_at", "2017-04-15 19:14:03.865541"], ["id", 6277]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."assignment_id" IS NULL  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:03.870277"], ["updated_at", "2017-04-15 19:14:03.870277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:03.872027"], ["updated_at", "2017-04-15 19:14:03.872027"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6278], ["updated_at", "2017-04-15 19:14:03.873213"], ["id", 9314]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:14:03.875202"], ["id", 6278]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:03.879118"], ["updated_at", "2017-04-15 19:14:03.879118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:03.881254"], ["updated_at", "2017-04-15 19:14:03.881254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:03.883025"], ["updated_at", "2017-04-15 19:14:03.883025"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5531], ["updated_at", "2017-04-15 19:14:03.884195"], ["id", 9315]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "child_process_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["child_process_id", 5531], ["updated_at", "2017-04-15 19:14:03.886004"], ["id", 6279]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:03.887689"], ["id", 6279]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6279 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6279]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5531]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:03.891336"], ["id", 5531]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5531], ["status", 0]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6279], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2] SQL (0.5ms) INSERT INTO "rails_workflow_errors" ("parent_id", "parent_type", "message", "stack_trace", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["parent_id", 6279], ["parent_type", "RailsWorkflow::Operation"], ["message", "undefined method `save' for nil:NilClass"], ["stack_trace", "/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:60:in `execute_in_transaction'
\n/home/maxim/rails_workflow/app/jobs/rails_workflow/operation_execution_job.rb:12:in `perform'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:32:in `block in perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/i18n-0.7.0/lib/i18n.rb:257:in `with_locale'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/translation.rb:7:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:23:in `block (4 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `block in instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:22:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `block in tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:26:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:19:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_perform_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:31:in `perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:16:in `perform_now'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:28:in `starting'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:18:in `start'
\n/home/maxim/rails_workflow/spec/models/rails_workflow/operation_spec.rb:179:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `block in with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `block in with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:618:in `block in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-rails-3.4.2/lib/rspec/rails/adapters.rb:127:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:389:in `execute_with'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:620:in `block (2 levels) in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:621:in `run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:233:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:581:in `block in run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:543:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (3 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (2 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/configuration.rb:1680:in `with_suite_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:118:in `block in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/reporter.rb:77:in `report'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:117:in `run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:93:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:78:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:45:in `invoke'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/exe/rspec:4:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `kernel_load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:335:in `exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:20:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:11:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:32:in `block in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:24:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `
'"], ["created_at", "2017-04-15 19:14:03.899601"], ["updated_at", "2017-04-15 19:14:03.899601"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 142], ["parent_type", "RailsWorkflow::Error"], ["body", "{\"parent\":{\"id\":6279,\"class\":\"RailsWorkflow::Operation\"},\"target\":{\"id\":6279,\"class\":\"RailsWorkflow::Operation\"},\"method\":\"execute_in_transaction\"}"], ["created_at", "2017-04-15 19:14:03.903734"], ["updated_at", "2017-04-15 19:14:03.903734"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 142], ["parent_type", "RailsWorkflow::Error"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6279]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6279]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6279]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 4], ["updated_at", "2017-04-15 19:14:03.909413"], ["id", 6279]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [e1c4a3e3-b4fa-4eb3-b95a-64f919fc86a2] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 22.14ms RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5531]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 2], ["completed_at", "2017-04-15 19:14:03.914152"], ["created_at", "2017-04-15 19:14:03.914829"], ["updated_at", "2017-04-15 19:14:03.914829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 6], ["completed_at", "2017-04-15 19:14:03.918499"], ["created_at", "2017-04-15 19:14:03.919077"], ["updated_at", "2017-04-15 19:14:03.919077"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 5], ["completed_at", "2017-04-15 19:14:03.922692"], ["created_at", "2017-04-15 19:14:03.923275"], ["updated_at", "2017-04-15 19:14:03.923275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f4731244-6d6d-3753-4889-5155d1422f82"], ["created_at", "2017-04-15 19:14:03.927788"], ["updated_at", "2017-04-15 19:14:03.927788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 12172], ["uuid", "327ad304-e9fd-5311-ff1b-88eb5af04811"], ["created_at", "2017-04-15 19:14:03.930371"], ["updated_at", "2017-04-15 19:14:03.930371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::TestProcess"], ["uuid", "703fc6cc-9e96-207f-328b-7054d14760c1"], ["created_at", "2017-04-15 19:14:03.935138"], ["updated_at", "2017-04-15 19:14:03.935138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("type", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "RailsWorkflow::TestProcess"], ["template_id", 12173], ["created_at", "2017-04-15 19:14:03.940855"], ["updated_at", "2017-04-15 19:14:03.940855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:03.942766"], ["id", 5532]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5532], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:14:03.944687"], ["updated_at", "2017-04-15 19:14:03.944687"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5532], ["parent_type", "RailsWorkflow::Process"]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12173]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::Process"], ["uuid", "20b8580f-79e4-4b64-501c-4da0fe44b683"], ["created_at", "2017-04-15 19:14:03.950271"], ["updated_at", "2017-04-15 19:14:03.950271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12174], ["uuid", "aa3f5ed3-63c7-7d84-ee13-e4a3ea781807"], ["created_at", "2017-04-15 19:14:03.952476"], ["updated_at", "2017-04-15 19:14:03.952476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12174], ["dependencies", "[{\"id\":10977,\"statuses\":[2]}]"], ["uuid", "f0f9380b-1190-1565-6abb-7a58c27380fd"], ["created_at", "2017-04-15 19:14:03.954740"], ["updated_at", "2017-04-15 19:14:03.954740"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12174]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12174) [["id", 12174]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e2a0cb0a-f1f7-eee6-bca2-a60039a5a7e4"], ["created_at", "2017-04-15 19:14:03.965340"], ["updated_at", "2017-04-15 19:14:03.965340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a254f2a6-7ddb-c99c-02f4-cc64d19b2444"], ["created_at", "2017-04-15 19:14:03.967288"], ["updated_at", "2017-04-15 19:14:03.967288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "184a67d6-34f2-d9f1-2363-bd70f6dc49cb"], ["created_at", "2017-04-15 19:14:03.968934"], ["updated_at", "2017-04-15 19:14:03.968934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12176], ["child_process_id", 12177], ["uuid", "b6a2659a-a17c-85c5-4fdd-1febf9bd059e"], ["created_at", "2017-04-15 19:14:03.970546"], ["updated_at", "2017-04-15 19:14:03.970546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12175]] SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 12175], ["updated_at", "2017-04-15 19:14:03.973325"], ["id", 10979]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12175]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12177]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b9dbf5d8-0e51-9358-7c4c-c54935b53457"], ["created_at", "2017-04-15 19:14:03.980134"], ["updated_at", "2017-04-15 19:14:03.980134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f5a77b6e-efc4-2d73-8a97-a1a9dc49eaab"], ["created_at", "2017-04-15 19:14:03.982085"], ["updated_at", "2017-04-15 19:14:03.982085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12179], ["uuid", "dfcd2eaf-87eb-9cbf-1da8-f3882c085a2e"], ["created_at", "2017-04-15 19:14:03.983711"], ["updated_at", "2017-04-15 19:14:03.983711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12178]] SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 12178], ["updated_at", "2017-04-15 19:14:03.986256"], ["id", 10980]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12178]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:03.993635"], ["updated_at", "2017-04-15 19:14:03.993635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:03.995658"], ["id", 12180]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12180]] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12180], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12180], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:03.999940"], ["updated_at", "2017-04-15 19:14:03.999940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.001967"], ["id", 10981]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12180], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12180], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:04.005653"], ["updated_at", "2017-04-15 19:14:04.005653"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.008168"], ["id", 10982]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12180], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12180], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:04.012255"], ["updated_at", "2017-04-15 19:14:04.012255"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.014662"], ["id", 10983]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10981}]"], ["updated_at", "2017-04-15 19:14:04.019124"], ["id", 10982]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10982}]"], ["updated_at", "2017-04-15 19:14:04.022490"], ["id", 10983]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:04.028137"], ["updated_at", "2017-04-15 19:14:04.028137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:04.029768"], ["id", 12181]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12181]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12181], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12181], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:04.033436"], ["updated_at", "2017-04-15 19:14:04.033436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.035379"], ["id", 10984]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12181], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12181], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:04.038234"], ["updated_at", "2017-04-15 19:14:04.038234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.040236"], ["id", 10985]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12181], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12181], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:04.043259"], ["updated_at", "2017-04-15 19:14:04.043259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.045159"], ["id", 10986]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10984}]"], ["updated_at", "2017-04-15 19:14:04.048295"], ["id", 10985]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10985}]"], ["updated_at", "2017-04-15 19:14:04.050645"], ["id", 10986]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Some new name"], ["updated_at", "2017-04-15 19:14:04.053208"], ["id", 12181]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Test Process"], ["updated_at", "2017-04-15 19:14:04.056495"], ["id", 12181]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12181]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12181], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12181], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:14:04.063598"], ["id", 10985]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12181], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:14:04.067052"], ["id", 10986]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10984}]"], ["updated_at", "2017-04-15 19:14:04.070452"], ["id", 10985]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10985}]"], ["updated_at", "2017-04-15 19:14:04.073171"], ["id", 10986]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:04.077780"], ["updated_at", "2017-04-15 19:14:04.077780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:04.079445"], ["id", 12182]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12182]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12182], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12182], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:04.083041"], ["updated_at", "2017-04-15 19:14:04.083041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.085277"], ["id", 10987]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12182], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12182], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:04.088854"], ["updated_at", "2017-04-15 19:14:04.088854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.090791"], ["id", 10988]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12182], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12182], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:04.093868"], ["updated_at", "2017-04-15 19:14:04.093868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.095820"], ["id", 10989]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10987}]"], ["updated_at", "2017-04-15 19:14:04.098872"], ["id", 10988]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10988}]"], ["updated_at", "2017-04-15 19:14:04.101077"], ["id", 10989]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 12182]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:04.106243"], ["updated_at", "2017-04-15 19:14:04.106243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:04.107907"], ["id", 12183]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12183]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12183], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12183], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:04.111454"], ["updated_at", "2017-04-15 19:14:04.111454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.113309"], ["id", 10990]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12183], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12183], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:04.116357"], ["updated_at", "2017-04-15 19:14:04.116357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.118806"], ["id", 10991]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12183], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12183], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:04.122583"], ["updated_at", "2017-04-15 19:14:04.122583"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.124867"], ["id", 10992]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10990}]"], ["updated_at", "2017-04-15 19:14:04.128204"], ["id", 10991]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10991}]"], ["updated_at", "2017-04-15 19:14:04.130493"], ["id", 10992]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12183]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Some new operation name"], ["updated_at", "2017-04-15 19:14:04.134703"], ["id", 10990]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12183]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12183], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Default Operation 2"], ["updated_at", "2017-04-15 19:14:04.140238"], ["id", 10990]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12183], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:14:04.143269"], ["id", 10991]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12183], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:14:04.146260"], ["id", 10992]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10990}]"], ["updated_at", "2017-04-15 19:14:04.149182"], ["id", 10991]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10991}]"], ["updated_at", "2017-04-15 19:14:04.151421"], ["id", 10992]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10990]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:04.155804"], ["updated_at", "2017-04-15 19:14:04.155804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:04.157491"], ["id", 12184]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12184]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12184], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12184], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:04.161046"], ["updated_at", "2017-04-15 19:14:04.161046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.162903"], ["id", 10993]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12184], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12184], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:04.166230"], ["updated_at", "2017-04-15 19:14:04.166230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.168308"], ["id", 10994]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12184], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12184], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:04.171520"], ["updated_at", "2017-04-15 19:14:04.171520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.173473"], ["id", 10995]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10993}]"], ["updated_at", "2017-04-15 19:14:04.176831"], ["id", 10994]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10994}]"], ["updated_at", "2017-04-15 19:14:04.179116"], ["id", 10995]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Some new operation"], ["process_template_id", 12184], ["uuid", "20f1dbae-b41a-479c-a09c-b5685721e980"], ["created_at", "2017-04-15 19:14:04.182484"], ["updated_at", "2017-04-15 19:14:04.182484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 12184]] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12184]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12184], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12184], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:14:04.190925"], ["id", 10994]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12184], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:14:04.193988"], ["id", 10995]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = 10996  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10993}]"], ["updated_at", "2017-04-15 19:14:04.197448"], ["id", 10994]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10994}]"], ["updated_at", "2017-04-15 19:14:04.199674"], ["id", 10995]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 12184]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:04.204936"], ["updated_at", "2017-04-15 19:14:04.204936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:04.206511"], ["id", 12185]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12185]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12185], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12185], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:04.209880"], ["updated_at", "2017-04-15 19:14:04.209880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.211982"], ["id", 10997]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12185], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12185], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:04.215652"], ["updated_at", "2017-04-15 19:14:04.215652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.217843"], ["id", 10998]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12185], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12185], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:04.221311"], ["updated_at", "2017-04-15 19:14:04.221311"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.223530"], ["id", 10999]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10997}]"], ["updated_at", "2017-04-15 19:14:04.226683"], ["id", 10998]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":10998}]"], ["updated_at", "2017-04-15 19:14:04.229114"], ["id", 10999]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 10997]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:14:04.234253"], ["updated_at", "2017-04-15 19:14:04.234253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 19:14:04.236516"], ["updated_at", "2017-04-15 19:14:04.236516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:14:04.238091"], ["id", 12187]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12187]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12187], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12187], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 19:14:04.241589"], ["updated_at", "2017-04-15 19:14:04.241589"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.243962"], ["id", 11000]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:14:04.247141"], ["id", 12186]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12186]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12186], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12186], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:14:04.250645"], ["updated_at", "2017-04-15 19:14:04.250645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.252575"], ["id", 11001]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12186], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12186], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:14:04.255482"], ["updated_at", "2017-04-15 19:14:04.255482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 12187], ["updated_at", "2017-04-15 19:14:04.258252"], ["id", 11002]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":11001}]"], ["updated_at", "2017-04-15 19:14:04.261694"], ["id", 11002]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:14:04.266914"], ["updated_at", "2017-04-15 19:14:04.266914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 19:14:04.269159"], ["updated_at", "2017-04-15 19:14:04.269159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:14:04.270723"], ["id", 12189]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12189]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12189], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12189], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 19:14:04.274604"], ["updated_at", "2017-04-15 19:14:04.274604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.277106"], ["id", 11003]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:14:04.280220"], ["id", 12188]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12188]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12188], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12188], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:14:04.283704"], ["updated_at", "2017-04-15 19:14:04.283704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.285632"], ["id", 11004]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12188], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12188], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:14:04.288513"], ["updated_at", "2017-04-15 19:14:04.288513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 12189], ["updated_at", "2017-04-15 19:14:04.291183"], ["id", 11005]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":11004}]"], ["updated_at", "2017-04-15 19:14:04.294473"], ["id", 11005]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Parent Process"]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12188]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12189]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:14:04.302800"], ["updated_at", "2017-04-15 19:14:04.302800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:14:04.304478"], ["id", 12190]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12190]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12190], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12190], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:14:04.308599"], ["updated_at", "2017-04-15 19:14:04.308599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:04.310904"], ["id", 11006]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12190], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12190], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:14:04.313738"], ["updated_at", "2017-04-15 19:14:04.313738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9b6d8ff9-3fa0-ba84-b876-23ff771d129e"], ["created_at", "2017-04-15 19:14:11.669352"], ["updated_at", "2017-04-15 19:14:11.669352"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12191], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "7bfb504a-4a04-924c-d570-338b58b1c363"], ["created_at", "2017-04-15 19:14:11.685563"], ["updated_at", "2017-04-15 19:14:11.685563"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#index as HTML Parameters: {"process_template_id"=>"12191"} RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12191]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 25ms (Views: 8.5ms | ActiveRecord: 0.4ms) RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12191]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "156804e6-28eb-f110-b161-1bcbed4ef35c"], ["created_at", "2017-04-15 19:14:11.722149"], ["updated_at", "2017-04-15 19:14:11.722149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12192], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "a7a0a053-99b6-96fb-1f9b-23f646a31641"], ["created_at", "2017-04-15 19:14:11.724146"], ["updated_at", "2017-04-15 19:14:11.724146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#show as HTML Parameters: {"process_template_id"=>"12192", "id"=>"11009"} RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11009]] RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12192]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.8ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b82f751b-6076-9639-d8c7-b1d26fc1bfc0"], ["created_at", "2017-04-15 19:14:11.743303"], ["updated_at", "2017-04-15 19:14:11.743303"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5485088c-4da4-8de2-8521-01f0d2abddb1"], ["created_at", "2017-04-15 19:14:11.745662"], ["updated_at", "2017-04-15 19:14:11.745662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#new as HTML Parameters: {"process_template_id"=>"12194"} RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12194]] Unpermitted parameter: process_template_id Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 8ms (Views: 1.8ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c3d2f147-3fd1-cfb2-94da-7ad123bd7758"], ["created_at", "2017-04-15 19:14:11.762188"], ["updated_at", "2017-04-15 19:14:11.762188"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12195], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "fb9be478-0481-c452-3ec8-340780ff5477"], ["created_at", "2017-04-15 19:14:11.764357"], ["updated_at", "2017-04-15 19:14:11.764357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#edit as HTML Parameters: {"process_template_id"=>"12195", "id"=>"11010"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11010]] RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12195]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4139c79b-a74c-393a-f717-6c9f09147d77"], ["created_at", "2017-04-15 19:14:11.784360"], ["updated_at", "2017-04-15 19:14:11.784360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12196", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12196"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12196]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 12196], ["uuid", "96593c25-cd28-17c8-e19a-ab20ba2f59f3"], ["created_at", "2017-04-15 19:14:11.796449"], ["updated_at", "2017-04-15 19:14:11.796449"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12196/operation_templates Completed 302 Found in 9ms (ActiveRecord: 1.1ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 12196]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8052bc23-2cbf-67ae-0ca3-ecce858f4355"], ["created_at", "2017-04-15 19:14:11.807024"], ["updated_at", "2017-04-15 19:14:11.807024"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate') Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12197", "type"=>"RailsWorkflow::CustomOperationTemplate"}, "process_template_id"=>"12197"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12197]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 12197], ["uuid", "a4c52cca-fe6a-8bd3-81b1-5ddddcc896c3"], ["created_at", "2017-04-15 19:14:11.830380"], ["updated_at", "2017-04-15 19:14:11.830380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12197/operation_templates Completed 302 Found in 20ms (ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4d48fcfa-b409-b5ae-884a-b44027049b8d"], ["created_at", "2017-04-15 19:14:11.838692"], ["updated_at", "2017-04-15 19:14:11.838692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12198", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12198"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12198]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 12198], ["uuid", "43ff0967-473b-6a96-4509-c94975d46700"], ["created_at", "2017-04-15 19:14:11.848051"], ["updated_at", "2017-04-15 19:14:11.848051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12198/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "60a5aa39-a61b-22e5-e0d8-8560fb783fca"], ["created_at", "2017-04-15 19:14:11.855340"], ["updated_at", "2017-04-15 19:14:11.855340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12199", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12199"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12199]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 12199], ["uuid", "783f0ce4-d95f-3d34-4abe-ce046d86429a"], ["created_at", "2017-04-15 19:14:11.864048"], ["updated_at", "2017-04-15 19:14:11.864048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12199/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "eccca629-50b7-ceb0-7eec-1d7594c5f0b5"], ["created_at", "2017-04-15 19:14:11.874550"], ["updated_at", "2017-04-15 19:14:11.874550"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1fd95631-7c21-611e-d8f0-fcd7828f0b13"], ["created_at", "2017-04-15 19:14:11.879386"], ["updated_at", "2017-04-15 19:14:11.879386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1c69071e-3970-ea3c-206d-951ca687ebe5"], ["created_at", "2017-04-15 19:14:11.883702"], ["updated_at", "2017-04-15 19:14:11.883702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12202], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "82ad3bd2-5479-1fe6-bb8b-f9f5976e8d81"], ["created_at", "2017-04-15 19:14:11.885883"], ["updated_at", "2017-04-15 19:14:11.885883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c31733f0-b4a1-3d8c-f75f-8e236c3bd8c7"], ["created_at", "2017-04-15 19:14:11.889883"], ["updated_at", "2017-04-15 19:14:11.889883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12203], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "ef36e581-95f8-e744-e2ce-82e10aec8bef"], ["created_at", "2017-04-15 19:14:11.891987"], ["updated_at", "2017-04-15 19:14:11.891987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12203", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12203", "id"=>"11016"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11016]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12203]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12203/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2bb0b85b-ad0d-b428-68b3-3ac7adefcfd3"], ["created_at", "2017-04-15 19:14:11.908196"], ["updated_at", "2017-04-15 19:14:11.908196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12204], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "9ea13d1b-995e-93ba-d054-81f97e8e98a7"], ["created_at", "2017-04-15 19:14:11.910588"], ["updated_at", "2017-04-15 19:14:11.910588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12204", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12204", "id"=>"11017"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11017]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12204]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12204/operation_templates Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "bcd63ad5-63ab-5383-9d43-48954cbb3532"], ["created_at", "2017-04-15 19:14:11.928538"], ["updated_at", "2017-04-15 19:14:11.928538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12205], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "ba13eaa1-4ee9-22e6-43a9-abc0b36e5090"], ["created_at", "2017-04-15 19:14:11.930903"], ["updated_at", "2017-04-15 19:14:11.930903"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "df00b3f4-dedd-50ca-a8ea-76fcce6640a0"], ["created_at", "2017-04-15 19:14:11.934723"], ["updated_at", "2017-04-15 19:14:11.934723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12206], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "7df507fe-7f3a-4f66-35e5-fe86a947e816"], ["created_at", "2017-04-15 19:14:11.937082"], ["updated_at", "2017-04-15 19:14:11.937082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c98f4418-6b7e-8a72-9f82-9ccbb290395f"], ["created_at", "2017-04-15 19:14:11.941704"], ["updated_at", "2017-04-15 19:14:11.941704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12207], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "855b870d-21b3-0f3d-ff2c-a1dc531cd4c7"], ["created_at", "2017-04-15 19:14:11.944027"], ["updated_at", "2017-04-15 19:14:11.944027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12207]] Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"12207", "id"=>"11020"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11020]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12207]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 11020]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12207/operation_templates Completed 302 Found in 8ms (ActiveRecord: 1.8ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "25f39179-1cae-2a31-38e5-7687e3dc5f36"], ["created_at", "2017-04-15 19:14:11.963133"], ["updated_at", "2017-04-15 19:14:11.963133"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12208], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "4c52035b-54d2-6d12-28e9-de792450d8fe"], ["created_at", "2017-04-15 19:14:11.965394"], ["updated_at", "2017-04-15 19:14:11.965394"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"12208", "id"=>"11021"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11021]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12208]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 11021]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12208/operation_templates Completed 302 Found in 6ms (ActiveRecord: 0.9ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operations"  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "4ef13e63-c1fb-f31a-7275-2b76f79b866e"], ["created_at", "2017-04-15 19:14:12.008590"], ["updated_at", "2017-04-15 19:14:12.008590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "0c0ca82a-5c44-3bd9-56c4-fabf8e29c114"], ["created_at", "2017-04-15 19:14:12.022233"], ["updated_at", "2017-04-15 19:14:12.022233"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#show as HTML Parameters: {"id"=>"12210"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12210]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/show.html.slim within layouts/rails_workflow/application (0.4ms) Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "3c8cbb99-60e6-61e9-95d7-80645a68830d"], ["created_at", "2017-04-15 19:14:12.046718"], ["updated_at", "2017-04-15 19:14:12.046718"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#edit as HTML Parameters: {"id"=>"12211"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12211]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "3c3fab21-04a3-fba4-f9a9-2271d3fa2c70"], ["created_at", "2017-04-15 19:14:12.068874"], ["updated_at", "2017-04-15 19:14:12.068874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12212/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.2ms) ROLLBACK  (0.2ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "067fe677-fb83-5bfd-d504-a954a1ecaf10"], ["created_at", "2017-04-15 19:14:12.080085"], ["updated_at", "2017-04-15 19:14:12.080085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12213/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "5f1ed5e4-277a-140a-474b-87692dbafbe4"], ["created_at", "2017-04-15 19:14:12.106982"], ["updated_at", "2017-04-15 19:14:12.106982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12214/operation_templates Completed 302 Found in 21ms (ActiveRecord: 0.5ms) RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "4c9f7f0e-5d04-08a1-4273-42713640c141"], ["created_at", "2017-04-15 19:14:12.120402"], ["updated_at", "2017-04-15 19:14:12.120402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "823d8619-ef07-aed1-7605-1e16de103459"], ["created_at", "2017-04-15 19:14:12.123971"], ["updated_at", "2017-04-15 19:14:12.123971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"12216"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12216]] Unpermitted parameter: id  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12216 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "2c66a570-c333-98ff-62da-8eccdd09e264"], ["created_at", "2017-04-15 19:14:12.138425"], ["updated_at", "2017-04-15 19:14:12.138425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"12217"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12217]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12217 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "4fc68433-fd6e-ffe7-f584-11b23090f190"], ["created_at", "2017-04-15 19:14:12.153590"], ["updated_at", "2017-04-15 19:14:12.153590"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "06c4a4c0-f365-805a-caf5-d0e5bcfcd826"], ["created_at", "2017-04-15 19:14:12.157123"], ["updated_at", "2017-04-15 19:14:12.157123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "782c557c-f8b0-f62e-8a0a-049e42fa35f5"], ["created_at", "2017-04-15 19:14:12.161049"], ["updated_at", "2017-04-15 19:14:12.161049"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"12220"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12220]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 12220]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "add40628-2a56-9d6c-b10b-a7fe9e547b5c"], ["created_at", "2017-04-15 19:14:12.175721"], ["updated_at", "2017-04-15 19:14:12.175721"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"12221"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12221]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 12221]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 5ms (ActiveRecord: 0.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e7d51281-dda3-1859-acc0-8346d3ce7f9e"], ["created_at", "2017-04-15 19:14:12.190906"], ["updated_at", "2017-04-15 19:14:12.190906"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12222], ["created_at", "2017-04-15 19:14:12.199967"], ["updated_at", "2017-04-15 19:14:12.199967"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#index as HTML  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.4ms)  select status, cnt from ( select row_number() over (partition by status), count(*) over (partition by status) cnt, status from rails_workflow_processes)t where row_number = 1  Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 11ms (Views: 3.9ms | ActiveRecord: 0.9ms) RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" ASC LIMIT 30 OFFSET 0  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "65852a8b-a778-5c0d-df61-bed83e85eb47"], ["created_at", "2017-04-15 19:14:12.221443"], ["updated_at", "2017-04-15 19:14:12.221443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12223], ["created_at", "2017-04-15 19:14:12.223656"], ["updated_at", "2017-04-15 19:14:12.223656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#show as HTML Parameters: {"id"=>"5534"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5534]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a4086d91-e1e4-85a8-b74d-6176a21c4d7f"], ["created_at", "2017-04-15 19:14:12.241643"], ["updated_at", "2017-04-15 19:14:12.241643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8d28790a-7469-16bb-18f4-d49f3d73c582"], ["created_at", "2017-04-15 19:14:12.251078"], ["updated_at", "2017-04-15 19:14:12.251078"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12225], ["created_at", "2017-04-15 19:14:12.252901"], ["updated_at", "2017-04-15 19:14:12.252901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#edit as HTML Parameters: {"id"=>"5535"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5535]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "425e3fa2-ae06-6038-f949-85e9393a7ae9"], ["created_at", "2017-04-15 19:14:12.269617"], ["updated_at", "2017-04-15 19:14:12.269617"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_processes" Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12226"}} SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12226]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12226) [["id", 12226]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12226], ["created_at", "2017-04-15 19:14:12.286244"], ["updated_at", "2017-04-15 19:14:12.286244"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:12.288774"], ["id", 5536]] SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5536], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:14:12.298246"], ["updated_at", "2017-04-15 19:14:12.298246"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5536], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5536]] Redirected to http://test.host/workflow/processes/5536 Completed 302 Found in 32ms (ActiveRecord: 4.2ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8ad4c208-f738-11a0-e9f1-a5cba582624c"], ["created_at", "2017-04-15 19:14:12.310518"], ["updated_at", "2017-04-15 19:14:12.310518"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12227"}} SQL (0.4ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12227]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12227) [["id", 12227]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12227], ["created_at", "2017-04-15 19:14:12.320118"], ["updated_at", "2017-04-15 19:14:12.320118"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:12.322290"], ["id", 5537]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5537], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:14:12.324259"], ["updated_at", "2017-04-15 19:14:12.324259"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5537], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5537]] Redirected to http://test.host/workflow/processes/5537 Completed 302 Found in 16ms (ActiveRecord: 2.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d05915a0-91b6-7917-a0aa-804a58710d07"], ["created_at", "2017-04-15 19:14:12.333219"], ["updated_at", "2017-04-15 19:14:12.333219"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12228"}} SQL (0.5ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12228]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12228) [["id", 12228]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12228], ["created_at", "2017-04-15 19:14:12.342421"], ["updated_at", "2017-04-15 19:14:12.342421"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:12.344683"], ["id", 5538]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5538], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:14:12.346695"], ["updated_at", "2017-04-15 19:14:12.346695"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5538], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5538]] Redirected to http://test.host/workflow/processes/5538 Completed 302 Found in 16ms (ActiveRecord: 3.5ms) RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" DESC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c729ecfa-ea34-1ac9-2d01-ce6b95f848db"], ["created_at", "2017-04-15 19:14:12.360171"], ["updated_at", "2017-04-15 19:14:12.360171"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "48b9eff1-4491-fe6a-1244-a4b5e3179d57"], ["created_at", "2017-04-15 19:14:12.364012"], ["updated_at", "2017-04-15 19:14:12.364012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "612204b7-776f-ef06-0f34-20037502a9bf"], ["created_at", "2017-04-15 19:14:12.367515"], ["updated_at", "2017-04-15 19:14:12.367515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12231], ["created_at", "2017-04-15 19:14:12.369335"], ["updated_at", "2017-04-15 19:14:12.369335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5daccd8c-336d-d054-915a-300448595e48"], ["created_at", "2017-04-15 19:14:12.372550"], ["updated_at", "2017-04-15 19:14:12.372550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12232], ["created_at", "2017-04-15 19:14:12.374307"], ["updated_at", "2017-04-15 19:14:12.374307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12232"}, "id"=>"5540"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5540]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "229aaa94-1af2-db0d-3810-fbf6c1744f0b"], ["created_at", "2017-04-15 19:14:12.387727"], ["updated_at", "2017-04-15 19:14:12.387727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12233], ["created_at", "2017-04-15 19:14:12.389550"], ["updated_at", "2017-04-15 19:14:12.389550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12233"}, "id"=>"5541"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5541]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4e76e04f-d819-a4ac-af58-252699559fab"], ["created_at", "2017-04-15 19:14:12.404406"], ["updated_at", "2017-04-15 19:14:12.404406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12234], ["created_at", "2017-04-15 19:14:12.406390"], ["updated_at", "2017-04-15 19:14:12.406390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7afdb0eb-8d70-3e9b-8c19-b0c571f17e06"], ["created_at", "2017-04-15 19:14:12.409957"], ["updated_at", "2017-04-15 19:14:12.409957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12235], ["created_at", "2017-04-15 19:14:12.411889"], ["updated_at", "2017-04-15 19:14:12.411889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b9b778f6-c8fc-a93e-0c3e-45bc074d9014"], ["created_at", "2017-04-15 19:14:12.416078"], ["updated_at", "2017-04-15 19:14:12.416078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6adb87f9-d4be-51d7-541e-43aa508093fb"], ["created_at", "2017-04-15 19:14:12.419561"], ["updated_at", "2017-04-15 19:14:12.419561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7c242569-a92b-b23c-2b1c-ce6091f40645"], ["created_at", "2017-04-15 19:14:12.422708"], ["updated_at", "2017-04-15 19:14:12.422708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12238], ["uuid", "ae4a8c48-2528-f13d-6c4d-3a390999fbfe"], ["created_at", "2017-04-15 19:14:12.425258"], ["updated_at", "2017-04-15 19:14:12.425258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12238], ["dependencies", "[{\"id\":11022,\"statuses\":[2]}]"], ["uuid", "f3d66386-2133-01b2-269d-756b04016d0d"], ["created_at", "2017-04-15 19:14:12.427898"], ["updated_at", "2017-04-15 19:14:12.427898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12238]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12238) [["id", 12238]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12238], ["created_at", "2017-04-15 19:14:12.433841"], ["updated_at", "2017-04-15 19:14:12.433841"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:12.435983"], ["id", 5544]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5544], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.438610"], ["updated_at", "2017-04-15 19:14:12.438610"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5544], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11022], ["process_id", 5544], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:12.454455"], ["updated_at", "2017-04-15 19:14:12.454455"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6283], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.456363"], ["updated_at", "2017-04-15 19:14:12.456363"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "55f2fda8-6582-e446-4b18-672b1870bfdb"], ["created_at", "2017-04-15 19:14:12.462412"], ["updated_at", "2017-04-15 19:14:12.462412"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12239], ["uuid", "429a958f-db12-d3b0-12c3-d24a4424e9a2"], ["created_at", "2017-04-15 19:14:12.464913"], ["updated_at", "2017-04-15 19:14:12.464913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12239], ["dependencies", "[{\"id\":11024,\"statuses\":[2]}]"], ["uuid", "05b1c300-e9d2-8d98-7bec-b840344a07e0"], ["created_at", "2017-04-15 19:14:12.467251"], ["updated_at", "2017-04-15 19:14:12.467251"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12239]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12239) [["id", 12239]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12239], ["created_at", "2017-04-15 19:14:12.473172"], ["updated_at", "2017-04-15 19:14:12.473172"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:12.475094"], ["id", 5545]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5545], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.477405"], ["updated_at", "2017-04-15 19:14:12.477405"]] RailsWorkflow::Context Load (0.4ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5545], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11024], ["process_id", 5545], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:12.481846"], ["updated_at", "2017-04-15 19:14:12.481846"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6284], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.483401"], ["updated_at", "2017-04-15 19:14:12.483401"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "99c51c74-cd15-f420-d236-2385a0edc00d"], ["created_at", "2017-04-15 19:14:12.488060"], ["updated_at", "2017-04-15 19:14:12.488060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12240], ["uuid", "ad3cfa78-3aae-b2fa-d721-08341545ea74"], ["created_at", "2017-04-15 19:14:12.490277"], ["updated_at", "2017-04-15 19:14:12.490277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12240], ["dependencies", "[{\"id\":11026,\"statuses\":[2]}]"], ["uuid", "e6b6746f-58ce-4a96-7ac1-0a962bdb65f0"], ["created_at", "2017-04-15 19:14:12.492626"], ["updated_at", "2017-04-15 19:14:12.492626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12240]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12240) [["id", 12240]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12240], ["created_at", "2017-04-15 19:14:12.498322"], ["updated_at", "2017-04-15 19:14:12.498322"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:12.500248"], ["id", 5546]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5546], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.502225"], ["updated_at", "2017-04-15 19:14:12.502225"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5546], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11026], ["process_id", 5546], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:12.506020"], ["updated_at", "2017-04-15 19:14:12.506020"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6285], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.507483"], ["updated_at", "2017-04-15 19:14:12.507483"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5546]] RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5546]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "fa070424-b06b-9b84-ed38-1547aeff4fde"], ["created_at", "2017-04-15 19:14:12.515585"], ["updated_at", "2017-04-15 19:14:12.515585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12241], ["uuid", "1e24c5da-e30d-8da1-913c-e8c5cc15925f"], ["created_at", "2017-04-15 19:14:12.517697"], ["updated_at", "2017-04-15 19:14:12.517697"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12241], ["dependencies", "[{\"id\":11028,\"statuses\":[2]}]"], ["uuid", "d9cd81bc-c092-fde7-0ff5-06db49e93a7c"], ["created_at", "2017-04-15 19:14:12.520158"], ["updated_at", "2017-04-15 19:14:12.520158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12241]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12241) [["id", 12241]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12241], ["created_at", "2017-04-15 19:14:12.525587"], ["updated_at", "2017-04-15 19:14:12.525587"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:12.527453"], ["id", 5547]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5547], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.529273"], ["updated_at", "2017-04-15 19:14:12.529273"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5547], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11028], ["process_id", 5547], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:12.532669"], ["updated_at", "2017-04-15 19:14:12.532669"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6286], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.534058"], ["updated_at", "2017-04-15 19:14:12.534058"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "70d37918-0e33-f216-d913-3bed2a798749"], ["created_at", "2017-04-15 19:14:12.538510"], ["updated_at", "2017-04-15 19:14:12.538510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12242], ["uuid", "2623c4b9-e9c0-42bb-dd35-856b94b8f3d1"], ["created_at", "2017-04-15 19:14:12.541249"], ["updated_at", "2017-04-15 19:14:12.541249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12242], ["dependencies", "[{\"id\":11030,\"statuses\":[2]}]"], ["uuid", "a4adccb2-592d-0c27-a9dd-37b62971e019"], ["created_at", "2017-04-15 19:14:12.544224"], ["updated_at", "2017-04-15 19:14:12.544224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12242]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12242) [["id", 12242]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12242], ["created_at", "2017-04-15 19:14:12.550088"], ["updated_at", "2017-04-15 19:14:12.550088"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:12.552121"], ["id", 5548]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5548], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.554044"], ["updated_at", "2017-04-15 19:14:12.554044"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5548], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11030], ["process_id", 5548], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:12.557630"], ["updated_at", "2017-04-15 19:14:12.557630"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6287], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.559173"], ["updated_at", "2017-04-15 19:14:12.559173"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5548]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6287], ["parent_type", "RailsWorkflow::Operation"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b039740d-0bcf-e174-22b0-5330be32a6b5"], ["created_at", "2017-04-15 19:14:12.579798"], ["updated_at", "2017-04-15 19:14:12.579798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12243], ["uuid", "98dc1f9e-1573-f0db-7ad6-9da79e65340a"], ["created_at", "2017-04-15 19:14:12.582017"], ["updated_at", "2017-04-15 19:14:12.582017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12243], ["dependencies", "[{\"id\":11032,\"statuses\":[2]}]"], ["uuid", "9e877537-dfe1-1d65-43c3-392cc43aea6d"], ["created_at", "2017-04-15 19:14:12.584460"], ["updated_at", "2017-04-15 19:14:12.584460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12243]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12243) [["id", 12243]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12243], ["created_at", "2017-04-15 19:14:12.590034"], ["updated_at", "2017-04-15 19:14:12.590034"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:12.591839"], ["id", 5549]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5549], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.593699"], ["updated_at", "2017-04-15 19:14:12.593699"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5549], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11032], ["process_id", 5549], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:12.597277"], ["updated_at", "2017-04-15 19:14:12.597277"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6288], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.598675"], ["updated_at", "2017-04-15 19:14:12.598675"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ebed6b45-2548-7b79-427b-8bb82833de20"], ["created_at", "2017-04-15 19:14:12.604449"], ["updated_at", "2017-04-15 19:14:12.604449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12244], ["uuid", "35898a4b-1631-d808-352f-cce1bef7bdfd"], ["created_at", "2017-04-15 19:14:12.607131"], ["updated_at", "2017-04-15 19:14:12.607131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12244], ["dependencies", "[{\"id\":11034,\"statuses\":[2]}]"], ["uuid", "1006b2a2-56b1-7c00-12e9-92780bdeb1d0"], ["created_at", "2017-04-15 19:14:12.609662"], ["updated_at", "2017-04-15 19:14:12.609662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12244]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12244) [["id", 12244]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12244], ["created_at", "2017-04-15 19:14:12.615083"], ["updated_at", "2017-04-15 19:14:12.615083"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:12.616995"], ["id", 5550]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5550], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.619057"], ["updated_at", "2017-04-15 19:14:12.619057"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5550], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11034], ["process_id", 5550], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:12.622714"], ["updated_at", "2017-04-15 19:14:12.622714"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6289], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.624133"], ["updated_at", "2017-04-15 19:14:12.624133"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:12.627235"], ["id", 5550]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5550], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:12.630618"], ["id", 6289]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2f627d47-0581-4bb9-a87f-d537028560be] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6289 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2f627d47-0581-4bb9-a87f-d537028560be] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6289]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2f627d47-0581-4bb9-a87f-d537028560be]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2f627d47-0581-4bb9-a87f-d537028560be]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2f627d47-0581-4bb9-a87f-d537028560be] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6289], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2f627d47-0581-4bb9-a87f-d537028560be]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2f627d47-0581-4bb9-a87f-d537028560be]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2f627d47-0581-4bb9-a87f-d537028560be] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 4.98ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "33be71af-9306-efec-dd36-d17b3edb2ada"], ["created_at", "2017-04-15 19:14:12.640908"], ["updated_at", "2017-04-15 19:14:12.640908"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12245], ["uuid", "2cc016c5-39ca-5741-8498-135aaf2b6f56"], ["created_at", "2017-04-15 19:14:12.643311"], ["updated_at", "2017-04-15 19:14:12.643311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12245], ["dependencies", "[{\"id\":11036,\"statuses\":[2]}]"], ["uuid", "cd16c25d-5ac0-072d-6c72-ca63bf4420ab"], ["created_at", "2017-04-15 19:14:12.645693"], ["updated_at", "2017-04-15 19:14:12.645693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12245]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12245) [["id", 12245]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12245], ["created_at", "2017-04-15 19:14:12.651299"], ["updated_at", "2017-04-15 19:14:12.651299"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:12.653206"], ["id", 5551]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5551], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.655006"], ["updated_at", "2017-04-15 19:14:12.655006"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5551], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11036], ["process_id", 5551], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:12.658550"], ["updated_at", "2017-04-15 19:14:12.658550"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6290], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.659908"], ["updated_at", "2017-04-15 19:14:12.659908"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:12.662706"], ["id", 5551]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5551], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:12.665755"], ["id", 6290]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c6103e14-18e4-4b38-8942-807b576b4c4b] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6290 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c6103e14-18e4-4b38-8942-807b576b4c4b] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6290]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c6103e14-18e4-4b38-8942-807b576b4c4b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c6103e14-18e4-4b38-8942-807b576b4c4b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c6103e14-18e4-4b38-8942-807b576b4c4b] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6290], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c6103e14-18e4-4b38-8942-807b576b4c4b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c6103e14-18e4-4b38-8942-807b576b4c4b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [c6103e14-18e4-4b38-8942-807b576b4c4b] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 3.65ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5551]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b02a3053-4ca7-f539-66d2-94ffdf9f56e9"], ["created_at", "2017-04-15 19:14:12.674886"], ["updated_at", "2017-04-15 19:14:12.674886"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12246], ["uuid", "9408ec67-d8ac-23bc-7167-9cf5d23a1657"], ["created_at", "2017-04-15 19:14:12.677862"], ["updated_at", "2017-04-15 19:14:12.677862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12246], ["dependencies", "[{\"id\":11038,\"statuses\":[2]}]"], ["uuid", "48d03c94-e43e-0c15-b513-7d1ef88c6db0"], ["created_at", "2017-04-15 19:14:12.680387"], ["updated_at", "2017-04-15 19:14:12.680387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12246]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12246) [["id", 12246]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12246], ["created_at", "2017-04-15 19:14:12.685606"], ["updated_at", "2017-04-15 19:14:12.685606"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:12.687405"], ["id", 5552]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5552], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.689304"], ["updated_at", "2017-04-15 19:14:12.689304"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5552], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11038], ["process_id", 5552], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:12.692656"], ["updated_at", "2017-04-15 19:14:12.692656"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6291], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.694048"], ["updated_at", "2017-04-15 19:14:12.694048"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:12.697673"], ["id", 5552]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5552], ["status", 0]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:12.701125"], ["id", 6291]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6291 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6291]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6291], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:12.706344"], ["updated_at", "2017-04-15 19:14:12.706879"], ["id", 6291]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5552]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12246]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12246]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11038]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5552]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11038]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5552], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c] SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:12.719587"], ["id", 5552]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5552]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [417aa25b-35ac-4be8-957a-14fd96dfcc8c] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 20.39ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5552]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:14:12.724562"], ["updated_at", "2017-04-15 19:14:12.725311"], ["id", 6291]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11038]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5552]]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5552], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:12.731895"], ["id", 5552]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5552]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a02da308-93dd-f3c3-a736-390ec2b77e66"], ["created_at", "2017-04-15 19:14:12.736371"], ["updated_at", "2017-04-15 19:14:12.736371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12247], ["uuid", "c07cc6a0-d57e-5d84-eb8e-c8d355385083"], ["created_at", "2017-04-15 19:14:12.738573"], ["updated_at", "2017-04-15 19:14:12.738573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12247], ["dependencies", "[{\"id\":11040,\"statuses\":[2]}]"], ["uuid", "2bfdce31-d790-d62a-a211-a0cb5080fc34"], ["created_at", "2017-04-15 19:14:12.740987"], ["updated_at", "2017-04-15 19:14:12.740987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12247]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12247) [["id", 12247]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12247], ["created_at", "2017-04-15 19:14:12.746728"], ["updated_at", "2017-04-15 19:14:12.746728"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:12.748690"], ["id", 5553]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5553], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.750490"], ["updated_at", "2017-04-15 19:14:12.750490"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5553], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11040], ["process_id", 5553], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:12.754076"], ["updated_at", "2017-04-15 19:14:12.754076"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6292], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.755459"], ["updated_at", "2017-04-15 19:14:12.755459"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:12.758494"], ["id", 5553]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5553], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:12.761744"], ["id", 6292]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6292 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6292]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6292], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:12.767062"], ["updated_at", "2017-04-15 19:14:12.767583"], ["id", 6292]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5553]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12247]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12247]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11040]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5553]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11040]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11041], ["process_id", 5553], ["status", 0], ["dependencies", "[{\"operation_id\":6292,\"status\":2}]"], ["created_at", "2017-04-15 19:14:12.775997"], ["updated_at", "2017-04-15 19:14:12.775997"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6293], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.777480"], ["updated_at", "2017-04-15 19:14:12.777480"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:12.780815"], ["id", 6293]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6293 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6293]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6293], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:12.785961"], ["updated_at", "2017-04-15 19:14:12.786460"], ["id", 6293]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5553]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12247]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12247]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11041]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5553]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11041]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11040]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5553], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6] SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:12.795365"], ["id", 5553]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5553]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] [RailsWorkflow::OperationExecutionJob] [60c10a2c-6ab1-48f5-81d2-275ced1aefd6] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 14.96ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [ffa78c94-fbd4-41d3-b7b4-6ee28d963f61] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 34.28ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5553]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:14:12.799055"], ["updated_at", "2017-04-15 19:14:12.799811"], ["id", 6292]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11040]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5553]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11041]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5553], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:12.806481"], ["id", 5553]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5553]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "76f7d825-53a0-6441-4183-32de24a7a124"], ["created_at", "2017-04-15 19:14:12.810635"], ["updated_at", "2017-04-15 19:14:12.810635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12248], ["uuid", "8a43daf0-da66-1f08-d25b-def627de833e"], ["created_at", "2017-04-15 19:14:12.812815"], ["updated_at", "2017-04-15 19:14:12.812815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12248], ["dependencies", "[{\"id\":11042,\"statuses\":[2]}]"], ["uuid", "87940205-9bfe-ec7b-dc03-83d7d186ad15"], ["created_at", "2017-04-15 19:14:12.815160"], ["updated_at", "2017-04-15 19:14:12.815160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12248]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12248) [["id", 12248]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12248], ["created_at", "2017-04-15 19:14:12.820848"], ["updated_at", "2017-04-15 19:14:12.820848"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:12.822709"], ["id", 5554]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5554], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.824669"], ["updated_at", "2017-04-15 19:14:12.824669"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5554], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11042], ["process_id", 5554], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:12.828032"], ["updated_at", "2017-04-15 19:14:12.828032"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6294], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.829363"], ["updated_at", "2017-04-15 19:14:12.829363"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:12.832423"], ["id", 5554]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5554], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:12.835263"], ["id", 6294]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6294 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6294]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6294], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:12.841090"], ["updated_at", "2017-04-15 19:14:12.841594"], ["id", 6294]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5554]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12248]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12248]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11042]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5554]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11042]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11043], ["process_id", 5554], ["status", 0], ["dependencies", "[{\"operation_id\":6294,\"status\":2}]"], ["created_at", "2017-04-15 19:14:12.849703"], ["updated_at", "2017-04-15 19:14:12.849703"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6295], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.851081"], ["updated_at", "2017-04-15 19:14:12.851081"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:12.854409"], ["id", 6295]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6295 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6295]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6295], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:12.858764"], ["updated_at", "2017-04-15 19:14:12.859284"], ["id", 6295]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5554]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12248]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12248]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11043]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5554]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11043]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11042]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5554], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:12.867640"], ["id", 5554]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5554]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] [RailsWorkflow::OperationExecutionJob] [e13d2e8a-6888-4a88-b520-aa413110709f] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 13.7ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [18a424a4-615a-4e04-9aff-bb04b65ba383] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 32.65ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5554]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:14:12.870939"], ["updated_at", "2017-04-15 19:14:12.871673"], ["id", 6294]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11042]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5554]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11043]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5554], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:12.878067"], ["id", 5554]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5554]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 2], ["created_at", "2017-04-15 19:14:12.828032"], ["updated_at", "2017-04-15 19:14:12.871673"], ["completed_at", "2017-04-15 19:14:12.880189"], ["id", 6294]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "150ece3c-fe8a-4648-e899-5f2e7b430df7"], ["created_at", "2017-04-15 19:14:12.884750"], ["updated_at", "2017-04-15 19:14:12.884750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12249], ["uuid", "da7d891d-cf9e-ea1b-2358-bbd69ddc0dbd"], ["created_at", "2017-04-15 19:14:12.886944"], ["updated_at", "2017-04-15 19:14:12.886944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12249], ["dependencies", "[{\"id\":11044,\"statuses\":[2]}]"], ["uuid", "823c11f8-7efc-e5ec-c8f3-c3f5d4b6c374"], ["created_at", "2017-04-15 19:14:12.889310"], ["updated_at", "2017-04-15 19:14:12.889310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12249]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12249) [["id", 12249]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12249], ["created_at", "2017-04-15 19:14:12.894914"], ["updated_at", "2017-04-15 19:14:12.894914"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:12.896834"], ["id", 5555]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5555], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.898688"], ["updated_at", "2017-04-15 19:14:12.898688"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5555], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11044], ["process_id", 5555], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:12.902278"], ["updated_at", "2017-04-15 19:14:12.902278"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6296], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.903742"], ["updated_at", "2017-04-15 19:14:12.903742"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:12.906806"], ["id", 5555]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5555], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:12.909697"], ["id", 6296]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6296 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6296]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6296], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:12.914782"], ["updated_at", "2017-04-15 19:14:12.915337"], ["id", 6296]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5555]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12249]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12249]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11044]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5555]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11044]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11045], ["process_id", 5555], ["status", 0], ["dependencies", "[{\"operation_id\":6296,\"status\":2}]"], ["created_at", "2017-04-15 19:14:12.923171"], ["updated_at", "2017-04-15 19:14:12.923171"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6297], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.924569"], ["updated_at", "2017-04-15 19:14:12.924569"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:12.927832"], ["id", 6297]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6297 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6297]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6297], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:12.932293"], ["updated_at", "2017-04-15 19:14:12.932812"], ["id", 6297]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5555]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12249]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12249]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11045]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5555]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11045]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11044]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5555], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:12.948417"], ["id", 5555]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5555]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] [RailsWorkflow::OperationExecutionJob] [929f8d24-fa48-4751-9fb3-c42d7b287519] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 20.98ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [030a0adb-a75f-4a79-8e61-a11a1d4adcc8] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 39.14ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5555]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:14:12.951564"], ["updated_at", "2017-04-15 19:14:12.952234"], ["id", 6296]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11044]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5555]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11045]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5555], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:12.959631"], ["id", 5555]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5555]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 6], ["created_at", "2017-04-15 19:14:12.902278"], ["updated_at", "2017-04-15 19:14:12.952234"], ["completed_at", "2017-04-15 19:14:12.961729"], ["id", 6296]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "349e0fd4-1fd3-61a2-609c-6e59d86d10f7"], ["created_at", "2017-04-15 19:14:12.965726"], ["updated_at", "2017-04-15 19:14:12.965726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12250], ["uuid", "24f0db7d-a04a-38b8-d4ff-9b81425f2de7"], ["created_at", "2017-04-15 19:14:12.967887"], ["updated_at", "2017-04-15 19:14:12.967887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12250], ["dependencies", "[{\"id\":11046,\"statuses\":[2]}]"], ["uuid", "efef02a3-47b7-018e-71a5-d5c5595b0009"], ["created_at", "2017-04-15 19:14:12.970257"], ["updated_at", "2017-04-15 19:14:12.970257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12250]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12250) [["id", 12250]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12250], ["created_at", "2017-04-15 19:14:12.975696"], ["updated_at", "2017-04-15 19:14:12.975696"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:12.977524"], ["id", 5556]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5556], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.979383"], ["updated_at", "2017-04-15 19:14:12.979383"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5556], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11046], ["process_id", 5556], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:12.982918"], ["updated_at", "2017-04-15 19:14:12.982918"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6298], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:12.984386"], ["updated_at", "2017-04-15 19:14:12.984386"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:12.987421"], ["id", 5556]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5556], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:12.989858"], ["id", 6298]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6298 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6298]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6298], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:12.994742"], ["updated_at", "2017-04-15 19:14:12.995426"], ["id", 6298]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5556]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12250]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12250]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11046]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5556]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11046]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11047], ["process_id", 5556], ["status", 0], ["dependencies", "[{\"operation_id\":6298,\"status\":2}]"], ["created_at", "2017-04-15 19:14:13.003001"], ["updated_at", "2017-04-15 19:14:13.003001"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6299], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:13.004378"], ["updated_at", "2017-04-15 19:14:13.004378"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:13.007476"], ["id", 6299]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6299 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6299]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6299], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:13.011786"], ["updated_at", "2017-04-15 19:14:13.012303"], ["id", 6299]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5556]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12250]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12250]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11047]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5556]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11047]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11046]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5556], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:13.020891"], ["id", 5556]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5556]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] [RailsWorkflow::OperationExecutionJob] [69ac9462-7853-49c8-b145-8952496fb4b5] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 13.91ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cb287879-45f3-43e1-bc53-8256d9e107b6] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 31.54ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5556]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:14:13.024076"], ["updated_at", "2017-04-15 19:14:13.024728"], ["id", 6298]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11046]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5556]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11047]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5556], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:13.030592"], ["id", 5556]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5556]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 5], ["created_at", "2017-04-15 19:14:12.982918"], ["updated_at", "2017-04-15 19:14:13.024728"], ["completed_at", "2017-04-15 19:14:13.032543"], ["id", 6298]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'regular_user@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "regular_user@test.com"], ["encrypted_password", "$2a$04$AMHNb5.VCnKiDlk/OD3BWOwrvL5ogoAM7BKFDBMtjkfuX1QyVYJ8S"], ["role", "regular_user"], ["created_at", "2017-04-15 19:14:13.051234"], ["updated_at", "2017-04-15 19:14:13.051234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'admin@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "admin@test.com"], ["encrypted_password", "$2a$04$otmDY3HFP2g01W.hsT7SOumiZRmZP9GzVxe4H3Ufqvap2MzGzxwM."], ["role", "admin"], ["created_at", "2017-04-15 19:14:13.055837"], ["updated_at", "2017-04-15 19:14:13.055837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:13.060011"], ["updated_at", "2017-04-15 19:14:13.060011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "User Operation Template"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:13.061907"], ["id", 12251]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12251]] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12251], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12251], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:13.067462"], ["updated_at", "2017-04-15 19:14:13.067462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:13.069847"], ["id", 11048]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12251], ["uuid", nil]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12251], ["uuid", "d62b49c3-6f94-6365-59b2-a19a3b3292d8"], ["created_at", "2017-04-15 19:14:13.074947"], ["updated_at", "2017-04-15 19:14:13.074947"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "uuid" = $1, "title" = $2, "dependencies" = $3, "operation_class" = $4, "async" = $5, "kind" = $6, "role" = $7, "instruction" = $8, "type" = $9, "partial_name" = $10, "updated_at" = $11 WHERE "rails_workflow_operation_templates"."id" = $12 [["uuid", "a91cd85e-33d5-d196-8280-6172f862cb3f"], ["title", "Regular User Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "regular_user"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:13.077419"], ["id", 11049]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "User Operation Template"]] SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12251]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12251) [["id", 12251]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12251], ["created_at", "2017-04-15 19:14:13.086126"], ["updated_at", "2017-04-15 19:14:13.086126"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "User Operation Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:13.088005"], ["id", 5557]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5557], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:14:13.089869"], ["updated_at", "2017-04-15 19:14:13.089869"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5557], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Regular User Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 11049], ["process_id", 5557], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:13.104994"], ["updated_at", "2017-04-15 19:14:13.104994"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6300], ["body", "{}"], ["created_at", "2017-04-15 19:14:13.106662"], ["updated_at", "2017-04-15 19:14:13.106662"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Admin Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 11048], ["process_id", 5557], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:13.110260"], ["updated_at", "2017-04-15 19:14:13.110260"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6301], ["body", "{}"], ["created_at", "2017-04-15 19:14:13.111744"], ["updated_at", "2017-04-15 19:14:13.111744"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:13.114645"], ["id", 5557]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5557], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:14:13.117639"], ["id", 6301]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:14:13.119612"], ["id", 6300]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/workflow/operations" for 127.0.0.1 at 2017-04-15 23:14:13 +0400 Processing by RailsWorkflow::OperationsController#index as HTML RailsWorkflow::Operation Load (0.6ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."status" = 3 ORDER BY "rails_workflow_operations"."created_at" DESC RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5557]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11048]] CACHE (0.0ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5557]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11049]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operations/index.html.slim within layouts/rails_workflow/application (19.3ms) Completed 200 OK in 155ms (Views: 145.3ms | ActiveRecord: 1.5ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Started GET "/workflow/config" for 127.0.0.1 at 2017-04-15 23:14:13 +0400 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/application/_flash.html.slim (2.4ms) RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (12.9ms) Completed 200 OK in 16ms (Views: 15.1ms | ActiveRecord: 0.4ms) Started GET "/workflow/config/new" for 127.0.0.1 at 2017-04-15 23:14:13 +0400 Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/_form.html.slim (17.6ms) Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (22.9ms) Completed 200 OK in 26ms (Views: 25.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.368745"], ["updated_at", "2017-04-15 19:14:13.368745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:13.370797"], ["updated_at", "2017-04-15 19:14:13.370797"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5558], ["updated_at", "2017-04-15 19:14:13.372274"], ["id", 9354]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:13.376366"], ["updated_at", "2017-04-15 19:14:13.376366"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 19:14:13.378628"], ["updated_at", "2017-04-15 19:14:13.378628"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6302], ["updated_at", "2017-04-15 19:14:13.380255"], ["id", 9355]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d20ea170-401b-132a-6f8f-e78950a97e83"], ["created_at", "2017-04-15 19:14:13.382833"], ["updated_at", "2017-04-15 19:14:13.382833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12252], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "dd8e163a-020c-80dd-530d-794eb90371b0"], ["created_at", "2017-04-15 19:14:13.384834"], ["updated_at", "2017-04-15 19:14:13.384834"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11050], ["process_id", 5558], ["status", 0], ["dependencies", "[{\"operation_id\":6302,\"status\":4}]"], ["created_at", "2017-04-15 19:14:13.395255"], ["updated_at", "2017-04-15 19:14:13.395255"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6303], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:13.396924"], ["updated_at", "2017-04-15 19:14:13.396924"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.401623"], ["updated_at", "2017-04-15 19:14:13.401623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:13.403375"], ["updated_at", "2017-04-15 19:14:13.403375"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5559], ["updated_at", "2017-04-15 19:14:13.404584"], ["id", 9357]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 19:14:13.407990"], ["updated_at", "2017-04-15 19:14:13.407990"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.411977"], ["updated_at", "2017-04-15 19:14:13.411977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:13.413771"], ["updated_at", "2017-04-15 19:14:13.413771"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5560], ["updated_at", "2017-04-15 19:14:13.415019"], ["id", 9359]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:13.417647"], ["updated_at", "2017-04-15 19:14:13.417647"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resource\":{\"id\":6304,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5560,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 19:14:13.420332"], ["updated_at", "2017-04-15 19:14:13.420332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.424964"], ["updated_at", "2017-04-15 19:14:13.424964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:13.427169"], ["updated_at", "2017-04-15 19:14:13.427169"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5561], ["updated_at", "2017-04-15 19:14:13.428606"], ["id", 9361]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:13.432603"], ["updated_at", "2017-04-15 19:14:13.432603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":6305,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5561,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 19:14:13.435745"], ["updated_at", "2017-04-15 19:14:13.435745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.441146"], ["updated_at", "2017-04-15 19:14:13.441146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:13.443436"], ["updated_at", "2017-04-15 19:14:13.443436"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5562], ["updated_at", "2017-04-15 19:14:13.445027"], ["id", 9363]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:13.449050"], ["updated_at", "2017-04-15 19:14:13.449050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 6306], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 19:14:13.451990"], ["updated_at", "2017-04-15 19:14:13.451990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9364]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.457553"], ["updated_at", "2017-04-15 19:14:13.457553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:13.460016"], ["updated_at", "2017-04-15 19:14:13.460016"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5563], ["updated_at", "2017-04-15 19:14:13.466361"], ["id", 9365]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:13.470188"], ["updated_at", "2017-04-15 19:14:13.470188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 6307], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"resource\":{\"id\":6307,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5563,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 19:14:13.473493"], ["updated_at", "2017-04-15 19:14:13.473493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9366]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6307]] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5563]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.480615"], ["updated_at", "2017-04-15 19:14:13.480615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:13.482562"], ["updated_at", "2017-04-15 19:14:13.482562"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5564], ["updated_at", "2017-04-15 19:14:13.483958"], ["id", 9367]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:13.487117"], ["updated_at", "2017-04-15 19:14:13.487117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":6308,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5564,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 19:14:13.489472"], ["updated_at", "2017-04-15 19:14:13.489472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9368]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6308]] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5564]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.496151"], ["updated_at", "2017-04-15 19:14:13.496151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:13.498250"], ["updated_at", "2017-04-15 19:14:13.498250"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5565], ["updated_at", "2017-04-15 19:14:13.499642"], ["id", 9369]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "618b8bf3-fc9f-557d-7786-3f6741b9440c"], ["created_at", "2017-04-15 19:14:13.503966"], ["updated_at", "2017-04-15 19:14:13.503966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12253], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "4a8d2d5f-050d-6400-e87a-72bbd7858bd8"], ["created_at", "2017-04-15 19:14:13.506039"], ["updated_at", "2017-04-15 19:14:13.506039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11051], ["process_id", 5565], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:13.509799"], ["updated_at", "2017-04-15 19:14:13.509799"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6309], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.511510"], ["updated_at", "2017-04-15 19:14:13.511510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.515965"], ["updated_at", "2017-04-15 19:14:13.515965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:13.517874"], ["updated_at", "2017-04-15 19:14:13.517874"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5566], ["updated_at", "2017-04-15 19:14:13.519887"], ["id", 9371]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1e401f1f-f2f0-4599-5a73-152d6b9d51f2"], ["created_at", "2017-04-15 19:14:13.524340"], ["updated_at", "2017-04-15 19:14:13.524340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12254], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "b72c2791-1e64-612b-0cc4-e9720788fb9f"], ["created_at", "2017-04-15 19:14:13.526832"], ["updated_at", "2017-04-15 19:14:13.526832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11052], ["process_id", 5566], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:13.531105"], ["updated_at", "2017-04-15 19:14:13.531105"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6310], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.533213"], ["updated_at", "2017-04-15 19:14:13.533213"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.538532"], ["updated_at", "2017-04-15 19:14:13.538532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:13.540947"], ["updated_at", "2017-04-15 19:14:13.540947"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5567], ["updated_at", "2017-04-15 19:14:13.542478"], ["id", 9373]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "fa65ef0c-45db-9462-4f68-e9369ac0db92"], ["created_at", "2017-04-15 19:14:13.547435"], ["updated_at", "2017-04-15 19:14:13.547435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12255], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "608faf12-47ba-8697-8c4c-d416d1cf9417"], ["created_at", "2017-04-15 19:14:13.549616"], ["updated_at", "2017-04-15 19:14:13.549616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11053], ["process_id", 5567], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:13.553567"], ["updated_at", "2017-04-15 19:14:13.553567"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6311], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.555644"], ["updated_at", "2017-04-15 19:14:13.555644"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.560385"], ["updated_at", "2017-04-15 19:14:13.560385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:13.562840"], ["updated_at", "2017-04-15 19:14:13.562840"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5568], ["updated_at", "2017-04-15 19:14:13.564854"], ["id", 9375]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a86bb343-371b-1090-c6e3-618514eaba1d"], ["created_at", "2017-04-15 19:14:13.570021"], ["updated_at", "2017-04-15 19:14:13.570021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12256], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "0c0edace-db54-82d8-f813-33981c0af991"], ["created_at", "2017-04-15 19:14:13.572678"], ["updated_at", "2017-04-15 19:14:13.572678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11054], ["process_id", 5568], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:13.577331"], ["updated_at", "2017-04-15 19:14:13.577331"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6312], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.579274"], ["updated_at", "2017-04-15 19:14:13.579274"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.584821"], ["updated_at", "2017-04-15 19:14:13.584821"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:13.587374"], ["updated_at", "2017-04-15 19:14:13.587374"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5569], ["updated_at", "2017-04-15 19:14:13.588964"], ["id", 9377]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "fe459b2e-6651-9bf1-55e1-e504e7aa804e"], ["created_at", "2017-04-15 19:14:13.593823"], ["updated_at", "2017-04-15 19:14:13.593823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12257], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "0f3b5a2a-13c0-6fc1-4241-b57d99f48647"], ["created_at", "2017-04-15 19:14:13.596442"], ["updated_at", "2017-04-15 19:14:13.596442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11055], ["process_id", 5569], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:13.600861"], ["updated_at", "2017-04-15 19:14:13.600861"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6313], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.602747"], ["updated_at", "2017-04-15 19:14:13.602747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.607278"], ["updated_at", "2017-04-15 19:14:13.607278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:13.609287"], ["updated_at", "2017-04-15 19:14:13.609287"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5570], ["updated_at", "2017-04-15 19:14:13.610770"], ["id", 9379]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "dc13793e-d166-8fc2-dd22-0416a0b77998"], ["created_at", "2017-04-15 19:14:13.614683"], ["updated_at", "2017-04-15 19:14:13.614683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12258], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "010fc7c4-6ef4-9a30-9d53-b7fccc902ee4"], ["created_at", "2017-04-15 19:14:13.616956"], ["updated_at", "2017-04-15 19:14:13.616956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11056], ["process_id", 5570], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:13.620713"], ["updated_at", "2017-04-15 19:14:13.620713"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6314], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.622326"], ["updated_at", "2017-04-15 19:14:13.622326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.626671"], ["updated_at", "2017-04-15 19:14:13.626671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:13.629077"], ["updated_at", "2017-04-15 19:14:13.629077"]] SQL (0.6ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5571], ["updated_at", "2017-04-15 19:14:13.630918"], ["id", 9381]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "54bb78fd-2ca2-5437-3ea6-d9bd1868b5e5"], ["created_at", "2017-04-15 19:14:13.635012"], ["updated_at", "2017-04-15 19:14:13.635012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "244d60d6-4810-5607-e363-827e2207024c"], ["created_at", "2017-04-15 19:14:13.637045"], ["updated_at", "2017-04-15 19:14:13.637045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12259], ["child_process_id", 12260], ["uuid", "7f632dcd-3474-b534-304e-d000d6ef97e2"], ["created_at", "2017-04-15 19:14:13.639277"], ["updated_at", "2017-04-15 19:14:13.639277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ae1df2b3-591c-bb44-fe02-8d55845720cf"], ["created_at", "2017-04-15 19:14:13.642066"], ["updated_at", "2017-04-15 19:14:13.642066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12261], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "d86c2e98-0314-4d30-fa32-1e20833f5e61"], ["created_at", "2017-04-15 19:14:13.644142"], ["updated_at", "2017-04-15 19:14:13.644142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11058], ["process_id", 5571], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:13.648056"], ["updated_at", "2017-04-15 19:14:13.648056"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6315], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.650115"], ["updated_at", "2017-04-15 19:14:13.650115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11057], ["process_id", 5571], ["status", 0], ["dependencies", "[{\"operation_id\":6315,\"status\":0}]"], ["created_at", "2017-04-15 19:14:13.654370"], ["updated_at", "2017-04-15 19:14:13.654370"]] SQL (0.1ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6316], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.655868"], ["updated_at", "2017-04-15 19:14:13.655868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12260]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12260) [["id", 12260]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12260], ["created_at", "2017-04-15 19:14:13.662433"], ["updated_at", "2017-04-15 19:14:13.662433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:13.664206"], ["id", 5572]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5572], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.666250"], ["updated_at", "2017-04-15 19:14:13.666250"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5572], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.671547"], ["updated_at", "2017-04-15 19:14:13.671547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:13.673439"], ["updated_at", "2017-04-15 19:14:13.673439"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5573], ["updated_at", "2017-04-15 19:14:13.674805"], ["id", 9385]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9d79bb99-421e-7f48-c835-2b5446485ceb"], ["created_at", "2017-04-15 19:14:13.679000"], ["updated_at", "2017-04-15 19:14:13.679000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12262], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "8bbf0eb1-45c9-f57f-db1a-b97a682ac471"], ["created_at", "2017-04-15 19:14:13.681129"], ["updated_at", "2017-04-15 19:14:13.681129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11059], ["process_id", 5573], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:13.684649"], ["updated_at", "2017-04-15 19:14:13.684649"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6317], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.686194"], ["updated_at", "2017-04-15 19:14:13.686194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.691047"], ["updated_at", "2017-04-15 19:14:13.691047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:13.693048"], ["updated_at", "2017-04-15 19:14:13.693048"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5574], ["updated_at", "2017-04-15 19:14:13.695006"], ["id", 9387]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 19:14:13.699904"], ["updated_at", "2017-04-15 19:14:13.699904"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c99740f9-5aba-2f54-7bea-16259b71809c"], ["created_at", "2017-04-15 19:14:13.703252"], ["updated_at", "2017-04-15 19:14:13.703252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12263], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "6ef632ce-c81c-9359-f5ff-4d6e665cad7c"], ["created_at", "2017-04-15 19:14:13.705675"], ["updated_at", "2017-04-15 19:14:13.705675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6318], ["parent_type", "RailsWorkflow::Operation"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11060], ["process_id", 5574], ["status", 0], ["dependencies", "[{\"operation_id\":6318,\"status\":4}]"], ["created_at", "2017-04-15 19:14:13.710558"], ["updated_at", "2017-04-15 19:14:13.710558"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6319], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.712322"], ["updated_at", "2017-04-15 19:14:13.712322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.716584"], ["updated_at", "2017-04-15 19:14:13.716584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:13.718816"], ["updated_at", "2017-04-15 19:14:13.718816"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5575], ["updated_at", "2017-04-15 19:14:13.720319"], ["id", 9389]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ad03c080-bd82-b52b-ee47-10831ec5f18d"], ["created_at", "2017-04-15 19:14:13.730690"], ["updated_at", "2017-04-15 19:14:13.730690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12264], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "4308c950-e670-24a7-1997-7a21e09430c0"], ["created_at", "2017-04-15 19:14:13.732901"], ["updated_at", "2017-04-15 19:14:13.732901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11061], ["process_id", 5575], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:13.735928"], ["updated_at", "2017-04-15 19:14:13.735928"]] SQL (0.1ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6320], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.737246"], ["updated_at", "2017-04-15 19:14:13.737246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:13.740491"], ["updated_at", "2017-04-15 19:14:13.740491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$SKGpolneoi4SJ3p3RL9pdu309fxWbK/jQ2h0IxyIpnfHx5qYCidqe"], ["created_at", "2017-04-15 19:14:13.744894"], ["updated_at", "2017-04-15 19:14:13.744894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1636], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1636], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:13.746474"], ["updated_at", "2017-04-15 19:14:13.748014"], ["id", 6321]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:13.751072"], ["updated_at", "2017-04-15 19:14:13.751072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$d.zQcs881JTnWsF98lvQ3ute8HC.C9bxUyveRAqtwBXnOlAPV7vNW"], ["created_at", "2017-04-15 19:14:13.755242"], ["updated_at", "2017-04-15 19:14:13.755242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1637], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1637], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:13.756628"], ["updated_at", "2017-04-15 19:14:13.757855"], ["id", 6322]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:13.759833"], ["updated_at", "2017-04-15 19:14:13.759833"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1637], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1637], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:13.761514"], ["updated_at", "2017-04-15 19:14:13.762841"], ["id", 6323]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6322]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:13.766929"], ["updated_at", "2017-04-15 19:14:13.766929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$dLxCgPGWGAN.wRWSxZ9aQ.fJef2yhH04CUcXWMMfVdqi3juGSgpWO"], ["created_at", "2017-04-15 19:14:13.771102"], ["updated_at", "2017-04-15 19:14:13.771102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1638], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1638], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:13.772485"], ["updated_at", "2017-04-15 19:14:13.773644"], ["id", 6324]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "updated_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["assignment_id", nil], ["assignment_type", nil], ["is_active", "f"], ["updated_at", "2017-04-15 19:14:13.775366"], ["id", 6324]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:13.778256"], ["updated_at", "2017-04-15 19:14:13.778256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$EqFGKzqtp6DcmVLufprIye4SyL8ieU6Ktbgfu70pk64fBL1dUmIqm"], ["created_at", "2017-04-15 19:14:13.782626"], ["updated_at", "2017-04-15 19:14:13.782626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1639], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1639], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:13.784224"], ["updated_at", "2017-04-15 19:14:13.785394"], ["id", 6325]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$RJ/1WLSr1NrtcaL0GLWOFuKajlKeU/vVyEnOH4evj5dWCAsJXz4ku"], ["created_at", "2017-04-15 19:14:13.789422"], ["updated_at", "2017-04-15 19:14:13.789422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6325]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1639]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:13.795550"], ["updated_at", "2017-04-15 19:14:13.795550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$6X.Jn9Vk6KCxW6InRAuZ6umPENZOawu3VmQg33YIDGni8duhK/x9q"], ["created_at", "2017-04-15 19:14:13.799855"], ["updated_at", "2017-04-15 19:14:13.799855"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1641], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1641], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:13.801417"], ["updated_at", "2017-04-15 19:14:13.802697"], ["id", 6326]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$QrboZN4HcTPHXd47XxGAm.CNxAc6A9we0FzkcfEry8Q6Sr.wPc5.y"], ["created_at", "2017-04-15 19:14:13.806868"], ["updated_at", "2017-04-15 19:14:13.806868"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:13.810336"], ["updated_at", "2017-04-15 19:14:13.810336"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$melZglW1ARD528GV48CqSOFx2B7LUexF/q4.L/Vb566Ic87NRLU4e"], ["created_at", "2017-04-15 19:14:13.814591"], ["updated_at", "2017-04-15 19:14:13.814591"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1643], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1643], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:13.816076"], ["updated_at", "2017-04-15 19:14:13.817465"], ["id", 6327]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$q7EiGi0vlxZUsB.xKjojku3rbAM7P7fohF2Qqa8fUIaRzQxdYW9kW"], ["created_at", "2017-04-15 19:14:13.822277"], ["updated_at", "2017-04-15 19:14:13.822277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e68092bf-40f5-376d-a249-57a330f9b0c6"], ["created_at", "2017-04-15 19:14:13.826274"], ["updated_at", "2017-04-15 19:14:13.826274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "role", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12265], ["role", "admin"], ["uuid", "dbcd952d-cc96-a02f-fe15-16b7e168bf71"], ["created_at", "2017-04-15 19:14:13.828399"], ["updated_at", "2017-04-15 19:14:13.828399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9a7ae392-0592-c720-a801-4a3786e43a52"], ["created_at", "2017-04-15 19:14:13.830763"], ["updated_at", "2017-04-15 19:14:13.830763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "group", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12266], ["group", "some_group"], ["uuid", "8003af25-1076-37ab-951b-2b41d1d9a007"], ["created_at", "2017-04-15 19:14:13.832570"], ["updated_at", "2017-04-15 19:14:13.832570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 11063], ["created_at", "2017-04-15 19:14:13.834904"], ["updated_at", "2017-04-15 19:14:13.834904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 11062], ["created_at", "2017-04-15 19:14:13.837059"], ["updated_at", "2017-04-15 19:14:13.837059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$rPq6OsmOutM7xi87KoYCk.4W1v1M3xCxDVCqytflHnGlLsC1dwgWe"], ["role", "admin"], ["created_at", "2017-04-15 19:14:13.841122"], ["updated_at", "2017-04-15 19:14:13.841122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'admin')  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'fake@email.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "fake@email.com"], ["encrypted_password", "$2a$04$Yd9NCF5i/OG6mUPAamcnP.ir/hqSwm2tFVYlA5DJcZmCQ1NcISEDC"], ["role", "fake"], ["created_at", "2017-04-15 19:14:13.847277"], ["updated_at", "2017-04-15 19:14:13.847277"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'fake') SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1645], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1645], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:13.850356"], ["updated_at", "2017-04-15 19:14:13.851746"], ["id", 6329]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."assignment_id" IS NULL  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:13.856519"], ["updated_at", "2017-04-15 19:14:13.856519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:13.858539"], ["updated_at", "2017-04-15 19:14:13.858539"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6330], ["updated_at", "2017-04-15 19:14:13.860164"], ["id", 9391]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:14:13.862533"], ["id", 6330]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:13.866184"], ["updated_at", "2017-04-15 19:14:13.866184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:13.868373"], ["updated_at", "2017-04-15 19:14:13.868373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:13.869994"], ["updated_at", "2017-04-15 19:14:13.869994"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5576], ["updated_at", "2017-04-15 19:14:13.871196"], ["id", 9392]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "child_process_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["child_process_id", 5576], ["updated_at", "2017-04-15 19:14:13.873034"], ["id", 6331]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:13.874725"], ["id", 6331]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6331 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6331]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5576]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:13.878423"], ["id", 5576]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5576], ["status", 0]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6331], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071] SQL (0.8ms) INSERT INTO "rails_workflow_errors" ("parent_id", "parent_type", "message", "stack_trace", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["parent_id", 6331], ["parent_type", "RailsWorkflow::Operation"], ["message", "undefined method `save' for nil:NilClass"], ["stack_trace", "/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:60:in `execute_in_transaction'
\n/home/maxim/rails_workflow/app/jobs/rails_workflow/operation_execution_job.rb:12:in `perform'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:32:in `block in perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/i18n-0.7.0/lib/i18n.rb:257:in `with_locale'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/translation.rb:7:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:23:in `block (4 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `block in instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:22:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `block in tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:26:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:19:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_perform_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:31:in `perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:16:in `perform_now'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:28:in `starting'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:18:in `start'
\n/home/maxim/rails_workflow/spec/models/rails_workflow/operation_spec.rb:179:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `block in with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `block in with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:618:in `block in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-rails-3.4.2/lib/rspec/rails/adapters.rb:127:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:389:in `execute_with'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:620:in `block (2 levels) in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:621:in `run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:233:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:581:in `block in run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:543:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (3 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (2 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/configuration.rb:1680:in `with_suite_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:118:in `block in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/reporter.rb:77:in `report'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:117:in `run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:93:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:78:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:45:in `invoke'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/exe/rspec:4:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `kernel_load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:335:in `exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:20:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:11:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:32:in `block in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:24:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `
'"], ["created_at", "2017-04-15 19:14:13.885984"], ["updated_at", "2017-04-15 19:14:13.885984"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 143], ["parent_type", "RailsWorkflow::Error"], ["body", "{\"parent\":{\"id\":6331,\"class\":\"RailsWorkflow::Operation\"},\"target\":{\"id\":6331,\"class\":\"RailsWorkflow::Operation\"},\"method\":\"execute_in_transaction\"}"], ["created_at", "2017-04-15 19:14:13.890758"], ["updated_at", "2017-04-15 19:14:13.890758"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 143], ["parent_type", "RailsWorkflow::Error"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6331]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6331]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6331]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 4], ["updated_at", "2017-04-15 19:14:13.896854"], ["id", 6331]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1e94d61e-4303-42f1-9aa5-2039033d1071] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 22.31ms RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5576]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 2], ["completed_at", "2017-04-15 19:14:13.901232"], ["created_at", "2017-04-15 19:14:13.901803"], ["updated_at", "2017-04-15 19:14:13.901803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 6], ["completed_at", "2017-04-15 19:14:13.905527"], ["created_at", "2017-04-15 19:14:13.906082"], ["updated_at", "2017-04-15 19:14:13.906082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 5], ["completed_at", "2017-04-15 19:14:13.909607"], ["created_at", "2017-04-15 19:14:13.910174"], ["updated_at", "2017-04-15 19:14:13.910174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9639004e-d2d6-4efd-c62a-ae5b44bac7db"], ["created_at", "2017-04-15 19:14:13.914619"], ["updated_at", "2017-04-15 19:14:13.914619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 12267], ["uuid", "cf353019-1dd1-9bba-9c22-47917607e934"], ["created_at", "2017-04-15 19:14:13.916596"], ["updated_at", "2017-04-15 19:14:13.916596"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::TestProcess"], ["uuid", "d295f21a-e369-15f2-4ed4-1df5869b548b"], ["created_at", "2017-04-15 19:14:13.922095"], ["updated_at", "2017-04-15 19:14:13.922095"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("type", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "RailsWorkflow::TestProcess"], ["template_id", 12268], ["created_at", "2017-04-15 19:14:13.928382"], ["updated_at", "2017-04-15 19:14:13.928382"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:13.930573"], ["id", 5577]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5577], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:14:13.932565"], ["updated_at", "2017-04-15 19:14:13.932565"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5577], ["parent_type", "RailsWorkflow::Process"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12268]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::Process"], ["uuid", "077d52e2-3a12-42b2-aa3c-858e0b61ef18"], ["created_at", "2017-04-15 19:14:13.937757"], ["updated_at", "2017-04-15 19:14:13.937757"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12269], ["uuid", "8f4c7295-16fa-a168-45dd-8ae210acba54"], ["created_at", "2017-04-15 19:14:13.940149"], ["updated_at", "2017-04-15 19:14:13.940149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12269], ["dependencies", "[{\"id\":11065,\"statuses\":[2]}]"], ["uuid", "606a2abe-6df6-f6c9-c4e3-090f27e1b5fa"], ["created_at", "2017-04-15 19:14:13.942474"], ["updated_at", "2017-04-15 19:14:13.942474"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12269]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12269) [["id", 12269]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4fcecffd-6942-bee2-c123-72c6440a9d7c"], ["created_at", "2017-04-15 19:14:13.950708"], ["updated_at", "2017-04-15 19:14:13.950708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a01b441e-6d0b-9414-25b5-96442dbd0561"], ["created_at", "2017-04-15 19:14:13.953312"], ["updated_at", "2017-04-15 19:14:13.953312"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8ecf285c-3b1b-9beb-62f3-3c3dcc06940a"], ["created_at", "2017-04-15 19:14:13.956545"], ["updated_at", "2017-04-15 19:14:13.956545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12271], ["child_process_id", 12272], ["uuid", "36719eb0-d2f9-70a6-926c-c599b150e27e"], ["created_at", "2017-04-15 19:14:13.958605"], ["updated_at", "2017-04-15 19:14:13.958605"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12270]] SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 12270], ["updated_at", "2017-04-15 19:14:13.962112"], ["id", 11067]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12270]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12272]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4ceae938-4ba0-ded2-8c78-181014664ec4"], ["created_at", "2017-04-15 19:14:13.969668"], ["updated_at", "2017-04-15 19:14:13.969668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "82608aee-19fc-728a-aeda-467b79ec7069"], ["created_at", "2017-04-15 19:14:13.971821"], ["updated_at", "2017-04-15 19:14:13.971821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12274], ["uuid", "1ec51508-001e-24ea-9917-f53437caa619"], ["created_at", "2017-04-15 19:14:13.973502"], ["updated_at", "2017-04-15 19:14:13.973502"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12273]] SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 12273], ["updated_at", "2017-04-15 19:14:13.976568"], ["id", 11068]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12273]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:13.984060"], ["updated_at", "2017-04-15 19:14:13.984060"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:13.986449"], ["id", 12275]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12275]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12275], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12275], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:13.991018"], ["updated_at", "2017-04-15 19:14:13.991018"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:13.993463"], ["id", 11069]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12275], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12275], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:13.997510"], ["updated_at", "2017-04-15 19:14:13.997510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:13.999830"], ["id", 11070]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12275], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12275], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:14.003950"], ["updated_at", "2017-04-15 19:14:14.003950"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.006235"], ["id", 11071]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11069}]"], ["updated_at", "2017-04-15 19:14:14.010454"], ["id", 11070]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11070}]"], ["updated_at", "2017-04-15 19:14:14.013523"], ["id", 11071]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:14.019683"], ["updated_at", "2017-04-15 19:14:14.019683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:14.021382"], ["id", 12276]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12276]] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12276], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12276], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:14.025652"], ["updated_at", "2017-04-15 19:14:14.025652"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.028040"], ["id", 11072]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12276], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12276], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:14.031314"], ["updated_at", "2017-04-15 19:14:14.031314"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.033707"], ["id", 11073]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12276], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12276], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:14.037162"], ["updated_at", "2017-04-15 19:14:14.037162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.039134"], ["id", 11074]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11072}]"], ["updated_at", "2017-04-15 19:14:14.042743"], ["id", 11073]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11073}]"], ["updated_at", "2017-04-15 19:14:14.046014"], ["id", 11074]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Some new name"], ["updated_at", "2017-04-15 19:14:14.049002"], ["id", 12276]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Test Process"], ["updated_at", "2017-04-15 19:14:14.052237"], ["id", 12276]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12276]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12276], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12276], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:14:14.058998"], ["id", 11073]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12276], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:14:14.062502"], ["id", 11074]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11072}]"], ["updated_at", "2017-04-15 19:14:14.065773"], ["id", 11073]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11073}]"], ["updated_at", "2017-04-15 19:14:14.068198"], ["id", 11074]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:14.072973"], ["updated_at", "2017-04-15 19:14:14.072973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:14.075254"], ["id", 12277]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12277]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12277], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12277], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:14.080326"], ["updated_at", "2017-04-15 19:14:14.080326"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.082637"], ["id", 11075]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12277], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12277], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:14.085702"], ["updated_at", "2017-04-15 19:14:14.085702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.087751"], ["id", 11076]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12277], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12277], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:14.091115"], ["updated_at", "2017-04-15 19:14:14.091115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.093181"], ["id", 11077]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11075}]"], ["updated_at", "2017-04-15 19:14:14.096519"], ["id", 11076]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11076}]"], ["updated_at", "2017-04-15 19:14:14.098824"], ["id", 11077]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 12277]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:14.104462"], ["updated_at", "2017-04-15 19:14:14.104462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:14.106752"], ["id", 12278]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12278]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12278], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12278], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:14.111439"], ["updated_at", "2017-04-15 19:14:14.111439"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.113619"], ["id", 11078]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12278], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12278], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:14.117061"], ["updated_at", "2017-04-15 19:14:14.117061"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.119184"], ["id", 11079]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12278], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12278], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:14.122366"], ["updated_at", "2017-04-15 19:14:14.122366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.124428"], ["id", 11080]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11078}]"], ["updated_at", "2017-04-15 19:14:14.127839"], ["id", 11079]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11079}]"], ["updated_at", "2017-04-15 19:14:14.130120"], ["id", 11080]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12278]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Some new operation name"], ["updated_at", "2017-04-15 19:14:14.133801"], ["id", 11078]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12278]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12278], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Default Operation 2"], ["updated_at", "2017-04-15 19:14:14.140577"], ["id", 11078]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12278], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:14:14.143817"], ["id", 11079]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12278], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:14:14.147348"], ["id", 11080]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11078}]"], ["updated_at", "2017-04-15 19:14:14.150665"], ["id", 11079]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11079}]"], ["updated_at", "2017-04-15 19:14:14.153019"], ["id", 11080]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11078]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:14.157670"], ["updated_at", "2017-04-15 19:14:14.157670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:14.159400"], ["id", 12279]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12279]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12279], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12279], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:14.163023"], ["updated_at", "2017-04-15 19:14:14.163023"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.165210"], ["id", 11081]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12279], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12279], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:14.168517"], ["updated_at", "2017-04-15 19:14:14.168517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.170565"], ["id", 11082]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12279], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12279], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:14.173756"], ["updated_at", "2017-04-15 19:14:14.173756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.175776"], ["id", 11083]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11081}]"], ["updated_at", "2017-04-15 19:14:14.178994"], ["id", 11082]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11082}]"], ["updated_at", "2017-04-15 19:14:14.181294"], ["id", 11083]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.8ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Some new operation"], ["process_template_id", 12279], ["uuid", "6172640d-b064-ec58-8561-6827f9eaf888"], ["created_at", "2017-04-15 19:14:14.185694"], ["updated_at", "2017-04-15 19:14:14.185694"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 12279]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12279]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12279], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12279], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:14:14.195469"], ["id", 11082]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12279], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:14:14.198718"], ["id", 11083]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = 11084  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11081}]"], ["updated_at", "2017-04-15 19:14:14.202678"], ["id", 11082]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11082}]"], ["updated_at", "2017-04-15 19:14:14.205012"], ["id", 11083]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 12279]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:14.210539"], ["updated_at", "2017-04-15 19:14:14.210539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:14.212263"], ["id", 12280]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12280]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12280], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12280], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:14.216888"], ["updated_at", "2017-04-15 19:14:14.216888"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.219416"], ["id", 11085]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12280], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12280], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:14.222555"], ["updated_at", "2017-04-15 19:14:14.222555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.224621"], ["id", 11086]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12280], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12280], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:14.227877"], ["updated_at", "2017-04-15 19:14:14.227877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.229931"], ["id", 11087]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11085}]"], ["updated_at", "2017-04-15 19:14:14.233118"], ["id", 11086]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11086}]"], ["updated_at", "2017-04-15 19:14:14.235407"], ["id", 11087]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11085]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:14:14.240569"], ["updated_at", "2017-04-15 19:14:14.240569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 19:14:14.242679"], ["updated_at", "2017-04-15 19:14:14.242679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:14:14.244249"], ["id", 12282]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12282]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12282], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12282], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 19:14:14.248721"], ["updated_at", "2017-04-15 19:14:14.248721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.250803"], ["id", 11088]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:14:14.253284"], ["id", 12281]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12281]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12281], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12281], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:14:14.256752"], ["updated_at", "2017-04-15 19:14:14.256752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.258658"], ["id", 11089]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12281], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12281], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:14:14.261705"], ["updated_at", "2017-04-15 19:14:14.261705"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 12282], ["updated_at", "2017-04-15 19:14:14.264918"], ["id", 11090]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":11089}]"], ["updated_at", "2017-04-15 19:14:14.269374"], ["id", 11090]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:14:14.273921"], ["updated_at", "2017-04-15 19:14:14.273921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 19:14:14.276195"], ["updated_at", "2017-04-15 19:14:14.276195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:14:14.278321"], ["id", 12284]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12284]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12284], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12284], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 19:14:14.282983"], ["updated_at", "2017-04-15 19:14:14.282983"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.285332"], ["id", 11091]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:14:14.288052"], ["id", 12283]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12283]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12283], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12283], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:14:14.291787"], ["updated_at", "2017-04-15 19:14:14.291787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.293867"], ["id", 11092]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12283], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12283], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:14:14.296832"], ["updated_at", "2017-04-15 19:14:14.296832"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 12284], ["updated_at", "2017-04-15 19:14:14.299785"], ["id", 11093]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":11092}]"], ["updated_at", "2017-04-15 19:14:14.303321"], ["id", 11093]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Parent Process"]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12283]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12284]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:14:14.311461"], ["updated_at", "2017-04-15 19:14:14.311461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:14:14.313147"], ["id", 12285]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12285]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12285], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12285], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:14:14.316769"], ["updated_at", "2017-04-15 19:14:14.316769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:14.318811"], ["id", 11094]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12285], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12285], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:14:14.322093"], ["updated_at", "2017-04-15 19:14:14.322093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0475e5b9-0627-fbe4-bf23-f3dec29d587c"], ["created_at", "2017-04-15 19:14:30.570612"], ["updated_at", "2017-04-15 19:14:30.570612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12286], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "634fa128-edbc-f0a4-383b-166f95da3dc4"], ["created_at", "2017-04-15 19:14:30.586109"], ["updated_at", "2017-04-15 19:14:30.586109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#index as HTML Parameters: {"process_template_id"=>"12286"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12286]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 24ms (Views: 8.2ms | ActiveRecord: 0.3ms) RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12286]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "129a1075-b790-90a6-5667-320705b67c30"], ["created_at", "2017-04-15 19:14:30.621468"], ["updated_at", "2017-04-15 19:14:30.621468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12287], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "25c3383c-97e4-1a4d-635a-006b74490538"], ["created_at", "2017-04-15 19:14:30.623397"], ["updated_at", "2017-04-15 19:14:30.623397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#show as HTML Parameters: {"process_template_id"=>"12287", "id"=>"11097"} RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11097]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12287]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4ec08b0d-0e90-c17d-e464-1481d227462e"], ["created_at", "2017-04-15 19:14:30.642861"], ["updated_at", "2017-04-15 19:14:30.642861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c56cfc9a-9d49-73ef-4dd1-2028f02b96c7"], ["created_at", "2017-04-15 19:14:30.645001"], ["updated_at", "2017-04-15 19:14:30.645001"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#new as HTML Parameters: {"process_template_id"=>"12289"} RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12289]] Unpermitted parameter: process_template_id Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 7ms (Views: 1.6ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "bcd99b47-e746-2ea1-5bdc-0ff4f9dd6533"], ["created_at", "2017-04-15 19:14:30.661689"], ["updated_at", "2017-04-15 19:14:30.661689"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12290], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "e170b946-d4e0-6e13-c1d6-2cdf5aea19cc"], ["created_at", "2017-04-15 19:14:30.664301"], ["updated_at", "2017-04-15 19:14:30.664301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#edit as HTML Parameters: {"process_template_id"=>"12290", "id"=>"11098"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11098]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12290]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c0e1d821-3543-103a-2335-1451080a2ea5"], ["created_at", "2017-04-15 19:14:30.684563"], ["updated_at", "2017-04-15 19:14:30.684563"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12291", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12291"} RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12291]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 12291], ["uuid", "97609f78-c171-2e96-6ec6-4088a7beb03c"], ["created_at", "2017-04-15 19:14:30.697284"], ["updated_at", "2017-04-15 19:14:30.697284"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12291/operation_templates Completed 302 Found in 9ms (ActiveRecord: 1.2ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 12291]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3296c75c-00c0-a81a-7a72-82e613b782cc"], ["created_at", "2017-04-15 19:14:30.708256"], ["updated_at", "2017-04-15 19:14:30.708256"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate') Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12292", "type"=>"RailsWorkflow::CustomOperationTemplate"}, "process_template_id"=>"12292"} RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12292]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 12292], ["uuid", "3dcf851e-f5d4-e0fd-7315-e8f353a7cc7a"], ["created_at", "2017-04-15 19:14:30.731570"], ["updated_at", "2017-04-15 19:14:30.731570"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12292/operation_templates Completed 302 Found in 20ms (ActiveRecord: 1.3ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "da99b9ca-72c6-a711-17af-5be329dac3e2"], ["created_at", "2017-04-15 19:14:30.740758"], ["updated_at", "2017-04-15 19:14:30.740758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12293", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12293"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12293]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 12293], ["uuid", "b247fae0-6ce9-f832-d3e4-c2bd35a8be6b"], ["created_at", "2017-04-15 19:14:30.749938"], ["updated_at", "2017-04-15 19:14:30.749938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12293/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9747a3c6-e249-9150-6fc6-f2a2aa0c7dd3"], ["created_at", "2017-04-15 19:14:30.757417"], ["updated_at", "2017-04-15 19:14:30.757417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12294", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12294"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12294]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 12294], ["uuid", "bf185601-3198-f7e5-e055-84a559cb2426"], ["created_at", "2017-04-15 19:14:30.766069"], ["updated_at", "2017-04-15 19:14:30.766069"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12294/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "603704be-a7d7-c547-d120-ee0a72e9dbb9"], ["created_at", "2017-04-15 19:14:30.777644"], ["updated_at", "2017-04-15 19:14:30.777644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "23f4fd97-da50-88a8-5eec-b39fd250a740"], ["created_at", "2017-04-15 19:14:30.782012"], ["updated_at", "2017-04-15 19:14:30.782012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9d1830b1-f3c3-bb3a-20e9-1756452c92a1"], ["created_at", "2017-04-15 19:14:30.786129"], ["updated_at", "2017-04-15 19:14:30.786129"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12297], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "157edc4b-f211-ac6d-c3c1-5712b4d6fc05"], ["created_at", "2017-04-15 19:14:30.788773"], ["updated_at", "2017-04-15 19:14:30.788773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c029f0e7-831e-3212-61de-8d7028c4bedb"], ["created_at", "2017-04-15 19:14:30.792789"], ["updated_at", "2017-04-15 19:14:30.792789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12298], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "6d3fd344-b8f1-80b6-c350-28ebafce8faf"], ["created_at", "2017-04-15 19:14:30.794923"], ["updated_at", "2017-04-15 19:14:30.794923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12298", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12298", "id"=>"11104"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11104]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12298]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.3ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12298/operation_templates Completed 302 Found in 8ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "84b3caec-6435-8174-202b-dd22accdfa5d"], ["created_at", "2017-04-15 19:14:30.811055"], ["updated_at", "2017-04-15 19:14:30.811055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12299], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "bebb2f53-f92e-8ce2-71f5-1df0a74826de"], ["created_at", "2017-04-15 19:14:30.813195"], ["updated_at", "2017-04-15 19:14:30.813195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12299", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12299", "id"=>"11105"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11105]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12299]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12299/operation_templates Completed 302 Found in 7ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "22ecc5c5-8b86-c3ce-aebf-64fdfc6cf6a7"], ["created_at", "2017-04-15 19:14:30.830653"], ["updated_at", "2017-04-15 19:14:30.830653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12300], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "f452f43c-5f22-838f-0f35-55726498b8b8"], ["created_at", "2017-04-15 19:14:30.832812"], ["updated_at", "2017-04-15 19:14:30.832812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ff4a04be-7af9-db79-2822-ef4cea581e9d"], ["created_at", "2017-04-15 19:14:30.837203"], ["updated_at", "2017-04-15 19:14:30.837203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12301], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "427af07e-3bca-8c54-b9f8-cfe7c8b3d1ad"], ["created_at", "2017-04-15 19:14:30.839554"], ["updated_at", "2017-04-15 19:14:30.839554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f494ed73-79a3-be47-d1ba-248860c4bc0a"], ["created_at", "2017-04-15 19:14:30.843752"], ["updated_at", "2017-04-15 19:14:30.843752"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12302], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "ee45735a-a253-cd36-e49d-fc54bc67b69b"], ["created_at", "2017-04-15 19:14:30.846430"], ["updated_at", "2017-04-15 19:14:30.846430"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12302]] Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"12302", "id"=>"11108"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11108]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12302]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 11108]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12302/operation_templates Completed 302 Found in 7ms (ActiveRecord: 1.3ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9daa29ef-b3f1-acd6-65c5-4c59c43b7231"], ["created_at", "2017-04-15 19:14:30.865406"], ["updated_at", "2017-04-15 19:14:30.865406"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12303], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "c157f237-f5f7-7f54-f5f4-b771fc735a60"], ["created_at", "2017-04-15 19:14:30.867915"], ["updated_at", "2017-04-15 19:14:30.867915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"12303", "id"=>"11109"} RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11109]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12303]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 11109]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12303/operation_templates Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "d35fd9a8-36f8-5ae8-9c7c-63a0db1b62ab"], ["created_at", "2017-04-15 19:14:30.911371"], ["updated_at", "2017-04-15 19:14:30.911371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms) RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "0937e1e5-c82f-0cd4-3b7c-b6b32039d956"], ["created_at", "2017-04-15 19:14:30.925004"], ["updated_at", "2017-04-15 19:14:30.925004"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#show as HTML Parameters: {"id"=>"12305"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12305]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (0.3ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "76bd4d2d-9694-15fb-0cd6-b4d7902c3d39"], ["created_at", "2017-04-15 19:14:30.949456"], ["updated_at", "2017-04-15 19:14:30.949456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#edit as HTML Parameters: {"id"=>"12306"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12306]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "d4de1cb3-59e5-a527-4d4c-d1eb8d75d767"], ["created_at", "2017-04-15 19:14:30.985466"], ["updated_at", "2017-04-15 19:14:30.985466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12307/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.1ms) ROLLBACK  (0.2ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "69f2ac4a-a775-d99c-073f-c32a6cdd2d2b"], ["created_at", "2017-04-15 19:14:30.996757"], ["updated_at", "2017-04-15 19:14:30.996757"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12308/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "553da342-3978-0d43-2fc1-823c14788b1e"], ["created_at", "2017-04-15 19:14:31.007294"], ["updated_at", "2017-04-15 19:14:31.007294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12309/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.5ms) RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "8dcee689-4bc9-d459-2e15-970321c2f19a"], ["created_at", "2017-04-15 19:14:31.021033"], ["updated_at", "2017-04-15 19:14:31.021033"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "2e857aac-f3d3-253f-55b1-96b3f9ad489d"], ["created_at", "2017-04-15 19:14:31.025081"], ["updated_at", "2017-04-15 19:14:31.025081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"12311"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12311]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12311 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "d5618a6e-7755-0005-f895-ce25d8e6edef"], ["created_at", "2017-04-15 19:14:31.038234"], ["updated_at", "2017-04-15 19:14:31.038234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"12312"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12312]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12312 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "771f2979-f738-1d9e-33da-f09d137c8385"], ["created_at", "2017-04-15 19:14:31.053308"], ["updated_at", "2017-04-15 19:14:31.053308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "9909144b-8b20-9e70-d51a-83648fba1dc8"], ["created_at", "2017-04-15 19:14:31.057204"], ["updated_at", "2017-04-15 19:14:31.057204"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "4614fa75-0559-d305-f271-4139512783f8"], ["created_at", "2017-04-15 19:14:31.061794"], ["updated_at", "2017-04-15 19:14:31.061794"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"12315"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12315]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 12315]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 6ms (ActiveRecord: 0.9ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "708bdaf9-b978-9220-a4cd-5a75f5668bd9"], ["created_at", "2017-04-15 19:14:31.076272"], ["updated_at", "2017-04-15 19:14:31.076272"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"12316"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12316]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 12316]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0d24c493-229d-2472-f467-4f9f0bc9b73f"], ["created_at", "2017-04-15 19:14:31.092216"], ["updated_at", "2017-04-15 19:14:31.092216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12317], ["created_at", "2017-04-15 19:14:31.099594"], ["updated_at", "2017-04-15 19:14:31.099594"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#index as HTML  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.4ms)  select status, cnt from ( select row_number() over (partition by status), count(*) over (partition by status) cnt, status from rails_workflow_processes)t where row_number = 1  Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 10ms (Views: 3.8ms | ActiveRecord: 0.7ms) RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" ASC LIMIT 30 OFFSET 0  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "683a8c0f-acc0-1b91-d295-6bb379974180"], ["created_at", "2017-04-15 19:14:31.119259"], ["updated_at", "2017-04-15 19:14:31.119259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12318], ["created_at", "2017-04-15 19:14:31.121495"], ["updated_at", "2017-04-15 19:14:31.121495"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#show as HTML Parameters: {"id"=>"5579"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5579]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "baa9e610-a9dc-0250-2d74-0231320f17f3"], ["created_at", "2017-04-15 19:14:31.139436"], ["updated_at", "2017-04-15 19:14:31.139436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a2ef7d93-97af-5932-bc93-8b446cf76d4e"], ["created_at", "2017-04-15 19:14:31.148746"], ["updated_at", "2017-04-15 19:14:31.148746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12320], ["created_at", "2017-04-15 19:14:31.150546"], ["updated_at", "2017-04-15 19:14:31.150546"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#edit as HTML Parameters: {"id"=>"5580"} RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5580]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "863c3581-59f2-a08c-224b-cd875e473119"], ["created_at", "2017-04-15 19:14:31.167397"], ["updated_at", "2017-04-15 19:14:31.167397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_processes" Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12321"}} SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12321]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12321) [["id", 12321]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12321], ["created_at", "2017-04-15 19:14:31.183770"], ["updated_at", "2017-04-15 19:14:31.183770"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:31.186227"], ["id", 5581]] SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5581], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:14:31.195137"], ["updated_at", "2017-04-15 19:14:31.195137"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5581], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5581]] Redirected to http://test.host/workflow/processes/5581 Completed 302 Found in 32ms (ActiveRecord: 4.0ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9c90528b-7c71-5deb-e2ca-6a2e614f076e"], ["created_at", "2017-04-15 19:14:31.207536"], ["updated_at", "2017-04-15 19:14:31.207536"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12322"}} SQL (0.5ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12322]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12322) [["id", 12322]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12322], ["created_at", "2017-04-15 19:14:31.217082"], ["updated_at", "2017-04-15 19:14:31.217082"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:31.219176"], ["id", 5582]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5582], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:14:31.221223"], ["updated_at", "2017-04-15 19:14:31.221223"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5582], ["parent_type", "RailsWorkflow::Process"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5582]] Redirected to http://test.host/workflow/processes/5582 Completed 302 Found in 15ms (ActiveRecord: 3.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "624fbb55-8035-9afc-4493-96f71c2498a4"], ["created_at", "2017-04-15 19:14:31.230181"], ["updated_at", "2017-04-15 19:14:31.230181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12323"}} SQL (0.4ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12323]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12323) [["id", 12323]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12323], ["created_at", "2017-04-15 19:14:31.239129"], ["updated_at", "2017-04-15 19:14:31.239129"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:31.241245"], ["id", 5583]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5583], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:14:31.243252"], ["updated_at", "2017-04-15 19:14:31.243252"]] RailsWorkflow::Context Load (0.4ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5583], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.4ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5583]] Redirected to http://test.host/workflow/processes/5583 Completed 302 Found in 16ms (ActiveRecord: 3.3ms) RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" DESC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "90cd3231-2407-520f-8e6e-4ab326948f5b"], ["created_at", "2017-04-15 19:14:31.256714"], ["updated_at", "2017-04-15 19:14:31.256714"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "003a8036-51d1-ede3-2dce-f3d3d23c78fa"], ["created_at", "2017-04-15 19:14:31.260439"], ["updated_at", "2017-04-15 19:14:31.260439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "27ccb7b9-9ab2-2d29-7701-1a2ff89de604"], ["created_at", "2017-04-15 19:14:31.263968"], ["updated_at", "2017-04-15 19:14:31.263968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12326], ["created_at", "2017-04-15 19:14:31.265710"], ["updated_at", "2017-04-15 19:14:31.265710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a3694350-8d5f-cabe-7636-9b04a621bf38"], ["created_at", "2017-04-15 19:14:31.269007"], ["updated_at", "2017-04-15 19:14:31.269007"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12327], ["created_at", "2017-04-15 19:14:31.271267"], ["updated_at", "2017-04-15 19:14:31.271267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12327"}, "id"=>"5585"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5585]] Unpermitted parameter: id  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "179e3e25-83c9-27c9-d214-50495c026ee1"], ["created_at", "2017-04-15 19:14:31.284850"], ["updated_at", "2017-04-15 19:14:31.284850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12328], ["created_at", "2017-04-15 19:14:31.286827"], ["updated_at", "2017-04-15 19:14:31.286827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12328"}, "id"=>"5586"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5586]] Unpermitted parameter: id  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ae69fb1f-5c64-3106-f0dc-da88215623bc"], ["created_at", "2017-04-15 19:14:31.302391"], ["updated_at", "2017-04-15 19:14:31.302391"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12329], ["created_at", "2017-04-15 19:14:31.304566"], ["updated_at", "2017-04-15 19:14:31.304566"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4a46bade-d00e-4144-849d-01db87a006e2"], ["created_at", "2017-04-15 19:14:31.308466"], ["updated_at", "2017-04-15 19:14:31.308466"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12330], ["created_at", "2017-04-15 19:14:31.311047"], ["updated_at", "2017-04-15 19:14:31.311047"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7a4176e7-682b-9082-922d-2fd9bdb2e077"], ["created_at", "2017-04-15 19:14:31.315427"], ["updated_at", "2017-04-15 19:14:31.315427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "95e0ea5a-d8f5-d19a-27b2-418a20be965e"], ["created_at", "2017-04-15 19:14:31.318785"], ["updated_at", "2017-04-15 19:14:31.318785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "072a17a9-a522-0ea4-74dc-1ac16825a2b4"], ["created_at", "2017-04-15 19:14:31.321895"], ["updated_at", "2017-04-15 19:14:31.321895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12333], ["uuid", "a910834f-c507-8a53-aa6d-fa4b8dea7b44"], ["created_at", "2017-04-15 19:14:31.324310"], ["updated_at", "2017-04-15 19:14:31.324310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12333], ["dependencies", "[{\"id\":11110,\"statuses\":[2]}]"], ["uuid", "de30944c-3e80-5072-508e-0a5bbced3b98"], ["created_at", "2017-04-15 19:14:31.326891"], ["updated_at", "2017-04-15 19:14:31.326891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12333]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12333) [["id", 12333]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12333], ["created_at", "2017-04-15 19:14:31.332719"], ["updated_at", "2017-04-15 19:14:31.332719"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:31.334604"], ["id", 5589]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5589], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.336605"], ["updated_at", "2017-04-15 19:14:31.336605"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5589], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11110], ["process_id", 5589], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:31.349791"], ["updated_at", "2017-04-15 19:14:31.349791"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6335], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.351760"], ["updated_at", "2017-04-15 19:14:31.351760"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "df66270e-a9f5-501b-d6a1-2ae2129e669a"], ["created_at", "2017-04-15 19:14:31.357886"], ["updated_at", "2017-04-15 19:14:31.357886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12334], ["uuid", "64a9b2c1-f87d-05b4-4f27-4abca792bc81"], ["created_at", "2017-04-15 19:14:31.360098"], ["updated_at", "2017-04-15 19:14:31.360098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12334], ["dependencies", "[{\"id\":11112,\"statuses\":[2]}]"], ["uuid", "c9e0b6b9-dd49-04d2-1173-22496039eb09"], ["created_at", "2017-04-15 19:14:31.362447"], ["updated_at", "2017-04-15 19:14:31.362447"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12334]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12334) [["id", 12334]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12334], ["created_at", "2017-04-15 19:14:31.368183"], ["updated_at", "2017-04-15 19:14:31.368183"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:31.370058"], ["id", 5590]] SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5590], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.372045"], ["updated_at", "2017-04-15 19:14:31.372045"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5590], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11112], ["process_id", 5590], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:31.376334"], ["updated_at", "2017-04-15 19:14:31.376334"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6336], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.377871"], ["updated_at", "2017-04-15 19:14:31.377871"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ccfdd412-1bcb-0c18-b048-896c384b1614"], ["created_at", "2017-04-15 19:14:31.382694"], ["updated_at", "2017-04-15 19:14:31.382694"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12335], ["uuid", "3b6915a5-3d0d-9440-65e4-f90e741257a4"], ["created_at", "2017-04-15 19:14:31.384934"], ["updated_at", "2017-04-15 19:14:31.384934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12335], ["dependencies", "[{\"id\":11114,\"statuses\":[2]}]"], ["uuid", "3c3f28b4-5260-8a0e-67f8-c8993ef3d2a5"], ["created_at", "2017-04-15 19:14:31.387359"], ["updated_at", "2017-04-15 19:14:31.387359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12335]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12335) [["id", 12335]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12335], ["created_at", "2017-04-15 19:14:31.392923"], ["updated_at", "2017-04-15 19:14:31.392923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:31.394572"], ["id", 5591]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5591], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.396504"], ["updated_at", "2017-04-15 19:14:31.396504"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5591], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11114], ["process_id", 5591], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:31.400185"], ["updated_at", "2017-04-15 19:14:31.400185"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6337], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.401651"], ["updated_at", "2017-04-15 19:14:31.401651"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5591]] RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5591]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "03652ebf-cc2f-a855-af8e-91be962dfcc8"], ["created_at", "2017-04-15 19:14:31.410117"], ["updated_at", "2017-04-15 19:14:31.410117"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12336], ["uuid", "a857d0d7-4413-ade3-bc18-b172633c99c1"], ["created_at", "2017-04-15 19:14:31.412444"], ["updated_at", "2017-04-15 19:14:31.412444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12336], ["dependencies", "[{\"id\":11116,\"statuses\":[2]}]"], ["uuid", "edd614b1-b835-f145-5efd-63ecf89589bf"], ["created_at", "2017-04-15 19:14:31.414822"], ["updated_at", "2017-04-15 19:14:31.414822"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12336]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12336) [["id", 12336]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12336], ["created_at", "2017-04-15 19:14:31.421088"], ["updated_at", "2017-04-15 19:14:31.421088"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:31.423028"], ["id", 5592]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5592], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.432429"], ["updated_at", "2017-04-15 19:14:31.432429"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5592], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11116], ["process_id", 5592], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:31.436219"], ["updated_at", "2017-04-15 19:14:31.436219"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6338], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.437902"], ["updated_at", "2017-04-15 19:14:31.437902"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3903e209-adb4-b3dc-0698-83517952dc7e"], ["created_at", "2017-04-15 19:14:31.442990"], ["updated_at", "2017-04-15 19:14:31.442990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12337], ["uuid", "e5e1a84a-7ef8-76aa-d3a6-41b5e10f6e14"], ["created_at", "2017-04-15 19:14:31.445104"], ["updated_at", "2017-04-15 19:14:31.445104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12337], ["dependencies", "[{\"id\":11118,\"statuses\":[2]}]"], ["uuid", "2e646e2c-320b-d249-e969-76bfe6987625"], ["created_at", "2017-04-15 19:14:31.447485"], ["updated_at", "2017-04-15 19:14:31.447485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12337]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12337) [["id", 12337]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12337], ["created_at", "2017-04-15 19:14:31.452776"], ["updated_at", "2017-04-15 19:14:31.452776"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:31.454548"], ["id", 5593]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5593], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.456294"], ["updated_at", "2017-04-15 19:14:31.456294"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5593], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11118], ["process_id", 5593], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:31.459636"], ["updated_at", "2017-04-15 19:14:31.459636"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6339], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.461047"], ["updated_at", "2017-04-15 19:14:31.461047"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5593]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6339], ["parent_type", "RailsWorkflow::Operation"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d809a6dc-1488-16b7-001c-f104aeae2023"], ["created_at", "2017-04-15 19:14:31.473756"], ["updated_at", "2017-04-15 19:14:31.473756"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12338], ["uuid", "34a6b9f7-05bb-5096-351e-25b61cf86c6d"], ["created_at", "2017-04-15 19:14:31.476207"], ["updated_at", "2017-04-15 19:14:31.476207"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12338], ["dependencies", "[{\"id\":11120,\"statuses\":[2]}]"], ["uuid", "9bbd6371-d217-a8d6-eba9-93da5081bbe5"], ["created_at", "2017-04-15 19:14:31.478754"], ["updated_at", "2017-04-15 19:14:31.478754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12338]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12338) [["id", 12338]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12338], ["created_at", "2017-04-15 19:14:31.484367"], ["updated_at", "2017-04-15 19:14:31.484367"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:31.486271"], ["id", 5594]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5594], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.488153"], ["updated_at", "2017-04-15 19:14:31.488153"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5594], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11120], ["process_id", 5594], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:31.491448"], ["updated_at", "2017-04-15 19:14:31.491448"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6340], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.492766"], ["updated_at", "2017-04-15 19:14:31.492766"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5d64462f-70b4-0108-de63-63501da7a4c8"], ["created_at", "2017-04-15 19:14:31.498173"], ["updated_at", "2017-04-15 19:14:31.498173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12339], ["uuid", "63a600fd-6489-a554-7c7f-7fed328328c2"], ["created_at", "2017-04-15 19:14:31.501006"], ["updated_at", "2017-04-15 19:14:31.501006"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12339], ["dependencies", "[{\"id\":11122,\"statuses\":[2]}]"], ["uuid", "d9d53403-0cdb-62f3-57a7-de58e6d3d376"], ["created_at", "2017-04-15 19:14:31.504250"], ["updated_at", "2017-04-15 19:14:31.504250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12339]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12339) [["id", 12339]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12339], ["created_at", "2017-04-15 19:14:31.509612"], ["updated_at", "2017-04-15 19:14:31.509612"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:31.511630"], ["id", 5595]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5595], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.513466"], ["updated_at", "2017-04-15 19:14:31.513466"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5595], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11122], ["process_id", 5595], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:31.517124"], ["updated_at", "2017-04-15 19:14:31.517124"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6341], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.518407"], ["updated_at", "2017-04-15 19:14:31.518407"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:31.521269"], ["id", 5595]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5595], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:31.524779"], ["id", 6341]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6e424cd-dfd9-4601-bb63-e0092d6d4980] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6341 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6e424cd-dfd9-4601-bb63-e0092d6d4980] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6341]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6e424cd-dfd9-4601-bb63-e0092d6d4980]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6e424cd-dfd9-4601-bb63-e0092d6d4980]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6e424cd-dfd9-4601-bb63-e0092d6d4980] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6341], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6e424cd-dfd9-4601-bb63-e0092d6d4980]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6e424cd-dfd9-4601-bb63-e0092d6d4980]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d6e424cd-dfd9-4601-bb63-e0092d6d4980] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 5.06ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5425c5fd-75fb-f4c5-4923-ad2af11a4f65"], ["created_at", "2017-04-15 19:14:31.535108"], ["updated_at", "2017-04-15 19:14:31.535108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12340], ["uuid", "3be4ae84-2cca-d360-e8dd-3327c1f423eb"], ["created_at", "2017-04-15 19:14:31.537214"], ["updated_at", "2017-04-15 19:14:31.537214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12340], ["dependencies", "[{\"id\":11124,\"statuses\":[2]}]"], ["uuid", "92e10463-2a9c-4a33-6f49-3eae123eceb8"], ["created_at", "2017-04-15 19:14:31.539446"], ["updated_at", "2017-04-15 19:14:31.539446"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12340]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12340) [["id", 12340]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12340], ["created_at", "2017-04-15 19:14:31.544727"], ["updated_at", "2017-04-15 19:14:31.544727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:31.546372"], ["id", 5596]] SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5596], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.548176"], ["updated_at", "2017-04-15 19:14:31.548176"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5596], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11124], ["process_id", 5596], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:31.551734"], ["updated_at", "2017-04-15 19:14:31.551734"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6342], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.553099"], ["updated_at", "2017-04-15 19:14:31.553099"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:31.556143"], ["id", 5596]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5596], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:31.558953"], ["id", 6342]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [eb4ff421-6ffc-483a-8c0e-7786e2ca26fe] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6342 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [eb4ff421-6ffc-483a-8c0e-7786e2ca26fe] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6342]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [eb4ff421-6ffc-483a-8c0e-7786e2ca26fe]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [eb4ff421-6ffc-483a-8c0e-7786e2ca26fe]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [eb4ff421-6ffc-483a-8c0e-7786e2ca26fe] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6342], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [eb4ff421-6ffc-483a-8c0e-7786e2ca26fe]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [eb4ff421-6ffc-483a-8c0e-7786e2ca26fe]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [eb4ff421-6ffc-483a-8c0e-7786e2ca26fe] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 3.82ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5596]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ef734a60-0c34-8209-0608-10c7fa9e7a9a"], ["created_at", "2017-04-15 19:14:31.568890"], ["updated_at", "2017-04-15 19:14:31.568890"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12341], ["uuid", "bf340c86-aea8-00f8-6bce-670bec329a3e"], ["created_at", "2017-04-15 19:14:31.571436"], ["updated_at", "2017-04-15 19:14:31.571436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12341], ["dependencies", "[{\"id\":11126,\"statuses\":[2]}]"], ["uuid", "3aede6fd-7ce0-2ff9-46e7-958f7a29f2f6"], ["created_at", "2017-04-15 19:14:31.573654"], ["updated_at", "2017-04-15 19:14:31.573654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12341]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12341) [["id", 12341]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12341], ["created_at", "2017-04-15 19:14:31.578918"], ["updated_at", "2017-04-15 19:14:31.578918"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:31.580920"], ["id", 5597]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5597], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.582704"], ["updated_at", "2017-04-15 19:14:31.582704"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5597], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11126], ["process_id", 5597], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:31.586109"], ["updated_at", "2017-04-15 19:14:31.586109"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6343], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.587417"], ["updated_at", "2017-04-15 19:14:31.587417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:31.590263"], ["id", 5597]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5597], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:31.593980"], ["id", 6343]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6343 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6343]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6343], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:31.598739"], ["updated_at", "2017-04-15 19:14:31.599269"], ["id", 6343]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5597]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12341]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12341]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11126]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5597]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11126]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624]  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5597], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624] SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:31.611495"], ["id", 5597]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5597]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [cf197645-7074-411c-9bb0-3f6fd6085624] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 19.27ms RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5597]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:14:31.616313"], ["updated_at", "2017-04-15 19:14:31.617067"], ["id", 6343]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11126]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5597]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5597], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:31.623441"], ["id", 5597]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5597]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "acc822f3-cb13-ee6b-6cab-91921dfd9229"], ["created_at", "2017-04-15 19:14:31.628042"], ["updated_at", "2017-04-15 19:14:31.628042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12342], ["uuid", "60e6acb2-78f3-7724-8def-8be1c3f67419"], ["created_at", "2017-04-15 19:14:31.630163"], ["updated_at", "2017-04-15 19:14:31.630163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12342], ["dependencies", "[{\"id\":11128,\"statuses\":[2]}]"], ["uuid", "b2e02657-aed5-a0e8-8d4b-d5dba04cce99"], ["created_at", "2017-04-15 19:14:31.632381"], ["updated_at", "2017-04-15 19:14:31.632381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12342]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12342) [["id", 12342]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12342], ["created_at", "2017-04-15 19:14:31.637540"], ["updated_at", "2017-04-15 19:14:31.637540"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:31.639499"], ["id", 5598]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5598], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.641252"], ["updated_at", "2017-04-15 19:14:31.641252"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5598], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11128], ["process_id", 5598], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:31.644573"], ["updated_at", "2017-04-15 19:14:31.644573"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6344], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.645961"], ["updated_at", "2017-04-15 19:14:31.645961"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:31.648995"], ["id", 5598]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5598], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:31.651804"], ["id", 6344]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6344 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6344]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6344], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:31.657587"], ["updated_at", "2017-04-15 19:14:31.658105"], ["id", 6344]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5598]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12342]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12342]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11128]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5598]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11128]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11129], ["process_id", 5598], ["status", 0], ["dependencies", "[{\"operation_id\":6344,\"status\":2}]"], ["created_at", "2017-04-15 19:14:31.666396"], ["updated_at", "2017-04-15 19:14:31.666396"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6345], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.667811"], ["updated_at", "2017-04-15 19:14:31.667811"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:31.671160"], ["id", 6345]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6345 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6345]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6345], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:31.675602"], ["updated_at", "2017-04-15 19:14:31.676092"], ["id", 6345]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5598]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12342]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12342]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11129]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5598]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11129]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11128]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5598], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:31.684310"], ["id", 5598]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5598]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] [RailsWorkflow::OperationExecutionJob] [1839e919-b8ac-4f6b-9aef-4f59d16cae88] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 13.91ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6f978563-a6fe-4f69-b77c-5a0147f2848f] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 33.18ms RailsWorkflow::Operation Load (0.4ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5598]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:14:31.687944"], ["updated_at", "2017-04-15 19:14:31.688703"], ["id", 6344]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11128]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5598]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11129]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5598], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:31.695312"], ["id", 5598]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5598]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1de65bfb-b0d7-ee77-a0cb-3a760ab233e4"], ["created_at", "2017-04-15 19:14:31.699447"], ["updated_at", "2017-04-15 19:14:31.699447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12343], ["uuid", "371e22c3-e409-1cd8-be31-77802baca068"], ["created_at", "2017-04-15 19:14:31.701610"], ["updated_at", "2017-04-15 19:14:31.701610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12343], ["dependencies", "[{\"id\":11130,\"statuses\":[2]}]"], ["uuid", "a53ad140-bded-9653-dd30-7c501895c001"], ["created_at", "2017-04-15 19:14:31.703809"], ["updated_at", "2017-04-15 19:14:31.703809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12343]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12343) [["id", 12343]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12343], ["created_at", "2017-04-15 19:14:31.708848"], ["updated_at", "2017-04-15 19:14:31.708848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:31.710630"], ["id", 5599]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5599], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.712398"], ["updated_at", "2017-04-15 19:14:31.712398"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5599], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11130], ["process_id", 5599], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:31.715742"], ["updated_at", "2017-04-15 19:14:31.715742"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6346], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.717028"], ["updated_at", "2017-04-15 19:14:31.717028"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:31.720108"], ["id", 5599]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5599], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:31.722674"], ["id", 6346]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6346 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6346]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6346], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:31.728093"], ["updated_at", "2017-04-15 19:14:31.728634"], ["id", 6346]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5599]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12343]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12343]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11130]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5599]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11130]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11131], ["process_id", 5599], ["status", 0], ["dependencies", "[{\"operation_id\":6346,\"status\":2}]"], ["created_at", "2017-04-15 19:14:31.736254"], ["updated_at", "2017-04-15 19:14:31.736254"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6347], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.737549"], ["updated_at", "2017-04-15 19:14:31.737549"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:31.740641"], ["id", 6347]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6347 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6347]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6347], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:31.744858"], ["updated_at", "2017-04-15 19:14:31.745405"], ["id", 6347]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5599]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12343]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12343]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11131]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5599]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11131]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11130]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5599], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:31.753440"], ["id", 5599]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5599]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] [RailsWorkflow::OperationExecutionJob] [8b3920ff-e500-4a4d-b774-238a38576c30] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 13.47ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [05f57e63-7927-4e4b-83ca-3686ad592de0] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 31.25ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5599]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:14:31.756823"], ["updated_at", "2017-04-15 19:14:31.757470"], ["id", 6346]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11130]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5599]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11131]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5599], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:31.763704"], ["id", 5599]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5599]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 2], ["created_at", "2017-04-15 19:14:31.715742"], ["updated_at", "2017-04-15 19:14:31.757470"], ["completed_at", "2017-04-15 19:14:31.765659"], ["id", 6346]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "baeecd00-b3d5-405f-b0ab-d1432729a003"], ["created_at", "2017-04-15 19:14:31.769879"], ["updated_at", "2017-04-15 19:14:31.769879"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12344], ["uuid", "eca355d1-32ec-4654-657e-42c461a24a22"], ["created_at", "2017-04-15 19:14:31.772494"], ["updated_at", "2017-04-15 19:14:31.772494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12344], ["dependencies", "[{\"id\":11132,\"statuses\":[2]}]"], ["uuid", "09bde247-74b8-6dcb-39a8-947ed1909aa7"], ["created_at", "2017-04-15 19:14:31.774932"], ["updated_at", "2017-04-15 19:14:31.774932"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12344]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12344) [["id", 12344]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12344], ["created_at", "2017-04-15 19:14:31.780341"], ["updated_at", "2017-04-15 19:14:31.780341"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:31.782330"], ["id", 5600]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5600], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.784096"], ["updated_at", "2017-04-15 19:14:31.784096"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5600], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11132], ["process_id", 5600], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:31.787406"], ["updated_at", "2017-04-15 19:14:31.787406"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6348], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.788888"], ["updated_at", "2017-04-15 19:14:31.788888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:31.791750"], ["id", 5600]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5600], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:31.794310"], ["id", 6348]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6348 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6348]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6348], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:31.800211"], ["updated_at", "2017-04-15 19:14:31.800701"], ["id", 6348]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5600]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12344]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12344]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11132]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5600]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11132]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11133], ["process_id", 5600], ["status", 0], ["dependencies", "[{\"operation_id\":6348,\"status\":2}]"], ["created_at", "2017-04-15 19:14:31.807815"], ["updated_at", "2017-04-15 19:14:31.807815"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6349], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.809076"], ["updated_at", "2017-04-15 19:14:31.809076"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:31.812097"], ["id", 6349]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6349 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6349]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6349], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:31.816562"], ["updated_at", "2017-04-15 19:14:31.817064"], ["id", 6349]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5600]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12344]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12344]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11133]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5600]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11133]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11132]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0]  (0.1ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5600], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:31.824813"], ["id", 5600]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5600]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] [RailsWorkflow::OperationExecutionJob] [df8d8b93-e190-4f62-983e-cffd5d0e9ba0] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 12.94ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3aed78f5-802d-47a1-aba9-b5574eeb24a7] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 30.49ms RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5600]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:14:31.827696"], ["updated_at", "2017-04-15 19:14:31.828273"], ["id", 6348]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11132]] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5600]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11133]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5600], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:31.833679"], ["id", 5600]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5600]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 6], ["created_at", "2017-04-15 19:14:31.787406"], ["updated_at", "2017-04-15 19:14:31.828273"], ["completed_at", "2017-04-15 19:14:31.835568"], ["id", 6348]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "18188610-a05b-ed19-8195-106afc0385f4"], ["created_at", "2017-04-15 19:14:31.839728"], ["updated_at", "2017-04-15 19:14:31.839728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12345], ["uuid", "b508e7b4-4c3f-f493-37d9-570ee401e0d1"], ["created_at", "2017-04-15 19:14:31.841835"], ["updated_at", "2017-04-15 19:14:31.841835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12345], ["dependencies", "[{\"id\":11134,\"statuses\":[2]}]"], ["uuid", "f84c1ac6-7f3d-c40c-c89b-c112bf7eea79"], ["created_at", "2017-04-15 19:14:31.844069"], ["updated_at", "2017-04-15 19:14:31.844069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12345]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12345) [["id", 12345]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12345], ["created_at", "2017-04-15 19:14:31.849522"], ["updated_at", "2017-04-15 19:14:31.849522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:31.851248"], ["id", 5601]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5601], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.853049"], ["updated_at", "2017-04-15 19:14:31.853049"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5601], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11134], ["process_id", 5601], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:31.856344"], ["updated_at", "2017-04-15 19:14:31.856344"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6350], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.857614"], ["updated_at", "2017-04-15 19:14:31.857614"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:31.860812"], ["id", 5601]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5601], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:31.863508"], ["id", 6350]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6350 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6350]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6350], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:31.869115"], ["updated_at", "2017-04-15 19:14:31.869649"], ["id", 6350]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5601]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12345]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12345]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11134]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5601]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11134]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11135], ["process_id", 5601], ["status", 0], ["dependencies", "[{\"operation_id\":6350,\"status\":2}]"], ["created_at", "2017-04-15 19:14:31.877272"], ["updated_at", "2017-04-15 19:14:31.877272"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6351], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:31.878599"], ["updated_at", "2017-04-15 19:14:31.878599"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:31.881701"], ["id", 6351]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6351 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6351]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6351], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:31.885802"], ["updated_at", "2017-04-15 19:14:31.886308"], ["id", 6351]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5601]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12345]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12345]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11135]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5601]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11135]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11134]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5601], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:31.894067"], ["id", 5601]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5601]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] [RailsWorkflow::OperationExecutionJob] [7b81759d-2314-4835-9b1b-5829665831e5] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 12.8ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [4bc6b2e8-c0bd-45a7-8076-594e6405fd8a] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 31.04ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5601]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:14:31.897109"], ["updated_at", "2017-04-15 19:14:31.897765"], ["id", 6350]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11134]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5601]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11135]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5601], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:31.903535"], ["id", 5601]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5601]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 5], ["created_at", "2017-04-15 19:14:31.856344"], ["updated_at", "2017-04-15 19:14:31.897765"], ["completed_at", "2017-04-15 19:14:31.905538"], ["id", 6350]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'regular_user@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "regular_user@test.com"], ["encrypted_password", "$2a$04$Y72YbafwOLK8ARAdnKjB3eHutmQKahWRQ.q1IUTuUZNATRQXg2O3q"], ["role", "regular_user"], ["created_at", "2017-04-15 19:14:31.923726"], ["updated_at", "2017-04-15 19:14:31.923726"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'admin@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "admin@test.com"], ["encrypted_password", "$2a$04$/1LQ.5tqToX/bJAw0rIxo.qpze5LPW8B7XC08h5uQ/y5hr3Vw1CXG"], ["role", "admin"], ["created_at", "2017-04-15 19:14:31.928755"], ["updated_at", "2017-04-15 19:14:31.928755"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:31.933517"], ["updated_at", "2017-04-15 19:14:31.933517"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "User Operation Template"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:31.935703"], ["id", 12346]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12346]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12346], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12346], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:31.941591"], ["updated_at", "2017-04-15 19:14:31.941591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:31.943849"], ["id", 11136]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12346], ["uuid", nil]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12346], ["uuid", "09b02c3b-dd35-ef89-cbd0-6af27827eeb6"], ["created_at", "2017-04-15 19:14:31.949100"], ["updated_at", "2017-04-15 19:14:31.949100"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "uuid" = $1, "title" = $2, "dependencies" = $3, "operation_class" = $4, "async" = $5, "kind" = $6, "role" = $7, "instruction" = $8, "type" = $9, "partial_name" = $10, "updated_at" = $11 WHERE "rails_workflow_operation_templates"."id" = $12 [["uuid", "3b4b8d99-1dbf-b466-910f-8a639fa1ec4c"], ["title", "Regular User Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "regular_user"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:31.951565"], ["id", 11137]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (1.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "User Operation Template"]] SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12346]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12346) [["id", 12346]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12346], ["created_at", "2017-04-15 19:14:31.962689"], ["updated_at", "2017-04-15 19:14:31.962689"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "User Operation Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:31.964698"], ["id", 5602]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5602], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:14:31.966545"], ["updated_at", "2017-04-15 19:14:31.966545"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5602], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Regular User Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 11137], ["process_id", 5602], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:31.981169"], ["updated_at", "2017-04-15 19:14:31.981169"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6352], ["body", "{}"], ["created_at", "2017-04-15 19:14:31.982833"], ["updated_at", "2017-04-15 19:14:31.982833"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Admin Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 11136], ["process_id", 5602], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:31.986220"], ["updated_at", "2017-04-15 19:14:31.986220"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6353], ["body", "{}"], ["created_at", "2017-04-15 19:14:31.987664"], ["updated_at", "2017-04-15 19:14:31.987664"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:31.990287"], ["id", 5602]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5602], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:14:31.993238"], ["id", 6353]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:14:31.995066"], ["id", 6352]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/workflow/operations" for 127.0.0.1 at 2017-04-15 23:14:31 +0400 Processing by RailsWorkflow::OperationsController#index as HTML RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."status" = 3 ORDER BY "rails_workflow_operations"."created_at" DESC RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5602]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11136]] CACHE (0.0ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5602]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11137]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operations/index.html.slim within layouts/rails_workflow/application (17.5ms) Completed 200 OK in 163ms (Views: 154.6ms | ActiveRecord: 1.2ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Started GET "/workflow/config" for 127.0.0.1 at 2017-04-15 23:14:32 +0400 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/application/_flash.html.slim (2.4ms) RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (13.5ms) Completed 200 OK in 17ms (Views: 15.7ms | ActiveRecord: 0.4ms) Started GET "/workflow/config/new" for 127.0.0.1 at 2017-04-15 23:14:32 +0400 Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/_form.html.slim (18.5ms) Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (23.9ms) Completed 200 OK in 27ms (Views: 26.4ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.234203"], ["updated_at", "2017-04-15 19:14:32.234203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:32.236281"], ["updated_at", "2017-04-15 19:14:32.236281"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5603], ["updated_at", "2017-04-15 19:14:32.237948"], ["id", 9431]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:32.242067"], ["updated_at", "2017-04-15 19:14:32.242067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 19:14:32.243843"], ["updated_at", "2017-04-15 19:14:32.243843"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6354], ["updated_at", "2017-04-15 19:14:32.245316"], ["id", 9432]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "35565196-98b5-c6b7-6f65-70ea4f042ea9"], ["created_at", "2017-04-15 19:14:32.248000"], ["updated_at", "2017-04-15 19:14:32.248000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12347], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "f0f37704-c14c-bd08-8d2b-e80c86c2541b"], ["created_at", "2017-04-15 19:14:32.249854"], ["updated_at", "2017-04-15 19:14:32.249854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11138], ["process_id", 5603], ["status", 0], ["dependencies", "[{\"operation_id\":6354,\"status\":4}]"], ["created_at", "2017-04-15 19:14:32.262965"], ["updated_at", "2017-04-15 19:14:32.262965"]] SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6355], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:32.264881"], ["updated_at", "2017-04-15 19:14:32.264881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.270245"], ["updated_at", "2017-04-15 19:14:32.270245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:32.272292"], ["updated_at", "2017-04-15 19:14:32.272292"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5604], ["updated_at", "2017-04-15 19:14:32.273921"], ["id", 9434]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 19:14:32.277495"], ["updated_at", "2017-04-15 19:14:32.277495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.281658"], ["updated_at", "2017-04-15 19:14:32.281658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:32.283623"], ["updated_at", "2017-04-15 19:14:32.283623"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5605], ["updated_at", "2017-04-15 19:14:32.284941"], ["id", 9436]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:32.288438"], ["updated_at", "2017-04-15 19:14:32.288438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resource\":{\"id\":6356,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5605,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 19:14:32.290679"], ["updated_at", "2017-04-15 19:14:32.290679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.302292"], ["updated_at", "2017-04-15 19:14:32.302292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:32.304105"], ["updated_at", "2017-04-15 19:14:32.304105"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5606], ["updated_at", "2017-04-15 19:14:32.305440"], ["id", 9438]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:32.308413"], ["updated_at", "2017-04-15 19:14:32.308413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":6357,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5606,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 19:14:32.310573"], ["updated_at", "2017-04-15 19:14:32.310573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.314652"], ["updated_at", "2017-04-15 19:14:32.314652"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:32.316821"], ["updated_at", "2017-04-15 19:14:32.316821"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5607], ["updated_at", "2017-04-15 19:14:32.318312"], ["id", 9440]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:32.321365"], ["updated_at", "2017-04-15 19:14:32.321365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 6358], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 19:14:32.324008"], ["updated_at", "2017-04-15 19:14:32.324008"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9441]]  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.329918"], ["updated_at", "2017-04-15 19:14:32.329918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:32.331994"], ["updated_at", "2017-04-15 19:14:32.331994"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5608], ["updated_at", "2017-04-15 19:14:32.333294"], ["id", 9442]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:32.336337"], ["updated_at", "2017-04-15 19:14:32.336337"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 6359], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"resource\":{\"id\":6359,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5608,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 19:14:32.339204"], ["updated_at", "2017-04-15 19:14:32.339204"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9443]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6359]] RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5608]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.345552"], ["updated_at", "2017-04-15 19:14:32.345552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:32.347391"], ["updated_at", "2017-04-15 19:14:32.347391"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5609], ["updated_at", "2017-04-15 19:14:32.348657"], ["id", 9444]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:32.351973"], ["updated_at", "2017-04-15 19:14:32.351973"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":6360,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5609,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 19:14:32.354481"], ["updated_at", "2017-04-15 19:14:32.354481"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.4ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9445]] RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6360]] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5609]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.361769"], ["updated_at", "2017-04-15 19:14:32.361769"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:32.364399"], ["updated_at", "2017-04-15 19:14:32.364399"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5610], ["updated_at", "2017-04-15 19:14:32.365815"], ["id", 9446]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "85405692-eb16-ae6a-9dcf-d4f0846b4ac9"], ["created_at", "2017-04-15 19:14:32.369416"], ["updated_at", "2017-04-15 19:14:32.369416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12348], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "95c1db89-aebe-4ccb-3183-cd2b988045cd"], ["created_at", "2017-04-15 19:14:32.371507"], ["updated_at", "2017-04-15 19:14:32.371507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11139], ["process_id", 5610], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:32.374891"], ["updated_at", "2017-04-15 19:14:32.374891"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6361], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.376568"], ["updated_at", "2017-04-15 19:14:32.376568"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.380848"], ["updated_at", "2017-04-15 19:14:32.380848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:32.382531"], ["updated_at", "2017-04-15 19:14:32.382531"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5611], ["updated_at", "2017-04-15 19:14:32.383910"], ["id", 9448]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4117e14e-6f51-1bde-b975-39f573bdfb08"], ["created_at", "2017-04-15 19:14:32.387048"], ["updated_at", "2017-04-15 19:14:32.387048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12349], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "8e81716f-b6e9-288f-0fca-9f97ef457c68"], ["created_at", "2017-04-15 19:14:32.388990"], ["updated_at", "2017-04-15 19:14:32.388990"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11140], ["process_id", 5611], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:32.393141"], ["updated_at", "2017-04-15 19:14:32.393141"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6362], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.394877"], ["updated_at", "2017-04-15 19:14:32.394877"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.399425"], ["updated_at", "2017-04-15 19:14:32.399425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:32.401424"], ["updated_at", "2017-04-15 19:14:32.401424"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5612], ["updated_at", "2017-04-15 19:14:32.402775"], ["id", 9450]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5f5c757f-e6d8-1254-31c4-9d00ea8349cb"], ["created_at", "2017-04-15 19:14:32.406434"], ["updated_at", "2017-04-15 19:14:32.406434"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12350], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "90bb8e94-083a-93b2-d509-81745330717c"], ["created_at", "2017-04-15 19:14:32.408569"], ["updated_at", "2017-04-15 19:14:32.408569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11141], ["process_id", 5612], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:32.412129"], ["updated_at", "2017-04-15 19:14:32.412129"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6363], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.413693"], ["updated_at", "2017-04-15 19:14:32.413693"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.417790"], ["updated_at", "2017-04-15 19:14:32.417790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:32.419667"], ["updated_at", "2017-04-15 19:14:32.419667"]] SQL (0.5ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5613], ["updated_at", "2017-04-15 19:14:32.420997"], ["id", 9452]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5e3c8d69-56b2-e773-4409-ce5e71f68283"], ["created_at", "2017-04-15 19:14:32.425281"], ["updated_at", "2017-04-15 19:14:32.425281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12351], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "4c87de96-e118-64cf-9ac7-9b1d4dc1bbe6"], ["created_at", "2017-04-15 19:14:32.427359"], ["updated_at", "2017-04-15 19:14:32.427359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11142], ["process_id", 5613], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:32.430790"], ["updated_at", "2017-04-15 19:14:32.430790"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6364], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.432329"], ["updated_at", "2017-04-15 19:14:32.432329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.436121"], ["updated_at", "2017-04-15 19:14:32.436121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:32.437896"], ["updated_at", "2017-04-15 19:14:32.437896"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5614], ["updated_at", "2017-04-15 19:14:32.439235"], ["id", 9454]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "91e6b317-f02c-0403-e19e-eb70001a4cb7"], ["created_at", "2017-04-15 19:14:32.442639"], ["updated_at", "2017-04-15 19:14:32.442639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12352], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "d581acb9-0c7b-1c60-59f8-d61413faf55e"], ["created_at", "2017-04-15 19:14:32.444568"], ["updated_at", "2017-04-15 19:14:32.444568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11143], ["process_id", 5614], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:32.447972"], ["updated_at", "2017-04-15 19:14:32.447972"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6365], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.449509"], ["updated_at", "2017-04-15 19:14:32.449509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.453948"], ["updated_at", "2017-04-15 19:14:32.453948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:32.456018"], ["updated_at", "2017-04-15 19:14:32.456018"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5615], ["updated_at", "2017-04-15 19:14:32.457601"], ["id", 9456]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c000cb07-bb70-32f9-aefc-3c75bf18af28"], ["created_at", "2017-04-15 19:14:32.461060"], ["updated_at", "2017-04-15 19:14:32.461060"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12353], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "3dcca514-1a4f-5770-7956-92745d327396"], ["created_at", "2017-04-15 19:14:32.463223"], ["updated_at", "2017-04-15 19:14:32.463223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11144], ["process_id", 5615], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:32.466935"], ["updated_at", "2017-04-15 19:14:32.466935"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6366], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.468466"], ["updated_at", "2017-04-15 19:14:32.468466"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.472452"], ["updated_at", "2017-04-15 19:14:32.472452"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:32.474352"], ["updated_at", "2017-04-15 19:14:32.474352"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5616], ["updated_at", "2017-04-15 19:14:32.475701"], ["id", 9458]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0f224159-e26d-a61a-443e-1f2b41122aac"], ["created_at", "2017-04-15 19:14:32.479526"], ["updated_at", "2017-04-15 19:14:32.479526"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d387328d-2b5d-365c-56f4-027a6d2a91a6"], ["created_at", "2017-04-15 19:14:32.482067"], ["updated_at", "2017-04-15 19:14:32.482067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12354], ["child_process_id", 12355], ["uuid", "3b0f862c-8bbc-f853-a338-93efdaea6de5"], ["created_at", "2017-04-15 19:14:32.483970"], ["updated_at", "2017-04-15 19:14:32.483970"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3fa27c2f-15e8-d38e-c7ac-c7bc8380d504"], ["created_at", "2017-04-15 19:14:32.487225"], ["updated_at", "2017-04-15 19:14:32.487225"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12356], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "b170806f-01a7-f7c3-49c6-81d722c412c1"], ["created_at", "2017-04-15 19:14:32.489949"], ["updated_at", "2017-04-15 19:14:32.489949"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11146], ["process_id", 5616], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:32.493885"], ["updated_at", "2017-04-15 19:14:32.493885"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6367], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.495611"], ["updated_at", "2017-04-15 19:14:32.495611"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11145], ["process_id", 5616], ["status", 0], ["dependencies", "[{\"operation_id\":6367,\"status\":0}]"], ["created_at", "2017-04-15 19:14:32.499134"], ["updated_at", "2017-04-15 19:14:32.499134"]] SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6368], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.500594"], ["updated_at", "2017-04-15 19:14:32.500594"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12355]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12355) [["id", 12355]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12355], ["created_at", "2017-04-15 19:14:32.507021"], ["updated_at", "2017-04-15 19:14:32.507021"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:32.509067"], ["id", 5617]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5617], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.510953"], ["updated_at", "2017-04-15 19:14:32.510953"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5617], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.516091"], ["updated_at", "2017-04-15 19:14:32.516091"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:32.518434"], ["updated_at", "2017-04-15 19:14:32.518434"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5618], ["updated_at", "2017-04-15 19:14:32.520116"], ["id", 9462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "eb6ac308-e769-8999-c73e-9151ce91f177"], ["created_at", "2017-04-15 19:14:32.523929"], ["updated_at", "2017-04-15 19:14:32.523929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12357], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "7f3e06ee-f593-9fa5-e30f-7ffa1c33afcc"], ["created_at", "2017-04-15 19:14:32.525942"], ["updated_at", "2017-04-15 19:14:32.525942"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11147], ["process_id", 5618], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:32.529900"], ["updated_at", "2017-04-15 19:14:32.529900"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6369], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.531655"], ["updated_at", "2017-04-15 19:14:32.531655"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.536073"], ["updated_at", "2017-04-15 19:14:32.536073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:32.537814"], ["updated_at", "2017-04-15 19:14:32.537814"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5619], ["updated_at", "2017-04-15 19:14:32.539219"], ["id", 9464]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 19:14:32.542274"], ["updated_at", "2017-04-15 19:14:32.542274"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0926d265-6a80-2ebd-7c46-98c1a1d47df1"], ["created_at", "2017-04-15 19:14:32.544768"], ["updated_at", "2017-04-15 19:14:32.544768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12358], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "47d3e4c8-6858-748f-82af-d8661ad96567"], ["created_at", "2017-04-15 19:14:32.546671"], ["updated_at", "2017-04-15 19:14:32.546671"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6370], ["parent_type", "RailsWorkflow::Operation"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11148], ["process_id", 5619], ["status", 0], ["dependencies", "[{\"operation_id\":6370,\"status\":4}]"], ["created_at", "2017-04-15 19:14:32.551922"], ["updated_at", "2017-04-15 19:14:32.551922"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6371], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.553848"], ["updated_at", "2017-04-15 19:14:32.553848"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.558182"], ["updated_at", "2017-04-15 19:14:32.558182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:32.559995"], ["updated_at", "2017-04-15 19:14:32.559995"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5620], ["updated_at", "2017-04-15 19:14:32.561317"], ["id", 9466]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "bea9a31e-1dab-d7ec-c081-91fc49e175c0"], ["created_at", "2017-04-15 19:14:32.564777"], ["updated_at", "2017-04-15 19:14:32.564777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12359], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "f9d07f2b-1227-e237-0c38-9fe3c1c88c12"], ["created_at", "2017-04-15 19:14:32.566662"], ["updated_at", "2017-04-15 19:14:32.566662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11149], ["process_id", 5620], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:32.570220"], ["updated_at", "2017-04-15 19:14:32.570220"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6372], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.571854"], ["updated_at", "2017-04-15 19:14:32.571854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:32.575673"], ["updated_at", "2017-04-15 19:14:32.575673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$7w3Rg0lHfaZaxCZlBxZKCO5ZW7XW7kkHdk7ZNBtf7x5hepuWXYbL2"], ["created_at", "2017-04-15 19:14:32.580492"], ["updated_at", "2017-04-15 19:14:32.580492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1649], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1649], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:32.582602"], ["updated_at", "2017-04-15 19:14:32.584577"], ["id", 6373]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:32.587929"], ["updated_at", "2017-04-15 19:14:32.587929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$E.zV0SP5b6KSe8abctEL7O.P19ko/J71Qs6fKKltnN3Do/9/UbkRm"], ["created_at", "2017-04-15 19:14:32.592239"], ["updated_at", "2017-04-15 19:14:32.592239"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1650], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1650], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:32.593723"], ["updated_at", "2017-04-15 19:14:32.594976"], ["id", 6374]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:32.596876"], ["updated_at", "2017-04-15 19:14:32.596876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1650], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1650], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:32.598236"], ["updated_at", "2017-04-15 19:14:32.599542"], ["id", 6375]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6374]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:32.603270"], ["updated_at", "2017-04-15 19:14:32.603270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$.ok73/HGPp2GWCkoyv/0POIVeWWE3dyglywcPOBF8CGKa2RF15JJe"], ["created_at", "2017-04-15 19:14:32.607450"], ["updated_at", "2017-04-15 19:14:32.607450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1651], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1651], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:32.608895"], ["updated_at", "2017-04-15 19:14:32.610151"], ["id", 6376]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "updated_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["assignment_id", nil], ["assignment_type", nil], ["is_active", "f"], ["updated_at", "2017-04-15 19:14:32.611978"], ["id", 6376]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:32.615754"], ["updated_at", "2017-04-15 19:14:32.615754"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$810d9F1pCh4k0/IhvUpZzOG4ke9J9kysvQoV341zj.MRPo076OhL."], ["created_at", "2017-04-15 19:14:32.620968"], ["updated_at", "2017-04-15 19:14:32.620968"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1652], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1652], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:32.622771"], ["updated_at", "2017-04-15 19:14:32.624382"], ["id", 6377]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$aIrjX6IS.0./x7apaRyWo.opEzCIcUxsrXJSIGYVzkCK8AeQZ8Ug6"], ["created_at", "2017-04-15 19:14:32.629288"], ["updated_at", "2017-04-15 19:14:32.629288"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6377]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1652]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:32.635410"], ["updated_at", "2017-04-15 19:14:32.635410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$pai1rmpTk1pkqN1Fxkyk/OMoZhYMtTl8bTmEUo1TV6znm97aqkzGq"], ["created_at", "2017-04-15 19:14:32.639712"], ["updated_at", "2017-04-15 19:14:32.639712"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1654], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1654], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:32.641332"], ["updated_at", "2017-04-15 19:14:32.642904"], ["id", 6378]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$iqlXltz.i.jCFyCcuQKWcu.w3/56xXQyvCEArSG0WTOdChPKDPQOC"], ["created_at", "2017-04-15 19:14:32.648466"], ["updated_at", "2017-04-15 19:14:32.648466"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:32.652491"], ["updated_at", "2017-04-15 19:14:32.652491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$bM2YHi0Yj4FbTx5l463Rku6jCZ6cBwccCyQbcZYhz0JJuxjlGbyi2"], ["created_at", "2017-04-15 19:14:32.656987"], ["updated_at", "2017-04-15 19:14:32.656987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1656], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1656], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:32.658740"], ["updated_at", "2017-04-15 19:14:32.660011"], ["id", 6379]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$4DhH7X1i4kg.JJVmhacNju400h4HBe3Dk4uYAXIfNAX/Xrnfxr23C"], ["created_at", "2017-04-15 19:14:32.665283"], ["updated_at", "2017-04-15 19:14:32.665283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "cebe9c57-ba06-ccb1-4f3a-882062655782"], ["created_at", "2017-04-15 19:14:32.668814"], ["updated_at", "2017-04-15 19:14:32.668814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "role", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12360], ["role", "admin"], ["uuid", "1d3f84d7-3928-1af3-1be4-049cbf8816ed"], ["created_at", "2017-04-15 19:14:32.670903"], ["updated_at", "2017-04-15 19:14:32.670903"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "00f7c0f2-a046-ac2b-6678-3a9a49a337fe"], ["created_at", "2017-04-15 19:14:32.673800"], ["updated_at", "2017-04-15 19:14:32.673800"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "group", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12361], ["group", "some_group"], ["uuid", "e65c2771-0e63-b2f9-c1b5-46d36f0c82f5"], ["created_at", "2017-04-15 19:14:32.675806"], ["updated_at", "2017-04-15 19:14:32.675806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 11151], ["created_at", "2017-04-15 19:14:32.679183"], ["updated_at", "2017-04-15 19:14:32.679183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 11150], ["created_at", "2017-04-15 19:14:32.681686"], ["updated_at", "2017-04-15 19:14:32.681686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$/xwDl4tyGF59v6XSRfYFW.q1VhE18VWpJVVSEOQvvfFGnlmMZwffe"], ["role", "admin"], ["created_at", "2017-04-15 19:14:32.686498"], ["updated_at", "2017-04-15 19:14:32.686498"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.6ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'admin')  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'fake@email.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "fake@email.com"], ["encrypted_password", "$2a$04$PR4bL946x0AylMU86k5y/.nfUrfdHEkFa3XJ14pOA5K0N09vjDFrK"], ["role", "fake"], ["created_at", "2017-04-15 19:14:32.693201"], ["updated_at", "2017-04-15 19:14:32.693201"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'fake') SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1658], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1658], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:32.696819"], ["updated_at", "2017-04-15 19:14:32.698284"], ["id", 6381]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."assignment_id" IS NULL  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:32.703545"], ["updated_at", "2017-04-15 19:14:32.703545"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:32.705602"], ["updated_at", "2017-04-15 19:14:32.705602"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6382], ["updated_at", "2017-04-15 19:14:32.706988"], ["id", 9468]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:14:32.709643"], ["id", 6382]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:32.714778"], ["updated_at", "2017-04-15 19:14:32.714778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:32.717423"], ["updated_at", "2017-04-15 19:14:32.717423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:32.719220"], ["updated_at", "2017-04-15 19:14:32.719220"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5621], ["updated_at", "2017-04-15 19:14:32.720713"], ["id", 9469]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "child_process_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["child_process_id", 5621], ["updated_at", "2017-04-15 19:14:32.723045"], ["id", 6383]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:32.725460"], ["id", 6383]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6383 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6383]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5621]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:32.730168"], ["id", 5621]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5621], ["status", 0]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6383], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064] SQL (0.6ms) INSERT INTO "rails_workflow_errors" ("parent_id", "parent_type", "message", "stack_trace", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["parent_id", 6383], ["parent_type", "RailsWorkflow::Operation"], ["message", "undefined method `save' for nil:NilClass"], ["stack_trace", "/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:60:in `execute_in_transaction'
\n/home/maxim/rails_workflow/app/jobs/rails_workflow/operation_execution_job.rb:12:in `perform'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:32:in `block in perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/i18n-0.7.0/lib/i18n.rb:257:in `with_locale'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/translation.rb:7:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:23:in `block (4 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `block in instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:22:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `block in tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:26:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:19:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_perform_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:31:in `perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:16:in `perform_now'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:28:in `starting'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:18:in `start'
\n/home/maxim/rails_workflow/spec/models/rails_workflow/operation_spec.rb:179:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `block in with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `block in with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:618:in `block in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-rails-3.4.2/lib/rspec/rails/adapters.rb:127:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:389:in `execute_with'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:620:in `block (2 levels) in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:621:in `run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:233:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:581:in `block in run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:543:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (3 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (2 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/configuration.rb:1680:in `with_suite_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:118:in `block in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/reporter.rb:77:in `report'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:117:in `run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:93:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:78:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:45:in `invoke'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/exe/rspec:4:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `kernel_load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:335:in `exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:20:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:11:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:32:in `block in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:24:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `
'"], ["created_at", "2017-04-15 19:14:32.741027"], ["updated_at", "2017-04-15 19:14:32.741027"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 144], ["parent_type", "RailsWorkflow::Error"], ["body", "{\"parent\":{\"id\":6383,\"class\":\"RailsWorkflow::Operation\"},\"target\":{\"id\":6383,\"class\":\"RailsWorkflow::Operation\"},\"method\":\"execute_in_transaction\"}"], ["created_at", "2017-04-15 19:14:32.747129"], ["updated_at", "2017-04-15 19:14:32.747129"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 144], ["parent_type", "RailsWorkflow::Error"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6383]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6383]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6383]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 4], ["updated_at", "2017-04-15 19:14:32.754576"], ["id", 6383]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [b9538756-6646-4d5e-9036-fcc8670ff064] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 29.27ms RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5621]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 2], ["completed_at", "2017-04-15 19:14:32.759522"], ["created_at", "2017-04-15 19:14:32.760199"], ["updated_at", "2017-04-15 19:14:32.760199"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 6], ["completed_at", "2017-04-15 19:14:32.764797"], ["created_at", "2017-04-15 19:14:32.765353"], ["updated_at", "2017-04-15 19:14:32.765353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 5], ["completed_at", "2017-04-15 19:14:32.769579"], ["created_at", "2017-04-15 19:14:32.770120"], ["updated_at", "2017-04-15 19:14:32.770120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "99264d80-d0db-fd81-09cc-50789dee72a0"], ["created_at", "2017-04-15 19:14:32.776147"], ["updated_at", "2017-04-15 19:14:32.776147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 12362], ["uuid", "49098bc0-c6c1-6477-25e0-6e731790287c"], ["created_at", "2017-04-15 19:14:32.778477"], ["updated_at", "2017-04-15 19:14:32.778477"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::TestProcess"], ["uuid", "7ebaa7e3-67da-3538-ce1d-296afcb7d9f8"], ["created_at", "2017-04-15 19:14:32.783975"], ["updated_at", "2017-04-15 19:14:32.783975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("type", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "RailsWorkflow::TestProcess"], ["template_id", 12363], ["created_at", "2017-04-15 19:14:32.791489"], ["updated_at", "2017-04-15 19:14:32.791489"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:32.793900"], ["id", 5622]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5622], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:14:32.796113"], ["updated_at", "2017-04-15 19:14:32.796113"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5622], ["parent_type", "RailsWorkflow::Process"]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12363]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (7.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::Process"], ["uuid", "8130f9d8-13c8-669e-db46-c8580c7aaa6d"], ["created_at", "2017-04-15 19:14:32.810110"], ["updated_at", "2017-04-15 19:14:32.810110"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12364], ["uuid", "bf64729f-1470-5e45-f6ba-084c66e4f748"], ["created_at", "2017-04-15 19:14:32.812508"], ["updated_at", "2017-04-15 19:14:32.812508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12364], ["dependencies", "[{\"id\":11153,\"statuses\":[2]}]"], ["uuid", "88885762-b206-77ed-b8e5-06686bdfea32"], ["created_at", "2017-04-15 19:14:32.814834"], ["updated_at", "2017-04-15 19:14:32.814834"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12364]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12364) [["id", 12364]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "24720f0a-51df-73b9-10c9-af5731a1722e"], ["created_at", "2017-04-15 19:14:32.823207"], ["updated_at", "2017-04-15 19:14:32.823207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "952f0716-250c-9db7-2900-4a867e415bfa"], ["created_at", "2017-04-15 19:14:32.825286"], ["updated_at", "2017-04-15 19:14:32.825286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2741561b-bf81-24d9-f7a6-e4d08dedda26"], ["created_at", "2017-04-15 19:14:32.827060"], ["updated_at", "2017-04-15 19:14:32.827060"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12366], ["child_process_id", 12367], ["uuid", "15462b51-6e47-0028-a982-e14e9627f7e9"], ["created_at", "2017-04-15 19:14:32.828859"], ["updated_at", "2017-04-15 19:14:32.828859"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12365]] SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 12365], ["updated_at", "2017-04-15 19:14:32.831815"], ["id", 11155]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12365]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12367]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "200f8a0a-61d5-1f04-71ce-4bcbb02f678c"], ["created_at", "2017-04-15 19:14:32.839926"], ["updated_at", "2017-04-15 19:14:32.839926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0286c601-78c7-3385-a530-378cf49ba1cc"], ["created_at", "2017-04-15 19:14:32.841820"], ["updated_at", "2017-04-15 19:14:32.841820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12369], ["uuid", "9c629e91-5b26-9589-12eb-4b76a8314467"], ["created_at", "2017-04-15 19:14:32.843521"], ["updated_at", "2017-04-15 19:14:32.843521"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12368]] SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 12368], ["updated_at", "2017-04-15 19:14:32.846650"], ["id", 11156]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12368]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:32.853585"], ["updated_at", "2017-04-15 19:14:32.853585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:32.855256"], ["id", 12370]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12370]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12370], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12370], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:32.859431"], ["updated_at", "2017-04-15 19:14:32.859431"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:32.861781"], ["id", 11157]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12370], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12370], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:32.865469"], ["updated_at", "2017-04-15 19:14:32.865469"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:32.867864"], ["id", 11158]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12370], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12370], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:32.872199"], ["updated_at", "2017-04-15 19:14:32.872199"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:32.874329"], ["id", 11159]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11157}]"], ["updated_at", "2017-04-15 19:14:32.878446"], ["id", 11158]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11158}]"], ["updated_at", "2017-04-15 19:14:32.881375"], ["id", 11159]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:32.887013"], ["updated_at", "2017-04-15 19:14:32.887013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:32.888854"], ["id", 12371]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12371]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12371], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12371], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:32.892918"], ["updated_at", "2017-04-15 19:14:32.892918"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:32.895020"], ["id", 11160]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12371], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12371], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:32.898390"], ["updated_at", "2017-04-15 19:14:32.898390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:32.900995"], ["id", 11161]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12371], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12371], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:32.904752"], ["updated_at", "2017-04-15 19:14:32.904752"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:32.907095"], ["id", 11162]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11160}]"], ["updated_at", "2017-04-15 19:14:32.910325"], ["id", 11161]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11161}]"], ["updated_at", "2017-04-15 19:14:32.912930"], ["id", 11162]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Some new name"], ["updated_at", "2017-04-15 19:14:32.915681"], ["id", 12371]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Test Process"], ["updated_at", "2017-04-15 19:14:32.918915"], ["id", 12371]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12371]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12371], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12371], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:14:32.925360"], ["id", 11161]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12371], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:14:32.928534"], ["id", 11162]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11160}]"], ["updated_at", "2017-04-15 19:14:32.931656"], ["id", 11161]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11161}]"], ["updated_at", "2017-04-15 19:14:32.933959"], ["id", 11162]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:32.938499"], ["updated_at", "2017-04-15 19:14:32.938499"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:32.940559"], ["id", 12372]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12372]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12372], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12372], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:32.944434"], ["updated_at", "2017-04-15 19:14:32.944434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:32.947755"], ["id", 11163]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12372], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12372], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:32.951448"], ["updated_at", "2017-04-15 19:14:32.951448"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:32.953562"], ["id", 11164]]  (0.8ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12372], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12372], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:32.958094"], ["updated_at", "2017-04-15 19:14:32.958094"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:32.960375"], ["id", 11165]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11163}]"], ["updated_at", "2017-04-15 19:14:32.963966"], ["id", 11164]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11164}]"], ["updated_at", "2017-04-15 19:14:32.967365"], ["id", 11165]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 12372]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:32.973674"], ["updated_at", "2017-04-15 19:14:32.973674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:32.975476"], ["id", 12373]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12373]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12373], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12373], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:32.979543"], ["updated_at", "2017-04-15 19:14:32.979543"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:32.981687"], ["id", 11166]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12373], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12373], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:32.985002"], ["updated_at", "2017-04-15 19:14:32.985002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:32.987046"], ["id", 11167]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12373], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12373], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:32.990438"], ["updated_at", "2017-04-15 19:14:32.990438"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:32.992580"], ["id", 11168]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11166}]"], ["updated_at", "2017-04-15 19:14:32.996974"], ["id", 11167]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11167}]"], ["updated_at", "2017-04-15 19:14:32.999422"], ["id", 11168]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12373]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Some new operation name"], ["updated_at", "2017-04-15 19:14:33.003149"], ["id", 11166]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12373]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12373], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Default Operation 2"], ["updated_at", "2017-04-15 19:14:33.008897"], ["id", 11166]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12373], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:14:33.012032"], ["id", 11167]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12373], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:14:33.015838"], ["id", 11168]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11166}]"], ["updated_at", "2017-04-15 19:14:33.019740"], ["id", 11167]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11167}]"], ["updated_at", "2017-04-15 19:14:33.022242"], ["id", 11168]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11166]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:33.027295"], ["updated_at", "2017-04-15 19:14:33.027295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:33.028966"], ["id", 12374]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12374]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12374], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12374], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:33.032898"], ["updated_at", "2017-04-15 19:14:33.032898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:33.034815"], ["id", 11169]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12374], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12374], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:33.038106"], ["updated_at", "2017-04-15 19:14:33.038106"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:33.040328"], ["id", 11170]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12374], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12374], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:33.043895"], ["updated_at", "2017-04-15 19:14:33.043895"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:33.046038"], ["id", 11171]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11169}]"], ["updated_at", "2017-04-15 19:14:33.049403"], ["id", 11170]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11170}]"], ["updated_at", "2017-04-15 19:14:33.051990"], ["id", 11171]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Some new operation"], ["process_template_id", 12374], ["uuid", "3665b8a1-78b5-bcdc-c225-0adf7749a34e"], ["created_at", "2017-04-15 19:14:33.055808"], ["updated_at", "2017-04-15 19:14:33.055808"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 12374]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12374]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12374], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12374], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:14:33.064990"], ["id", 11170]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12374], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:14:33.068242"], ["id", 11171]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = 11172  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11169}]"], ["updated_at", "2017-04-15 19:14:33.071896"], ["id", 11170]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11170}]"], ["updated_at", "2017-04-15 19:14:33.074240"], ["id", 11171]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 12374]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:33.079786"], ["updated_at", "2017-04-15 19:14:33.079786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:33.081447"], ["id", 12375]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12375]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12375], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12375], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:33.086030"], ["updated_at", "2017-04-15 19:14:33.086030"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:33.088214"], ["id", 11173]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12375], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12375], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:33.091388"], ["updated_at", "2017-04-15 19:14:33.091388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:33.093397"], ["id", 11174]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12375], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12375], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:33.096830"], ["updated_at", "2017-04-15 19:14:33.096830"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:33.099307"], ["id", 11175]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11173}]"], ["updated_at", "2017-04-15 19:14:33.102715"], ["id", 11174]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11174}]"], ["updated_at", "2017-04-15 19:14:33.105044"], ["id", 11175]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11173]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:14:33.110320"], ["updated_at", "2017-04-15 19:14:33.110320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 19:14:33.112609"], ["updated_at", "2017-04-15 19:14:33.112609"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:14:33.114728"], ["id", 12377]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12377]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12377], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12377], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 19:14:33.119125"], ["updated_at", "2017-04-15 19:14:33.119125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:33.120964"], ["id", 11176]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:14:33.123233"], ["id", 12376]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12376]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12376], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12376], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:14:33.126371"], ["updated_at", "2017-04-15 19:14:33.126371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:33.128143"], ["id", 11177]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12376], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12376], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:14:33.130866"], ["updated_at", "2017-04-15 19:14:33.130866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 12377], ["updated_at", "2017-04-15 19:14:33.133448"], ["id", 11178]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":11177}]"], ["updated_at", "2017-04-15 19:14:33.136522"], ["id", 11178]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:14:33.140940"], ["updated_at", "2017-04-15 19:14:33.140940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 19:14:33.143653"], ["updated_at", "2017-04-15 19:14:33.143653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:14:33.145359"], ["id", 12379]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12379]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12379], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12379], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 19:14:33.149900"], ["updated_at", "2017-04-15 19:14:33.149900"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:33.152070"], ["id", 11179]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:14:33.154595"], ["id", 12378]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12378]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12378], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12378], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:14:33.158096"], ["updated_at", "2017-04-15 19:14:33.158096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:33.160063"], ["id", 11180]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12378], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12378], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:14:33.162997"], ["updated_at", "2017-04-15 19:14:33.162997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 12379], ["updated_at", "2017-04-15 19:14:33.165717"], ["id", 11181]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":11180}]"], ["updated_at", "2017-04-15 19:14:33.169042"], ["id", 11181]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Parent Process"]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12378]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12379]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:14:33.176941"], ["updated_at", "2017-04-15 19:14:33.176941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:14:33.179024"], ["id", 12380]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12380]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12380], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12380], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:14:33.183593"], ["updated_at", "2017-04-15 19:14:33.183593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:33.185766"], ["id", 11182]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12380], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12380], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:14:33.188994"], ["updated_at", "2017-04-15 19:14:33.188994"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5218039b-ffbe-9a5d-2c17-038a3c36bb29"], ["created_at", "2017-04-15 19:14:51.051419"], ["updated_at", "2017-04-15 19:14:51.051419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12381], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "1e109691-3507-0f21-ff96-814fcaa9f864"], ["created_at", "2017-04-15 19:14:51.067717"], ["updated_at", "2017-04-15 19:14:51.067717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#index as HTML Parameters: {"process_template_id"=>"12381"} RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12381]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 24ms (Views: 7.9ms | ActiveRecord: 0.4ms) RailsWorkflow::OperationTemplate Load (0.5ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12381]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "9290ded9-763d-f268-d972-3519a81b0410"], ["created_at", "2017-04-15 19:14:51.103543"], ["updated_at", "2017-04-15 19:14:51.103543"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12382], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "321f09ad-eab5-420d-244d-dcc885e67cfa"], ["created_at", "2017-04-15 19:14:51.105806"], ["updated_at", "2017-04-15 19:14:51.105806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#show as HTML Parameters: {"process_template_id"=>"12382", "id"=>"11185"} RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11185]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12382]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f66ae789-b3a5-e8e3-2280-a1916d20dbb2"], ["created_at", "2017-04-15 19:14:51.125177"], ["updated_at", "2017-04-15 19:14:51.125177"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f6490aab-3aea-5a0e-a8f2-236b7e7e5c7a"], ["created_at", "2017-04-15 19:14:51.127585"], ["updated_at", "2017-04-15 19:14:51.127585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#new as HTML Parameters: {"process_template_id"=>"12384"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12384]] Unpermitted parameter: process_template_id Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 7ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "163ea2a2-4011-bfc8-55e7-8d7b489122f6"], ["created_at", "2017-04-15 19:14:51.144077"], ["updated_at", "2017-04-15 19:14:51.144077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12385], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "984a9e73-79bc-018c-cfac-4780ab839025"], ["created_at", "2017-04-15 19:14:51.146244"], ["updated_at", "2017-04-15 19:14:51.146244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#edit as HTML Parameters: {"process_template_id"=>"12385", "id"=>"11186"} RailsWorkflow::OperationTemplate Load (0.5ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11186]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12385]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operation_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "647eb72e-ce12-7b76-534a-743a38d7beab"], ["created_at", "2017-04-15 19:14:51.166805"], ["updated_at", "2017-04-15 19:14:51.166805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12386", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12386"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12386]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 12386], ["uuid", "f9ccaeb8-f23d-2978-25a8-181ca58568a8"], ["created_at", "2017-04-15 19:14:51.178463"], ["updated_at", "2017-04-15 19:14:51.178463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12386/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 12386]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3bc609d8-1d60-4fbc-f231-60dc20bca9b2"], ["created_at", "2017-04-15 19:14:51.188128"], ["updated_at", "2017-04-15 19:14:51.188128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate') Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12387", "type"=>"RailsWorkflow::CustomOperationTemplate"}, "process_template_id"=>"12387"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12387]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 12387], ["uuid", "f483d36c-1d43-5231-ccfe-19844d1ac6b5"], ["created_at", "2017-04-15 19:14:51.210108"], ["updated_at", "2017-04-15 19:14:51.210108"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12387/operation_templates Completed 302 Found in 19ms (ActiveRecord: 1.0ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4c7e4b72-38a1-03cb-aa18-93f640b3bea7"], ["created_at", "2017-04-15 19:14:51.218259"], ["updated_at", "2017-04-15 19:14:51.218259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12388", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12388"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12388]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 12388], ["uuid", "5b7b0b67-acdc-c212-b031-853209838fa9"], ["created_at", "2017-04-15 19:14:51.227955"], ["updated_at", "2017-04-15 19:14:51.227955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12388/operation_templates Completed 302 Found in 9ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f0f654a7-3f7a-14ae-54eb-c151906776ed"], ["created_at", "2017-04-15 19:14:51.235674"], ["updated_at", "2017-04-15 19:14:51.235674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#create as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12389", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12389"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12389]] Unpermitted parameter: process_template_id Unpermitted parameter: process_template_id  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::OperationTemplate"], ["title", "First Test project"], ["process_template_id", 12389], ["uuid", "9ff33317-5d60-6118-9cc4-d904f9532151"], ["created_at", "2017-04-15 19:14:51.244439"], ["updated_at", "2017-04-15 19:14:51.244439"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12389/operation_templates Completed 302 Found in 8ms (ActiveRecord: 0.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ae3f33cf-488b-fe04-46ac-7354c4e82961"], ["created_at", "2017-04-15 19:14:51.255605"], ["updated_at", "2017-04-15 19:14:51.255605"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "3ae05a88-0614-4443-59fa-8e39630e359d"], ["created_at", "2017-04-15 19:14:51.260555"], ["updated_at", "2017-04-15 19:14:51.260555"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8385db51-29c0-61f7-e473-59b71896fefe"], ["created_at", "2017-04-15 19:14:51.265280"], ["updated_at", "2017-04-15 19:14:51.265280"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12392], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "8a816417-f95a-2ebf-ca78-a1fa34f3cb8f"], ["created_at", "2017-04-15 19:14:51.267895"], ["updated_at", "2017-04-15 19:14:51.267895"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "08599786-30c3-a05d-430a-e5030e9da00a"], ["created_at", "2017-04-15 19:14:51.273172"], ["updated_at", "2017-04-15 19:14:51.273172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12393], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "75847989-3306-7ee8-b362-8ef7587b989c"], ["created_at", "2017-04-15 19:14:51.275355"], ["updated_at", "2017-04-15 19:14:51.275355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12393", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12393", "id"=>"11192"} RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11192]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12393]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.3ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12393/operation_templates Completed 302 Found in 9ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "412cd7b2-7934-6d01-a00f-bbcc87bf79b3"], ["created_at", "2017-04-15 19:14:51.292834"], ["updated_at", "2017-04-15 19:14:51.292834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12394], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "ba0755cf-9ca1-5c50-c735-84142f1d9863"], ["created_at", "2017-04-15 19:14:51.295079"], ["updated_at", "2017-04-15 19:14:51.295079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#update as HTML Parameters: {"operation_template"=>{"title"=>"First Test project", "process_template_id"=>"12394", "type"=>"RailsWorkflow::OperationTemplate"}, "process_template_id"=>"12394", "id"=>"11193"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11193]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12394]] Unpermitted parameter: process_template_id Unpermitted parameters: process_template_id, id  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12394/operation_templates Completed 302 Found in 8ms (ActiveRecord: 1.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e0296f72-34a0-4a01-26dc-e42568a081ba"], ["created_at", "2017-04-15 19:14:51.313910"], ["updated_at", "2017-04-15 19:14:51.313910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12395], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "e1638754-92c8-af3d-e346-0302193410ec"], ["created_at", "2017-04-15 19:14:51.316118"], ["updated_at", "2017-04-15 19:14:51.316118"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "a0ec16e4-2eb7-0097-af31-5b9a172c0ee1"], ["created_at", "2017-04-15 19:14:51.321192"], ["updated_at", "2017-04-15 19:14:51.321192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12396], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "02ab4a32-cca6-f1eb-2fed-f51e4dbad283"], ["created_at", "2017-04-15 19:14:51.323466"], ["updated_at", "2017-04-15 19:14:51.323466"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "ede1cc8a-6d8d-77f8-6694-f05db09a0cc8"], ["created_at", "2017-04-15 19:14:51.327986"], ["updated_at", "2017-04-15 19:14:51.327986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12397], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "515fbef7-9270-6c49-0f55-45a8a874729a"], ["created_at", "2017-04-15 19:14:51.330052"], ["updated_at", "2017-04-15 19:14:51.330052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12397]] Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"12397", "id"=>"11196"} RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11196]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12397]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 11196]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12397/operation_templates Completed 302 Found in 7ms (ActiveRecord: 1.2ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c724a403-9ebf-df63-baa5-8c32cb144f3c"], ["created_at", "2017-04-15 19:14:51.348557"], ["updated_at", "2017-04-15 19:14:51.348557"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "type", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "First Test project"], ["process_template_id", 12398], ["type", "RailsWorkflow::OperationTemplate"], ["uuid", "239d8e60-ce04-91af-95f4-b9d81e347e69"], ["created_at", "2017-04-15 19:14:51.351511"], ["updated_at", "2017-04-15 19:14:51.351511"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::OperationTemplatesController#destroy as HTML Parameters: {"process_template_id"=>"12398", "id"=>"11197"} RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11197]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12398]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 [["id", 11197]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12398/operation_templates Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_operations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "99fc24b0-064c-dc2d-3a6e-2c2a96e4511f"], ["created_at", "2017-04-15 19:14:51.394058"], ["updated_at", "2017-04-15 19:14:51.394058"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "29cafe12-4607-1d98-be4d-faa615a4efe7"], ["created_at", "2017-04-15 19:14:51.408016"], ["updated_at", "2017-04-15 19:14:51.408016"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#show as HTML Parameters: {"id"=>"12400"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12400]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "d322854d-5e2a-315c-099a-6c093f853330"], ["created_at", "2017-04-15 19:14:51.433307"], ["updated_at", "2017-04-15 19:14:51.433307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#edit as HTML Parameters: {"id"=>"12401"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12401]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "42b6ea9a-f392-3716-c6f8-aba1739c53f4"], ["created_at", "2017-04-15 19:14:51.455867"], ["updated_at", "2017-04-15 19:14:51.455867"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12402/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.2ms) ROLLBACK  (0.2ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "70d0941a-9973-241c-e2ff-829f46dc60f4"], ["created_at", "2017-04-15 19:14:51.467225"], ["updated_at", "2017-04-15 19:14:51.467225"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12403/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by RailsWorkflow::ProcessTemplatesController#create as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "bbd128fb-1b7d-5a29-b706-81e8ea578bb6"], ["created_at", "2017-04-15 19:14:51.493639"], ["updated_at", "2017-04-15 19:14:51.493639"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12404/operation_templates Completed 302 Found in 5ms (ActiveRecord: 0.6ms) RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "43d29e20-295d-94aa-86e0-698542d21190"], ["created_at", "2017-04-15 19:14:51.508755"], ["updated_at", "2017-04-15 19:14:51.508755"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "e785ac40-b6a3-04f8-9d33-3252aeed83c4"], ["created_at", "2017-04-15 19:14:51.513240"], ["updated_at", "2017-04-15 19:14:51.513240"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"12406"} RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12406]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12406 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "e47965f1-c7e3-3ee9-a16b-7c1a06525045"], ["created_at", "2017-04-15 19:14:51.526335"], ["updated_at", "2017-04-15 19:14:51.526335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#update as HTML Parameters: {"process_template"=>{"title"=>"First Test project"}, "id"=>"12407"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12407]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config/12407 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "514cecc3-805d-8538-5f35-f5dda647f9cb"], ["created_at", "2017-04-15 19:14:51.542495"], ["updated_at", "2017-04-15 19:14:51.542495"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "f87018bf-30f9-0c86-72c6-9b7297cb8569"], ["created_at", "2017-04-15 19:14:51.545940"], ["updated_at", "2017-04-15 19:14:51.545940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "19bfef0d-c7ab-bfee-6075-2aba0e195380"], ["created_at", "2017-04-15 19:14:51.549579"], ["updated_at", "2017-04-15 19:14:51.549579"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_process_templates" Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"12410"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12410]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 12410]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_process_templates"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["uuid", "eb2afb9e-2e69-6681-bed6-9841ac1e5151"], ["created_at", "2017-04-15 19:14:51.563175"], ["updated_at", "2017-04-15 19:14:51.563175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessTemplatesController#destroy as HTML Parameters: {"id"=>"12411"} RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12411]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 [["id", 12411]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/config Completed 302 Found in 6ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1ad92a1f-4c87-eaa4-7cd4-f56c02c6315d"], ["created_at", "2017-04-15 19:14:51.578827"], ["updated_at", "2017-04-15 19:14:51.578827"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12412], ["created_at", "2017-04-15 19:14:51.586919"], ["updated_at", "2017-04-15 19:14:51.586919"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#index as HTML  (0.4ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.5ms)  select status, cnt from ( select row_number() over (partition by status), count(*) over (partition by status) cnt, status from rails_workflow_processes)t where row_number = 1  Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/index.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 11ms (Views: 4.3ms | ActiveRecord: 0.9ms) RailsWorkflow::Process Load (0.6ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" ASC LIMIT 30 OFFSET 0  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "87436851-3751-d56f-05ae-137f30224a2b"], ["created_at", "2017-04-15 19:14:51.608147"], ["updated_at", "2017-04-15 19:14:51.608147"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12413], ["created_at", "2017-04-15 19:14:51.610440"], ["updated_at", "2017-04-15 19:14:51.610440"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#show as HTML Parameters: {"id"=>"5624"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5624]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/show.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "027a2fae-5470-b594-0d1e-8a20c77b6550"], ["created_at", "2017-04-15 19:14:51.627681"], ["updated_at", "2017-04-15 19:14:51.627681"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/new.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "440675bc-59a0-0559-1e59-4015c5b5b5d5"], ["created_at", "2017-04-15 19:14:51.637602"], ["updated_at", "2017-04-15 19:14:51.637602"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12415], ["created_at", "2017-04-15 19:14:51.639738"], ["updated_at", "2017-04-15 19:14:51.639738"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#edit as HTML Parameters: {"id"=>"5625"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5625]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/processes/edit.html.slim within layouts/rails_workflow/application (0.2ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "0a3993d5-88b3-8e9e-d3d9-f08f85b89864"], ["created_at", "2017-04-15 19:14:51.655983"], ["updated_at", "2017-04-15 19:14:51.655983"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_processes" Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12416"}} SQL (0.5ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12416]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12416) [["id", 12416]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12416], ["created_at", "2017-04-15 19:14:51.673226"], ["updated_at", "2017-04-15 19:14:51.673226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:51.675477"], ["id", 5626]] SQL (0.5ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5626], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:14:51.684518"], ["updated_at", "2017-04-15 19:14:51.684518"]] RailsWorkflow::Context Load (0.4ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5626], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.2ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5626]] Redirected to http://test.host/workflow/processes/5626 Completed 302 Found in 33ms (ActiveRecord: 4.4ms)  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_processes"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e99950fb-1e21-3742-777c-3c0542540684"], ["created_at", "2017-04-15 19:14:51.696957"], ["updated_at", "2017-04-15 19:14:51.696957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12417"}} SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12417]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12417) [["id", 12417]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12417], ["created_at", "2017-04-15 19:14:51.705758"], ["updated_at", "2017-04-15 19:14:51.705758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:51.707658"], ["id", 5627]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5627], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:14:51.709475"], ["updated_at", "2017-04-15 19:14:51.709475"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5627], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.3ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5627]] Redirected to http://test.host/workflow/processes/5627 Completed 302 Found in 14ms (ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8d308043-1c73-2b07-bbb9-62ef022bd25e"], ["created_at", "2017-04-15 19:14:51.717936"], ["updated_at", "2017-04-15 19:14:51.717936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#create as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12418"}} SQL (0.4ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12418]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12418) [["id", 12418]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12418], ["created_at", "2017-04-15 19:14:51.727726"], ["updated_at", "2017-04-15 19:14:51.727726"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:51.729611"], ["id", 5628]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5628], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:14:51.731550"], ["updated_at", "2017-04-15 19:14:51.731550"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5628], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Exists (0.2ms) SELECT 1 AS one FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 LIMIT 1 [["process_id", 5628]] Redirected to http://test.host/workflow/processes/5628 Completed 302 Found in 15ms (ActiveRecord: 2.8ms) RailsWorkflow::Process Load (0.4ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" ORDER BY "rails_workflow_processes"."id" DESC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "cace74bd-8c70-e0f4-8872-3e7ef36309aa"], ["created_at", "2017-04-15 19:14:51.744057"], ["updated_at", "2017-04-15 19:14:51.744057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4f2ba61b-59c1-2404-7871-b22ebea0633a"], ["created_at", "2017-04-15 19:14:51.747675"], ["updated_at", "2017-04-15 19:14:51.747675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7b072ba0-d392-95c0-edf6-8cbc92eaae62"], ["created_at", "2017-04-15 19:14:51.751232"], ["updated_at", "2017-04-15 19:14:51.751232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12421], ["created_at", "2017-04-15 19:14:51.753154"], ["updated_at", "2017-04-15 19:14:51.753154"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "bf16f639-e50a-3322-6dba-bf4e9662618e"], ["created_at", "2017-04-15 19:14:51.757121"], ["updated_at", "2017-04-15 19:14:51.757121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12422], ["created_at", "2017-04-15 19:14:51.759106"], ["updated_at", "2017-04-15 19:14:51.759106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12422"}, "id"=>"5630"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5630]] Unpermitted parameter: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "5672d4e7-e263-2ca9-ef3f-1de6916e8f47"], ["created_at", "2017-04-15 19:14:51.771294"], ["updated_at", "2017-04-15 19:14:51.771294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12423], ["created_at", "2017-04-15 19:14:51.773310"], ["updated_at", "2017-04-15 19:14:51.773310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by RailsWorkflow::ProcessesController#update as HTML Parameters: {"process"=>{"title"=>"First Test project", "template_id"=>"12423"}, "id"=>"5631"} RailsWorkflow::Process Load (0.3ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5631]] Unpermitted parameter: id  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/workflow/processes Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "fdc98e19-1ac2-edb5-6469-c98e218881b6"], ["created_at", "2017-04-15 19:14:51.788524"], ["updated_at", "2017-04-15 19:14:51.788524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12424], ["created_at", "2017-04-15 19:14:51.790922"], ["updated_at", "2017-04-15 19:14:51.790922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e62d05ae-09bb-5174-e5af-28662c992625"], ["created_at", "2017-04-15 19:14:51.794493"], ["updated_at", "2017-04-15 19:14:51.794493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("title", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "First Test project"], ["template_id", 12425], ["created_at", "2017-04-15 19:14:51.796890"], ["updated_at", "2017-04-15 19:14:51.796890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b763d7a0-a734-f42a-fca9-6cd567cae983"], ["created_at", "2017-04-15 19:14:51.800843"], ["updated_at", "2017-04-15 19:14:51.800843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "039200d8-4d3e-e12e-dcb3-d4111284a686"], ["created_at", "2017-04-15 19:14:51.804343"], ["updated_at", "2017-04-15 19:14:51.804343"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "22616a09-b4c9-656f-cb4e-6a461f54596a"], ["created_at", "2017-04-15 19:14:51.808168"], ["updated_at", "2017-04-15 19:14:51.808168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12428], ["uuid", "75778229-3405-f8fe-8696-0473ef3ef84a"], ["created_at", "2017-04-15 19:14:51.810561"], ["updated_at", "2017-04-15 19:14:51.810561"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12428], ["dependencies", "[{\"id\":11198,\"statuses\":[2]}]"], ["uuid", "c3e8a474-adcd-a699-3cd9-daa689adc200"], ["created_at", "2017-04-15 19:14:51.813403"], ["updated_at", "2017-04-15 19:14:51.813403"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12428]] SQL (0.7ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12428) [["id", 12428]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12428], ["created_at", "2017-04-15 19:14:51.820211"], ["updated_at", "2017-04-15 19:14:51.820211"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:51.822875"], ["id", 5634]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5634], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:51.824846"], ["updated_at", "2017-04-15 19:14:51.824846"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5634], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11198], ["process_id", 5634], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:51.837380"], ["updated_at", "2017-04-15 19:14:51.837380"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6387], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:51.839215"], ["updated_at", "2017-04-15 19:14:51.839215"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "552e364b-b0ce-4893-00b1-47963456444d"], ["created_at", "2017-04-15 19:14:51.845048"], ["updated_at", "2017-04-15 19:14:51.845048"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12429], ["uuid", "0c2a39f9-2264-7e24-8fa6-c81e41f20458"], ["created_at", "2017-04-15 19:14:51.847364"], ["updated_at", "2017-04-15 19:14:51.847364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12429], ["dependencies", "[{\"id\":11200,\"statuses\":[2]}]"], ["uuid", "1a9349ea-67ca-d3c1-5045-9a486ee3b43c"], ["created_at", "2017-04-15 19:14:51.850068"], ["updated_at", "2017-04-15 19:14:51.850068"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.5ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12429]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12429) [["id", 12429]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12429], ["created_at", "2017-04-15 19:14:51.856905"], ["updated_at", "2017-04-15 19:14:51.856905"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:51.858967"], ["id", 5635]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5635], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:51.861010"], ["updated_at", "2017-04-15 19:14:51.861010"]] RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5635], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11200], ["process_id", 5635], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:51.864818"], ["updated_at", "2017-04-15 19:14:51.864818"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6388], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:51.866370"], ["updated_at", "2017-04-15 19:14:51.866370"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "56f28651-763a-15d3-1a78-a4820ec25d76"], ["created_at", "2017-04-15 19:14:51.871367"], ["updated_at", "2017-04-15 19:14:51.871367"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12430], ["uuid", "bf6f3e20-e400-56a7-f639-73761d0c3d7e"], ["created_at", "2017-04-15 19:14:51.873799"], ["updated_at", "2017-04-15 19:14:51.873799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12430], ["dependencies", "[{\"id\":11202,\"statuses\":[2]}]"], ["uuid", "351a098c-14d1-9e42-02f4-ddc4c1995e7a"], ["created_at", "2017-04-15 19:14:51.876232"], ["updated_at", "2017-04-15 19:14:51.876232"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12430]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12430) [["id", 12430]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12430], ["created_at", "2017-04-15 19:14:51.882237"], ["updated_at", "2017-04-15 19:14:51.882237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:51.884410"], ["id", 5636]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5636], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:51.886571"], ["updated_at", "2017-04-15 19:14:51.886571"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5636], ["parent_type", "RailsWorkflow::Process"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11202], ["process_id", 5636], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:51.890112"], ["updated_at", "2017-04-15 19:14:51.890112"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6389], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:51.891600"], ["updated_at", "2017-04-15 19:14:51.891600"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5636]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5636]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2f6db1e4-3117-de49-e167-317510416a85"], ["created_at", "2017-04-15 19:14:51.899011"], ["updated_at", "2017-04-15 19:14:51.899011"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12431], ["uuid", "a51b0430-70f8-b8d4-2a1d-d23fa9d61c7b"], ["created_at", "2017-04-15 19:14:51.901485"], ["updated_at", "2017-04-15 19:14:51.901485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12431], ["dependencies", "[{\"id\":11204,\"statuses\":[2]}]"], ["uuid", "3aac6b9d-b095-f187-e387-bbbb0f7399e9"], ["created_at", "2017-04-15 19:14:51.903846"], ["updated_at", "2017-04-15 19:14:51.903846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12431]] SQL (0.5ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12431) [["id", 12431]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12431], ["created_at", "2017-04-15 19:14:51.909477"], ["updated_at", "2017-04-15 19:14:51.909477"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:51.911531"], ["id", 5637]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5637], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:51.913685"], ["updated_at", "2017-04-15 19:14:51.913685"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5637], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11204], ["process_id", 5637], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:51.917737"], ["updated_at", "2017-04-15 19:14:51.917737"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6390], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:51.919216"], ["updated_at", "2017-04-15 19:14:51.919216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7e2a2962-7300-718a-f855-3fa872e1b8e8"], ["created_at", "2017-04-15 19:14:51.923565"], ["updated_at", "2017-04-15 19:14:51.923565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12432], ["uuid", "751ea5dc-c98b-4bde-b13c-94e86beb34e0"], ["created_at", "2017-04-15 19:14:51.925661"], ["updated_at", "2017-04-15 19:14:51.925661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12432], ["dependencies", "[{\"id\":11206,\"statuses\":[2]}]"], ["uuid", "3992f40f-4933-06b5-ae3d-ea087749e7b8"], ["created_at", "2017-04-15 19:14:51.928044"], ["updated_at", "2017-04-15 19:14:51.928044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12432]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12432) [["id", 12432]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12432], ["created_at", "2017-04-15 19:14:51.933454"], ["updated_at", "2017-04-15 19:14:51.933454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:51.935069"], ["id", 5638]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5638], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:51.936868"], ["updated_at", "2017-04-15 19:14:51.936868"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5638], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11206], ["process_id", 5638], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:51.940301"], ["updated_at", "2017-04-15 19:14:51.940301"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6391], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:51.941644"], ["updated_at", "2017-04-15 19:14:51.941644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5638]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6391], ["parent_type", "RailsWorkflow::Operation"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7bfbdc5a-5832-e15d-7b01-28b4fd78aeaf"], ["created_at", "2017-04-15 19:14:51.963362"], ["updated_at", "2017-04-15 19:14:51.963362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12433], ["uuid", "d17e87da-4022-2b7f-0518-00bc6d56f36a"], ["created_at", "2017-04-15 19:14:51.965562"], ["updated_at", "2017-04-15 19:14:51.965562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12433], ["dependencies", "[{\"id\":11208,\"statuses\":[2]}]"], ["uuid", "baeb3142-ccd7-8ca2-b2ea-827fa08f8272"], ["created_at", "2017-04-15 19:14:51.967857"], ["updated_at", "2017-04-15 19:14:51.967857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12433]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12433) [["id", 12433]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12433], ["created_at", "2017-04-15 19:14:51.973135"], ["updated_at", "2017-04-15 19:14:51.973135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:51.974647"], ["id", 5639]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5639], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:51.976512"], ["updated_at", "2017-04-15 19:14:51.976512"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5639], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11208], ["process_id", 5639], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:51.980515"], ["updated_at", "2017-04-15 19:14:51.980515"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6392], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:51.981947"], ["updated_at", "2017-04-15 19:14:51.981947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "e6cbc4cf-04c0-9cb2-3b8a-fcd3410c9db3"], ["created_at", "2017-04-15 19:14:51.986984"], ["updated_at", "2017-04-15 19:14:51.986984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12434], ["uuid", "233d6fbc-116a-0838-5dd2-8cf149f6f579"], ["created_at", "2017-04-15 19:14:51.989082"], ["updated_at", "2017-04-15 19:14:51.989082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12434], ["dependencies", "[{\"id\":11210,\"statuses\":[2]}]"], ["uuid", "4e2c33df-c037-cb20-5978-23e0ebf4e24d"], ["created_at", "2017-04-15 19:14:51.991276"], ["updated_at", "2017-04-15 19:14:51.991276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12434]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12434) [["id", 12434]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12434], ["created_at", "2017-04-15 19:14:51.996294"], ["updated_at", "2017-04-15 19:14:51.996294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:51.997829"], ["id", 5640]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5640], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:51.999617"], ["updated_at", "2017-04-15 19:14:51.999617"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5640], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11210], ["process_id", 5640], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:52.002961"], ["updated_at", "2017-04-15 19:14:52.002961"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6393], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:52.004267"], ["updated_at", "2017-04-15 19:14:52.004267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:52.007054"], ["id", 5640]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5640], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:52.010258"], ["id", 6393]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1957ec43-f0fb-4207-a792-f1a09b1abfaa] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6393 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1957ec43-f0fb-4207-a792-f1a09b1abfaa] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6393]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1957ec43-f0fb-4207-a792-f1a09b1abfaa]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1957ec43-f0fb-4207-a792-f1a09b1abfaa]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1957ec43-f0fb-4207-a792-f1a09b1abfaa] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6393], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1957ec43-f0fb-4207-a792-f1a09b1abfaa]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1957ec43-f0fb-4207-a792-f1a09b1abfaa]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [1957ec43-f0fb-4207-a792-f1a09b1abfaa] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 4.52ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f097b63a-218d-3ab4-0a6f-f8b32a3878eb"], ["created_at", "2017-04-15 19:14:52.020183"], ["updated_at", "2017-04-15 19:14:52.020183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12435], ["uuid", "5317c2fd-ba06-e5b4-a4fc-6c2ce13ccf22"], ["created_at", "2017-04-15 19:14:52.022294"], ["updated_at", "2017-04-15 19:14:52.022294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12435], ["dependencies", "[{\"id\":11212,\"statuses\":[2]}]"], ["uuid", "791e6272-7b31-e57b-c94e-4cb11a0183bc"], ["created_at", "2017-04-15 19:14:52.024542"], ["updated_at", "2017-04-15 19:14:52.024542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12435]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12435) [["id", 12435]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12435], ["created_at", "2017-04-15 19:14:52.029572"], ["updated_at", "2017-04-15 19:14:52.029572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:52.031108"], ["id", 5641]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5641], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:52.032866"], ["updated_at", "2017-04-15 19:14:52.032866"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5641], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11212], ["process_id", 5641], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:52.036196"], ["updated_at", "2017-04-15 19:14:52.036196"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6394], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:52.037507"], ["updated_at", "2017-04-15 19:14:52.037507"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:52.040528"], ["id", 5641]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5641], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:52.043654"], ["id", 6394]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3e79feb0-8953-4933-b602-21389c3e0a99] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6394 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3e79feb0-8953-4933-b602-21389c3e0a99] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6394]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3e79feb0-8953-4933-b602-21389c3e0a99]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3e79feb0-8953-4933-b602-21389c3e0a99]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3e79feb0-8953-4933-b602-21389c3e0a99] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6394], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3e79feb0-8953-4933-b602-21389c3e0a99]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3e79feb0-8953-4933-b602-21389c3e0a99]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [3e79feb0-8953-4933-b602-21389c3e0a99] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 3.12ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5641]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "8a8713e9-cbea-feda-bb93-03dcfefb5683"], ["created_at", "2017-04-15 19:14:52.051977"], ["updated_at", "2017-04-15 19:14:52.051977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12436], ["uuid", "22e12854-5c65-ac66-bbe2-887645693caa"], ["created_at", "2017-04-15 19:14:52.054068"], ["updated_at", "2017-04-15 19:14:52.054068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12436], ["dependencies", "[{\"id\":11214,\"statuses\":[2]}]"], ["uuid", "0a0b49f7-a904-69bd-7d32-658eb06b72df"], ["created_at", "2017-04-15 19:14:52.056279"], ["updated_at", "2017-04-15 19:14:52.056279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12436]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12436) [["id", 12436]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12436], ["created_at", "2017-04-15 19:14:52.061275"], ["updated_at", "2017-04-15 19:14:52.061275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:52.062815"], ["id", 5642]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5642], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:52.064624"], ["updated_at", "2017-04-15 19:14:52.064624"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5642], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11214], ["process_id", 5642], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:52.067963"], ["updated_at", "2017-04-15 19:14:52.067963"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6395], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:52.069261"], ["updated_at", "2017-04-15 19:14:52.069261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:52.072257"], ["id", 5642]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5642], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:52.075417"], ["id", 6395]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6395 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6395]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6395], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:52.079768"], ["updated_at", "2017-04-15 19:14:52.080270"], ["id", 6395]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5642]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12436]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12436]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11214]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5642]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11214]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5642], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:52.091764"], ["id", 5642]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5642]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [d78ba76f-4c55-4d85-a434-25b670c8964d] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 18.15ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5642]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:14:52.096184"], ["updated_at", "2017-04-15 19:14:52.096821"], ["id", 6395]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11214]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5642]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5642], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:52.102462"], ["id", 5642]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5642]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "11211948-a843-8516-ec28-11686b959660"], ["created_at", "2017-04-15 19:14:52.106260"], ["updated_at", "2017-04-15 19:14:52.106260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12437], ["uuid", "4e9a866f-d7e3-ea93-ba80-989f26ac4ccf"], ["created_at", "2017-04-15 19:14:52.108316"], ["updated_at", "2017-04-15 19:14:52.108316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12437], ["dependencies", "[{\"id\":11216,\"statuses\":[2]}]"], ["uuid", "2e00fb60-35c7-fd7f-cc53-1a73765589ae"], ["created_at", "2017-04-15 19:14:52.110580"], ["updated_at", "2017-04-15 19:14:52.110580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12437]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12437) [["id", 12437]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12437], ["created_at", "2017-04-15 19:14:52.115745"], ["updated_at", "2017-04-15 19:14:52.115745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:52.117373"], ["id", 5643]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5643], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:52.119208"], ["updated_at", "2017-04-15 19:14:52.119208"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5643], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11216], ["process_id", 5643], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:52.122507"], ["updated_at", "2017-04-15 19:14:52.122507"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6396], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:52.123830"], ["updated_at", "2017-04-15 19:14:52.123830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:52.126662"], ["id", 5643]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5643], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:52.129263"], ["id", 6396]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6396 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6396]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6396], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:52.133989"], ["updated_at", "2017-04-15 19:14:52.134654"], ["id", 6396]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5643]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12437]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12437]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11216]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5643]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11216]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11217], ["process_id", 5643], ["status", 0], ["dependencies", "[{\"operation_id\":6396,\"status\":2}]"], ["created_at", "2017-04-15 19:14:52.142403"], ["updated_at", "2017-04-15 19:14:52.142403"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6397], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:52.143780"], ["updated_at", "2017-04-15 19:14:52.143780"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:52.146752"], ["id", 6397]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6397 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6397]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6397], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:52.151498"], ["updated_at", "2017-04-15 19:14:52.151992"], ["id", 6397]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5643]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12437]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12437]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11217]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5643]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11217]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11216]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5643], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4] SQL (0.1ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:52.160097"], ["id", 5643]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5643]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] [RailsWorkflow::OperationExecutionJob] [95516d57-ba59-4310-82f8-73638e31edc4] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 13.46ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [6327441d-e574-4a20-8190-21621ff1323f] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 31.48ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5643]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:14:52.163307"], ["updated_at", "2017-04-15 19:14:52.163935"], ["id", 6396]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11216]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5643]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11217]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5643], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:52.169829"], ["id", 5643]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5643]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "75e55af0-dc72-2059-2d9e-2a6f43912e3c"], ["created_at", "2017-04-15 19:14:52.173719"], ["updated_at", "2017-04-15 19:14:52.173719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12438], ["uuid", "e0983835-e333-a884-717c-c4aa7d33949b"], ["created_at", "2017-04-15 19:14:52.175843"], ["updated_at", "2017-04-15 19:14:52.175843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12438], ["dependencies", "[{\"id\":11218,\"statuses\":[2]}]"], ["uuid", "ca576d35-d11a-3ae6-4e28-4941ae2a1bf1"], ["created_at", "2017-04-15 19:14:52.178074"], ["updated_at", "2017-04-15 19:14:52.178074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12438]] SQL (0.3ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12438) [["id", 12438]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12438], ["created_at", "2017-04-15 19:14:52.183222"], ["updated_at", "2017-04-15 19:14:52.183222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:52.184860"], ["id", 5644]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5644], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:52.186621"], ["updated_at", "2017-04-15 19:14:52.186621"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5644], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11218], ["process_id", 5644], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:52.189977"], ["updated_at", "2017-04-15 19:14:52.189977"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6398], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:52.191314"], ["updated_at", "2017-04-15 19:14:52.191314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:52.194071"], ["id", 5644]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5644], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:52.196560"], ["id", 6398]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6398 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6398]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6398], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:52.201721"], ["updated_at", "2017-04-15 19:14:52.202383"], ["id", 6398]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5644]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12438]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12438]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11218]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5644]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11218]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11219], ["process_id", 5644], ["status", 0], ["dependencies", "[{\"operation_id\":6398,\"status\":2}]"], ["created_at", "2017-04-15 19:14:52.210253"], ["updated_at", "2017-04-15 19:14:52.210253"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] SQL (0.1ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6399], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:52.211574"], ["updated_at", "2017-04-15 19:14:52.211574"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:52.214689"], ["id", 6399]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6399 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6399]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6399], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:52.219459"], ["updated_at", "2017-04-15 19:14:52.219990"], ["id", 6399]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5644]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0] RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12438]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12438]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11219]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5644]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11219]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11218]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5644], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:52.228462"], ["id", 5644]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5644]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] [RailsWorkflow::OperationExecutionJob] [d6ab14a7-84dd-43d5-9da4-4182fa58bed0] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 14.24ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [bdaf1971-ad16-40d3-b06b-5c60065b748c] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 32.6ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5644]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:14:52.231834"], ["updated_at", "2017-04-15 19:14:52.232628"], ["id", 6398]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11218]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5644]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11219]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5644], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:52.239366"], ["id", 5644]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5644]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 2], ["created_at", "2017-04-15 19:14:52.189977"], ["updated_at", "2017-04-15 19:14:52.232628"], ["completed_at", "2017-04-15 19:14:52.241480"], ["id", 6398]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "007be4f2-dc79-f184-c22b-cb1abd4c3562"], ["created_at", "2017-04-15 19:14:52.246420"], ["updated_at", "2017-04-15 19:14:52.246420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12439], ["uuid", "cdbbd2b4-97bc-5ae0-abad-8f6ff3c870f7"], ["created_at", "2017-04-15 19:14:52.248622"], ["updated_at", "2017-04-15 19:14:52.248622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12439], ["dependencies", "[{\"id\":11220,\"statuses\":[2]}]"], ["uuid", "ef3c9628-287f-f329-08c6-87550ce07f58"], ["created_at", "2017-04-15 19:14:52.250928"], ["updated_at", "2017-04-15 19:14:52.250928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12439]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12439) [["id", 12439]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12439], ["created_at", "2017-04-15 19:14:52.256832"], ["updated_at", "2017-04-15 19:14:52.256832"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:52.258886"], ["id", 5645]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5645], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:52.260857"], ["updated_at", "2017-04-15 19:14:52.260857"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5645], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11220], ["process_id", 5645], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:52.264415"], ["updated_at", "2017-04-15 19:14:52.264415"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6400], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:52.265751"], ["updated_at", "2017-04-15 19:14:52.265751"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:52.268696"], ["id", 5645]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5645], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:52.271675"], ["id", 6400]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6400 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6400]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6400], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:52.277002"], ["updated_at", "2017-04-15 19:14:52.277591"], ["id", 6400]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5645]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12439]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12439]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11220]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5645]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11220]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11221], ["process_id", 5645], ["status", 0], ["dependencies", "[{\"operation_id\":6400,\"status\":2}]"], ["created_at", "2017-04-15 19:14:52.286230"], ["updated_at", "2017-04-15 19:14:52.286230"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6401], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:52.287634"], ["updated_at", "2017-04-15 19:14:52.287634"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:52.290835"], ["id", 6401]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6401 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6401]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6401], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:52.295522"], ["updated_at", "2017-04-15 19:14:52.296054"], ["id", 6401]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5645]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12439]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12439]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11221]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5645]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11221]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11220]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5645], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:52.311344"], ["id", 5645]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5645]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] [RailsWorkflow::OperationExecutionJob] [f27a64f4-1cab-40c6-a069-1da272e31948] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 20.75ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [2981c0ac-9869-4f33-aa26-5fb73813808d] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 39.83ms RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5645]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:14:52.314438"], ["updated_at", "2017-04-15 19:14:52.315085"], ["id", 6400]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11220]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5645]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11221]]  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5645], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:52.321446"], ["id", 5645]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5645]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 6], ["created_at", "2017-04-15 19:14:52.264415"], ["updated_at", "2017-04-15 19:14:52.315085"], ["completed_at", "2017-04-15 19:14:52.323314"], ["id", 6400]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "48f75914-a0f5-ddaf-0149-5a7ef9279d12"], ["created_at", "2017-04-15 19:14:52.327381"], ["updated_at", "2017-04-15 19:14:52.327381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12440], ["uuid", "ae5ec062-b4d6-ec0b-3582-d324a6f931a8"], ["created_at", "2017-04-15 19:14:52.329554"], ["updated_at", "2017-04-15 19:14:52.329554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12440], ["dependencies", "[{\"id\":11222,\"statuses\":[2]}]"], ["uuid", "ff88471c-54ec-085a-5169-64af3464ea29"], ["created_at", "2017-04-15 19:14:52.331764"], ["updated_at", "2017-04-15 19:14:52.331764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12440]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12440) [["id", 12440]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12440], ["created_at", "2017-04-15 19:14:52.337066"], ["updated_at", "2017-04-15 19:14:52.337066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:52.338837"], ["id", 5646]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5646], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:52.340682"], ["updated_at", "2017-04-15 19:14:52.340682"]] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5646], ["parent_type", "RailsWorkflow::Process"]] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11222], ["process_id", 5646], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:52.344021"], ["updated_at", "2017-04-15 19:14:52.344021"]] SQL (0.1ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6402], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:52.345260"], ["updated_at", "2017-04-15 19:14:52.345260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:52.347889"], ["id", 5646]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5646], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:52.350278"], ["id", 6402]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6402 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6402]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6402], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:52.355601"], ["updated_at", "2017-04-15 19:14:52.356172"], ["id", 6402]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5646]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12440]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12440]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11222]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5646]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11222]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11223], ["process_id", 5646], ["status", 0], ["dependencies", "[{\"operation_id\":6402,\"status\":2}]"], ["created_at", "2017-04-15 19:14:52.363599"], ["updated_at", "2017-04-15 19:14:52.363599"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6403], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:52.365014"], ["updated_at", "2017-04-15 19:14:52.365014"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:52.368199"], ["id", 6403]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6403 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6403]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6403], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70] SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "completed_at" = $2, "updated_at" = $3 WHERE "rails_workflow_operations"."id" = $4 [["status", 2], ["completed_at", "2017-04-15 19:14:52.372487"], ["updated_at", "2017-04-15 19:14:52.373032"], ["id", 6403]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5646]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12440]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12440]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11223]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5646]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11223]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11222]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5646], ["parent_type", "RailsWorkflow::Process"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:52.381498"], ["id", 5646]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5646]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] [RailsWorkflow::OperationExecutionJob] [04d92a22-7b46-4dd9-ae7e-77cb8c6c1e70] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 13.95ms [ActiveJob] [RailsWorkflow::OperationExecutionJob] [5ace5891-3258-4a0e-aa70-2083a935f906] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 31.87ms RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 ORDER BY "rails_workflow_operations"."id" ASC LIMIT 1 [["process_id", 5646]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "completed_at" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["completed_at", "2017-04-15 19:14:52.384974"], ["updated_at", "2017-04-15 19:14:52.385760"], ["id", 6402]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11222]] RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 [["process_id", 5646]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11223]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_errors" WHERE "rails_workflow_errors"."parent_id" = $1 AND "rails_workflow_errors"."parent_type" = $2 AND (resolved is null or resolved = false) [["parent_id", 5646], ["parent_type", "RailsWorkflow::Process"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 2], ["updated_at", "2017-04-15 19:14:52.391917"], ["id", 5646]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."child_process_id" = $1 LIMIT 1 [["child_process_id", 5646]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "created_at" = $2, "updated_at" = $3, "completed_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["status", 5], ["created_at", "2017-04-15 19:14:52.344021"], ["updated_at", "2017-04-15 19:14:52.385760"], ["completed_at", "2017-04-15 19:14:52.393794"], ["id", 6402]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'regular_user@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "regular_user@test.com"], ["encrypted_password", "$2a$04$7Ybz.WefRg0QkflxfjGfAODnG.pRP4lQBMi.VVZW86IUwcHajHBXK"], ["role", "regular_user"], ["created_at", "2017-04-15 19:14:52.412416"], ["updated_at", "2017-04-15 19:14:52.412416"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'admin@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "admin@test.com"], ["encrypted_password", "$2a$04$Sj8fubwbUkI5pik0p4eurunui23ijB.UPDx9gEnsu3UOd0bpz/IP2"], ["role", "admin"], ["created_at", "2017-04-15 19:14:52.417440"], ["updated_at", "2017-04-15 19:14:52.417440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:52.422094"], ["updated_at", "2017-04-15 19:14:52.422094"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "User Operation Template"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:52.424556"], ["id", 12441]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12441]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12441], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12441], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:52.430185"], ["updated_at", "2017-04-15 19:14:52.430185"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:52.432776"], ["id", 11224]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12441], ["uuid", nil]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12441], ["uuid", "fbfcf437-701f-4fe1-7716-b3424ab415f9"], ["created_at", "2017-04-15 19:14:52.437804"], ["updated_at", "2017-04-15 19:14:52.437804"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "uuid" = $1, "title" = $2, "dependencies" = $3, "operation_class" = $4, "async" = $5, "kind" = $6, "role" = $7, "instruction" = $8, "type" = $9, "partial_name" = $10, "updated_at" = $11 WHERE "rails_workflow_operation_templates"."id" = $12 [["uuid", "cc9494cf-448d-232b-0566-aaaea18ca376"], ["title", "Regular User Operation"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "regular_user"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:52.440262"], ["id", 11225]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "User Operation Template"]] SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12441]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12441) [["id", 12441]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12441], ["created_at", "2017-04-15 19:14:52.449004"], ["updated_at", "2017-04-15 19:14:52.449004"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "User Operation Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:52.451014"], ["id", 5647]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5647], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:14:52.452896"], ["updated_at", "2017-04-15 19:14:52.452896"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5647], ["parent_type", "RailsWorkflow::Process"]] SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Regular User Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 11225], ["process_id", 5647], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:52.468731"], ["updated_at", "2017-04-15 19:14:52.468731"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6404], ["body", "{}"], ["created_at", "2017-04-15 19:14:52.470601"], ["updated_at", "2017-04-15 19:14:52.470601"]] SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByRoleOperation"], ["title", "Admin Operation"], ["async", "f"], ["is_background", "t"], ["template_id", 11224], ["process_id", 5647], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:52.474243"], ["updated_at", "2017-04-15 19:14:52.474243"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6405], ["body", "{}"], ["created_at", "2017-04-15 19:14:52.475776"], ["updated_at", "2017-04-15 19:14:52.475776"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:52.478687"], ["id", 5647]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5647], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:14:52.481689"], ["id", 6405]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:14:52.483595"], ["id", 6404]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/workflow/operations" for 127.0.0.1 at 2017-04-15 23:14:52 +0400 Processing by RailsWorkflow::OperationsController#index as HTML RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."status" = 3 ORDER BY "rails_workflow_operations"."created_at" DESC RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5647]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11224]] CACHE (0.0ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5647]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11225]] Rendered /home/maxim/rails_workflow/app/views/rails_workflow/operations/index.html.slim within layouts/rails_workflow/application (18.8ms) Completed 200 OK in 151ms (Views: 143.0ms | ActiveRecord: 1.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/workflow/config" for 127.0.0.1 at 2017-04-15 23:14:52 +0400 Processing by RailsWorkflow::ProcessTemplatesController#index as HTML Rendered /home/maxim/rails_workflow/app/views/application/_flash.html.slim (2.6ms) RailsWorkflow::ProcessTemplate Load (0.4ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" ORDER BY "rails_workflow_process_templates"."id" DESC Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/index.html.slim within layouts/rails_workflow/application (13.7ms) Completed 200 OK in 17ms (Views: 15.9ms | ActiveRecord: 0.4ms) Started GET "/workflow/config/new" for 127.0.0.1 at 2017-04-15 23:14:52 +0400 Processing by RailsWorkflow::ProcessTemplatesController#new as HTML Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/_form.html.slim (17.4ms) Rendered /home/maxim/rails_workflow/app/views/rails_workflow/process_templates/new.html.slim within layouts/rails_workflow/application (22.8ms) Completed 200 OK in 26ms (Views: 25.4ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:52.729260"], ["updated_at", "2017-04-15 19:14:52.729260"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:52.731434"], ["updated_at", "2017-04-15 19:14:52.731434"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5648], ["updated_at", "2017-04-15 19:14:52.732900"], ["id", 9508]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:52.737582"], ["updated_at", "2017-04-15 19:14:52.737582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 19:14:52.739480"], ["updated_at", "2017-04-15 19:14:52.739480"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6406], ["updated_at", "2017-04-15 19:14:52.741006"], ["id", 9509]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "dd14c395-0b46-149c-e5f1-b130d873635f"], ["created_at", "2017-04-15 19:14:52.743808"], ["updated_at", "2017-04-15 19:14:52.743808"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12442], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "50aa8f3b-2715-5902-9a01-d0c29ddea953"], ["created_at", "2017-04-15 19:14:52.745779"], ["updated_at", "2017-04-15 19:14:52.745779"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11226], ["process_id", 5648], ["status", 0], ["dependencies", "[{\"operation_id\":6406,\"status\":4}]"], ["created_at", "2017-04-15 19:14:52.756305"], ["updated_at", "2017-04-15 19:14:52.756305"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6407], ["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:52.757864"], ["updated_at", "2017-04-15 19:14:52.757864"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:52.762472"], ["updated_at", "2017-04-15 19:14:52.762472"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:52.764504"], ["updated_at", "2017-04-15 19:14:52.764504"]] SQL (0.5ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5649], ["updated_at", "2017-04-15 19:14:52.765916"], ["id", 9511]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 19:14:52.769407"], ["updated_at", "2017-04-15 19:14:52.769407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:52.773205"], ["updated_at", "2017-04-15 19:14:52.773205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:52.774984"], ["updated_at", "2017-04-15 19:14:52.774984"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5650], ["updated_at", "2017-04-15 19:14:52.776216"], ["id", 9513]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:52.778773"], ["updated_at", "2017-04-15 19:14:52.778773"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resource\":{\"id\":6408,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5650,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 19:14:52.781073"], ["updated_at", "2017-04-15 19:14:52.781073"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:52.785468"], ["updated_at", "2017-04-15 19:14:52.785468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:52.787158"], ["updated_at", "2017-04-15 19:14:52.787158"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5651], ["updated_at", "2017-04-15 19:14:52.788361"], ["id", 9515]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:52.791578"], ["updated_at", "2017-04-15 19:14:52.791578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":6409,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5651,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 19:14:52.793949"], ["updated_at", "2017-04-15 19:14:52.793949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:52.800372"], ["updated_at", "2017-04-15 19:14:52.800372"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:52.802871"], ["updated_at", "2017-04-15 19:14:52.802871"]] SQL (0.4ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5652], ["updated_at", "2017-04-15 19:14:52.804385"], ["id", 9517]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:52.808713"], ["updated_at", "2017-04-15 19:14:52.808713"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 6410], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"int\":1,\"date\":\"2017-04-15\",\"ary\":[1,2,3],\"msg\":\"Some string\"}"], ["created_at", "2017-04-15 19:14:52.811917"], ["updated_at", "2017-04-15 19:14:52.811917"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.3ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9518]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:52.818699"], ["updated_at", "2017-04-15 19:14:52.818699"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:52.821011"], ["updated_at", "2017-04-15 19:14:52.821011"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5653], ["updated_at", "2017-04-15 19:14:52.827675"], ["id", 9519]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:52.832012"], ["updated_at", "2017-04-15 19:14:52.832012"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 6411], ["parent_type", "RailsWorkflow::Operation"], ["body", "{\"resource\":{\"id\":6411,\"class\":\"RailsWorkflow::Operation\"},\"process\":{\"id\":5653,\"class\":\"RailsWorkflow::Process\"}}"], ["created_at", "2017-04-15 19:14:52.834766"], ["updated_at", "2017-04-15 19:14:52.834766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9520]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6411]] RailsWorkflow::Process Load (0.1ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5653]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:52.841456"], ["updated_at", "2017-04-15 19:14:52.841456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:52.843354"], ["updated_at", "2017-04-15 19:14:52.843354"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5654], ["updated_at", "2017-04-15 19:14:52.844715"], ["id", 9521]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:52.848164"], ["updated_at", "2017-04-15 19:14:52.848164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"resources\":[{\"id\":6412,\"class\":\"RailsWorkflow::Operation\"},{\"id\":5654,\"class\":\"RailsWorkflow::Process\"}]}"], ["created_at", "2017-04-15 19:14:52.850565"], ["updated_at", "2017-04-15 19:14:52.850565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."id" = $1 LIMIT 1 [["id", 9522]] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6412]] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5654]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:52.857284"], ["updated_at", "2017-04-15 19:14:52.857284"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:52.859736"], ["updated_at", "2017-04-15 19:14:52.859736"]] SQL (0.3ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5655], ["updated_at", "2017-04-15 19:14:52.861389"], ["id", 9523]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "90b13da2-8d41-40aa-f26a-65bdfe5ba429"], ["created_at", "2017-04-15 19:14:52.865732"], ["updated_at", "2017-04-15 19:14:52.865732"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12443], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "0949b74e-2531-894d-de6b-b905ccfbd44c"], ["created_at", "2017-04-15 19:14:52.868053"], ["updated_at", "2017-04-15 19:14:52.868053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11227], ["process_id", 5655], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:52.871781"], ["updated_at", "2017-04-15 19:14:52.871781"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6413], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:52.873457"], ["updated_at", "2017-04-15 19:14:52.873457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:52.878283"], ["updated_at", "2017-04-15 19:14:52.878283"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:52.881050"], ["updated_at", "2017-04-15 19:14:52.881050"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5656], ["updated_at", "2017-04-15 19:14:52.882663"], ["id", 9525]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "6fe9174b-e5a7-e7fc-50ae-befac7e37879"], ["created_at", "2017-04-15 19:14:52.887344"], ["updated_at", "2017-04-15 19:14:52.887344"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12444], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "ede69bec-75cf-c3f6-1ec7-772ee3bbe140"], ["created_at", "2017-04-15 19:14:52.890004"], ["updated_at", "2017-04-15 19:14:52.890004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11228], ["process_id", 5656], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:52.895124"], ["updated_at", "2017-04-15 19:14:52.895124"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6414], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:52.896890"], ["updated_at", "2017-04-15 19:14:52.896890"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:52.902325"], ["updated_at", "2017-04-15 19:14:52.902325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:52.904810"], ["updated_at", "2017-04-15 19:14:52.904810"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5657], ["updated_at", "2017-04-15 19:14:52.906373"], ["id", 9527]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "48d22c93-5907-af59-c8ed-ec245ae06e68"], ["created_at", "2017-04-15 19:14:52.911498"], ["updated_at", "2017-04-15 19:14:52.911498"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12445], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "63b930dc-7530-e872-6da1-d8504efbc9c2"], ["created_at", "2017-04-15 19:14:52.914529"], ["updated_at", "2017-04-15 19:14:52.914529"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11229], ["process_id", 5657], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:52.918860"], ["updated_at", "2017-04-15 19:14:52.918860"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6415], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:52.921071"], ["updated_at", "2017-04-15 19:14:52.921071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:52.926581"], ["updated_at", "2017-04-15 19:14:52.926581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:52.928971"], ["updated_at", "2017-04-15 19:14:52.928971"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5658], ["updated_at", "2017-04-15 19:14:52.930458"], ["id", 9529]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "23c1cdd4-1fe9-8db9-555c-ed6e0063c7a8"], ["created_at", "2017-04-15 19:14:52.935182"], ["updated_at", "2017-04-15 19:14:52.935182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12446], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "d5498d43-16ad-8de8-ff46-16ad335384c7"], ["created_at", "2017-04-15 19:14:52.937362"], ["updated_at", "2017-04-15 19:14:52.937362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11230], ["process_id", 5658], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:52.942168"], ["updated_at", "2017-04-15 19:14:52.942168"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6416], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:52.943963"], ["updated_at", "2017-04-15 19:14:52.943963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:52.949215"], ["updated_at", "2017-04-15 19:14:52.949215"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:52.951720"], ["updated_at", "2017-04-15 19:14:52.951720"]] SQL (1.5ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5659], ["updated_at", "2017-04-15 19:14:52.953461"], ["id", 9531]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "16796324-f97a-8903-8484-ba29bc46a171"], ["created_at", "2017-04-15 19:14:52.960979"], ["updated_at", "2017-04-15 19:14:52.960979"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12447], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "ad46d2ad-bb9b-f331-352c-f64f13752c99"], ["created_at", "2017-04-15 19:14:52.963802"], ["updated_at", "2017-04-15 19:14:52.963802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11231], ["process_id", 5659], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:52.967889"], ["updated_at", "2017-04-15 19:14:52.967889"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6417], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:52.969782"], ["updated_at", "2017-04-15 19:14:52.969782"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:52.974891"], ["updated_at", "2017-04-15 19:14:52.974891"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:52.976955"], ["updated_at", "2017-04-15 19:14:52.976955"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5660], ["updated_at", "2017-04-15 19:14:52.978537"], ["id", 9533]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "eac0a701-b64f-c233-b61e-4a6578992ab0"], ["created_at", "2017-04-15 19:14:52.982410"], ["updated_at", "2017-04-15 19:14:52.982410"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12448], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "04ec9ed2-fd32-7de4-c4c0-26c4394df414"], ["created_at", "2017-04-15 19:14:52.984590"], ["updated_at", "2017-04-15 19:14:52.984590"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11232], ["process_id", 5660], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:52.989253"], ["updated_at", "2017-04-15 19:14:52.989253"]] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6418], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:52.991020"], ["updated_at", "2017-04-15 19:14:52.991020"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:52.995825"], ["updated_at", "2017-04-15 19:14:52.995825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:52.998063"], ["updated_at", "2017-04-15 19:14:52.998063"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5661], ["updated_at", "2017-04-15 19:14:52.999655"], ["id", 9535]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "eca133bd-5216-e830-4d40-467801cf1304"], ["created_at", "2017-04-15 19:14:53.004036"], ["updated_at", "2017-04-15 19:14:53.004036"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "09488295-d4ce-f9f9-9510-c90b90173ae9"], ["created_at", "2017-04-15 19:14:53.006374"], ["updated_at", "2017-04-15 19:14:53.006374"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12449], ["child_process_id", 12450], ["uuid", "95dc2a7a-6623-01a5-90fe-f1ccf5eca8a1"], ["created_at", "2017-04-15 19:14:53.008832"], ["updated_at", "2017-04-15 19:14:53.008832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "4ebe8d59-33b3-62c1-561e-6762de1177b2"], ["created_at", "2017-04-15 19:14:53.012019"], ["updated_at", "2017-04-15 19:14:53.012019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12451], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "ced34d39-28d9-65bd-cc0a-88db49105096"], ["created_at", "2017-04-15 19:14:53.014336"], ["updated_at", "2017-04-15 19:14:53.014336"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11234], ["process_id", 5661], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:53.018489"], ["updated_at", "2017-04-15 19:14:53.018489"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6419], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:53.020951"], ["updated_at", "2017-04-15 19:14:53.020951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["is_background", "t"], ["template_id", 11233], ["process_id", 5661], ["status", 0], ["dependencies", "[{\"operation_id\":6419,\"status\":0}]"], ["created_at", "2017-04-15 19:14:53.024787"], ["updated_at", "2017-04-15 19:14:53.024787"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6420], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:53.026276"], ["updated_at", "2017-04-15 19:14:53.026276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12450]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12450) [["id", 12450]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_processes" ("template_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["template_id", 12450], ["created_at", "2017-04-15 19:14:53.032956"], ["updated_at", "2017-04-15 19:14:53.032956"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:53.034946"], ["id", 5662]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5662], ["parent_type", "RailsWorkflow::Process"], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:53.037169"], ["updated_at", "2017-04-15 19:14:53.037169"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5662], ["parent_type", "RailsWorkflow::Process"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:53.042650"], ["updated_at", "2017-04-15 19:14:53.042650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:53.044740"], ["updated_at", "2017-04-15 19:14:53.044740"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5663], ["updated_at", "2017-04-15 19:14:53.045913"], ["id", 9539]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "f1ef784b-c0f7-7b61-35c7-08b8d84bcaf0"], ["created_at", "2017-04-15 19:14:53.050164"], ["updated_at", "2017-04-15 19:14:53.050164"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12452], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "46e6f1fa-1ccc-240e-292b-0065e5763c4d"], ["created_at", "2017-04-15 19:14:53.052845"], ["updated_at", "2017-04-15 19:14:53.052845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11235], ["process_id", 5663], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:53.056437"], ["updated_at", "2017-04-15 19:14:53.056437"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6421], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:53.058203"], ["updated_at", "2017-04-15 19:14:53.058203"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:53.063020"], ["updated_at", "2017-04-15 19:14:53.063020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:53.065304"], ["updated_at", "2017-04-15 19:14:53.065304"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5664], ["updated_at", "2017-04-15 19:14:53.066776"], ["id", 9541]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 4], ["created_at", "2017-04-15 19:14:53.071553"], ["updated_at", "2017-04-15 19:14:53.071553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "1709a5a2-e18b-bc46-2e01-110c86d7ac70"], ["created_at", "2017-04-15 19:14:53.074685"], ["updated_at", "2017-04-15 19:14:53.074685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12453], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "ef79052d-b5b9-2bbe-1f4d-4ba8023110b7"], ["created_at", "2017-04-15 19:14:53.076836"], ["updated_at", "2017-04-15 19:14:53.076836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Context Load (0.4ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6422], ["parent_type", "RailsWorkflow::Operation"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11236], ["process_id", 5664], ["status", 0], ["dependencies", "[{\"operation_id\":6422,\"status\":4}]"], ["created_at", "2017-04-15 19:14:53.082311"], ["updated_at", "2017-04-15 19:14:53.082311"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6423], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:53.084600"], ["updated_at", "2017-04-15 19:14:53.084600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:53.088880"], ["updated_at", "2017-04-15 19:14:53.088880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:53.090738"], ["updated_at", "2017-04-15 19:14:53.090738"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5665], ["updated_at", "2017-04-15 19:14:53.092414"], ["id", 9543]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "7c8e5690-c0a3-7784-a0f6-b120011f5879"], ["created_at", "2017-04-15 19:14:53.101882"], ["updated_at", "2017-04-15 19:14:53.101882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "async", "operation_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12454], ["async", "t"], ["operation_class", "RailsWorkflow::UserByGroupOperation"], ["uuid", "b34c1d68-86ef-7632-2842-98a135fa76c3"], ["created_at", "2017-04-15 19:14:53.103627"], ["updated_at", "2017-04-15 19:14:53.103627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("type", "title", "async", "is_background", "template_id", "process_id", "status", "dependencies", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["type", "RailsWorkflow::UserByGroupOperation"], ["title", "Operation Template"], ["async", "t"], ["is_background", "t"], ["template_id", 11237], ["process_id", 5665], ["status", 0], ["dependencies", "[]"], ["created_at", "2017-04-15 19:14:53.106564"], ["updated_at", "2017-04-15 19:14:53.106564"]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_type", "parent_id", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6424], ["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:53.107947"], ["updated_at", "2017-04-15 19:14:53.107947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:53.111208"], ["updated_at", "2017-04-15 19:14:53.111208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$fiTYEzhQ1bv413eeM8bTKe4YxwUe5m6EcmWx66.XihNzIL00dNEoO"], ["created_at", "2017-04-15 19:14:53.116280"], ["updated_at", "2017-04-15 19:14:53.116280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1662], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1662], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:53.117831"], ["updated_at", "2017-04-15 19:14:53.119180"], ["id", 6425]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:53.121933"], ["updated_at", "2017-04-15 19:14:53.121933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$c7rLC.TubRN09oAriN3zDeBsVUrjfSkfnznSkmOAAoWcyDn86qj4K"], ["created_at", "2017-04-15 19:14:53.125873"], ["updated_at", "2017-04-15 19:14:53.125873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1663], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1663], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:53.127230"], ["updated_at", "2017-04-15 19:14:53.128315"], ["id", 6426]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:53.130004"], ["updated_at", "2017-04-15 19:14:53.130004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1663], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1663], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:53.131360"], ["updated_at", "2017-04-15 19:14:53.132427"], ["id", 6427]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.1ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6426]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:53.135824"], ["updated_at", "2017-04-15 19:14:53.135824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$sTfgy1IbblpUvhqGCZx/SuF16XUn1RZVyYiOQ0kwU9WwRKxPeR0uW"], ["created_at", "2017-04-15 19:14:53.139808"], ["updated_at", "2017-04-15 19:14:53.139808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1664], ["assignment_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1664], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:53.141160"], ["updated_at", "2017-04-15 19:14:53.142273"], ["id", 6428]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "updated_at" = $4 WHERE "rails_workflow_operations"."id" = $5 [["assignment_id", nil], ["assignment_type", nil], ["is_active", "f"], ["updated_at", "2017-04-15 19:14:53.144383"], ["id", 6428]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:53.147989"], ["updated_at", "2017-04-15 19:14:53.147989"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$Hf10xzLljD2Ui6UpjUBcBeMdm7pgZse2F4f.YtOjwt2DHN5sRRdNC"], ["created_at", "2017-04-15 19:14:53.152714"], ["updated_at", "2017-04-15 19:14:53.152714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1665], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1665], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:53.154130"], ["updated_at", "2017-04-15 19:14:53.155574"], ["id", 6429]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$mxA1gOKByYSi1Gj41OPoPO6R49DAPDfzlJQMh8WagcOJlSjRaVkum"], ["created_at", "2017-04-15 19:14:53.159857"], ["updated_at", "2017-04-15 19:14:53.159857"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6429]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1665]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:53.165401"], ["updated_at", "2017-04-15 19:14:53.165401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$ccESYmAXuHr3ZvoUi2N1v.nS1faSKnZsDTDKAGUbwgAPlQZBQGkQK"], ["created_at", "2017-04-15 19:14:53.169517"], ["updated_at", "2017-04-15 19:14:53.169517"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1667], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1667], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:53.171033"], ["updated_at", "2017-04-15 19:14:53.172367"], ["id", 6430]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$t57FV72KvHML.PD.9MaopedRfuUJrGMVxqzPhB8uCZszBZXcoceFe"], ["created_at", "2017-04-15 19:14:53.176949"], ["updated_at", "2017-04-15 19:14:53.176949"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:53.180353"], ["updated_at", "2017-04-15 19:14:53.180353"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$D.Qmcy809LjLQ8dK10fj2.FAuOm7L297LQTAaINGyjE0MPJS7zeg2"], ["created_at", "2017-04-15 19:14:53.185048"], ["updated_at", "2017-04-15 19:14:53.185048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1669], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1669], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:53.186412"], ["updated_at", "2017-04-15 19:14:53.187737"], ["id", 6431]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'other@user.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "other@user.com"], ["encrypted_password", "$2a$04$FaT8FyTS24Sn0Z.4mIxq1.BYH2/r.GA8OtVulTBqGr0dzB2q6HzU6"], ["created_at", "2017-04-15 19:14:53.192297"], ["updated_at", "2017-04-15 19:14:53.192297"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "c6495e52-d052-c2b9-eae3-aaaa5a1993e5"], ["created_at", "2017-04-15 19:14:53.195755"], ["updated_at", "2017-04-15 19:14:53.195755"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "role", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12455], ["role", "admin"], ["uuid", "f3c4c39f-2706-ff71-b430-9a6704a27ca5"], ["created_at", "2017-04-15 19:14:53.197704"], ["updated_at", "2017-04-15 19:14:53.197704"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "edd91920-22a7-5db9-78bb-11b78e8cdeeb"], ["created_at", "2017-04-15 19:14:53.200220"], ["updated_at", "2017-04-15 19:14:53.200220"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "group", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12456], ["group", "some_group"], ["uuid", "331a2a70-3a0c-353b-1c29-09a4f101ec82"], ["created_at", "2017-04-15 19:14:53.202226"], ["updated_at", "2017-04-15 19:14:53.202226"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 11239], ["created_at", "2017-04-15 19:14:53.204671"], ["updated_at", "2017-04-15 19:14:53.204671"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "rails_workflow_operations" ("title", "status", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Test Operation"], ["status", 3], ["template_id", 11238], ["created_at", "2017-04-15 19:14:53.206999"], ["updated_at", "2017-04-15 19:14:53.206999"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$04$3MxJe2QYryggIQ4oRs7iuO5wUcHL08odhhwzCk8niLngQ5KZQPE4S"], ["role", "admin"], ["created_at", "2017-04-15 19:14:53.212384"], ["updated_at", "2017-04-15 19:14:53.212384"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.6ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'admin')  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'fake@email.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "role", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "fake@email.com"], ["encrypted_password", "$2a$04$IgfLGcGsUGsvpe5S9pyR0e7c4c47teNjKNsJps1R.yh2llW6HJ5mS"], ["role", "fake"], ["created_at", "2017-04-15 19:14:53.218841"], ["updated_at", "2017-04-15 19:14:53.218841"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.5ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" INNER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."id" = "rails_workflow_operations"."template_id" WHERE "rails_workflow_operations"."status" = 3 AND "rails_workflow_operations"."assignment_id" IS NULL AND (rails_workflow_operation_templates.role = 'fake') SQL (0.3ms) UPDATE "rails_workflow_operations" SET "is_active" = 'f' WHERE "rails_workflow_operations"."assignment_id" = $1 AND "rails_workflow_operations"."assignment_type" = $2 [["assignment_id", 1671], ["assignment_type", "User"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operations" SET "assignment_id" = $1, "assignment_type" = $2, "is_active" = $3, "assigned_at" = $4, "updated_at" = $5 WHERE "rails_workflow_operations"."id" = $6 [["assignment_id", 1671], ["assignment_type", "User"], ["is_active", "t"], ["assigned_at", "2017-04-15 19:14:53.221934"], ["updated_at", "2017-04-15 19:14:53.223335"], ["id", 6433]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::Operation Load (0.3ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."assignment_id" IS NULL  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test\"}"], ["created_at", "2017-04-15 19:14:53.227895"], ["updated_at", "2017-04-15 19:14:53.227895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:53.229527"], ["updated_at", "2017-04-15 19:14:53.229527"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Operation"], ["parent_id", 6434], ["updated_at", "2017-04-15 19:14:53.230742"], ["id", 9545]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 3], ["updated_at", "2017-04-15 19:14:53.232745"], ["id", 6434]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("title", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Test Operation"], ["status", 0], ["created_at", "2017-04-15 19:14:53.236295"], ["updated_at", "2017-04-15 19:14:53.236295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "rails_workflow_contexts" ("body", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["body", "{\"msg\":\"Test message\"}"], ["created_at", "2017-04-15 19:14:53.238427"], ["updated_at", "2017-04-15 19:14:53.238427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("status", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["status", 0], ["created_at", "2017-04-15 19:14:53.240656"], ["updated_at", "2017-04-15 19:14:53.240656"]] SQL (0.2ms) UPDATE "rails_workflow_contexts" SET "parent_type" = $1, "parent_id" = $2, "updated_at" = $3 WHERE "rails_workflow_contexts"."id" = $4 [["parent_type", "RailsWorkflow::Process"], ["parent_id", 5666], ["updated_at", "2017-04-15 19:14:53.242200"], ["id", 9546]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "child_process_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["child_process_id", 5666], ["updated_at", "2017-04-15 19:14:53.244160"], ["id", 6435]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:53.245774"], ["id", 6435]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3] Performing RailsWorkflow::OperationExecutionJob from Sidekiq(default) with arguments: 6435 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6435]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3] RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5666]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3] SQL (0.2ms) UPDATE "rails_workflow_processes" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_processes"."id" = $3 [["status", 1], ["updated_at", "2017-04-15 19:14:53.249477"], ["id", 5666]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."process_id" = $1 AND "rails_workflow_operations"."status" = $2 [["process_id", 5666], ["status", 0]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3] RailsWorkflow::Context Load (0.1ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 6435], ["parent_type", "RailsWorkflow::Operation"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3] SQL (0.5ms) INSERT INTO "rails_workflow_errors" ("parent_id", "parent_type", "message", "stack_trace", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["parent_id", 6435], ["parent_type", "RailsWorkflow::Operation"], ["message", "undefined method `save' for nil:NilClass"], ["stack_trace", "/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:60:in `execute_in_transaction'
\n/home/maxim/rails_workflow/app/jobs/rails_workflow/operation_execution_job.rb:12:in `perform'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:32:in `block in perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/i18n-0.7.0/lib/i18n.rb:257:in `with_locale'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/translation.rb:7:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:23:in `block (4 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `block in instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `instrument'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:22:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `block in tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:26:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in `tagged'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:43:in `tag_logger'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:19:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in `block in simple'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_perform_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:31:in `perform_now'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activejob-4.2.5.1/lib/active_job/execution.rb:16:in `perform_now'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:28:in `starting'
\n/home/maxim/rails_workflow/app/concerns/rails_workflow/operations/default_runner.rb:18:in `start'
\n/home/maxim/rails_workflow/spec/models/rails_workflow/operation_spec.rb:179:in `block (3 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:236:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `block in with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `block in with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:618:in `block in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-rails-3.4.2/lib/rspec/rails/adapters.rb:127:in `block (2 levels) in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:425:in `instance_exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:389:in `execute_with'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:620:in `block (2 levels) in run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:320:in `call'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:621:in `run_around_example_hooks_for'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/hooks.rb:478:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:435:in `with_around_example_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:478:in `with_around_and_singleton_context_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example.rb:233:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:581:in `block in run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:577:in `run_examples'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:543:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `block in run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/example_group.rb:544:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (3 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `map'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:119:in `block (2 levels) in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/configuration.rb:1680:in `with_suite_hooks'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:118:in `block in run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/reporter.rb:77:in `report'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:117:in `run_specs'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:93:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:78:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/lib/rspec/core/runner.rb:45:in `invoke'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.4.2/exe/rspec:4:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/rspec:23:in `'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:74:in `kernel_load'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli/exec.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:335:in `exec'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:20:in `dispatch'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/cli.rb:11:in `start'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:32:in `block in '
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
\n/home/maxim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.14.2/exe/bundle:24:in `'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `load'
\n/home/maxim/.rbenv/versions/2.3.1/bin/bundle:23:in `
'"], ["created_at", "2017-04-15 19:14:53.256877"], ["updated_at", "2017-04-15 19:14:53.256877"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3] SQL (0.3ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 145], ["parent_type", "RailsWorkflow::Error"], ["body", "{\"parent\":{\"id\":6435,\"class\":\"RailsWorkflow::Operation\"},\"target\":{\"id\":6435,\"class\":\"RailsWorkflow::Operation\"},\"method\":\"execute_in_transaction\"}"], ["created_at", "2017-04-15 19:14:53.260868"], ["updated_at", "2017-04-15 19:14:53.260868"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 145], ["parent_type", "RailsWorkflow::Error"]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6435]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6435]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3] RailsWorkflow::Operation Load (0.2ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."id" = $1 LIMIT 1 [["id", 6435]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3] SQL (0.3ms) UPDATE "rails_workflow_operations" SET "status" = $1, "updated_at" = $2 WHERE "rails_workflow_operations"."id" = $3 [["status", 4], ["updated_at", "2017-04-15 19:14:53.266682"], ["id", 6435]] [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [RailsWorkflow::OperationExecutionJob] [35185c90-9f6e-4c16-a745-0482a6ac1ff3] Performed RailsWorkflow::OperationExecutionJob from Sidekiq(default) in 21.36ms RailsWorkflow::Process Load (0.2ms) SELECT "rails_workflow_processes".* FROM "rails_workflow_processes" WHERE "rails_workflow_processes"."id" = $1 LIMIT 1 [["id", 5666]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 2], ["completed_at", "2017-04-15 19:14:53.271540"], ["created_at", "2017-04-15 19:14:53.272086"], ["updated_at", "2017-04-15 19:14:53.272086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 6], ["completed_at", "2017-04-15 19:14:53.275754"], ["created_at", "2017-04-15 19:14:53.276448"], ["updated_at", "2017-04-15 19:14:53.276448"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operations" ("status", "completed_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["status", 5], ["completed_at", "2017-04-15 19:14:53.280529"], ["created_at", "2017-04-15 19:14:53.281316"], ["updated_at", "2017-04-15 19:14:53.281316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "2f1a5507-a3a5-aa95-e385-27625a355b16"], ["created_at", "2017-04-15 19:14:53.285804"], ["updated_at", "2017-04-15 19:14:53.285804"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("type", "title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "RailsWorkflow::CustomOperationTemplate"], ["title", "First Test project"], ["process_template_id", 12457], ["uuid", "4ec2a0c8-7a8b-7180-df5d-b531291513cd"], ["created_at", "2017-04-15 19:14:53.287762"], ["updated_at", "2017-04-15 19:14:53.287762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."type" IN ('RailsWorkflow::CustomOperationTemplate')  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::TestProcess"], ["uuid", "86a5b724-8022-8839-1989-5ff2ff2c6953"], ["created_at", "2017-04-15 19:14:53.292382"], ["updated_at", "2017-04-15 19:14:53.292382"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_processes" ("type", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "RailsWorkflow::TestProcess"], ["template_id", 12458], ["created_at", "2017-04-15 19:14:53.299007"], ["updated_at", "2017-04-15 19:14:53.299007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_processes" SET "title" = $1, "status" = $2, "updated_at" = $3 WHERE "rails_workflow_processes"."id" = $4 [["title", "Process Template"], ["status", 0], ["updated_at", "2017-04-15 19:14:53.301330"], ["id", 5667]] SQL (0.2ms) INSERT INTO "rails_workflow_contexts" ("parent_id", "parent_type", "body", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["parent_id", 5667], ["parent_type", "RailsWorkflow::Process"], ["body", "{}"], ["created_at", "2017-04-15 19:14:53.303312"], ["updated_at", "2017-04-15 19:14:53.303312"]] RailsWorkflow::Context Load (0.2ms) SELECT "rails_workflow_contexts".* FROM "rails_workflow_contexts" WHERE "rails_workflow_contexts"."parent_id" = $1 AND "rails_workflow_contexts"."parent_type" = $2 LIMIT 1 [["parent_id", 5667], ["parent_type", "RailsWorkflow::Process"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12458]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "process_class", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Process Template"], ["process_class", "RailsWorkflow::Process"], ["uuid", "fc8db74c-6624-bb5a-6096-20b525121ca9"], ["created_at", "2017-04-15 19:14:53.308363"], ["updated_at", "2017-04-15 19:14:53.308363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12459], ["uuid", "2e3be3f0-0a90-0d68-10a6-47cc1ed6a7bf"], ["created_at", "2017-04-15 19:14:53.310691"], ["updated_at", "2017-04-15 19:14:53.310691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "dependencies", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12459], ["dependencies", "[{\"id\":11241,\"statuses\":[2]}]"], ["uuid", "209a9cc3-85e3-d2fa-3c9c-99c52b9a565a"], ["created_at", "2017-04-15 19:14:53.312965"], ["updated_at", "2017-04-15 19:14:53.312965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) SELECT DISTINCT "rails_workflow_process_templates"."id" FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12459]] SQL (0.4ms) SELECT "rails_workflow_process_templates"."id" AS t0_r0, "rails_workflow_process_templates"."title" AS t0_r1, "rails_workflow_process_templates"."source" AS t0_r2, "rails_workflow_process_templates"."manager_class" AS t0_r3, "rails_workflow_process_templates"."process_class" AS t0_r4, "rails_workflow_process_templates"."created_at" AS t0_r5, "rails_workflow_process_templates"."updated_at" AS t0_r6, "rails_workflow_process_templates"."type" AS t0_r7, "rails_workflow_process_templates"."partial_name" AS t0_r8, "rails_workflow_process_templates"."version" AS t0_r9, "rails_workflow_process_templates"."tag" AS t0_r10, "rails_workflow_process_templates"."uuid" AS t0_r11, "rails_workflow_operation_templates"."id" AS t1_r0, "rails_workflow_operation_templates"."title" AS t1_r1, "rails_workflow_operation_templates"."source" AS t1_r2, "rails_workflow_operation_templates"."dependencies" AS t1_r3, "rails_workflow_operation_templates"."operation_class" AS t1_r4, "rails_workflow_operation_templates"."process_template_id" AS t1_r5, "rails_workflow_operation_templates"."created_at" AS t1_r6, "rails_workflow_operation_templates"."updated_at" AS t1_r7, "rails_workflow_operation_templates"."async" AS t1_r8, "rails_workflow_operation_templates"."child_process_id" AS t1_r9, "rails_workflow_operation_templates"."assignment_id" AS t1_r10, "rails_workflow_operation_templates"."assignment_type" AS t1_r11, "rails_workflow_operation_templates"."kind" AS t1_r12, "rails_workflow_operation_templates"."role" AS t1_r13, "rails_workflow_operation_templates"."group" AS t1_r14, "rails_workflow_operation_templates"."instruction" AS t1_r15, "rails_workflow_operation_templates"."is_background" AS t1_r16, "rails_workflow_operation_templates"."type" AS t1_r17, "rails_workflow_operation_templates"."partial_name" AS t1_r18, "rails_workflow_operation_templates"."version" AS t1_r19, "rails_workflow_operation_templates"."tag" AS t1_r20, "rails_workflow_operation_templates"."uuid" AS t1_r21 FROM "rails_workflow_process_templates" LEFT OUTER JOIN "rails_workflow_operation_templates" ON "rails_workflow_operation_templates"."process_template_id" = "rails_workflow_process_templates"."id" WHERE "rails_workflow_process_templates"."id" = $1 AND "rails_workflow_process_templates"."id" IN (12459) [["id", 12459]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "d967c8d0-6e30-606e-47d0-bd2a8e09914b"], ["created_at", "2017-04-15 19:14:53.321476"], ["updated_at", "2017-04-15 19:14:53.321476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "b08d2b52-fd26-84b6-eec8-d7a9741d3025"], ["created_at", "2017-04-15 19:14:53.323482"], ["updated_at", "2017-04-15 19:14:53.323482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "169d4990-dc58-1287-d1a3-1071ee0c5f4d"], ["created_at", "2017-04-15 19:14:53.325405"], ["updated_at", "2017-04-15 19:14:53.325405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "child_process_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12461], ["child_process_id", 12462], ["uuid", "d015624b-172a-0e8e-e504-024f28019224"], ["created_at", "2017-04-15 19:14:53.327270"], ["updated_at", "2017-04-15 19:14:53.327270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12460]] SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 12460], ["updated_at", "2017-04-15 19:14:53.331174"], ["id", 11243]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12460]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12462]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "275e974f-1986-f6b4-2a43-cd6d60f57442"], ["created_at", "2017-04-15 19:14:53.338754"], ["updated_at", "2017-04-15 19:14:53.338754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("title", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "Process Template"], ["uuid", "13d9141c-41ef-a139-9c68-ae1097dfd324"], ["created_at", "2017-04-15 19:14:53.340875"], ["updated_at", "2017-04-15 19:14:53.340875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "kind", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "Operation Template"], ["kind", "default"], ["process_template_id", 12464], ["uuid", "5c18a7b1-3eb3-bff5-2b66-6b41941806a6"], ["created_at", "2017-04-15 19:14:53.342574"], ["updated_at", "2017-04-15 19:14:53.342574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12463]] SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "process_template_id" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["process_template_id", 12463], ["updated_at", "2017-04-15 19:14:53.345292"], ["id", 11244]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12463]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:53.352263"], ["updated_at", "2017-04-15 19:14:53.352263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:53.353955"], ["id", 12465]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12465]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12465], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12465], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:53.358030"], ["updated_at", "2017-04-15 19:14:53.358030"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.360563"], ["id", 11245]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12465], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12465], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:53.364482"], ["updated_at", "2017-04-15 19:14:53.364482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.366546"], ["id", 11246]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12465], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12465], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:53.370072"], ["updated_at", "2017-04-15 19:14:53.370072"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.372301"], ["id", 11247]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11245}]"], ["updated_at", "2017-04-15 19:14:53.376686"], ["id", 11246]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11246}]"], ["updated_at", "2017-04-15 19:14:53.379784"], ["id", 11247]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:53.385297"], ["updated_at", "2017-04-15 19:14:53.385297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:53.386864"], ["id", 12466]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12466]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12466], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12466], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:53.391492"], ["updated_at", "2017-04-15 19:14:53.391492"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.393959"], ["id", 11248]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12466], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12466], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:53.397416"], ["updated_at", "2017-04-15 19:14:53.397416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.399498"], ["id", 11249]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12466], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12466], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:53.402747"], ["updated_at", "2017-04-15 19:14:53.402747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.404737"], ["id", 11250]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11248}]"], ["updated_at", "2017-04-15 19:14:53.408136"], ["id", 11249]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11249}]"], ["updated_at", "2017-04-15 19:14:53.410596"], ["id", 11250]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Some new name"], ["updated_at", "2017-04-15 19:14:53.413397"], ["id", 12466]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_process_templates"."id" = $3 [["title", "Test Process"], ["updated_at", "2017-04-15 19:14:53.416515"], ["id", 12466]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12466]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12466], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12466], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:14:53.423690"], ["id", 11249]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12466], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:14:53.427218"], ["id", 11250]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11248}]"], ["updated_at", "2017-04-15 19:14:53.430702"], ["id", 11249]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11249}]"], ["updated_at", "2017-04-15 19:14:53.433437"], ["id", 11250]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:53.438519"], ["updated_at", "2017-04-15 19:14:53.438519"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:53.440550"], ["id", 12467]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12467]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12467], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12467], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:53.444480"], ["updated_at", "2017-04-15 19:14:53.444480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.446559"], ["id", 11251]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12467], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12467], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:53.450052"], ["updated_at", "2017-04-15 19:14:53.450052"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.452304"], ["id", 11252]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12467], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12467], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:53.455692"], ["updated_at", "2017-04-15 19:14:53.455692"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.457778"], ["id", 11253]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11251}]"], ["updated_at", "2017-04-15 19:14:53.461143"], ["id", 11252]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11252}]"], ["updated_at", "2017-04-15 19:14:53.463716"], ["id", 11253]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 12467]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:53.469965"], ["updated_at", "2017-04-15 19:14:53.469965"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:53.471917"], ["id", 12468]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12468]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12468], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12468], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:53.475996"], ["updated_at", "2017-04-15 19:14:53.475996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.478029"], ["id", 11254]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12468], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12468], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:53.481344"], ["updated_at", "2017-04-15 19:14:53.481344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.483427"], ["id", 11255]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12468], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12468], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:53.486603"], ["updated_at", "2017-04-15 19:14:53.486603"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.488740"], ["id", 11256]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11254}]"], ["updated_at", "2017-04-15 19:14:53.492005"], ["id", 11255]]  (0.3ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11255}]"], ["updated_at", "2017-04-15 19:14:53.494936"], ["id", 11256]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]] RailsWorkflow::OperationTemplate Load (0.4ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12468]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Some new operation name"], ["updated_at", "2017-04-15 19:14:53.499537"], ["id", 11254]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12468]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12468], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["title", "Default Operation 2"], ["updated_at", "2017-04-15 19:14:53.505835"], ["id", 11254]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12468], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:14:53.509061"], ["id", 11255]]  (0.2ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12468], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:14:53.512483"], ["id", 11256]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11254}]"], ["updated_at", "2017-04-15 19:14:53.515640"], ["id", 11255]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11255}]"], ["updated_at", "2017-04-15 19:14:53.517958"], ["id", 11256]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11254]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:53.522667"], ["updated_at", "2017-04-15 19:14:53.522667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:53.524418"], ["id", 12469]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12469]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12469], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12469], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:53.528909"], ["updated_at", "2017-04-15 19:14:53.528909"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.531143"], ["id", 11257]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12469], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12469], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:53.534253"], ["updated_at", "2017-04-15 19:14:53.534253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.536307"], ["id", 11258]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12469], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12469], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:53.539438"], ["updated_at", "2017-04-15 19:14:53.539438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.541427"], ["id", 11259]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11257}]"], ["updated_at", "2017-04-15 19:14:53.544640"], ["id", 11258]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11258}]"], ["updated_at", "2017-04-15 19:14:53.546893"], ["id", 11259]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("title", "process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["title", "Some new operation"], ["process_template_id", 12469], ["uuid", "586e4ead-957b-40b2-a186-57f21d944c10"], ["created_at", "2017-04-15 19:14:53.549928"], ["updated_at", "2017-04-15 19:14:53.549928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 12469]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12469]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12469], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12469], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["updated_at", "2017-04-15 19:14:53.558427"], ["id", 11258]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12469], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["updated_at", "2017-04-15 19:14:53.561605"], ["id", 11259]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = 11260  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11257}]"], ["updated_at", "2017-04-15 19:14:53.565266"], ["id", 11258]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11258}]"], ["updated_at", "2017-04-15 19:14:53.567605"], ["id", 11259]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.2ms) SELECT COUNT(*) FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 [["process_template_id", 12469]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "a708ce2c-cdff-b059-be0e-6bd16d552169"], ["created_at", "2017-04-15 19:14:53.573082"], ["updated_at", "2017-04-15 19:14:53.573082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Process"], ["manager_class", ""], ["process_class", ""], ["type", ""], ["updated_at", "2017-04-15 19:14:53.574783"], ["id", 12470]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12470]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12470], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12470], ["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"], ["created_at", "2017-04-15 19:14:53.578375"], ["updated_at", "2017-04-15 19:14:53.578375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Default Operation 2"], ["dependencies", "[]"], ["operation_class", ""], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.580314"], ["id", 11261]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12470], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12470], ["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"], ["created_at", "2017-04-15 19:14:53.583789"], ["updated_at", "2017-04-15 19:14:53.583789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "group" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "TEST 2"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"0347a15a-9298-c4a2-3b5e-b521b614e9e3\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_group"], ["group", "stock_team"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.585904"], ["id", 11262]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12470], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12470], ["uuid", "9ee9a27e-0790-0d45-9534-a6469e5b9ce9"], ["created_at", "2017-04-15 19:14:53.589080"], ["updated_at", "2017-04-15 19:14:53.589080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "role" = $6, "instruction" = $7, "type" = $8, "partial_name" = $9, "updated_at" = $10 WHERE "rails_workflow_operation_templates"."id" = $11 [["title", "Admin Operation"], ["dependencies", "[{\"statuses\":[2,3],\"uuid\":\"893ecf5d-b6e5-e0bf-7d07-adcadaafcb75\"}]"], ["operation_class", ""], ["async", "f"], ["kind", "user_role"], ["role", "admin"], ["instruction", ""], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.591082"], ["id", 11263]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "0347a15a-9298-c4a2-3b5e-b521b614e9e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11261}]"], ["updated_at", "2017-04-15 19:14:53.594225"], ["id", 11262]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2,3],\"id\":11262}]"], ["updated_at", "2017-04-15 19:14:53.596506"], ["id", 11263]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "893ecf5d-b6e5-e0bf-7d07-adcadaafcb75"]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."id" = $1 LIMIT 1 [["id", 11261]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:14:53.602494"], ["updated_at", "2017-04-15 19:14:53.602494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 19:14:53.604553"], ["updated_at", "2017-04-15 19:14:53.604553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:14:53.605939"], ["id", 12472]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12472]] RailsWorkflow::OperationTemplate Load (0.1ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12472], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12472], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 19:14:53.609105"], ["updated_at", "2017-04-15 19:14:53.609105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.610873"], ["id", 11264]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:14:53.613068"], ["id", 12471]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12471]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12471], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12471], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:14:53.616461"], ["updated_at", "2017-04-15 19:14:53.616461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.618338"], ["id", 11265]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12471], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12471], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:14:53.621221"], ["updated_at", "2017-04-15 19:14:53.621221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 12472], ["updated_at", "2017-04-15 19:14:53.623898"], ["id", 11266]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":11265}]"], ["updated_at", "2017-04-15 19:14:53.627327"], ["id", 11266]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:14:53.632975"], ["updated_at", "2017-04-15 19:14:53.632975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"], ["created_at", "2017-04-15 19:14:53.635166"], ["updated_at", "2017-04-15 19:14:53.635166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Child Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:14:53.636718"], ["id", 12474]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12474]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12474], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12474], ["uuid", "f32c4a12-6bc8-0413-a69a-41fa21cb1d44"], ["created_at", "2017-04-15 19:14:53.640124"], ["updated_at", "2017-04-15 19:14:53.640124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Test Child Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.642064"], ["id", 11267]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:14:53.644513"], ["id", 12473]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12473]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12473], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12473], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:14:53.648001"], ["updated_at", "2017-04-15 19:14:53.648001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.649934"], ["id", 11268]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12473], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12473], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:14:53.652813"], ["updated_at", "2017-04-15 19:14:53.652813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "child_process_id" = $8, "updated_at" = $9 WHERE "rails_workflow_operation_templates"."id" = $10 [["title", "Start Child Process"], ["dependencies", "[{\"statuses\":[2],\"uuid\":\"a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d\"}]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["child_process_id", 12474], ["updated_at", "2017-04-15 19:14:53.655534"], ["id", 11269]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."uuid" = $1 LIMIT 1 [["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "rails_workflow_operation_templates" SET "dependencies" = $1, "updated_at" = $2 WHERE "rails_workflow_operation_templates"."id" = $3 [["dependencies", "[{\"statuses\":[2],\"id\":11268}]"], ["updated_at", "2017-04-15 19:14:53.658776"], ["id", 11269]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Parent Process"]] RailsWorkflow::ProcessTemplate Load (0.3ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."title" = $1 LIMIT 1 [["title", "Test Child Process"]] RailsWorkflow::OperationTemplate Load (0.3ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12473]] RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."id" = $1 LIMIT 1 [["id", 12474]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN RailsWorkflow::ProcessTemplate Load (0.2ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 ORDER BY "rails_workflow_process_templates"."id" ASC LIMIT 1 [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_process_templates" ("uuid", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["uuid", "3fab4b65-4a76-b9e7-fcbe-37fd1979a0ac"], ["created_at", "2017-04-15 19:14:53.667788"], ["updated_at", "2017-04-15 19:14:53.667788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_process_templates" SET "title" = $1, "manager_class" = $2, "process_class" = $3, "type" = $4, "updated_at" = $5 WHERE "rails_workflow_process_templates"."id" = $6 [["title", "Test Parent Process"], ["manager_class", "RailsWorkflow::ProcessManager"], ["process_class", "RailsWorkflow::Process"], ["type", ""], ["updated_at", "2017-04-15 19:14:53.669446"], ["id", 12475]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "rails_workflow_operation_templates"."id" FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 ORDER BY "rails_workflow_operation_templates"."id" ASC [["process_template_id", 12475]] RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12475], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12475], ["uuid", "a6a86e9a-bd3f-e5f5-b5bb-c8e1eeac427d"], ["created_at", "2017-04-15 19:14:53.672982"], ["updated_at", "2017-04-15 19:14:53.672982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "rails_workflow_operation_templates" SET "title" = $1, "dependencies" = $2, "operation_class" = $3, "async" = $4, "kind" = $5, "type" = $6, "partial_name" = $7, "updated_at" = $8 WHERE "rails_workflow_operation_templates"."id" = $9 [["title", "Start Operation"], ["dependencies", "[]"], ["operation_class", "RailsWorkflow::Operation"], ["async", "f"], ["kind", "default"], ["type", ""], ["partial_name", ""], ["updated_at", "2017-04-15 19:14:53.675011"], ["id", 11270]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::OperationTemplate Load (0.2ms) SELECT "rails_workflow_operation_templates".* FROM "rails_workflow_operation_templates" WHERE "rails_workflow_operation_templates"."process_template_id" = $1 AND "rails_workflow_operation_templates"."uuid" = $2 ORDER BY "rails_workflow_operation_templates"."id" ASC LIMIT 1 [["process_template_id", 12475], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "rails_workflow_operation_templates" ("process_template_id", "uuid", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["process_template_id", 12475], ["uuid", "06123b30-7bc6-ae77-7841-34099d076ec2"], ["created_at", "2017-04-15 19:14:53.677923"], ["updated_at", "2017-04-15 19:14:53.677923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 RailsWorkflow::ProcessTemplate Load (0.1ms) SELECT "rails_workflow_process_templates".* FROM "rails_workflow_process_templates" WHERE "rails_workflow_process_templates"."uuid" = $1 LIMIT 1 [["uuid", "632b761a-8a0c-cad2-fff4-39244169cf95"]]  (0.1ms) ROLLBACK