Ejemplo n.º 1
0
        /// <summary>
        /// Operations to be performed during the upgrade process.
        /// </summary>
        public override void Up()
        {
            Sql(@"UPDATE [BlockType] set [Path] = '~/Blocks/Crm/Disc.ascx' where [Guid] = 'A161D12D-FEA7-422F-B00E-A689629680E4'");

            RockMigrationHelper.UpdateWorkflowTypeAttribute("885CBA61-44EA-4B4A-B6E1-289041B6A195", "C28C7BF3-A552-4D77-9408-DEDCF760CED0", "Custom Message", "CustomMessage", "A custom message you would like to include in the request.  Otherwise the default will be used.", 1, @"We're each a unique creation. We'd love to learn more about you through a simple and quick online personality profile. The results of the assessment will help us tailor our ministry to you and can also be used for building healthier teams and groups.

The assessment takes less than ten minutes and will go a long way toward helping us get to know you better. Thanks in advance!", "840E6A84-9F83-4482-92D1-6F635F062251");  // DISC Request:Custom Message

            Sql(@"UPDATE [BlockType] set [Path] = '~/Blocks/Crm/Disc.ascx' where [Guid] = 'A161D12D-FEA7-422F-B00E-A689629680E4'");

            RockMigrationHelper.UpdateWorkflowActionForm(@"Hi &#123;&#123; Person.NickName &#125;&#125;!

{{ Workflow.WarningMessage }}", @"", "Send^fdc397cd-8b4a-436e-bea1-bce2e6717c03^^Your information has been submitted successfully.|", "", true, "", "4AFAB342-D584-4B79-B038-A99C0C469D74"); // DISC Request:Launch From Person Profile:Custom Message

            RockMigrationHelper.AddActionTypeAttributeValue("666FC137-BC95-49BE-A976-0BFF2417F44C", "4D245B9E-6B03-46E7-8482-A51FBA190E4D", @"{{ GlobalAttribute.EmailStyles }}
{{ GlobalAttribute.EmailHeader }}
<p>Hi {{ Person.NickName }}!</p>

<p>{{ Workflow.CustomMessage | NewlineToBr }}</p>

<p><a href=""{{ GlobalAttribute.PublicApplicationRoot }}DISC/{{ Person.UrlEncodedKey }}"">Take Personality Assessment</a></p>

<p><a href=""{{ GlobalAttribute.PublicApplicationRoot }}Unsubscribe/{{ Person.UrlEncodedKey }}"">I&#39;m no longer involved with {{ GlobalAttribute.OrganizationName }}. Please remove me from all future communications.</a></p>

<p>- {{ Workflow.Sender }}</p>

{{ GlobalAttribute.EmailFooter }}");                                                                                                                                                         // DISC Request:Launch From Person Profile:Send Email Action:Body
        }
Ejemplo n.º 2
0
 /// <summary>
 /// The commands to run to migrate plugin to the specific version
 /// </summary>
 public override void Up()
 {
     RockMigrationHelper.UpdateEntityType("Rock.Model.Workflow", "3540E9A7-FE30-43A9-8B0A-A372B63DFC93", true, true);
     RockMigrationHelper.UpdateEntityType("Rock.Model.WorkflowActivity", "2CB52ED0-CB06-4D62-9E2C-73B60AFA4C9F", true, true);
     RockMigrationHelper.UpdateEntityType("Rock.Model.WorkflowActionType", "23E3273A-B137-48A3-9AFF-C8DC832DDCA6", true, true);
     RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.SendSms", "F22FA171-B5E7-497F-9AE6-F7B98A377D0E", false, true);
     RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.SetAttributeFromEntity", "972F19B9-598B-474B-97A4-50E56E7B59D2", false, true);
     RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.SetAttributeToCurrentPerson", "24B7D5E6-C30F-48F4-9D7E-AF45A342CF3A", false, true);
     RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.UserEntryForm", "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", false, true);
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("24B7D5E6-C30F-48F4-9D7E-AF45A342CF3A", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "DE9CB292-4785-4EA3-976D-3826F91E9E98");                                                                                                                                                                                                                                                                                                                                                                                                // Rock.Workflow.Action.SetAttributeToCurrentPerson:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("24B7D5E6-C30F-48F4-9D7E-AF45A342CF3A", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Person Attribute", "PersonAttribute", "The attribute to set to the currently logged in person.", 0, @"", "BBED8A83-8BB2-4D35-BAFB-05F67DCAD112");                                                                                                                                                                                                                                                                                                                                                  // Rock.Workflow.Action.SetAttributeToCurrentPerson:Person Attribute
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("24B7D5E6-C30F-48F4-9D7E-AF45A342CF3A", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "89E9BCED-91AB-47B0-AD52-D78B0B7CB9E8");                                                                                                                                                                                                                                                                                                                                                                         // Rock.Workflow.Action.SetAttributeToCurrentPerson:Order
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("486DC4FA-FCBC-425F-90B0-E606DA8A9F68", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE");                                                                                                                                                                                                                                                                                                                                                                                                // Rock.Workflow.Action.UserEntryForm:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("486DC4FA-FCBC-425F-90B0-E606DA8A9F68", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "C178113D-7C86-4229-8424-C6D0CF4A7E23");                                                                                                                                                                                                                                                                                                                                                                         // Rock.Workflow.Action.UserEntryForm:Order
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("972F19B9-598B-474B-97A4-50E56E7B59D2", "1D0D3794-C210-48A8-8C68-3FBEC08A6BA5", "Lava Template", "LavaTemplate", "By default this action will set the attribute value equal to the guid (or id) of the entity that was passed in for processing. If you include a lava template here, the action will instead set the attribute value to the output of this template. The mergefield to use for the entity is 'Entity.' For example, use {{ Entity.Name }} if the entity has a Name property. <span class='tip tip-lava'></span>", 4, @"", "44836A7C-5007-4213-9AE7-E787225659C3"); // Rock.Workflow.Action.SetAttributeFromEntity:Lava Template
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("972F19B9-598B-474B-97A4-50E56E7B59D2", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "9392E3D7-A28B-4CD8-8B03-5E147B102EF1");                                                                                                                                                                                                                                                                                                                                                                                                // Rock.Workflow.Action.SetAttributeFromEntity:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("972F19B9-598B-474B-97A4-50E56E7B59D2", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Entity Is Required", "EntityIsRequired", "Should an error be returned if the entity is missing or not a valid entity type?", 2, @"True", "05B2AC7A-6C94-41C0-BF92-EE3DEF7895B1");                                                                                                                                                                                                                                                                                                                  // Rock.Workflow.Action.SetAttributeFromEntity:Entity Is Required
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("972F19B9-598B-474B-97A4-50E56E7B59D2", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Use Id instead of Guid", "UseId", "Most entity attribute field types expect the Guid of the entity (which is used by default). Select this option if the entity's Id should be used instead (should be rare).", 3, @"False", "1246C53A-FD92-4E08-ABDE-9A6C37E70C7B");                                                                                                                                                                                                                              // Rock.Workflow.Action.SetAttributeFromEntity:Use Id instead of Guid
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("972F19B9-598B-474B-97A4-50E56E7B59D2", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Attribute", "Attribute", "The attribute to set the value of.", 1, @"", "61E6E1BC-E657-4F00-B2E9-769AAA25B9F7");                                                                                                                                                                                                                                                                                                                                                                                    // Rock.Workflow.Action.SetAttributeFromEntity:Attribute
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("972F19B9-598B-474B-97A4-50E56E7B59D2", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "AD4EFAC4-E687-43DF-832F-0DC3856ABABB");                                                                                                                                                                                                                                                                                                                                                                         // Rock.Workflow.Action.SetAttributeFromEntity:Order
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("F22FA171-B5E7-497F-9AE6-F7B98A377D0E", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "9A4A3446-56D0-44AE-BFC7-22006547F22E");                                                                                                                                                                                                                                                                                                                                                                                                // Rock.Workflow.Action.SendSms:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("F22FA171-B5E7-497F-9AE6-F7B98A377D0E", "3B1D93D7-9414-48F9-80E5-6A3FC8F94C20", "Message|Attribute Value", "Message", "The message or an attribute that contains the message that should be sent. <span class='tip tip-lava'></span>", 2, @"", "42E9674B-7413-41C4-A3F7-5E8265E83EAE");                                                                                                                                                                                                                                                                                             // Rock.Workflow.Action.SendSms:Message|Attribute Value
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("F22FA171-B5E7-497F-9AE6-F7B98A377D0E", "3B1D93D7-9414-48F9-80E5-6A3FC8F94C20", "Recipient|Attribute Value", "To", "The phone number or an attribute that contains the person or phone number that message should be sent to. <span class='tip tip-lava'></span>", 1, @"", "2A4DB4D3-8FDD-4E25-B28E-0FB0FE8ABFA9");                                                                                                                                                                                                                                                                 // Rock.Workflow.Action.SendSms:Recipient|Attribute Value
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("F22FA171-B5E7-497F-9AE6-F7B98A377D0E", "59D5A94C-94A0-4630-B80A-BB25697D74C7", "From", "From", "The phone number to send message from", 0, @"", "85946B94-55DB-4219-A04E-EAB1D8C9022E");                                                                                                                                                                                                                                                                                                                                                                                           // Rock.Workflow.Action.SendSms:From
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("F22FA171-B5E7-497F-9AE6-F7B98A377D0E", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "05A85E0D-4860-4BFB-ACA9-C7B668B89500");                                                                                                                                                                                                                                                                                                                                                                         // Rock.Workflow.Action.SendSms:Order
     RockMigrationHelper.UpdateCategory("C9F3C4A5-1526-474D-803F-D6C7A45CBBAE", "Messaging", "fa fa-mobile", "", "D1AF4B37-FFFB-4A05-9A7B-7BCB7A866D0D", 0);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     // Messaging
     RockMigrationHelper.UpdateWorkflowType(false, true, "Send A Text Message", "Sends a text message to a user from their profile page.", "D1AF4B37-FFFB-4A05-9A7B-7BCB7A866D0D", "Work", "fa fa-mobile", 0, true, 0, "F3218F81-423F-46EA-B748-ED7AB365CD07");                                                                                                                                                                                                                                                                                                                                                                                  // Send A Text Message
     RockMigrationHelper.UpdateWorkflowTypeAttribute("F3218F81-423F-46EA-B748-ED7AB365CD07", "C28C7BF3-A552-4D77-9408-DEDCF760CED0", "Message", "Message", "The message to send", 2, @"", "D4438B4B-8D7C-49F1-B025-F37BEC10E3D3");                                                                                                                                                                                                                                                                                                                                                                                                               // Send A Text Message:Message
     RockMigrationHelper.UpdateWorkflowTypeAttribute("F3218F81-423F-46EA-B748-ED7AB365CD07", "E4EAB7B2-0B76-429B-AFE4-AD86D7428C70", "Recipient", "recipient", "Sets the recipient of the message", 0, @"", "494280DA-D7BF-4523-9774-20B477062113");                                                                                                                                                                                                                                                                                                                                                                                             // Send A Text Message:Recipient
     RockMigrationHelper.UpdateWorkflowTypeAttribute("F3218F81-423F-46EA-B748-ED7AB365CD07", "E4EAB7B2-0B76-429B-AFE4-AD86D7428C70", "Sender", "Sender", "Sets the sender", 1, @"", "3E27AC12-BE52-4CBA-AABE-F97D58523121");                                                                                                                                                                                                                                                                                                                                                                                                                     // Send A Text Message:Sender
     RockMigrationHelper.AddAttributeQualifier("D4438B4B-8D7C-49F1-B025-F37BEC10E3D3", "allowhtml", @"False", "5DA52708-4152-416D-812D-969BFB1B6FE0");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           // Send A Text Message:Message:allowhtml
     RockMigrationHelper.AddAttributeQualifier("D4438B4B-8D7C-49F1-B025-F37BEC10E3D3", "numberofrows", @"", "643FF567-279A-469C-94C2-ABE76BAFDA74");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             // Send A Text Message:Message:numberofrows
     RockMigrationHelper.UpdateWorkflowActivityType("F3218F81-423F-46EA-B748-ED7AB365CD07", true, "Send The Text", "", false, 0, "9D5C50E2-9D67-4362-B398-7E9E2B488283");                                                                                                                                                                                                                                                                                                                                                                                                                                                                        // Send A Text Message:Send The Text
     RockMigrationHelper.UpdateWorkflowActionForm(@"Enter your message:", @"", "Send^fdc397cd-8b4a-436e-bea1-bce2e6717c03^^Your text has been sent!|", "88C7D1CC-3478-4562-A301-AE7D4D7FFF6D", true, "", "C961B02A-CD18-40F5-B323-DBBA067B4D8A");                                                                                                                                                                                                                                                                                                                                                                                                // Send A Text Message:Send The Text:Enter The Message
     RockMigrationHelper.UpdateWorkflowActionFormAttribute("C961B02A-CD18-40F5-B323-DBBA067B4D8A", "494280DA-D7BF-4523-9774-20B477062113", 0, false, true, false, "78723B66-8B8D-4398-8859-8DA30153E54B");                                                                                                                                                                                                                                                                                                                                                                                                                                       // Send A Text Message:Send The Text:Enter The Message:Recipient
     RockMigrationHelper.UpdateWorkflowActionFormAttribute("C961B02A-CD18-40F5-B323-DBBA067B4D8A", "3E27AC12-BE52-4CBA-AABE-F97D58523121", 1, false, true, false, "5742591D-5D4A-40AC-91A8-A868DBACE1C9");                                                                                                                                                                                                                                                                                                                                                                                                                                       // Send A Text Message:Send The Text:Enter The Message:Sender
     RockMigrationHelper.UpdateWorkflowActionFormAttribute("C961B02A-CD18-40F5-B323-DBBA067B4D8A", "D4438B4B-8D7C-49F1-B025-F37BEC10E3D3", 2, true, false, true, "B72D158D-AA06-4770-BB6C-832A519FC388");                                                                                                                                                                                                                                                                                                                                                                                                                                        // Send A Text Message:Send The Text:Enter The Message:Message
     RockMigrationHelper.UpdateWorkflowActionType("9D5C50E2-9D67-4362-B398-7E9E2B488283", "Sender", 1, "24B7D5E6-C30F-48F4-9D7E-AF45A342CF3A", true, false, "", "", 1, "", "9ACD91CE-9946-4DB4-8985-8BAB84679862");                                                                                                                                                                                                                                                                                                                                                                                                                              // Send A Text Message:Send The Text:Sender
     RockMigrationHelper.UpdateWorkflowActionType("9D5C50E2-9D67-4362-B398-7E9E2B488283", "Sets The Recipient", 0, "972F19B9-598B-474B-97A4-50E56E7B59D2", true, false, "", "", 1, "", "B433A848-90B1-467D-8B16-2080A8331965");                                                                                                                                                                                                                                                                                                                                                                                                                  // Send A Text Message:Send The Text:Sets The Recipient
     RockMigrationHelper.UpdateWorkflowActionType("9D5C50E2-9D67-4362-B398-7E9E2B488283", "Enter The Message", 2, "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", true, false, "C961B02A-CD18-40F5-B323-DBBA067B4D8A", "", 1, "", "3CB6173C-9F2F-4E7F-A998-9B4832C539B0");                                                                                                                                                                                                                                                                                                                                                                               // Send A Text Message:Send The Text:Enter The Message
     RockMigrationHelper.UpdateWorkflowActionType("9D5C50E2-9D67-4362-B398-7E9E2B488283", "Send Message", 3, "F22FA171-B5E7-497F-9AE6-F7B98A377D0E", true, false, "", "", 1, "", "7EAE659C-5A08-4BFF-869C-A12FA5ED021E");                                                                                                                                                                                                                                                                                                                                                                                                                        // Send A Text Message:Send The Text:Send Message
     RockMigrationHelper.AddActionTypeAttributeValue("B433A848-90B1-467D-8B16-2080A8331965", "9392E3D7-A28B-4CD8-8B03-5E147B102EF1", @"False");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  // Send A Text Message:Send The Text:Sets The Recipient:Active
     RockMigrationHelper.AddActionTypeAttributeValue("B433A848-90B1-467D-8B16-2080A8331965", "AD4EFAC4-E687-43DF-832F-0DC3856ABABB", @"");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       // Send A Text Message:Send The Text:Sets The Recipient:Order
     RockMigrationHelper.AddActionTypeAttributeValue("B433A848-90B1-467D-8B16-2080A8331965", "61E6E1BC-E657-4F00-B2E9-769AAA25B9F7", @"494280da-d7bf-4523-9774-20b477062113");                                                                                                                                                                                                                                                                                                                                                                                                                                                                   // Send A Text Message:Send The Text:Sets The Recipient:Attribute
     RockMigrationHelper.AddActionTypeAttributeValue("B433A848-90B1-467D-8B16-2080A8331965", "05B2AC7A-6C94-41C0-BF92-EE3DEF7895B1", @"True");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   // Send A Text Message:Send The Text:Sets The Recipient:Entity Is Required
     RockMigrationHelper.AddActionTypeAttributeValue("B433A848-90B1-467D-8B16-2080A8331965", "1246C53A-FD92-4E08-ABDE-9A6C37E70C7B", @"False");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  // Send A Text Message:Send The Text:Sets The Recipient:Use Id instead of Guid
     RockMigrationHelper.AddActionTypeAttributeValue("B433A848-90B1-467D-8B16-2080A8331965", "44836A7C-5007-4213-9AE7-E787225659C3", @"");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       // Send A Text Message:Send The Text:Sets The Recipient:Lava Template
     RockMigrationHelper.AddActionTypeAttributeValue("9ACD91CE-9946-4DB4-8985-8BAB84679862", "DE9CB292-4785-4EA3-976D-3826F91E9E98", @"False");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  // Send A Text Message:Send The Text:Sender:Active
     RockMigrationHelper.AddActionTypeAttributeValue("9ACD91CE-9946-4DB4-8985-8BAB84679862", "BBED8A83-8BB2-4D35-BAFB-05F67DCAD112", @"3e27ac12-be52-4cba-aabe-f97d58523121");                                                                                                                                                                                                                                                                                                                                                                                                                                                                   // Send A Text Message:Send The Text:Sender:Person Attribute
     RockMigrationHelper.AddActionTypeAttributeValue("9ACD91CE-9946-4DB4-8985-8BAB84679862", "89E9BCED-91AB-47B0-AD52-D78B0B7CB9E8", @"");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       // Send A Text Message:Send The Text:Sender:Order
     RockMigrationHelper.AddActionTypeAttributeValue("3CB6173C-9F2F-4E7F-A998-9B4832C539B0", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE", @"False");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  // Send A Text Message:Send The Text:Enter The Message:Active
     RockMigrationHelper.AddActionTypeAttributeValue("3CB6173C-9F2F-4E7F-A998-9B4832C539B0", "C178113D-7C86-4229-8424-C6D0CF4A7E23", @"");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       // Send A Text Message:Send The Text:Enter The Message:Order
     RockMigrationHelper.AddActionTypeAttributeValue("7EAE659C-5A08-4BFF-869C-A12FA5ED021E", "85946B94-55DB-4219-A04E-EAB1D8C9022E", @"d4a21848-fd21-4af8-952c-a095fdc177cb");                                                                                                                                                                                                                                                                                                                                                                                                                                                                   // Send A Text Message:Send The Text:Send Message:From
     RockMigrationHelper.AddActionTypeAttributeValue("7EAE659C-5A08-4BFF-869C-A12FA5ED021E", "05A85E0D-4860-4BFB-ACA9-C7B668B89500", @"");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       // Send A Text Message:Send The Text:Send Message:Order
     RockMigrationHelper.AddActionTypeAttributeValue("7EAE659C-5A08-4BFF-869C-A12FA5ED021E", "9A4A3446-56D0-44AE-BFC7-22006547F22E", @"False");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  // Send A Text Message:Send The Text:Send Message:Active
     RockMigrationHelper.AddActionTypeAttributeValue("7EAE659C-5A08-4BFF-869C-A12FA5ED021E", "2A4DB4D3-8FDD-4E25-B28E-0FB0FE8ABFA9", @"494280da-d7bf-4523-9774-20b477062113");                                                                                                                                                                                                                                                                                                                                                                                                                                                                   // Send A Text Message:Send The Text:Send Message:Recipient|Attribute Value
     RockMigrationHelper.AddActionTypeAttributeValue("7EAE659C-5A08-4BFF-869C-A12FA5ED021E", "42E9674B-7413-41C4-A3F7-5E8265E83EAE", @"{{ Workflow.Message }} - {{ Workflow.Sender }} @ NewSpring Church");                                                                                                                                                                                                                                                                                                                                                                                                                                      // Send A Text Message:Send The Text:Send Message:Message|Attribute Value
 }
Ejemplo n.º 3
0
 protected void SetupAttributeValues(string actionGuid, string actionName, string entityName)
 {
     RockMigrationHelper.AddActionTypeAttributeValue(actionGuid, syncUrlAttributeGuid, @"");
     RockMigrationHelper.AddActionTypeAttributeValue(actionGuid, tokenValueAttributeGuid, @"");
     RockMigrationHelper.AddActionTypeAttributeValue(actionGuid, tokenNameAttributeGuid, @"apollos");
     RockMigrationHelper.AddActionTypeAttributeValue(actionGuid, orderAttributeGuid, @"");
     RockMigrationHelper.AddActionTypeAttributeValue(actionGuid, activeAttributeGuid, @"False");
     RockMigrationHelper.AddActionTypeAttributeValue(actionGuid, restUserAttributeGuid, restPersonAliasGuid);
     RockMigrationHelper.AddActionTypeAttributeValue(actionGuid, actionAttributeGuid, actionName);
 }
Ejemplo n.º 4
0
        /// <summary>
        /// NA: Add new Check-in Manager Person Profile block setting for Allow Label Reprinting and corresponding "Unattended Check-in" Workflow Setting
        /// </summary>
        private void AddAllowLabelReprintingUp()
        {
            // Add Welcome and Person Block attributes...
            // Attrib for BlockType: Person Profile:Allow Label Reprinting
            RockMigrationHelper.UpdateBlockTypeAttribute("48BBB7A7-1E1D-461E-9B64-E9CAD815E9E1", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Allow Label Reprinting", "AllowLabelReprinting", "", @" Determines if reprinting labels should be allowed.", 5, @"False", "B3383AA4-02A2-47EF-8B78-E25B86AF4C6E");

            // Unattended Workflow Type changes for label-reprint
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("8F348E7B-F9FD-4600-852D-477B13B0B4EE", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Enable Saving Label Data", "EnableSavingLabelData", "Select 'Yes' if the label data should be temporarily saved on the attendance record. Select 'No' to disable saving label data.", 0, @"True", "7A6BAAB1-13A7-4F23-8CBB-0181C3620A08"); // Rock.Workflow.Action.CheckIn.CreateLabels:Enable Saving Label Data

            RockMigrationHelper.AddActionTypeAttributeValue("E53EF6B3-3325-4CBA-A6F1-B1A9EAE62CAA", "7A6BAAB1-13A7-4F23-8CBB-0181C3620A08", @"True");                                                                                                                                                                                                                                           // Unattended Check-in:Save Attendance:Create Labels:Enable Saving Label Data
        }
Ejemplo n.º 5
0
        public override void Up()
        {
            // Update the footer on the Summary User Entry Forms to only show valid visits
            RockMigrationHelper.UpdateWorkflowActionForm(@"<div class=""panel panel-default"">  <div class=""panel-heading"">   <div class=""panel-title"">    <i class=""fa fa-info-circle""></i> Homebound Resident Information   </div>  </div>  <div class=""panel-body"">      <div class=""col-md-6"">          <div class=""form-group static-control"" style=""margin-top: 57px;"">      <label class=""control-label"">Age</label><div class=""control-wrapper"">       <p class=""form-control-static"">{{ Workflow | Attribute:'HomeboundPerson','Age' }}</p>      </div>     </div>", @"    </div> </div>{% capture visitList %} <div class=""panel panel-default"">     <div class=""panel-heading"">         <div class=""panel-title"">             <i class=""fa fa-calendar""></i> Visit History         </div>     </div>     <div class=""panel-body"">         <table class=""table table-striped table-bordered"">             <thead>                 <tr>                     <th>Visitor</th>                     <th>Date</th>                     <th>Visit Notes</th>                 </tr>             </thead>             <tbody>             {% for activity in Workflow.Activities reversed %}                 {% assign visitDateSize = activity | Attribute:'VisitDate' | Size %}{% if activity.ActivityType.Name == 'Visitation Info' and visitDateSize > 0   %}{% assign showVisits = true %}                     <tr>                         <td>{{ activity.Visitor }}</td>                         <td>{{ activity.VisitDate }}</td>                         <td>{{ activity.VisitNote }}</td>                     </tr>                 {% endif %}             {% endfor %}             </tbody>         </table>     </div> </div>{% endcapture %}{% if showVisits == 'true' %}{{visitList}}{% endif %}", "Edit^fdc397cd-8b4a-436e-bea1-bce2e6717c03^F5F74E70-3643-4122-9221-5FAAB0DBF47F^Your information has been submitted successfully.|Add Visit^fdc397cd-8b4a-436e-bea1-bce2e6717c03^61E356D3-2A02-457B-9A43-B67806C67A45^|Close^fdc397cd-8b4a-436e-bea1-bce2e6717c03^9F9FEF18-1259-43D1-B922-C37C17B7D9D8^|", "", true, "", "87FDE195-3C3E-408C-BD42-19A9FE01D224");      // Homebound Resident:Homebound Resident Summary:Entry Form
            RockMigrationHelper.UpdateWorkflowActionForm(@"<div class=""panel panel-default"">  <div class=""panel-heading"">   <div class=""panel-title"">    <i class=""fa fa-info-circle""></i> Resident Information   </div>  </div>  <div class=""panel-body"">      <div class=""col-md-6"">          <div class=""form-group static-control"" style=""margin-top: 57px;"">      <label class=""control-label"">Age</label><div class=""control-wrapper"">       <p class=""form-control-static"">{{ Workflow | Attribute:'PersonToVisit','Age' }}&nbsp;</p>      </div>     </div>", @"    </div> </div>{% capture visitList %} <div class=""panel panel-default"">     <div class=""panel-heading"">         <div class=""panel-title"">             <i class=""fa fa-calendar""></i> Visit History         </div>     </div>     <div class=""panel-body"">         <table class=""table table-striped table-bordered"">             <thead>                 <tr>                     <th>Visitor</th>                     <th>Date</th>                     <th>Visit Notes</th>                 </tr>             </thead>             <tbody>             {% for activity in Workflow.Activities reversed %}                 {% assign visitDateSize = activity | Attribute:'VisitDate' | Size %}{% if activity.ActivityType.Name == 'Visitation Info' and visitDateSize > 0   %}{% assign showVisits = true %}                     <tr>                         <td>{{ activity.Visitor }}</td>                         <td>{{ activity.VisitDate }}</td>                         <td>{{ activity.VisitNote }}</td>                     </tr>                 {% endif %}             {% endfor %}             </tbody>         </table>     </div> </div>{% endcapture %}{% if showVisits == 'true' %}{{visitList}}{% endif %}", "Edit Request^fdc397cd-8b4a-436e-bea1-bce2e6717c03^c5bc1151-7a01-4422-8a67-fc495c2d937c^Your information has been submitted successfully.|Add Visit^fdc397cd-8b4a-436e-bea1-bce2e6717c03^6dcf3214-b88f-4d4e-9251-3cf4a8cbea6b^|Discharge^fdc397cd-8b4a-436e-bea1-bce2e6717c03^8a694803-6cce-4be1-b3c5-5ff23e0e5539^", "", true, "", "4992F4AB-998B-4939-B442-AF93A11485F0"); // Nursing Home Resident:Resident Summary Info:Entry Form
            RockMigrationHelper.UpdateWorkflowActionForm(@"<div class=""panel panel-default"">  <div class=""panel-heading"">   <div class=""panel-title"">    <i class=""fa fa-info-circle""></i> Patient Information   </div>  </div>  <div class=""panel-body"">      <div class=""col-md-6"">          <div class=""form-group static-control"" style=""margin-top: 57px;"">      <label class=""control-label"">Age</label><div class=""control-wrapper"">       <p class=""form-control-static"">{{ Workflow | Attribute:'PersonToVisit','Age' }}&nbsp;</p>      </div>     </div>", @"    </div> </div>{% capture visitList %} <div class=""panel panel-default"">     <div class=""panel-heading"">         <div class=""panel-title"">             <i class=""fa fa-calendar""></i> Visit History         </div>     </div>     <div class=""panel-body"">         <table class=""table table-striped table-bordered"">             <thead>                 <tr>                     <th>Visitor</th>                     <th>Date</th>                     <th>Visit Notes</th>                 </tr>             </thead>             <tbody>             {% for activity in Workflow.Activities reversed %}                 {% assign visitDateSize = activity | Attribute:'VisitDate' | Size %}{% if activity.ActivityType.Name == 'Visitation Info' and visitDateSize > 0   %}{% assign showVisits = true %}                     <tr>                         <td>{{ activity.Visitor }}</td>                         <td>{{ activity.VisitDate }}</td>                         <td>{{ activity.VisitNote }}</td>                     </tr>                 {% endif %}             {% endfor %}             </tbody>         </table>     </div> </div>{% endcapture %}{% if showVisits == 'true' %}{{visitList}}{% endif %}", "Edit Request^fdc397cd-8b4a-436e-bea1-bce2e6717c03^00E9E98E-2027-4B7D-AAAD-87D11B0EC06B^Your information has been submitted successfully.|Add Visit^fdc397cd-8b4a-436e-bea1-bce2e6717c03^8E7746D0-5920-434B-BC61-78333100740A^|Discharge^fdc397cd-8b4a-436e-bea1-bce2e6717c03^03FCE7A7-82BE-49E2-9A67-05D31AE0E1CA^|", "", true, "", "7E6636A3-52C3-4727-8B9E-0DB50406BCF8"); // Hospital Admission:Patient Summary Info:Entry Form

            // Create the Attribute Command attributes
            RockMigrationHelper.UpdateWorkflowActivityTypeAttribute("61E356D3-2A02-457B-9A43-B67806C67A45", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Activity Command", "ActivityCommand", "", 3, @"", "7ACF21F1-D8B8-4B51-A040-95B7E4FFA74B"); // Homebound Resident:Visitation Info:Activity Command
            RockMigrationHelper.AddAttributeQualifier("7ACF21F1-D8B8-4B51-A040-95B7E4FFA74B", "ispassword", @"False", "90CDEA76-75FC-4BB7-9789-A202CEB7B153");                                                                                  // Hospital Admission:Activity Command:ispassword
            RockMigrationHelper.UpdateWorkflowActivityTypeAttribute("6DCF3214-B88F-4D4E-9251-3CF4A8CBEA6B", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Activity Command", "ActivityCommand", "", 3, @"", "7ACF21F1-D8B8-4B51-A040-95B7E4FFA74C"); // Nursing Home Resident:Visitation Info:Activity Command
            RockMigrationHelper.AddAttributeQualifier("7ACF21F1-D8B8-4B51-A040-95B7E4FFA74C", "ispassword", @"False", "90CDEA76-75FC-4BB7-9789-A202CEB7B154");                                                                                  // Hospital Admission:Activity Command:ispassword
            RockMigrationHelper.UpdateWorkflowActivityTypeAttribute("8E7746D0-5920-434B-BC61-78333100740A", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Activity Command", "ActivityCommand", "", 3, @"", "7ACF21F1-D8B8-4B51-A040-95B7E4FFA74D"); // Hospital Admission:Visitation Info:Activity Command
            RockMigrationHelper.AddAttributeQualifier("7ACF21F1-D8B8-4B51-A040-95B7E4FFA74D", "ispassword", @"False", "90CDEA76-75FC-4BB7-9789-A202CEB7B155");                                                                                  // Hospital Admission:Activity Command:ispassword

            // Add the cancel button
            RockMigrationHelper.UpdateWorkflowActionForm(@"", @"", "Save Visit^fdc397cd-8b4a-436e-bea1-bce2e6717c03^3b165553-0d50-4d1d-a53f-f4fff50cbe3f^Your information has been submitted successfully.|Cancel^5683e775-b9f3-408c-80ac-94de0e51cf3a^3b165553-0d50-4d1d-a53f-f4fff50cbe3f^|", "", true, "7ACF21F1-D8B8-4B51-A040-95B7E4FFA74B", "D8CC1582-5F0A-4270-931D-C9AE1BF91672");   // Homebound Resident:Visitation Info:Form Entry
            RockMigrationHelper.UpdateWorkflowActionForm(@"", @"", "Save Visit^fdc397cd-8b4a-436e-bea1-bce2e6717c03^b55f9a75-d6fa-4854-b67d-4c84afa0883d^Your information has been submitted successfully.|Cancel^5683e775-b9f3-408c-80ac-94de0e51cf3a^b55f9a75-d6fa-4854-b67d-4c84afa0883d^|", "", true, "7ACF21F1-D8B8-4B51-A040-95B7E4FFA74C", "41C3DD25-249D-42E7-90E4-F2ED09A40938");   // Nursing Home Resident:Visitation Info:Form Entry
            RockMigrationHelper.UpdateWorkflowActionForm(@"", @"", "Save Visit^fdc397cd-8b4a-436e-bea1-bce2e6717c03^A24F45F9-CDCC-42C9-8457-7F4438F9C0F9^Your information has been submitted successfully.|Cancel^5683e775-b9f3-408c-80ac-94de0e51cf3a^A24F45F9-CDCC-42C9-8457-7F4438F9C0F9^|", "", true, "7ACF21F1-D8B8-4B51-A040-95B7E4FFA74D", "62E4A560-CBBA-4ABB-9BA0-36E3408B7B49");   // Hospital Admission:Visitation Info:Form Entry

            // Add actions to clear the visit date
            RockMigrationHelper.UpdateWorkflowActionType("61E356D3-2A02-457B-9A43-B67806C67A45", "Clear the Visit Date", 2, "C789E457-0783-44B3-9D8F-2EBAB5F11110", true, false, "", "7ACF21F1-D8B8-4B51-A040-95B7E4FFA74B", 1, "Cancel", "044E0BC8-FDE1-44A2-8796-264E8D1B3489"); // Homebound Resident:Visitation Info:Clear the Visit Date
            RockMigrationHelper.AddActionTypeAttributeValue("044E0BC8-FDE1-44A2-8796-264E8D1B3489", "D7EAA859-F500-4521-9523-488B12EAA7D2", @"False");                                                                                                                             // Homebound Resident:Visitation Info:Clear the Visit Date:Active
            RockMigrationHelper.AddActionTypeAttributeValue("044E0BC8-FDE1-44A2-8796-264E8D1B3489", "44A0B977-4730-4519-8FF6-B0A01A95B212", @"5F961235-C39A-41E1-BA6E-A030815F8AAB");                                                                                              // Homebound Resident:Visitation Info:Clear the Visit Date:Attribute
            RockMigrationHelper.AddActionTypeAttributeValue("044E0BC8-FDE1-44A2-8796-264E8D1B3489", "57093B41-50ED-48E5-B72B-8829E62704C8", @"");                                                                                                                                  // Homebound Resident:Visitation Info:Clear the Visit Date:Order
            RockMigrationHelper.AddActionTypeAttributeValue("044E0BC8-FDE1-44A2-8796-264E8D1B3489", "E5272B11-A2B8-49DC-860D-8D574E2BC15C", @"");                                                                                                                                  // Homebound Resident:Visitation Info:Clear the Visit Date:Text Value|Attribute Value

            RockMigrationHelper.UpdateWorkflowActionType("6DCF3214-B88F-4D4E-9251-3CF4A8CBEA6B", "Clear the Visit Date", 2, "C789E457-0783-44B3-9D8F-2EBAB5F11110", true, false, "", "7ACF21F1-D8B8-4B51-A040-95B7E4FFA74C", 1, "Cancel", "044E0BC8-FDE1-44A2-8796-264E8D1B3490"); // Nursing Home Resident:Visitation Info:Clear the Visit Date
            RockMigrationHelper.AddActionTypeAttributeValue("044E0BC8-FDE1-44A2-8796-264E8D1B3490", "D7EAA859-F500-4521-9523-488B12EAA7D2", @"False");                                                                                                                             // Nursing Home Resident:Visitation Info:Clear the Visit Date:Active
            RockMigrationHelper.AddActionTypeAttributeValue("044E0BC8-FDE1-44A2-8796-264E8D1B3490", "44A0B977-4730-4519-8FF6-B0A01A95B212", @"6800068F-D799-4787-8241-948F1F910949");                                                                                              // Nursing Home Resident:Visitation Info:Clear the Visit Date:Attribute
            RockMigrationHelper.AddActionTypeAttributeValue("044E0BC8-FDE1-44A2-8796-264E8D1B3490", "57093B41-50ED-48E5-B72B-8829E62704C8", @"");                                                                                                                                  // Nursing Home Resident:Visitation Info:Clear the Visit Date:Order
            RockMigrationHelper.AddActionTypeAttributeValue("044E0BC8-FDE1-44A2-8796-264E8D1B3490", "E5272B11-A2B8-49DC-860D-8D574E2BC15C", @"");                                                                                                                                  // Nursing Home Resident:Visitation Info:Clear the Visit Date:Text Value|Attribute Value

            RockMigrationHelper.UpdateWorkflowActionType("8E7746D0-5920-434B-BC61-78333100740A", "Clear the Visit Date", 2, "C789E457-0783-44B3-9D8F-2EBAB5F11110", true, false, "", "7ACF21F1-D8B8-4B51-A040-95B7E4FFA74D", 1, "Cancel", "044E0BC8-FDE1-44A2-8796-264E8D1B3491"); // Hospital Admission:Visitation Info:Clear the Visit Date
            RockMigrationHelper.AddActionTypeAttributeValue("044E0BC8-FDE1-44A2-8796-264E8D1B3491", "D7EAA859-F500-4521-9523-488B12EAA7D2", @"False");                                                                                                                             // Hospital Admission:Visitation Info:Clear the Visit Date:Active
            RockMigrationHelper.AddActionTypeAttributeValue("044E0BC8-FDE1-44A2-8796-264E8D1B3491", "44A0B977-4730-4519-8FF6-B0A01A95B212", @"A411555B-D3F9-4341-A27A-69C767C8EE83");                                                                                              // Hospital Admission:Visitation Info:Clear the Visit Date:Attribute
            RockMigrationHelper.AddActionTypeAttributeValue("044E0BC8-FDE1-44A2-8796-264E8D1B3491", "57093B41-50ED-48E5-B72B-8829E62704C8", @"");                                                                                                                                  // Hospital Admission:Visitation Info:Clear the Visit Date:Order
            RockMigrationHelper.AddActionTypeAttributeValue("044E0BC8-FDE1-44A2-8796-264E8D1B3491", "E5272B11-A2B8-49DC-860D-8D574E2BC15C", @"");                                                                                                                                  // Hospital Admission:Visitation Info:Clear the Visit Date:Text Value|Attribute Value

            // Add an action to make sure the activity is complete
            RockMigrationHelper.UpdateWorkflowActionType("61E356D3-2A02-457B-9A43-B67806C67A45", "Activity Complete", 3, "0D5E33A5-8700-4168-A42E-74D78B62D717", true, true, "", "", 1, "", "A4EA2FB5-75F6-4F44-9D73-B0CB7E9C58C8"); // Homebound Resident:Visitation Info:Activity Complete
            RockMigrationHelper.AddActionTypeAttributeValue("A4EA2FB5-75F6-4F44-9D73-B0CB7E9C58C8", "27BCE39D-9E9B-4704-AAD0-4E8ADC114F72", @"");                                                                                    // Homebound Resident:Visitation Info:Activity Complete:Order
            RockMigrationHelper.AddActionTypeAttributeValue("A4EA2FB5-75F6-4F44-9D73-B0CB7E9C58C8", "1CFB9BFA-6665-4058-8E28-1FD9D5F8F69A", @"False");                                                                               // Homebound Resident:Visitation Info:Activity Complete:Active

            RockMigrationHelper.UpdateWorkflowActionType("6DCF3214-B88F-4D4E-9251-3CF4A8CBEA6B", "Activity Complete", 3, "0D5E33A5-8700-4168-A42E-74D78B62D717", true, true, "", "", 1, "", "A4EA2FB5-75F6-4F44-9D73-B0CB7E9C58C9"); // Nursing Home Resident:Visitation Info:Activity Complete
            RockMigrationHelper.AddActionTypeAttributeValue("A4EA2FB5-75F6-4F44-9D73-B0CB7E9C58C9", "27BCE39D-9E9B-4704-AAD0-4E8ADC114F72", @"");                                                                                    // Nursing Home Resident:Visitation Info:Activity Complete:Order
            RockMigrationHelper.AddActionTypeAttributeValue("A4EA2FB5-75F6-4F44-9D73-B0CB7E9C58C9", "1CFB9BFA-6665-4058-8E28-1FD9D5F8F69A", @"False");                                                                               // Nursing Home Resident:Visitation Info:Activity Complete:Active

            RockMigrationHelper.UpdateWorkflowActionType("8E7746D0-5920-434B-BC61-78333100740A", "Activity Complete", 3, "0D5E33A5-8700-4168-A42E-74D78B62D717", true, true, "", "", 1, "", "A4EA2FB5-75F6-4F44-9D73-B0CB7E9C58CA"); // Hospital Admission:Visitation Info:Activity Complete
            RockMigrationHelper.AddActionTypeAttributeValue("A4EA2FB5-75F6-4F44-9D73-B0CB7E9C58CA", "27BCE39D-9E9B-4704-AAD0-4E8ADC114F72", @"");                                                                                    // Hospital Admission:Visitation Info:Activity Complete:Order
            RockMigrationHelper.AddActionTypeAttributeValue("A4EA2FB5-75F6-4F44-9D73-B0CB7E9C58CA", "1CFB9BFA-6665-4058-8E28-1FD9D5F8F69A", @"False");                                                                               // Hospital Admission:Visitation Info:Activity Complete:Active
        }
 /// <summary>
 /// The commands to run to migrate plugin to the specific version
 /// </summary>
 public override void Up()
 {
     // Workflow Update
     RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.CheckIn.LoadGroupsIgnoringCheckinRule", "E9DC97C8-1F57-4B4E-8CD3-3CF5A764C1EB", false, true);
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("E9DC97C8-1F57-4B4E-8CD3-3CF5A764C1EB", "18E29E23-B43B-4CF7-AE41-C85672C09F50", "Group Type To Ignore Checkin Rules For", "IgnoredGroupType", "", 0, @"2C42B2D4-1C5F-4AD5-A9AD-08631B872AC4", "16F845B5-3F53-473D-8F1E-7BBEE5274D4D");                                                                                             // Rock.Workflow.Action.CheckIn.LoadGroupsIgnoringCheckinRule:Group Type To Ignore Checkin Rules For
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("E9DC97C8-1F57-4B4E-8CD3-3CF5A764C1EB", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "19508A9C-BD7C-4B7E-B843-3CD46070482F");                                                                                                                                               // Rock.Workflow.Action.CheckIn.LoadGroupsIgnoringCheckinRule:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("E9DC97C8-1F57-4B4E-8CD3-3CF5A764C1EB", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Load All", "LoadAll", "By default groups are only loaded for the selected person, group type, and location.  Select this option to load groups for all the loaded people and group types.", 0, @"False", "E4A9B09E-BEE8-4C96-B18D-B46BAC054C7C"); // Rock.Workflow.Action.CheckIn.LoadGroupsIgnoringCheckinRule:Load All
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("E9DC97C8-1F57-4B4E-8CD3-3CF5A764C1EB", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "48CD0C88-4D91-4B2D-B117-381C187E133A");                                                                                                                        // Rock.Workflow.Action.CheckIn.LoadGroupsIgnoringCheckinRule:Order
     RockMigrationHelper.UpdateWorkflowActionType("6D8CC755-0140-439A-B5A3-97D2F7681697", "Load Groups", 3, "E9DC97C8-1F57-4B4E-8CD3-3CF5A764C1EB", true, false, "", "", 1, "", "9DFD5255-CC94-4B88-AE2E-2FC32F35D9D9");                                                                                                                                                                        // Attended Check-in:Person Search:Load Groups
     RockMigrationHelper.AddActionTypeAttributeValue("9DFD5255-CC94-4B88-AE2E-2FC32F35D9D9", "19508A9C-BD7C-4B7E-B843-3CD46070482F", @"False");                                                                                                                                                                                                                                                 // Attended Check-in:Person Search:Load Groups:Active
     RockMigrationHelper.AddActionTypeAttributeValue("9DFD5255-CC94-4B88-AE2E-2FC32F35D9D9", "E4A9B09E-BEE8-4C96-B18D-B46BAC054C7C", @"True");                                                                                                                                                                                                                                                  // Attended Check-in:Person Search:Load Groups:Load All
     RockMigrationHelper.AddActionTypeAttributeValue("9DFD5255-CC94-4B88-AE2E-2FC32F35D9D9", "48CD0C88-4D91-4B2D-B117-381C187E133A", @"");                                                                                                                                                                                                                                                      // Attended Check-in:Person Search:Load Groups:Order
     RockMigrationHelper.AddActionTypeAttributeValue("9DFD5255-CC94-4B88-AE2E-2FC32F35D9D9", "16F845B5-3F53-473D-8F1E-7BBEE5274D4D", @"2c42b2d4-1c5f-4ad5-a9ad-08631b872ac4");                                                                                                                                                                                                                  // Attended Check-in:Person Search:Load Groups:Group Type To Ignore Checkin Rules For
 }
Ejemplo n.º 7
0
        /// <summary>
        /// ED: "Request Assessment" workflow persists immediately, but should not
        /// </summary>
        private void AssessmentWorkFlowDoNotAutoPersist()
        {
            // Request Assessment
            RockMigrationHelper.UpdateWorkflowType(false, true, "Request Assessment", "", "BBAE05FD-8192-4616-A71E-903A927E0D90", "Work", "icon-fw fa fa-bar-chart", 0, false, 0, "31DDC001-C91A-4418-B375-CAB1475F7A62", 0);

            // Request Assessment:Launch From Person Profile:User Entry
            RockMigrationHelper.UpdateWorkflowActionType("41C1D8A6-570C-49D2-A818-08F631FCDBAD", "User Entry", 4, "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", true, false, "A56DA6B0-60A1-4998-B3F0-6BFA6F342167", "", 1, "", "E9C27804-A31D-4121-A963-9F52BEAE7404");

            // Request Assessment:Launch From Person Profile:Persist Workflow
            RockMigrationHelper.UpdateWorkflowActionType("41C1D8A6-570C-49D2-A818-08F631FCDBAD", "Persist Workflow", 5, "F1A39347-6FE0-43D4-89FB-544195088ECF", true, true, "", "", 1, "", "64D4CCB4-AE71-451F-8EE3-3FD0E13EBD35");

            // Request Assessment:Launch From Person Profile:Persist Workflow:Persist Immediately
            RockMigrationHelper.AddActionTypeAttributeValue("64D4CCB4-AE71-451F-8EE3-3FD0E13EBD35", "E22BE348-18B1-4420-83A8-6319B35416D2", @"True");
        }
Ejemplo n.º 8
0
        /// <summary>
        /// ED: Location Selection Strategy - Update UnattendedCheckin Workflow
        /// </summary>
        private void WorkflowUpdateUnattendedCheckin()
        {
            // Unattended Check-in:Ability Level Search:Location Strategy Filter
            RockMigrationHelper.UpdateWorkflowActionType("0E2F5EBA-2204-4C2F-845A-92C25AB67474", "Location Strategy Filter", 2, "176E0639-6482-4AED-957F-FDAA7AAA44FA", true, false, "", "", 1, "", "90F1ACA5-0AD8-4F37-B269-EE6EF4428F9C");

            // Update the order number for the WorkflowActionTypes that come after the new Location Strategy Filter WFA
            Sql("UPDATE [WorkflowActionType] SET [Order] = [Order] + 1 WHERE [Guid] = '5ADD8020-B869-4ECF-A1C0-C3D38F907DB1'");
            Sql("UPDATE [WorkflowActionType] SET [Order] = [Order] + 1 WHERE [Guid] = '81755F3B-96C1-4517-A019-04B16E8B5B51'");
            Sql("UPDATE [WorkflowActionType] SET [Order] = [Order] + 1 WHERE [Guid] = '902931D2-6326-4A6A-967C-C9F65F8C1386'");

            // Unattended Check-in:Ability Level Search:Location Strategy Filter:Active
            RockMigrationHelper.AddActionTypeAttributeValue("90F1ACA5-0AD8-4F37-B269-EE6EF4428F9C", "B5FEDF04-C70A-4E07-906B-DD7DFE901A38", "False");

            // Unattended Check-in:Ability Level Search:Location Strategy Filter:Remove
            RockMigrationHelper.AddActionTypeAttributeValue("90F1ACA5-0AD8-4F37-B269-EE6EF4428F9C", "E08A9DB5-711D-4079-BEE9-4E5959109C7D", "False");
        }
        /// <summary>
        /// Operations to be performed during the upgrade process.
        /// </summary>
        public override void Up()
        {
            // Page: Ability Select
            RockMigrationHelper.UpdateBlockTypeAttribute("605389F5-5BC5-438F-8757-110328B0CED3", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Multi-Person First Page (Family Check-in)", "MultiPersonFirstPage", "", "The first page for each person during family check-in.", 5, @"", "C0414290-0F05-4587-9BF8-9EB862FE3143");
            RockMigrationHelper.UpdateBlockTypeAttribute("605389F5-5BC5-438F-8757-110328B0CED3", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Multi-Person Last Page  (Family Check-in)", "MultiPersonLastPage", "", "The last page for each person during family check-in.", 6, @"", "E659796B-9C56-4668-B1AD-C1C9CDFAFF73");
            RockMigrationHelper.UpdateBlockTypeAttribute("605389F5-5BC5-438F-8757-110328B0CED3", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Multi-Person Done Page (Family Check-in)", "MultiPersonDonePage", "", "The page to navigate to once all people have checked in during family check-in.", 7, @"", "B6F5457A-72CC-4288-9291-5046CFFC04B6");
            RockMigrationHelper.UpdateBlockTypeAttribute("605389F5-5BC5-438F-8757-110328B0CED3", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Previous Page (Family Check-in)", "FamilyPreviousPage", "", "The page to navigate back to if none of the people and schedules have been processed.", 8, @"", "3D24A4D2-90AF-4FDD-8CE2-7D1F9B76104B");
            RockMigrationHelper.AddBlockAttributeValue("C175A9ED-612E-4B25-BED4-CF713D922179", "3D24A4D2-90AF-4FDD-8CE2-7D1F9B76104B", @"67bd09b0-0c6e-44e7-a8eb-0e71551f3e6b");   // Previous Page (Family Check-in)
            RockMigrationHelper.AddBlockAttributeValue("C175A9ED-612E-4B25-BED4-CF713D922179", "C0414290-0F05-4587-9BF8-9EB862FE3143", @"a1cbdaa4-94dd-4156-8260-5a3781e39fd0");   // Multi-Person First Page (Family Check-in)
            RockMigrationHelper.AddBlockAttributeValue("C175A9ED-612E-4B25-BED4-CF713D922179", "E659796B-9C56-4668-B1AD-C1C9CDFAFF73", @"043bb717-5799-446f-b8da-30e575110b0c");   // Multi-Person Last Page  (Family Check-in)
            RockMigrationHelper.AddBlockAttributeValue("C175A9ED-612E-4B25-BED4-CF713D922179", "B6F5457A-72CC-4288-9291-5046CFFC04B6", @"4af7a0e1-e991-4ae5-a2b5-c440f67a2e6a");   // Multi-Person Done Page (Family Check-in)

            // Page: Group Type Select
            RockMigrationHelper.UpdateBlockTypeAttribute("7E20E97E-63F2-413D-9C2C-16FF34023F70", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Multi-Person First Page (Family Check-in)", "MultiPersonFirstPage", "", "The first page for each person during family check-in.", 5, @"", "52050592-25DF-4651-8B58-4DD7581F78A3");
            RockMigrationHelper.UpdateBlockTypeAttribute("7E20E97E-63F2-413D-9C2C-16FF34023F70", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Multi-Person Last Page  (Family Check-in)", "MultiPersonLastPage", "", "The last page for each person during family check-in.", 6, @"", "D14CCB80-4155-4F64-92C7-14DDA4C53FC3");
            RockMigrationHelper.UpdateBlockTypeAttribute("7E20E97E-63F2-413D-9C2C-16FF34023F70", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Multi-Person Done Page (Family Check-in)", "MultiPersonDonePage", "", "The page to navigate to once all people have checked in during family check-in.", 7, @"", "E1E51DE0-7492-493B-8EBF-311DFD4925F6");
            RockMigrationHelper.UpdateBlockTypeAttribute("7E20E97E-63F2-413D-9C2C-16FF34023F70", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Select All and Skip", "SelectAll", "", "Select this option if end-user should never see screen to select group types, all group types will automatically be selected and all the groups in all types will be available.", 8, @"False", "41AFF704-87A8-4282-80D0-B7C40983B549");
            RockMigrationHelper.AddBlockAttributeValue("0934264E-2EFC-4640-8FE9-F772BFDF34BF", "52050592-25DF-4651-8B58-4DD7581F78A3", @"a1cbdaa4-94dd-4156-8260-5a3781e39fd0"); // Multi-Person First Page (Family Check-in)
            RockMigrationHelper.AddBlockAttributeValue("0934264E-2EFC-4640-8FE9-F772BFDF34BF", "D14CCB80-4155-4F64-92C7-14DDA4C53FC3", @"043bb717-5799-446f-b8da-30e575110b0c"); // Multi-Person Last Page  (Family Check-in)
            RockMigrationHelper.AddBlockAttributeValue("0934264E-2EFC-4640-8FE9-F772BFDF34BF", "E1E51DE0-7492-493B-8EBF-311DFD4925F6", @"4af7a0e1-e991-4ae5-a2b5-c440f67a2e6a"); // Multi-Person Done Page (Family Check-in)
            RockMigrationHelper.AddBlockAttributeValue("0934264E-2EFC-4640-8FE9-F772BFDF34BF", "41AFF704-87A8-4282-80D0-B7C40983B549", @"False");                                // Select All and Skip

            // Page: Group Select
            RockMigrationHelper.UpdateBlockTypeAttribute("933418C1-448E-4825-8D3D-BDE23E968483", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Multi-Person First Page (Family Check-in)", "MultiPersonFirstPage", "", "The first page for each person during family check-in.", 5, @"", "B3FA9F93-1338-4C38-A700-36AE29884C49");
            RockMigrationHelper.UpdateBlockTypeAttribute("933418C1-448E-4825-8D3D-BDE23E968483", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Multi-Person Last Page  (Family Check-in)", "MultiPersonLastPage", "", "The last page for each person during family check-in.", 6, @"", "E4F7DEB6-4A3F-480C-B4E8-90F120E5804E");
            RockMigrationHelper.UpdateBlockTypeAttribute("933418C1-448E-4825-8D3D-BDE23E968483", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Multi-Person Done Page (Family Check-in)", "MultiPersonDonePage", "", "The page to navigate to once all people have checked in during family check-in.", 7, @"", "1A43B624-1FF9-44A8-BBB3-B6073A3C9688");
            RockMigrationHelper.AddBlockAttributeValue("147CE2DA-1D94-4FFE-BEBA-7A6721D54604", "B3FA9F93-1338-4C38-A700-36AE29884C49", @"a1cbdaa4-94dd-4156-8260-5a3781e39fd0");   // Multi-Person First Page (Family Check-in)
            RockMigrationHelper.AddBlockAttributeValue("147CE2DA-1D94-4FFE-BEBA-7A6721D54604", "E4F7DEB6-4A3F-480C-B4E8-90F120E5804E", @"043bb717-5799-446f-b8da-30e575110b0c");   // Multi-Person Last Page  (Family Check-in)
            RockMigrationHelper.AddBlockAttributeValue("147CE2DA-1D94-4FFE-BEBA-7A6721D54604", "1A43B624-1FF9-44A8-BBB3-B6073A3C9688", @"4af7a0e1-e991-4ae5-a2b5-c440f67a2e6a");   // Multi-Person Done Page (Family Check-in)

            // Page: Location Select
            RockMigrationHelper.UpdateBlockTypeAttribute("FFDBBAB5-78E1-4865-8A48-EF70DDC6B3F6", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Multi-Person First Page (Family Check-in)", "MultiPersonFirstPage", "", "The first page for each person during family check-in.", 5, @"", "14F75C51-6176-4DBF-B1FC-6517E62E310F");
            RockMigrationHelper.UpdateBlockTypeAttribute("FFDBBAB5-78E1-4865-8A48-EF70DDC6B3F6", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Multi-Person Last Page  (Family Check-in)", "MultiPersonLastPage", "", "The last page for each person during family check-in.", 6, @"", "CEE736CA-7F05-4480-B34B-2A4A743F556C");
            RockMigrationHelper.UpdateBlockTypeAttribute("FFDBBAB5-78E1-4865-8A48-EF70DDC6B3F6", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Multi-Person Done Page (Family Check-in)", "MultiPersonDonePage", "", "The page to navigate to once all people have checked in during family check-in.", 7, @"", "8EB048AF-3A8B-4D55-8045-861B9AE7DF4C");
            RockMigrationHelper.AddBlockAttributeValue("9D876B07-DF35-4355-85B0-638F65C367C4", "14F75C51-6176-4DBF-B1FC-6517E62E310F", @"a1cbdaa4-94dd-4156-8260-5a3781e39fd0");   // Multi-Person First Page (Family Check-in)
            RockMigrationHelper.AddBlockAttributeValue("9D876B07-DF35-4355-85B0-638F65C367C4", "CEE736CA-7F05-4480-B34B-2A4A743F556C", @"043bb717-5799-446f-b8da-30e575110b0c");   // Multi-Person Last Page  (Family Check-in)
            RockMigrationHelper.AddBlockAttributeValue("9D876B07-DF35-4355-85B0-638F65C367C4", "8EB048AF-3A8B-4D55-8045-861B9AE7DF4C", @"4af7a0e1-e991-4ae5-a2b5-c440f67a2e6a");   // Multi-Person Done Page (Family Check-in)

            RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.CheckIn.FilterByPreviousCheckin", "5151FB64-35C6-48B3-ACCF-959BAD3A31CA", false, true);
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("5151FB64-35C6-48B3-ACCF-959BAD3A31CA", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "759890BC-7990-4024-BD82-DF4C3623C3AC");
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("5151FB64-35C6-48B3-ACCF-959BAD3A31CA", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "C134C40A-D372-44E2-A359-2268977B87C9");

            RockMigrationHelper.UpdateWorkflowActionType("5D86DC3F-D56A-49D7-B6CC-5ED2B7E59A93", "Remove Previous Checkins", 5, "5151FB64-35C6-48B3-ACCF-959BAD3A31CA", true, false, "", "66EF6CB1-1A96-2F81-4534-3BCA5C33D4CD", 1, "False", "A05C4258-BFD6-4810-9EBB-BC6EF1C74F11");
            RockMigrationHelper.AddActionTypeAttributeValue("A05C4258-BFD6-4810-9EBB-BC6EF1C74F11", "C134C40A-D372-44E2-A359-2268977B87C9", @"");      // Unattended Check-in:Schedule Select:Filter Locations By Schedule:Order
            RockMigrationHelper.AddActionTypeAttributeValue("A05C4258-BFD6-4810-9EBB-BC6EF1C74F11", "759890BC-7990-4024-BD82-DF4C3623C3AC", @"False"); // Unattended Check-in:Schedule Select:Filter Locations By Schedule:Active
        }
Ejemplo n.º 10
0
 public override void Up()
 {
     RockMigrationHelper.UpdateEntityType("Rock.Model.Workflow", "3540E9A7-FE30-43A9-8B0A-A372B63DFC93", true, true);
     RockMigrationHelper.UpdateEntityType("Rock.Model.WorkflowActivity", "2CB52ED0-CB06-4D62-9E2C-73B60AFA4C9F", true, true);
     RockMigrationHelper.UpdateEntityType("Rock.Model.WorkflowActionType", "23E3273A-B137-48A3-9AFF-C8DC832DDCA6", true, true);
     RockMigrationHelper.UpdateEntityType("com.reallifeministries.RockExtensions.Workflow.Action.GenerateAttendanceCode", "CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", false, true);
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "E7EF5DBB-BE01-409A-ABAE-051D9918E3E0");                          // com.reallifeministries.RockExtensions.Workflow.Action.GenerateAttendanceCode:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", "9C204CD0-1233-41C5-818A-C5DA439445AA", "GeneratedCode", "GeneratedCode", "Code that is generated from this action", 0, @"", "BE4F9C67-0FE9-4B85-B318-DC9E3FEDC5FF"); // com.reallifeministries.RockExtensions.Workflow.Action.GenerateAttendanceCode:GeneratedCode
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", "9C204CD0-1233-41C5-818A-C5DA439445AA", "ServiceName", "ServiceName", "Service to generate the code for", 0, @"", "416D2781-3A19-438A-B676-412F631A55A7");            // com.reallifeministries.RockExtensions.Workflow.Action.GenerateAttendanceCode:ServiceName
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "836DFFD2-D0A9-4BE5-B30A-5827E407FC51");   // com.reallifeministries.RockExtensions.Workflow.Action.GenerateAttendanceCode:Order
     RockMigrationHelper.UpdateWorkflowType(false, true, "Generate CDA Code", "", "54E7AF83-F2B8-4099-A1EC-B341B1F8739F", "Work", "fa fa-list-ol", 0, true, 0, "7B06A50F-1F78-4D7A-8232-E9044A327E77");                                                                    // Generate CDA Code
     RockMigrationHelper.UpdateWorkflowTypeAttribute("7B06A50F-1F78-4D7A-8232-E9044A327E77", "9C204CD0-1233-41C5-818A-C5DA439445AA", "GeneratedCode", "GeneratedCode", "", 0, @"", "93EF2488-7F6F-487A-9D40-FD0906522F5E");                                                // Generate CDA Code:GeneratedCode
     RockMigrationHelper.AddAttributeQualifier("93EF2488-7F6F-487A-9D40-FD0906522F5E", "ispassword", @"False", "2197044A-487D-46B3-91B6-FC525AF1FB50");                                                                                                                    // Generate CDA Code:GeneratedCode:ispassword
     RockMigrationHelper.UpdateWorkflowActivityType("7B06A50F-1F78-4D7A-8232-E9044A327E77", true, "Generate Code", "", true, 0, "3FA3C493-E079-4BC7-9C42-E76BA6CCD898");                                                                                                   // Generate CDA Code:Generate Code
     RockMigrationHelper.UpdateWorkflowActionType("3FA3C493-E079-4BC7-9C42-E76BA6CCD898", "Generate Code", 0, "CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", true, false, "", "", 1, "", "52EA0B1C-9F3D-4C27-8475-48508AF311FA");                                                 // Generate CDA Code:Generate Code:Generate Code
     RockMigrationHelper.AddActionTypeAttributeValue("52EA0B1C-9F3D-4C27-8475-48508AF311FA", "416D2781-3A19-438A-B676-412F631A55A7", @"CDA");                                                                                                                              // Generate CDA Code:Generate Code:Generate Code:ServiceName
     RockMigrationHelper.AddActionTypeAttributeValue("52EA0B1C-9F3D-4C27-8475-48508AF311FA", "BE4F9C67-0FE9-4B85-B318-DC9E3FEDC5FF", @"{{Workflow.GeneratedCode}}");                                                                                                       // Generate CDA Code:Generate Code:Generate Code:GeneratedCode
     RockMigrationHelper.AddActionTypeAttributeValue("52EA0B1C-9F3D-4C27-8475-48508AF311FA", "836DFFD2-D0A9-4BE5-B30A-5827E407FC51", @"");                                                                                                                                 // Generate CDA Code:Generate Code:Generate Code:Order
     RockMigrationHelper.AddActionTypeAttributeValue("52EA0B1C-9F3D-4C27-8475-48508AF311FA", "E7EF5DBB-BE01-409A-ABAE-051D9918E3E0", @"False");                                                                                                                            // Generate CDA Code:Generate Code:Generate Code:Active
 }
Ejemplo n.º 11
0
 public override void Up()
 {
     RockMigrationHelper.UpdateFieldType("Range Slider", "", "Rock", "Rock.Field.Types.RangeSliderFieldType", "E239F99B-09EE-4AAE-8AA9-53E03EE45F19");
     RockMigrationHelper.UpdateEntityType("Rock.Model.Workflow", "3540E9A7-FE30-43A9-8B0A-A372B63DFC93", true, true);
     RockMigrationHelper.UpdateEntityType("Rock.Model.WorkflowActivity", "2CB52ED0-CB06-4D62-9E2C-73B60AFA4C9F", true, true);
     RockMigrationHelper.UpdateEntityType("Rock.Model.WorkflowActionType", "23E3273A-B137-48A3-9AFF-C8DC832DDCA6", true, true);
     RockMigrationHelper.UpdateEntityType("com.reallifeministries.RockExtensions.Workflow.Action.GenerateAttendanceCode", "CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", false, true);
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "E7EF5DBB-BE01-409A-ABAE-051D9918E3E0");                          // com.reallifeministries.RockExtensions.Workflow.Action.GenerateAttendanceCode:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", "9C204CD0-1233-41C5-818A-C5DA439445AA", "GeneratedCode", "GeneratedCode", "Code that is generated from this action", 0, @"", "BE4F9C67-0FE9-4B85-B318-DC9E3FEDC5FF"); // com.reallifeministries.RockExtensions.Workflow.Action.GenerateAttendanceCode:GeneratedCode
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", "9C204CD0-1233-41C5-818A-C5DA439445AA", "ServiceName", "ServiceName", "Service to generate the code for", 0, @"", "416D2781-3A19-438A-B676-412F631A55A7");            // com.reallifeministries.RockExtensions.Workflow.Action.GenerateAttendanceCode:ServiceName
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "836DFFD2-D0A9-4BE5-B30A-5827E407FC51");   // com.reallifeministries.RockExtensions.Workflow.Action.GenerateAttendanceCode:Order
     RockMigrationHelper.UpdateWorkflowType(false, true, "Generate PF Code", "", "4D57D6C1-B4A1-4CC1-BD79-71EF8494ED70", "Work", "fa fa-list-ol", 0, true, 0, "D25299B5-62C1-42B8-BAFF-D215877705D0");                                                                     // Generate PF Code
     RockMigrationHelper.UpdateWorkflowTypeAttribute("D25299B5-62C1-42B8-BAFF-D215877705D0", "9C204CD0-1233-41C5-818A-C5DA439445AA", "GeneratedCode", "GeneratedCode", "", 0, @"", "DDE58601-6972-47A8-97C3-0737EA7AF430");                                                // Generate PF Code:GeneratedCode
     RockMigrationHelper.AddAttributeQualifier("DDE58601-6972-47A8-97C3-0737EA7AF430", "ispassword", @"False", "FACD6D7B-171B-4404-9013-1C428AA4172E");                                                                                                                    // Generate PF Code:GeneratedCode:ispassword
     RockMigrationHelper.UpdateWorkflowActivityType("D25299B5-62C1-42B8-BAFF-D215877705D0", true, "Generate Code", "", true, 0, "62C80DFA-6C5B-45D6-933C-8492DAFDC001");                                                                                                   // Generate PF Code:Generate Code
     RockMigrationHelper.UpdateWorkflowActionType("62C80DFA-6C5B-45D6-933C-8492DAFDC001", "Generate Code", 0, "CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", true, false, "", "", 1, "", "707B60B0-B351-4B95-B5C5-18598E22C544");                                                 // Generate PF Code:Generate Code:Generate Code
     RockMigrationHelper.AddActionTypeAttributeValue("707B60B0-B351-4B95-B5C5-18598E22C544", "416D2781-3A19-438A-B676-412F631A55A7", @"PF");                                                                                                                               // Generate PF Code:Generate Code:Generate Code:ServiceName
     RockMigrationHelper.AddActionTypeAttributeValue("707B60B0-B351-4B95-B5C5-18598E22C544", "BE4F9C67-0FE9-4B85-B318-DC9E3FEDC5FF", @"{{Workflow.GeneratedCode}}");                                                                                                       // Generate PF Code:Generate Code:Generate Code:GeneratedCode
     RockMigrationHelper.AddActionTypeAttributeValue("707B60B0-B351-4B95-B5C5-18598E22C544", "836DFFD2-D0A9-4BE5-B30A-5827E407FC51", @"");                                                                                                                                 // Generate PF Code:Generate Code:Generate Code:Order
     RockMigrationHelper.AddActionTypeAttributeValue("707B60B0-B351-4B95-B5C5-18598E22C544", "E7EF5DBB-BE01-409A-ABAE-051D9918E3E0", @"False");                                                                                                                            // Generate PF Code:Generate Code:Generate Code:Active
 }
Ejemplo n.º 12
0
        /// <summary>
        /// Operations to be performed during the upgrade process.
        /// </summary>
        public override void Up()
        {
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C4DAE3D6-931F-497F-AC00-60BAFA87B758", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "6BEBD4BE-EDC7-4757-B597-445FC60DB6ED");                                                                                                                                                 // Rock.Workflow.Action.BackgroundCheckRequest:Active
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C4DAE3D6-931F-497F-AC00-60BAFA87B758", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Billing Code Attribute", "BillingCodeAttribute", "The attribute that contains the billing code to use when submitting background check.", 4, @"", "232B2F98-3B2F-4C53-81FC-061A92675C41");                                                          // Rock.Workflow.Action.BackgroundCheckRequest:Billing Code Attribute
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C4DAE3D6-931F-497F-AC00-60BAFA87B758", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Person Attribute", "PersonAttribute", "The Person attribute that contains the person who the background check should be submitted for.", 1, @"", "077A9C4E-86E7-42F6-BEC3-DBC8F57E6A13");                                                           // Rock.Workflow.Action.BackgroundCheckRequest:Person Attribute
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C4DAE3D6-931F-497F-AC00-60BAFA87B758", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Request Type Attribute", "RequestTypeAttribute", "The attribute that contains the type of background check to submit (Specific to provider).", 3, @"", "EC759165-949E-4966-BAFD-68A656A4EBF7");                                                     // Rock.Workflow.Action.BackgroundCheckRequest:Request Type Attribute
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C4DAE3D6-931F-497F-AC00-60BAFA87B758", "33E6DF69-BDFA-407A-9744-C175B60643AE", "SSN Attribute", "SSNAttribute", "The attribute that contains the Social Security Number of the person who the background check should be submitted for ( Must be an 'Encrypted Text' attribute )", 2, @"", "2631E72B-1D9B-40E8-B857-8B1D41943451"); // Rock.Workflow.Action.BackgroundCheckRequest:SSN Attribute
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C4DAE3D6-931F-497F-AC00-60BAFA87B758", "A7486B0E-4CA2-4E00-A987-5544C7DABA76", "Background Check Provider", "Provider", "The Background Check provider to use", 0, @"", "6E2366B4-9F0E-454A-9DB1-E06263749C12");                                                                                                                    // Rock.Workflow.Action.BackgroundCheckRequest:Background Check Provider
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C4DAE3D6-931F-497F-AC00-60BAFA87B758", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "3936E931-CC27-4C38-9AA5-AAA502057333");                                                                                                                          // Rock.Workflow.Action.BackgroundCheckRequest:Order

            RockMigrationHelper.AddActionTypeAttributeValue("70DABC23-6587-4F18-8551-C655AA285F44", "6BEBD4BE-EDC7-4757-B597-445FC60DB6ED", @"False");                                                                                                                                                                                                                                                   // Background Check:Submit Request:Submit Request:Active
            RockMigrationHelper.AddActionTypeAttributeValue("70DABC23-6587-4F18-8551-C655AA285F44", "6E2366B4-9F0E-454A-9DB1-E06263749C12", @"8d9de88a-c649-47b2-ba5c-92a24f60ae61");                                                                                                                                                                                                                    // Background Check:Submit Request:Submit Request:Background Check Provider
            RockMigrationHelper.AddActionTypeAttributeValue("70DABC23-6587-4F18-8551-C655AA285F44", "3936E931-CC27-4C38-9AA5-AAA502057333", @"");                                                                                                                                                                                                                                                        // Background Check:Submit Request:Submit Request:Order
            RockMigrationHelper.AddActionTypeAttributeValue("70DABC23-6587-4F18-8551-C655AA285F44", "077A9C4E-86E7-42F6-BEC3-DBC8F57E6A13", @"2d977682-2589-47bb-94e6-906a9587ee7c");                                                                                                                                                                                                                    // Background Check:Submit Request:Submit Request:Person Attribute
            RockMigrationHelper.AddActionTypeAttributeValue("70DABC23-6587-4F18-8551-C655AA285F44", "2631E72B-1D9B-40E8-B857-8B1D41943451", @"");                                                                                                                                                                                                                                                        // Background Check:Submit Request:Submit Request:SSN Attribute
            RockMigrationHelper.AddActionTypeAttributeValue("70DABC23-6587-4F18-8551-C655AA285F44", "EC759165-949E-4966-BAFD-68A656A4EBF7", @"00b8c76c-0fff-4827-8abc-48215004686f");                                                                                                                                                                                                                    // Background Check:Submit Request:Submit Request:Request Type Attribute
            RockMigrationHelper.AddActionTypeAttributeValue("70DABC23-6587-4F18-8551-C655AA285F44", "232B2F98-3B2F-4C53-81FC-061A92675C41", @"c4c12a1e-26b7-4580-b70c-baf64497f3e8");                                                                                                                                                                                                                    // Background Check:Submit Request:Submit Request:Billing Code Attribute

            RockMigrationHelper.AddEntityAttribute("Rock.Checkr.Checkr", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "", "", "Active", "", "Should Service be used?", 0, "", "0ac1596b-0143-4939-aacd-0b14f6f74322");
            RockMigrationHelper.AddAttributeValue("0ac1596b-0143-4939-aacd-0b14f6f74322", 0, "True", "554468D0-A891-5281-4D08-FED46D756E28");
        }
 public override void Up()
 {
     RockMigrationHelper.UpdateFieldType("Range Slider", "", "Rock", "Rock.Field.Types.RangeSliderFieldType", "E239F99B-09EE-4AAE-8AA9-53E03EE45F19");
     RockMigrationHelper.UpdateEntityType("Rock.Model.Workflow", "3540E9A7-FE30-43A9-8B0A-A372B63DFC93", true, true);
     RockMigrationHelper.UpdateEntityType("Rock.Model.WorkflowActivity", "2CB52ED0-CB06-4D62-9E2C-73B60AFA4C9F", true, true);
     RockMigrationHelper.UpdateEntityType("Rock.Model.WorkflowActionType", "23E3273A-B137-48A3-9AFF-C8DC832DDCA6", true, true);
     RockMigrationHelper.UpdateEntityType("com.reallifeministries.RockExtensions.Workflow.Action.GenerateAttendanceCode", "CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", false, true);
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "E7EF5DBB-BE01-409A-ABAE-051D9918E3E0");                          // com.reallifeministries.RockExtensions.Workflow.Action.GenerateAttendanceCode:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", "9C204CD0-1233-41C5-818A-C5DA439445AA", "GeneratedCode", "GeneratedCode", "Code that is generated from this action", 0, @"", "BE4F9C67-0FE9-4B85-B318-DC9E3FEDC5FF"); // com.reallifeministries.RockExtensions.Workflow.Action.GenerateAttendanceCode:GeneratedCode
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", "9C204CD0-1233-41C5-818A-C5DA439445AA", "ServiceName", "ServiceName", "Service to generate the code for", 0, @"", "416D2781-3A19-438A-B676-412F631A55A7");            // com.reallifeministries.RockExtensions.Workflow.Action.GenerateAttendanceCode:ServiceName
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "836DFFD2-D0A9-4BE5-B30A-5827E407FC51");   // com.reallifeministries.RockExtensions.Workflow.Action.GenerateAttendanceCode:Order
     RockMigrationHelper.UpdateWorkflowType(false, true, "Generate THIRST Code", "", "4D57D6C1-B4A1-4CC1-BD79-71EF8494ED70", "Work", "fa fa-list-ol", 0, true, 0, "41A69E9A-A7A2-4DED-B99C-73B1D093801D");                                                                 // Generate THIRST Code
     RockMigrationHelper.UpdateWorkflowTypeAttribute("41A69E9A-A7A2-4DED-B99C-73B1D093801D", "9C204CD0-1233-41C5-818A-C5DA439445AA", "GeneratedCode", "GeneratedCode", "", 0, @"", "597B7E81-E000-404F-A340-78C06E485E50");                                                // Generate THIRST Code:GeneratedCode
     RockMigrationHelper.AddAttributeQualifier("597B7E81-E000-404F-A340-78C06E485E50", "ispassword", @"False", "9EB808A8-FCF9-4D37-AD9B-64F94EE7CB80");                                                                                                                    // Generate THIRST Code:GeneratedCode:ispassword
     RockMigrationHelper.UpdateWorkflowActivityType("41A69E9A-A7A2-4DED-B99C-73B1D093801D", true, "Generate Code", "", true, 0, "CA5C23C7-2097-4E69-A613-5A9E1089441B");                                                                                                   // Generate THIRST Code:Generate Code
     RockMigrationHelper.UpdateWorkflowActionType("CA5C23C7-2097-4E69-A613-5A9E1089441B", "Generate Code", 0, "CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", true, false, "", "", 1, "", "8958A5EE-3011-4D99-B515-F98CD6C58180");                                                 // Generate THIRST Code:Generate Code:Generate Code
     RockMigrationHelper.AddActionTypeAttributeValue("8958A5EE-3011-4D99-B515-F98CD6C58180", "416D2781-3A19-438A-B676-412F631A55A7", @"THIRST");                                                                                                                           // Generate THIRST Code:Generate Code:Generate Code:ServiceName
     RockMigrationHelper.AddActionTypeAttributeValue("8958A5EE-3011-4D99-B515-F98CD6C58180", "BE4F9C67-0FE9-4B85-B318-DC9E3FEDC5FF", @"{{Workflow.GeneratedCode}}");                                                                                                       // Generate THIRST Code:Generate Code:Generate Code:GeneratedCode
     RockMigrationHelper.AddActionTypeAttributeValue("8958A5EE-3011-4D99-B515-F98CD6C58180", "836DFFD2-D0A9-4BE5-B30A-5827E407FC51", @"");                                                                                                                                 // Generate THIRST Code:Generate Code:Generate Code:Order
     RockMigrationHelper.AddActionTypeAttributeValue("8958A5EE-3011-4D99-B515-F98CD6C58180", "E7EF5DBB-BE01-409A-ABAE-051D9918E3E0", @"False");                                                                                                                            // Generate THIRST Code:Generate Code:Generate Code:Active
 }
 public override void Up()
 {
     RockMigrationHelper.UpdateFieldType("Range Slider", "", "Rock", "Rock.Field.Types.RangeSliderFieldType", "E239F99B-09EE-4AAE-8AA9-53E03EE45F19");
     RockMigrationHelper.UpdateEntityType("Rock.Model.Workflow", "3540E9A7-FE30-43A9-8B0A-A372B63DFC93", true, true);
     RockMigrationHelper.UpdateEntityType("Rock.Model.WorkflowActivity", "2CB52ED0-CB06-4D62-9E2C-73B60AFA4C9F", true, true);
     RockMigrationHelper.UpdateEntityType("Rock.Model.WorkflowActionType", "23E3273A-B137-48A3-9AFF-C8DC832DDCA6", true, true);
     RockMigrationHelper.UpdateEntityType("com.reallifeministries.RockExtensions.Workflow.Action.GenerateAttendanceCode", "CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", false, true);
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "E7EF5DBB-BE01-409A-ABAE-051D9918E3E0");                          // com.reallifeministries.RockExtensions.Workflow.Action.GenerateAttendanceCode:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", "9C204CD0-1233-41C5-818A-C5DA439445AA", "GeneratedCode", "GeneratedCode", "Code that is generated from this action", 0, @"", "BE4F9C67-0FE9-4B85-B318-DC9E3FEDC5FF"); // com.reallifeministries.RockExtensions.Workflow.Action.GenerateAttendanceCode:GeneratedCode
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", "9C204CD0-1233-41C5-818A-C5DA439445AA", "ServiceName", "ServiceName", "Service to generate the code for", 0, @"", "416D2781-3A19-438A-B676-412F631A55A7");            // com.reallifeministries.RockExtensions.Workflow.Action.GenerateAttendanceCode:ServiceName
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "836DFFD2-D0A9-4BE5-B30A-5827E407FC51");   // com.reallifeministries.RockExtensions.Workflow.Action.GenerateAttendanceCode:Order
     RockMigrationHelper.UpdateWorkflowType(false, true, "Generate RECOVERY Code", "", "4D57D6C1-B4A1-4CC1-BD79-71EF8494ED70", "Work", "fa fa-list-ol", 0, true, 0, "E5F05F80-12EF-4418-A9CA-43563FCEAEE2");                                                               // Generate RECOVERY Code
     RockMigrationHelper.UpdateWorkflowTypeAttribute("E5F05F80-12EF-4418-A9CA-43563FCEAEE2", "9C204CD0-1233-41C5-818A-C5DA439445AA", "GeneratedCode", "GeneratedCode", "", 0, @"", "B195D571-ECED-4621-96AF-0F98DC907C9D");                                                // Generate RECOVERY Code:GeneratedCode
     RockMigrationHelper.AddAttributeQualifier("B195D571-ECED-4621-96AF-0F98DC907C9D", "ispassword", @"False", "F98F4B12-4885-4084-AAE3-88524ADE64AB");                                                                                                                    // Generate RECOVERY Code:GeneratedCode:ispassword
     RockMigrationHelper.UpdateWorkflowActivityType("E5F05F80-12EF-4418-A9CA-43563FCEAEE2", true, "Generate Code", "", true, 0, "FACB1155-4F72-4430-8199-FC93A803AD95");                                                                                                   // Generate RECOVERY Code:Generate Code
     RockMigrationHelper.UpdateWorkflowActionType("FACB1155-4F72-4430-8199-FC93A803AD95", "Generate Code", 0, "CDA6C7A8-3870-4F4E-8371-6F5EC2F4CD78", true, false, "", "", 1, "", "E90B3E59-CB77-405F-A724-8F0DEDCB17D3");                                                 // Generate RECOVERY Code:Generate Code:Generate Code
     RockMigrationHelper.AddActionTypeAttributeValue("E90B3E59-CB77-405F-A724-8F0DEDCB17D3", "416D2781-3A19-438A-B676-412F631A55A7", @"RECOVERY");                                                                                                                         // Generate RECOVERY Code:Generate Code:Generate Code:ServiceName
     RockMigrationHelper.AddActionTypeAttributeValue("E90B3E59-CB77-405F-A724-8F0DEDCB17D3", "BE4F9C67-0FE9-4B85-B318-DC9E3FEDC5FF", @"{{Workflow.GeneratedCode}}");                                                                                                       // Generate RECOVERY Code:Generate Code:Generate Code:GeneratedCode
     RockMigrationHelper.AddActionTypeAttributeValue("E90B3E59-CB77-405F-A724-8F0DEDCB17D3", "836DFFD2-D0A9-4BE5-B30A-5827E407FC51", @"");                                                                                                                                 // Generate RECOVERY Code:Generate Code:Generate Code:Order
     RockMigrationHelper.AddActionTypeAttributeValue("E90B3E59-CB77-405F-A724-8F0DEDCB17D3", "E7EF5DBB-BE01-409A-ABAE-051D9918E3E0", @"False");                                                                                                                            // Generate RECOVERY Code:Generate Code:Generate Code:Active
 }
 public override void Up()
 {
     RockMigrationHelper.UpdateWorkflowTypeAttribute("88978527-0CA4-4C52-8FDA-CF915FAFA472", "309460EF-0CC5-41C6-9161-B3837BA3D374", "PF Prayer Category", "PFPrayerCategory", "", 7, @"17c3406f-788b-4932-810c-ab2ecc484506", "65FCFB06-FF75-45B5-A9D7-D62B68E78C79");   // Text Prayer Request:PF Prayer Category
     RockMigrationHelper.UpdateWorkflowTypeAttribute("88978527-0CA4-4C52-8FDA-CF915FAFA472", "309460EF-0CC5-41C6-9161-B3837BA3D374", "CDA Prayer Category", "CDAPrayerCategory", "", 8, @"41d4ef74-af83-49ec-a98a-5fc14b9fa908", "3109787B-B7FE-4BAC-86FB-DC8523348253"); // Text Prayer Request:CDA Prayer Category
     RockMigrationHelper.UpdateWorkflowTypeAttribute("88978527-0CA4-4C52-8FDA-CF915FAFA472", "309460EF-0CC5-41C6-9161-B3837BA3D374", "Prayer Category", "PrayerCategory", "", 9, @"", "07976A20-5EBF-4211-9C9F-E6AE732A3098");                                            // Text Prayer Request:Prayer Category
     RockMigrationHelper.AddAttributeQualifier("65FCFB06-FF75-45B5-A9D7-D62B68E78C79", "qualifierColumn", @"", "3A523554-2FED-4219-A9F7-457029E9DAD0");                                                                                                                   // Text Prayer Request:PF Prayer Category:qualifierColumn
     RockMigrationHelper.AddAttributeQualifier("65FCFB06-FF75-45B5-A9D7-D62B68E78C79", "qualifierValue", @"", "6AA1E31F-E643-4819-918E-D7509160B0BB");                                                                                                                    // Text Prayer Request:PF Prayer Category:qualifierValue
     RockMigrationHelper.AddAttributeQualifier("3109787B-B7FE-4BAC-86FB-DC8523348253", "entityTypeName", @"Rock.Model.PrayerRequest", "F3CED749-5825-40D5-A6B9-876192B2628E");                                                                                            // Text Prayer Request:CDA Prayer Category:entityTypeName
     RockMigrationHelper.AddAttributeQualifier("3109787B-B7FE-4BAC-86FB-DC8523348253", "qualifierColumn", @"", "D209D7C2-A941-4A16-8702-0DCBAD93C447");                                                                                                                   // Text Prayer Request:CDA Prayer Category:qualifierColumn
     RockMigrationHelper.AddAttributeQualifier("3109787B-B7FE-4BAC-86FB-DC8523348253", "qualifierValue", @"", "4F0ECD00-6D66-4126-A7C0-C938BC642AE9");                                                                                                                    // Text Prayer Request:CDA Prayer Category:qualifierValue
     RockMigrationHelper.AddAttributeQualifier("07976A20-5EBF-4211-9C9F-E6AE732A3098", "entityTypeName", @"Rock.Model.PrayerRequest", "7596AF7B-7E85-48AC-8B22-9AFCA58667DA");                                                                                            // Text Prayer Request:Prayer Category:entityTypeName
     RockMigrationHelper.AddAttributeQualifier("07976A20-5EBF-4211-9C9F-E6AE732A3098", "qualifierColumn", @"", "C2C7BD60-F140-4BDD-9ECA-29E4959805B3");                                                                                                                   // Text Prayer Request:Prayer Category:qualifierColumn
     RockMigrationHelper.AddAttributeQualifier("07976A20-5EBF-4211-9C9F-E6AE732A3098", "qualifierValue", @"", "74BAE1EC-ABC7-4372-8DC0-0D3749AE13EB");                                                                                                                    // Text Prayer Request:Prayer Category:qualifierValue
     RockMigrationHelper.AddActionTypeAttributeValue("8520DE5F-F4F2-41B7-9DAF-8B13FDF03032", "D7EAA859-F500-4521-9523-488B12EAA7D2", @"False");                                                                                                                           // Text Prayer Request:Submit Prayer Request:Set Prayer Category if PF:Active
     RockMigrationHelper.AddActionTypeAttributeValue("8520DE5F-F4F2-41B7-9DAF-8B13FDF03032", "44A0B977-4730-4519-8FF6-B0A01A95B212", @"07976a20-5ebf-4211-9c9f-e6ae732a3098");                                                                                            // Text Prayer Request:Submit Prayer Request:Set Prayer Category if PF:Attribute
     RockMigrationHelper.AddActionTypeAttributeValue("8520DE5F-F4F2-41B7-9DAF-8B13FDF03032", "57093B41-50ED-48E5-B72B-8829E62704C8", @"");                                                                                                                                // Text Prayer Request:Submit Prayer Request:Set Prayer Category if PF:Order
     RockMigrationHelper.AddActionTypeAttributeValue("8520DE5F-F4F2-41B7-9DAF-8B13FDF03032", "E5272B11-A2B8-49DC-860D-8D574E2BC15C", @"65fcfb06-ff75-45b5-a9d7-d62b68e78c79");                                                                                            // Text Prayer Request:Submit Prayer Request:Set Prayer Category if PF:Text Value|Attribute Value
     RockMigrationHelper.AddActionTypeAttributeValue("E43F12B1-DB12-476C-8337-B20EA7267874", "D7EAA859-F500-4521-9523-488B12EAA7D2", @"False");                                                                                                                           // Text Prayer Request:Submit Prayer Request:Set Prayer Category If CDA:Active
     RockMigrationHelper.AddActionTypeAttributeValue("E43F12B1-DB12-476C-8337-B20EA7267874", "44A0B977-4730-4519-8FF6-B0A01A95B212", @"07976a20-5ebf-4211-9c9f-e6ae732a3098");                                                                                            // Text Prayer Request:Submit Prayer Request:Set Prayer Category If CDA:Attribute
     RockMigrationHelper.AddActionTypeAttributeValue("E43F12B1-DB12-476C-8337-B20EA7267874", "57093B41-50ED-48E5-B72B-8829E62704C8", @"");                                                                                                                                // Text Prayer Request:Submit Prayer Request:Set Prayer Category If CDA:Order
     RockMigrationHelper.AddActionTypeAttributeValue("E43F12B1-DB12-476C-8337-B20EA7267874", "E5272B11-A2B8-49DC-860D-8D574E2BC15C", @"3109787b-b7fe-4bac-86fb-dc8523348253");                                                                                            // Text Prayer Request:Submit Prayer Request:Set Prayer Category If CDA:Text Value|Attribute Value
 }
Ejemplo n.º 16
0
        /// <summary>
        /// Operations to be performed during the upgrade process.
        /// </summary>
        public override void Up()
        {
            // Add ContextAware attribute for HTML Content Block
            RockMigrationHelper.AddBlockTypeAttribute("19B61D65-37E3-459F-A44F-DEF0089118A3", "3549BAB6-FE1B-4333-AFC4-C5ACA01BB8EB", "Entity Type", "ContextEntityType", "", "The type of entity that will provide context for this block", 0, "", "6783D47D-92F9-4F48-93C0-16111D675A0F");

            // Add route for Ability Select page
            RockMigrationHelper.AddPageRoute("A1CBDAA4-94DD-4156-8260-5A3781E39FD0", "checkin/ability");

            // Remove Workflow Type, and activity setting from Group Type Select Page (it no longer runs a workflow activity)
            RockMigrationHelper.AddBlockAttributeValue("0934264E-2EFC-4640-8FE9-F772BFDF34BF", "7250DC20-6AE9-48CF-9173-74CB221AF79E", "");
            RockMigrationHelper.AddBlockAttributeValue("0934264E-2EFC-4640-8FE9-F772BFDF34BF", "11FB556B-3E88-4189-8E54-2B92E076F426", "");

            // Update Group Type Select page's previous page to be the person select (instead of ability select)
            RockMigrationHelper.AddBlockAttributeValue("0934264E-2EFC-4640-8FE9-F772BFDF34BF", "39D260A5-A976-4DA9-B3E0-7381E9B8F3D5", "bb8cf87f-680f-48f9-9147-f4951e033d17");

            // Update all the workflow type settings to use the workflow type field instead of textbox with id
            Sql(@"
    UPDATE AV SET [Value] = CASE WHEN W.[Guid] IS NULL THEN '' ELSE CONVERT(varchar(60), W.[Guid]) END
    FROM [AttributeValue] AV
	    INNER JOIN [Attribute] A
		    ON A.[Id] = AV.[AttributeId]
	    INNER JOIN [BlockType] T 
		    ON CONVERT(varchar, T.[Id]) = A.[EntityTypeQualifierValue]
		    AND T.[Path] LIKE '~/Blocks/CheckIn%'
	    LEFT OUTER JOIN [WorkflowType] W
		    ON CONVERT(varchar, W.[Id]) = AV.[Value]
    WHERE A.[EntityTypeQualifierColumn] = 'BlockTypeId'
	    AND A.[Key] = 'WorkflowTypeId'

    DECLARE @WorkflowFieldTypeId int = ( SELECT [Id] FROM [FieldType] WHERE [Guid] = '46A03F59-55D3-4ACE-ADD5-B4642225DD20' )
    UPDATE A SET 
	      [FieldTypeId] = @WorkflowFieldTypeId
	    , [Key] = 'WorkflowType'
	    , [Name] = 'Workflow Type'
	    , [Description] = 'The workflow type to activate for check-in'
    FROM [Attribute] A
	    INNER JOIN [BlockType] T 
		    ON CONVERT(varchar, T.[Id]) = A.[EntityTypeQualifierValue]
		    AND T.[Path] LIKE '~/Blocks/CheckIn%'
    WHERE A.[EntityTypeQualifierColumn] = 'BlockTypeId'
	    AND A.[Key] = 'WorkflowTypeId'
");

            // Remove the Group Search workflow activity
            Sql(@"
    DELETE [WorkflowActivityType] WHERE [Guid] = 'A9D5818E-250D-42E8-A462-89132F57B325'
    DECLARE @WorkflowTypeId int = ( SELECT [Id] FROM [WorkflowType] WHERE [Guid] = '011E9F5A-60D4-4FF5-912A-290881E37EAF' )
    UPDATE [WorkflowActivityType] SET [Order] = [Order] - 1
    WHERE [WorkflowTypeId] = @WorkflowTypeId
    AND [Order] > 2
");
            RockMigrationHelper.UpdateWorkflowActionType("0E2F5EBA-2204-4C2F-845A-92C25AB67474", "Filter Groups By Ability Level", 0, "54BF0279-1FBB-4537-A933-2BAD48C43063", true, false, "", "", 0, "", "DDC2EFDD-2376-479E-B322-A440230E10E8");
            RockMigrationHelper.UpdateWorkflowActionType("0E2F5EBA-2204-4C2F-845A-92C25AB67474", "Filter Active Locations", 1, "7BB371F9-A8DE-49D3-BEEA-C191F6C7D4A0", true, false, "", "", 0, "", "E107DCA8-6148-4CA6-B954-F96F4FE878CB");
            RockMigrationHelper.UpdateWorkflowActionType("0E2F5EBA-2204-4C2F-845A-92C25AB67474", "Remove Empty Groups", 2, "698115D4-7B5E-48F3-BBB0-C53A20193169", true, false, "", "", 0, "", "5ADD8020-B869-4ECF-A1C0-C3D38F907DB1");
            RockMigrationHelper.UpdateWorkflowActionType("0E2F5EBA-2204-4C2F-845A-92C25AB67474", "Remove Empty Group Types", 3, "E998B9A7-31C9-46F6-B91C-4E5C3F06C82F", true, false, "", "", 0, "", "81755F3B-96C1-4517-A019-04B16E8B5B51");

            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("7BB371F9-A8DE-49D3-BEEA-C191F6C7D4A0", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Remove", "Remove", "Select 'Yes' if locations should be be removed.  Select 'No' if they should just be marked as excluded.", 0, "True", "885D28C5-A395-4A05-AEFB-6131498BDF12");
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("3A77A36E-D613-44F7-ACA1-34666A85CD07", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Remove", "Remove", "Select 'Yes' if group types should be be removed.  Select 'No' if they should just be marked as excluded.", 0, "True", "DFFC0499-A352-40F5-9C49-143FAC0E1475");
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("BA1D77F3-CC92-4C1F-8DC5-AEBADF114E74", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Remove", "Remove", "Select 'Yes' if group types should be be removed.  Select 'No' if they should just be marked as excluded.", 0, "True", "1667766D-2A03-4129-AF8D-F88D0821A074");
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("54BF0279-1FBB-4537-A933-2BAD48C43063", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Remove", "Remove", "Select 'Yes' if groups should be be removed.  Select 'No' if they should just be marked as excluded.", 0, "True", "2FBA7E72-3EC1-4C77-83D8-71DF53E113C4");
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("23F1E3FD-48AE-451F-9911-A5C7523A74B6", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Remove", "Remove", "Select 'Yes' if groups should be be removed.  Select 'No' if they should just be marked as excluded.", 0, "True", "16020443-CE2E-41B8-BFE9-2E1AA4E6E07C");
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("542DFBF4-F2F5-4C2F-9C9D-CDB00FDD5F04", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Remove", "Remove", "Select 'Yes' if groups should be be removed.  Select 'No' if they should just be marked as excluded.", 0, "True", "39F82A06-DD0E-4D51-A364-8D6C0EB32BC4");

            RockMigrationHelper.AddActionTypeAttributeValue("E107DCA8-6148-4CA6-B954-F96F4FE878CB", "C8BE5BB1-9293-4FA0-B4CF-FED19B855465", "");
            RockMigrationHelper.AddActionTypeAttributeValue("E107DCA8-6148-4CA6-B954-F96F4FE878CB", "D6BCB113-0699-4D58-8002-BC919CB4BA04", "False");
            RockMigrationHelper.AddActionTypeAttributeValue("1B640897-D832-4101-9C8C-D8274EF59F9A", "885D28C5-A395-4A05-AEFB-6131498BDF12", "False");
            RockMigrationHelper.AddActionTypeAttributeValue("E107DCA8-6148-4CA6-B954-F96F4FE878CB", "885D28C5-A395-4A05-AEFB-6131498BDF12", "False");
            RockMigrationHelper.AddActionTypeAttributeValue("F01D08DB-5AAE-417B-85D2-3FC7DAB44CBC", "DFFC0499-A352-40F5-9C49-143FAC0E1475", "True");
            RockMigrationHelper.AddActionTypeAttributeValue("BB3C824F-3B77-4C52-A173-ACCE9F60BA3E", "1667766D-2A03-4129-AF8D-F88D0821A074", "True");
            RockMigrationHelper.AddActionTypeAttributeValue("DDC2EFDD-2376-479E-B322-A440230E10E8", "2FBA7E72-3EC1-4C77-83D8-71DF53E113C4", "False");
            RockMigrationHelper.AddActionTypeAttributeValue("BB45E6E1-C39A-42A2-B988-490382DB7977", "16020443-CE2E-41B8-BFE9-2E1AA4E6E07C", "True");
            RockMigrationHelper.AddActionTypeAttributeValue("6D8317FB-8AAB-4533-A472-01FA572478D7", "39F82A06-DD0E-4D51-A364-8D6C0EB32BC4", "True");

            // Attrib for Checkin Manager Chart Style
            RockMigrationHelper.AddBlockAttributeValue("D38C2DA2-4F76-4BA5-9B26-ADA39D98DEDC", "4708D29F-0D15-4175-91C6-A7AFEA37BF1D", @"2ABB2EA0-B551-476C-8F6B-478CD08C2227");
        }
Ejemplo n.º 17
0
 /// <summary>
 /// The commands to run to migrate plugin to the specific version
 /// </summary>
 public override void Up()
 {
     RockMigrationHelper.UpdateEntityType("Rock.Model.Workflow", "3540E9A7-FE30-43A9-8B0A-A372B63DFC93", true, true);
     RockMigrationHelper.UpdateEntityType("Rock.Model.WorkflowActivity", "2CB52ED0-CB06-4D62-9E2C-73B60AFA4C9F", true, true);
     RockMigrationHelper.UpdateEntityType("Rock.Model.WorkflowActionType", "23E3273A-B137-48A3-9AFF-C8DC832DDCA6", true, true);
     RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.ActivateActivity", "38907A90-1634-4A93-8017-619326A4A582", false, true);
     RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.PersistWorkflow", "F1A39347-6FE0-43D4-89FB-544195088ECF", false, true);
     RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.RunSQL", "A41216D6-6FB0-4019-B222-2C29B4519CF4", false, true);
     RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.SendEmail", "66197B01-D1F0-4924-A315-47AD54E030DE", false, true);
     RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.SetAttributeFromEntity", "972F19B9-598B-474B-97A4-50E56E7B59D2", false, true);
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("38907A90-1634-4A93-8017-619326A4A582", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "E8ABD802-372C-47BE-82B1-96F50DB5169E");                                                                                                                                                                                                                                                                                                                                                                                                // Rock.Workflow.Action.ActivateActivity:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("38907A90-1634-4A93-8017-619326A4A582", "739FD425-5B8C-4605-B775-7E4D9D4C11DB", "Activity", "Activity", "The activity type to activate", 0, @"", "02D5A7A5-8781-46B4-B9FC-AF816829D240");                                                                                                                                                                                                                                                                                                                                                                                           // Rock.Workflow.Action.ActivateActivity:Activity
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("38907A90-1634-4A93-8017-619326A4A582", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "3809A78C-B773-440C-8E3F-A8E81D0DAE08");                                                                                                                                                                                                                                                                                                                                                                         // Rock.Workflow.Action.ActivateActivity:Order
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("66197B01-D1F0-4924-A315-47AD54E030DE", "1D0D3794-C210-48A8-8C68-3FBEC08A6BA5", "Body", "Body", "The body of the email that should be sent. <span class='tip tip-lava'></span> <span class='tip tip-html'></span>", 3, @"", "4D245B9E-6B03-46E7-8482-A51FBA190E4D");                                                                                                                                                                                                                                                                                                                // Rock.Workflow.Action.SendEmail:Body
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("66197B01-D1F0-4924-A315-47AD54E030DE", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "36197160-7D3D-490D-AB42-7E29105AFE91");                                                                                                                                                                                                                                                                                                                                                                                                // Rock.Workflow.Action.SendEmail:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("66197B01-D1F0-4924-A315-47AD54E030DE", "3B1D93D7-9414-48F9-80E5-6A3FC8F94C20", "From Email Address|Attribute Value", "From", "The email address or an attribute that contains the person or email address that email should be sent from (will default to organization email). <span class='tip tip-lava'></span>", 0, @"", "9F5F7CEC-F369-4FDF-802A-99074CE7A7FC");                                                                                                                                                                                                               // Rock.Workflow.Action.SendEmail:From Email Address|Attribute Value
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("66197B01-D1F0-4924-A315-47AD54E030DE", "3B1D93D7-9414-48F9-80E5-6A3FC8F94C20", "Send To Email Address|Attribute Value", "To", "The email address or an attribute that contains the person or email address that email should be sent to. <span class='tip tip-lava'></span>", 1, @"", "0C4C13B8-7076-4872-925A-F950886B5E16");                                                                                                                                                                                                                                                     // Rock.Workflow.Action.SendEmail:Send To Email Address|Attribute Value
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("66197B01-D1F0-4924-A315-47AD54E030DE", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Subject", "Subject", "The subject that should be used when sending email. <span class='tip tip-lava'></span>", 2, @"", "5D9B13B6-CD96-4C7C-86FA-4512B9D28386");                                                                                                                                                                                                                                                                                                                                    // Rock.Workflow.Action.SendEmail:Subject
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("66197B01-D1F0-4924-A315-47AD54E030DE", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "D1269254-C15A-40BD-B784-ADCC231D3950");                                                                                                                                                                                                                                                                                                                                                                         // Rock.Workflow.Action.SendEmail:Order
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("972F19B9-598B-474B-97A4-50E56E7B59D2", "1D0D3794-C210-48A8-8C68-3FBEC08A6BA5", "Lava Template", "LavaTemplate", "By default this action will set the attribute value equal to the guid (or id) of the entity that was passed in for processing. If you include a lava template here, the action will instead set the attribute value to the output of this template. The mergefield to use for the entity is 'Entity.' For example, use {{ Entity.Name }} if the entity has a Name property. <span class='tip tip-lava'></span>", 4, @"", "44836A7C-5007-4213-9AE7-E787225659C3"); // Rock.Workflow.Action.SetAttributeFromEntity:Lava Template
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("972F19B9-598B-474B-97A4-50E56E7B59D2", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "9392E3D7-A28B-4CD8-8B03-5E147B102EF1");                                                                                                                                                                                                                                                                                                                                                                                                // Rock.Workflow.Action.SetAttributeFromEntity:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("972F19B9-598B-474B-97A4-50E56E7B59D2", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Entity Is Required", "EntityIsRequired", "Should an error be returned if the entity is missing or not a valid entity type?", 2, @"True", "05B2AC7A-6C94-41C0-BF92-EE3DEF7895B1");                                                                                                                                                                                                                                                                                                                  // Rock.Workflow.Action.SetAttributeFromEntity:Entity Is Required
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("972F19B9-598B-474B-97A4-50E56E7B59D2", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Use Id instead of Guid", "UseId", "Most entity attribute field types expect the Guid of the entity (which is used by default). Select this option if the entity's Id should be used instead (should be rare).", 3, @"False", "1246C53A-FD92-4E08-ABDE-9A6C37E70C7B");                                                                                                                                                                                                                              // Rock.Workflow.Action.SetAttributeFromEntity:Use Id instead of Guid
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("972F19B9-598B-474B-97A4-50E56E7B59D2", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Attribute", "Attribute", "The attribute to set the value of.", 1, @"", "61E6E1BC-E657-4F00-B2E9-769AAA25B9F7");                                                                                                                                                                                                                                                                                                                                                                                    // Rock.Workflow.Action.SetAttributeFromEntity:Attribute
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("972F19B9-598B-474B-97A4-50E56E7B59D2", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "AD4EFAC4-E687-43DF-832F-0DC3856ABABB");                                                                                                                                                                                                                                                                                                                                                                         // Rock.Workflow.Action.SetAttributeFromEntity:Order
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("A41216D6-6FB0-4019-B222-2C29B4519CF4", "1D0D3794-C210-48A8-8C68-3FBEC08A6BA5", "SQLQuery", "SQLQuery", "The SQL query to run. <span class='tip tip-lava'></span>", 0, @"", "F3B9908B-096F-460B-8320-122CF046D1F9");                                                                                                                                                                                                                                                                                                                                                                // Rock.Workflow.Action.RunSQL:SQLQuery
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("A41216D6-6FB0-4019-B222-2C29B4519CF4", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "A18C3143-0586-4565-9F36-E603BC674B4E");                                                                                                                                                                                                                                                                                                                                                                                                // Rock.Workflow.Action.RunSQL:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("A41216D6-6FB0-4019-B222-2C29B4519CF4", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Result Attribute", "ResultAttribute", "An optional attribute to set to the scaler result of SQL query.", 1, @"", "56997192-2545-4EA1-B5B2-313B04588984");                                                                                                                                                                                                                                                                                                                                          // Rock.Workflow.Action.RunSQL:Result Attribute
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("A41216D6-6FB0-4019-B222-2C29B4519CF4", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "FA7C685D-8636-41EF-9998-90FFF3998F76");                                                                                                                                                                                                                                                                                                                                                                         // Rock.Workflow.Action.RunSQL:Order
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("F1A39347-6FE0-43D4-89FB-544195088ECF", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "50B01639-4938-40D2-A791-AA0EB4F86847");                                                                                                                                                                                                                                                                                                                                                                                                // Rock.Workflow.Action.PersistWorkflow:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("F1A39347-6FE0-43D4-89FB-544195088ECF", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Persist Immediately", "PersistImmediately", "This action will normally cause the workflow to be persisted (saved) once all the current activites/actions have completed processing. Set this flag to true, if the workflow should be persisted immediately. This is only required if a subsequent action needs a persisted workflow with a valid id.", 0, @"False", "CB7BF538-99A2-4BAE-B848-D96269FB541C");                                                                                       // Rock.Workflow.Action.PersistWorkflow:Persist Immediately
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("F1A39347-6FE0-43D4-89FB-544195088ECF", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "86F795B0-0CB6-4DA4-9CE4-B11D0922F361");                                                                                                                                                                                                                                                                                                                                                                         // Rock.Workflow.Action.PersistWorkflow:Order
     RockMigrationHelper.UpdateWorkflowType(false, true, "Send Give Receipt", "", "78E38655-D951-41DB-A0FF-D6474775CFA1", "SendGiveReceipt", "fa fa-dollar", 0, false, 0, "DEDC744B-8112-4374-B4A1-4BA8462C4938");                                                                                                                                                                                                                                                                                                                                                                                                                               // Send Give Receipt
     RockMigrationHelper.UpdateWorkflowTypeAttribute("DEDC744B-8112-4374-B4A1-4BA8462C4938", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Transaction GUID", "TransactionGUID", "", 0, @"", "C8E8013E-8492-4A5B-A9FF-3F6F83FD1C1A");                                                                                                                                                                                                                                                                                                                                                                                                                 // Send Give Receipt:Transaction GUID
     RockMigrationHelper.UpdateWorkflowTypeAttribute("DEDC744B-8112-4374-B4A1-4BA8462C4938", "9C204CD0-1233-41C5-818A-C5DA439445AA", "User Email Address", "UserEmailAddress", "", 2, @"", "BFDC8B6E-F8F9-42CA-A9FE-E464AFD4506C");                                                                                                                                                                                                                                                                                                                                                                                                              // Send Give Receipt:User Email Address
     RockMigrationHelper.AddAttributeQualifier("C8E8013E-8492-4A5B-A9FF-3F6F83FD1C1A", "ispassword", @"False", "977D858C-5B52-4380-9A71-67932878561F");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          // Send Give Receipt:Transaction GUID:ispassword
     RockMigrationHelper.AddAttributeQualifier("BFDC8B6E-F8F9-42CA-A9FE-E464AFD4506C", "ispassword", @"False", "171C7FA1-A19D-4487-8400-5E03F63D3A48");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          // Send Give Receipt:User Email Address:ispassword
     RockMigrationHelper.UpdateWorkflowActivityType("DEDC744B-8112-4374-B4A1-4BA8462C4938", true, "Get Transaction GUID", "", true, 0, "0B2F6C6C-AF8C-46CB-9D79-799F8A9D6CB6");                                                                                                                                                                                                                                                                                                                                                                                                                                                                  // Send Give Receipt:Get Transaction GUID
     RockMigrationHelper.UpdateWorkflowActivityType("DEDC744B-8112-4374-B4A1-4BA8462C4938", true, "Get User ID", "", false, 1, "3E124741-2EE4-4396-B5D8-C3C6FDC2FFF5");                                                                                                                                                                                                                                                                                                                                                                                                                                                                          // Send Give Receipt:Get User ID
     RockMigrationHelper.UpdateWorkflowActivityType("DEDC744B-8112-4374-B4A1-4BA8462C4938", true, "Send Email", "", false, 2, "349C67B4-E7BF-402D-AB39-BB4FB922F6DB");                                                                                                                                                                                                                                                                                                                                                                                                                                                                           // Send Give Receipt:Send Email
     RockMigrationHelper.UpdateWorkflowActionType("0B2F6C6C-AF8C-46CB-9D79-799F8A9D6CB6", "Get Transaction GUID", 0, "972F19B9-598B-474B-97A4-50E56E7B59D2", true, false, "", "", 1, "", "569FD7AF-4B50-494A-B7AF-C2AAC2C467E1");                                                                                                                                                                                                                                                                                                                                                                                                                // Send Give Receipt:Get Transaction GUID:Get Transaction GUID
     RockMigrationHelper.UpdateWorkflowActionType("3E124741-2EE4-4396-B5D8-C3C6FDC2FFF5", "Get User ID", 0, "A41216D6-6FB0-4019-B222-2C29B4519CF4", true, false, "", "", 1, "", "A78C1FD3-F0EC-4B45-8DC7-40362875438F");                                                                                                                                                                                                                                                                                                                                                                                                                         // Send Give Receipt:Get User ID:Get User ID
     RockMigrationHelper.UpdateWorkflowActionType("0B2F6C6C-AF8C-46CB-9D79-799F8A9D6CB6", "Persist Workflow", 1, "F1A39347-6FE0-43D4-89FB-544195088ECF", true, false, "", "", 1, "", "886C247A-3A35-47D8-B324-D6AF90B76219");                                                                                                                                                                                                                                                                                                                                                                                                                    // Send Give Receipt:Get Transaction GUID:Persist Workflow
     RockMigrationHelper.UpdateWorkflowActionType("0B2F6C6C-AF8C-46CB-9D79-799F8A9D6CB6", "Activate Activity", 2, "38907A90-1634-4A93-8017-619326A4A582", true, true, "", "", 1, "", "D4D93F0D-41B7-4796-B1C1-C68841AAAFB4");                                                                                                                                                                                                                                                                                                                                                                                                                    // Send Give Receipt:Get Transaction GUID:Activate Activity
     RockMigrationHelper.UpdateWorkflowActionType("349C67B4-E7BF-402D-AB39-BB4FB922F6DB", "Send Email", 0, "66197B01-D1F0-4924-A315-47AD54E030DE", true, false, "", "", 1, "", "AC48ADD7-54A9-4CDD-A5FB-5FEF43547516");                                                                                                                                                                                                                                                                                                                                                                                                                          // Send Give Receipt:Send Email:Send Email
     RockMigrationHelper.UpdateWorkflowActionType("3E124741-2EE4-4396-B5D8-C3C6FDC2FFF5", "Activate Activity", 1, "38907A90-1634-4A93-8017-619326A4A582", true, true, "", "", 1, "", "F18CA344-1F31-4691-BE2B-AE1C36F8CBD5");                                                                                                                                                                                                                                                                                                                                                                                                                    // Send Give Receipt:Get User ID:Activate Activity
     RockMigrationHelper.AddActionTypeAttributeValue("569FD7AF-4B50-494A-B7AF-C2AAC2C467E1", "AD4EFAC4-E687-43DF-832F-0DC3856ABABB", @"");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       // Send Give Receipt:Get Transaction GUID:Get Transaction GUID:Order
     RockMigrationHelper.AddActionTypeAttributeValue("569FD7AF-4B50-494A-B7AF-C2AAC2C467E1", "9392E3D7-A28B-4CD8-8B03-5E147B102EF1", @"False");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  // Send Give Receipt:Get Transaction GUID:Get Transaction GUID:Active
     RockMigrationHelper.AddActionTypeAttributeValue("569FD7AF-4B50-494A-B7AF-C2AAC2C467E1", "61E6E1BC-E657-4F00-B2E9-769AAA25B9F7", @"c8e8013e-8492-4a5b-a9ff-3f6f83fd1c1a");                                                                                                                                                                                                                                                                                                                                                                                                                                                                   // Send Give Receipt:Get Transaction GUID:Get Transaction GUID:Attribute
     RockMigrationHelper.AddActionTypeAttributeValue("569FD7AF-4B50-494A-B7AF-C2AAC2C467E1", "05B2AC7A-6C94-41C0-BF92-EE3DEF7895B1", @"True");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   // Send Give Receipt:Get Transaction GUID:Get Transaction GUID:Entity Is Required
     RockMigrationHelper.AddActionTypeAttributeValue("569FD7AF-4B50-494A-B7AF-C2AAC2C467E1", "1246C53A-FD92-4E08-ABDE-9A6C37E70C7B", @"False");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  // Send Give Receipt:Get Transaction GUID:Get Transaction GUID:Use Id instead of Guid
     RockMigrationHelper.AddActionTypeAttributeValue("569FD7AF-4B50-494A-B7AF-C2AAC2C467E1", "44836A7C-5007-4213-9AE7-E787225659C3", @"");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       // Send Give Receipt:Get Transaction GUID:Get Transaction GUID:Lava Template
     RockMigrationHelper.AddActionTypeAttributeValue("886C247A-3A35-47D8-B324-D6AF90B76219", "50B01639-4938-40D2-A791-AA0EB4F86847", @"False");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  // Send Give Receipt:Get Transaction GUID:Persist Workflow:Active
     RockMigrationHelper.AddActionTypeAttributeValue("886C247A-3A35-47D8-B324-D6AF90B76219", "86F795B0-0CB6-4DA4-9CE4-B11D0922F361", @"");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       // Send Give Receipt:Get Transaction GUID:Persist Workflow:Order
     RockMigrationHelper.AddActionTypeAttributeValue("886C247A-3A35-47D8-B324-D6AF90B76219", "CB7BF538-99A2-4BAE-B848-D96269FB541C", @"False");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  // Send Give Receipt:Get Transaction GUID:Persist Workflow:Persist Immediately
     RockMigrationHelper.AddActionTypeAttributeValue("D4D93F0D-41B7-4796-B1C1-C68841AAAFB4", "E8ABD802-372C-47BE-82B1-96F50DB5169E", @"False");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  // Send Give Receipt:Get Transaction GUID:Activate Activity:Active
     RockMigrationHelper.AddActionTypeAttributeValue("D4D93F0D-41B7-4796-B1C1-C68841AAAFB4", "02D5A7A5-8781-46B4-B9FC-AF816829D240", @"3E124741-2EE4-4396-B5D8-C3C6FDC2FFF5");                                                                                                                                                                                                                                                                                                                                                                                                                                                                   // Send Give Receipt:Get Transaction GUID:Activate Activity:Activity
     RockMigrationHelper.AddActionTypeAttributeValue("D4D93F0D-41B7-4796-B1C1-C68841AAAFB4", "3809A78C-B773-440C-8E3F-A8E81D0DAE08", @"");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       // Send Give Receipt:Get Transaction GUID:Activate Activity:Order
     RockMigrationHelper.AddActionTypeAttributeValue("A78C1FD3-F0EC-4B45-8DC7-40362875438F", "A18C3143-0586-4565-9F36-E603BC674B4E", @"False");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  // Send Give Receipt:Get User ID:Get User ID:Active
     RockMigrationHelper.AddActionTypeAttributeValue("A78C1FD3-F0EC-4B45-8DC7-40362875438F", "FA7C685D-8636-41EF-9998-90FFF3998F76", @"");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       // Send Give Receipt:Get User ID:Get User ID:Order
     RockMigrationHelper.AddActionTypeAttributeValue("A78C1FD3-F0EC-4B45-8DC7-40362875438F", "F3B9908B-096F-460B-8320-122CF046D1F9", @"SELECT Email FROM Person INNER JOIN  (     SELECT PersonId     FROM PersonAlias     INNER JOIN (         SELECT              AuthorizedPersonAliasId         FROM              FinancialTransaction         Where              GUID='{{ Workflow.TransactionGUID }}'     ) Aliases     ON PersonAlias.Id = Aliases.AuthorizedPersonAliasId ) Results ON Person.Id = Results.PersonId  ");                                                                                                                 // Send Give Receipt:Get User ID:Get User ID:SQLQuery
     RockMigrationHelper.AddActionTypeAttributeValue("A78C1FD3-F0EC-4B45-8DC7-40362875438F", "56997192-2545-4EA1-B5B2-313B04588984", @"bfdc8b6e-f8f9-42ca-a9fe-e464afd4506c");                                                                                                                                                                                                                                                                                                                                                                                                                                                                   // Send Give Receipt:Get User ID:Get User ID:Result Attribute
     RockMigrationHelper.AddActionTypeAttributeValue("F18CA344-1F31-4691-BE2B-AE1C36F8CBD5", "E8ABD802-372C-47BE-82B1-96F50DB5169E", @"False");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  // Send Give Receipt:Get User ID:Activate Activity:Active
     RockMigrationHelper.AddActionTypeAttributeValue("F18CA344-1F31-4691-BE2B-AE1C36F8CBD5", "02D5A7A5-8781-46B4-B9FC-AF816829D240", @"349C67B4-E7BF-402D-AB39-BB4FB922F6DB");                                                                                                                                                                                                                                                                                                                                                                                                                                                                   // Send Give Receipt:Get User ID:Activate Activity:Activity
     RockMigrationHelper.AddActionTypeAttributeValue("F18CA344-1F31-4691-BE2B-AE1C36F8CBD5", "3809A78C-B773-440C-8E3F-A8E81D0DAE08", @"");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       // Send Give Receipt:Get User ID:Activate Activity:Order
     RockMigrationHelper.AddActionTypeAttributeValue("AC48ADD7-54A9-4CDD-A5FB-5FEF43547516", "36197160-7D3D-490D-AB42-7E29105AFE91", @"False");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  // Send Give Receipt:Send Email:Send Email:Active
     RockMigrationHelper.AddActionTypeAttributeValue("AC48ADD7-54A9-4CDD-A5FB-5FEF43547516", "9F5F7CEC-F369-4FDF-802A-99074CE7A7FC", @"*****@*****.**");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     // Send Give Receipt:Send Email:Send Email:From Email Address|Attribute Value
     RockMigrationHelper.AddActionTypeAttributeValue("AC48ADD7-54A9-4CDD-A5FB-5FEF43547516", "D1269254-C15A-40BD-B784-ADCC231D3950", @"");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       // Send Give Receipt:Send Email:Send Email:Order
     RockMigrationHelper.AddActionTypeAttributeValue("AC48ADD7-54A9-4CDD-A5FB-5FEF43547516", "0C4C13B8-7076-4872-925A-F950886B5E16", @"bfdc8b6e-f8f9-42ca-a9fe-e464afd4506c");                                                                                                                                                                                                                                                                                                                                                                                                                                                                   // Send Give Receipt:Send Email:Send Email:Send To Email Address|Attribute Value
     RockMigrationHelper.AddActionTypeAttributeValue("AC48ADD7-54A9-4CDD-A5FB-5FEF43547516", "5D9B13B6-CD96-4C7C-86FA-4512B9D28386", @"Success!");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               // Send Give Receipt:Send Email:Send Email:Subject
     RockMigrationHelper.AddActionTypeAttributeValue("AC48ADD7-54A9-4CDD-A5FB-5FEF43547516", "4D245B9E-6B03-46E7-8482-A51FBA190E4D", @"Successful email!");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      // Send Give Receipt:Send Email:Send Email:Body
 }
Ejemplo n.º 18
0
        /// <summary>
        /// Operations to be performed during the upgrade process.
        /// </summary>
        public override void Up()
        {
            AlterColumn("dbo.Workflow", "Name", c => c.String(nullable: false, maxLength: 250));

            //
            // rebuild the Dataview for 'Background check is still valid'
            //
            Sql(@"
DELETE FROM [DataViewFilter] where [Guid] = 'A0C00B93-C656-44E3-B64A-28036D9B9E5E'
DELETE FROM [DataViewFilter] where [Guid] = 'F020509F-C8D0-477A-AC9C-22541918A2CC'
DELETE FROM [DataViewFilter] where [Guid] = '256E15E6-9D9A-4539-8BE1-0B0F68BD2342'
DELETE FROM [DataViewFilter] where [Guid] = 'BD7FE43A-B887-41A0-9C65-A2E6D9685596'
DELETE FROM [DataViewFilter] where [Guid] = '6B3326F1-ADF4-472A-8FD8-461AA85B2624'
DELETE FROM [DataViewFilter] where [Guid] = '841466E9-FB82-4AC1-BAFB-87B6153CE3EF'
DELETE FROM [DataViewFilter] where [Guid] = '529CC78B-83F9-442B-A8CC-3BB9004AF0A8'
DELETE FROM [DataViewFilter] where [Guid] = 'D6FCA2A2-8DF6-40D6-A8E9-A88EA9ADB94A'
DELETE FROM [DataViewFilter] where [Guid] = '1696FD0E-6B2B-4042-AEED-59E003755901'
DELETE FROM [DataViewFilter] where [Guid] = '8E6BA6EE-0977-48E1-AC53-E40DA02E245E'
DELETE FROM [DataViewFilter] where [Guid] = 'DE876BBC-C94C-47EE-BF7B-E374F8807C78'
");
            //  change base DataViewFilter to a 'GroupAny'
            Sql(@"UPDATE [DataViewFilter] set ExpressionType = 2 where [Guid] = 'D294FB17-8872-47C8-AC29-96714B3DDE9F'");

            // Create [GroupAny] DataViewFilter for DataView: Background check is still valid
            Sql(@"
IF NOT EXISTS (SELECT * FROM DataViewFilter where [Guid] = 'D294FB17-8872-47C8-AC29-96714B3DDE9F') BEGIN    
    DECLARE
        @ParentDataViewFilterId int = (select Id from DataViewFilter where [Guid] = '00000000-0000-0000-0000-000000000000'),
        @DataViewFilterEntityTypeId int = (select Id from EntityType where [Guid] = '00000000-0000-0000-0000-000000000000')
    INSERT INTO [DataViewFilter] (ExpressionType, ParentId, EntityTypeId, Selection, [Guid]) 
    values (2,@ParentDataViewFilterId,@DataViewFilterEntityTypeId,'','D294FB17-8872-47C8-AC29-96714B3DDE9F')
END
");
            // Create [GroupAll] DataViewFilter for DataView: Background check is still valid
            Sql(@"
IF NOT EXISTS (SELECT * FROM DataViewFilter where [Guid] = 'DE876BBC-C94C-47EE-BF7B-E374F8807C78') BEGIN    
    DECLARE
        @ParentDataViewFilterId int = (select Id from DataViewFilter where [Guid] = 'D294FB17-8872-47C8-AC29-96714B3DDE9F'),
        @DataViewFilterEntityTypeId int = (select Id from EntityType where [Guid] = '00000000-0000-0000-0000-000000000000')
    INSERT INTO [DataViewFilter] (ExpressionType, ParentId, EntityTypeId, Selection, [Guid]) 
    values (1,@ParentDataViewFilterId,@DataViewFilterEntityTypeId,'','DE876BBC-C94C-47EE-BF7B-E374F8807C78')
END
");
            // Create [GroupAll] DataViewFilter for DataView: Background check is still valid
            Sql(@"
IF NOT EXISTS (SELECT * FROM DataViewFilter where [Guid] = '8E6BA6EE-0977-48E1-AC53-E40DA02E245E') BEGIN    
    DECLARE
        @ParentDataViewFilterId int = (select Id from DataViewFilter where [Guid] = 'D294FB17-8872-47C8-AC29-96714B3DDE9F'),
        @DataViewFilterEntityTypeId int = (select Id from EntityType where [Guid] = '00000000-0000-0000-0000-000000000000')
    INSERT INTO [DataViewFilter] (ExpressionType, ParentId, EntityTypeId, Selection, [Guid]) 
    values (1,@ParentDataViewFilterId,@DataViewFilterEntityTypeId,'','8E6BA6EE-0977-48E1-AC53-E40DA02E245E')
END
");
            // Create Rock.Reporting.DataFilter.Person.AgeFilter DataViewFilter for DataView: Background check is still valid
            Sql(@"
IF NOT EXISTS (SELECT * FROM DataViewFilter where [Guid] = '1696FD0E-6B2B-4042-AEED-59E003755901') BEGIN    
    DECLARE
        @ParentDataViewFilterId int = (select Id from DataViewFilter where [Guid] = 'DE876BBC-C94C-47EE-BF7B-E374F8807C78'),
        @DataViewFilterEntityTypeId int = (select Id from EntityType where [Guid] = '4911C63D-71BB-4686-AAA3-D66EA41DA465')
    INSERT INTO [DataViewFilter] (ExpressionType, ParentId, EntityTypeId, Selection, [Guid]) 
    values (0,@ParentDataViewFilterId,@DataViewFilterEntityTypeId,'512|18|,','1696FD0E-6B2B-4042-AEED-59E003755901')
END
");
            // Create Rock.Reporting.DataFilter.PropertyFilter DataViewFilter for DataView: Background check is still valid
            Sql(@"
IF NOT EXISTS (SELECT * FROM DataViewFilter where [Guid] = 'D6FCA2A2-8DF6-40D6-A8E9-A88EA9ADB94A') BEGIN    
    DECLARE
        @ParentDataViewFilterId int = (select Id from DataViewFilter where [Guid] = '8E6BA6EE-0977-48E1-AC53-E40DA02E245E'),
        @DataViewFilterEntityTypeId int = (select Id from EntityType where [Guid] = '03F0D6AC-D181-48B6-B4BC-1F2652B55323')
    INSERT INTO [DataViewFilter] (ExpressionType, ParentId, EntityTypeId, Selection, [Guid]) 
    values (0,@ParentDataViewFilterId,@DataViewFilterEntityTypeId,'[
  ""BackgroundChecked"",
  ""1"",
  ""True""
]','D6FCA2A2-8DF6-40D6-A8E9-A88EA9ADB94A')
END
");
            // Create Rock.Reporting.DataFilter.PropertyFilter DataViewFilter for DataView: Background check is still valid
            Sql(@"
IF NOT EXISTS (SELECT * FROM DataViewFilter where [Guid] = '529CC78B-83F9-442B-A8CC-3BB9004AF0A8') BEGIN    
    DECLARE
        @ParentDataViewFilterId int = (select Id from DataViewFilter where [Guid] = '8E6BA6EE-0977-48E1-AC53-E40DA02E245E'),
        @DataViewFilterEntityTypeId int = (select Id from EntityType where [Guid] = '03F0D6AC-D181-48B6-B4BC-1F2652B55323')
    INSERT INTO [DataViewFilter] (ExpressionType, ParentId, EntityTypeId, Selection, [Guid]) 
    values (0,@ParentDataViewFilterId,@DataViewFilterEntityTypeId,'[
  ""BackgroundCheckDate"",
  ""256"",
  ""CURRENT:-1095\tAll||||""
]','529CC78B-83F9-442B-A8CC-3BB9004AF0A8')
END
");
            // Create Rock.Reporting.DataFilter.Person.AgeFilter DataViewFilter for DataView: Background check is still valid
            Sql(@"
IF NOT EXISTS (SELECT * FROM DataViewFilter where [Guid] = '841466E9-FB82-4AC1-BAFB-87B6153CE3EF') BEGIN    
    DECLARE
        @ParentDataViewFilterId int = (select Id from DataViewFilter where [Guid] = '8E6BA6EE-0977-48E1-AC53-E40DA02E245E'),
        @DataViewFilterEntityTypeId int = (select Id from EntityType where [Guid] = '4911C63D-71BB-4686-AAA3-D66EA41DA465')
    INSERT INTO [DataViewFilter] (ExpressionType, ParentId, EntityTypeId, Selection, [Guid]) 
    values (0,@ParentDataViewFilterId,@DataViewFilterEntityTypeId,'256|18|,','841466E9-FB82-4AC1-BAFB-87B6153CE3EF')
END
");
            // Create Rock.Reporting.DataFilter.PropertyFilter DataViewFilter for DataView: Background check is still valid
            Sql(@"
IF NOT EXISTS (SELECT * FROM DataViewFilter where [Guid] = '6B3326F1-ADF4-472A-8FD8-461AA85B2624') BEGIN    
    DECLARE
        @ParentDataViewFilterId int = (select Id from DataViewFilter where [Guid] = '8E6BA6EE-0977-48E1-AC53-E40DA02E245E'),
        @DataViewFilterEntityTypeId int = (select Id from EntityType where [Guid] = '03F0D6AC-D181-48B6-B4BC-1F2652B55323')
    INSERT INTO [DataViewFilter] (ExpressionType, ParentId, EntityTypeId, Selection, [Guid]) 
    values (0,@ParentDataViewFilterId,@DataViewFilterEntityTypeId,'[
  ""BackgroundCheckResult"",
  ""Pass""
]','6B3326F1-ADF4-472A-8FD8-461AA85B2624')
END
");
            //
            // blank SSN
            //

            RockMigrationHelper.UpdateWorkflowActionType("F95F8B4B-3ACD-4906-81F5-EBF589F87831", "Clear SSN Value", 3, "C789E457-0783-44B3-9D8F-2EBAB5F11110", true, false, "", "", 1, "", "EE581993-40BB-4D67-82AE-0CC152FE9620"); // Background Check:Complete Request:Clear SSN Value

            RockMigrationHelper.AddActionTypeAttributeValue("EE581993-40BB-4D67-82AE-0CC152FE9620", "D7EAA859-F500-4521-9523-488B12EAA7D2", @"False");                                                                              // Background Check:Complete Request:Clear SSN Value:Active
            RockMigrationHelper.AddActionTypeAttributeValue("EE581993-40BB-4D67-82AE-0CC152FE9620", "44A0B977-4730-4519-8FF6-B0A01A95B212", @"1fab9a4c-c5a2-4938-b9bd-80935f0a598c");                                               // Background Check:Complete Request:Clear SSN Value:Attribute
            RockMigrationHelper.AddActionTypeAttributeValue("EE581993-40BB-4D67-82AE-0CC152FE9620", "57093B41-50ED-48E5-B72B-8829E62704C8", @"");                                                                                   // Background Check:Complete Request:Clear SSN Value:Order
            RockMigrationHelper.AddActionTypeAttributeValue("EE581993-40BB-4D67-82AE-0CC152FE9620", "E5272B11-A2B8-49DC-860D-8D574E2BC15C", @"xxx-xx-xxxx");                                                                        // Background Check:Complete Request:Clear SSN Value:Text Value|Attribute Value

            Sql(@"
DECLARE @CompleteWorkflowEntityTypeId int = ( SELECT [Id] FROM [EntityType] WHERE [Guid] = 'EEDA4318-F014-4A46-9C76-4C052EF81AA1' )
DECLARE @ActivityTypeId int = (SELECT [Id] FROM [WorkflowActivityType] WHERE [Guid] = 'F95F8B4B-3ACD-4906-81F5-EBF589F87831')
DECLARE @Order int = ( SELECT TOP 1 [Order] FROM [WorkflowActionType] WHERE [ActivityTypeId] = @ActivityTypeId )
IF @Order IS NULL
BEGIN
	SET @order  = ISNULL((SELECT Max([Order]) FROM [WorkflowActionType] WHERE [ActivityTypeId] = @ActivityTypeId)+1,0)
END

IF @Order IS NOT NULL
BEGIN
	UPDATE [WorkflowActionType] 
	SET [Order] = [Order] + 1
	WHERE [ActivityTypeId] = @ActivityTypeId
	AND [Order] >= @Order

	UPDATE [WorkflowActionType] 
	SET [Order] = @Order
	WHERE [Guid] = 'EE581993-40BB-4D67-82AE-0CC152FE9620'
END
");

            //
            // Fix context on person person profile new transaciton links
            //

            // Attrib Value for Block:Transaction Links, Attribute:Entity Type Page: Contributions, Site: Rock RMS
            RockMigrationHelper.AddBlockAttributeValue("6F7F97D3-6C7D-4B58-A6E7-9A21BF55428A", "6783D47D-92F9-4F48-93C0-16111D675A0F", @"72657ed8-d16e-492e-ac12-144c5e7567e7");

            //
            // Blank out page descriptions on internal site
            //

            Sql(@"UPDATE [Page]
SET [Description] = ''
WHERE [Guid] IN ('85F25819-E948-4960-9DDF-00F54D32444E', 
'7596D389-4EAB-4535-8BEE-229737F46F44', 
'03CB988A-138C-448B-A43D-8891844EEB18', 
'7D4E2142-D24E-4DD2-84BC-B34C5C3D0D46', 
'5FBE9019-862A-41C6-ACDC-287D7934757D', 
'20F97A93-7949-4C2A-8A5E-C756FE8585CA', 
'9F36531F-C1B5-4E23-8FA3-18B6DAFF1B0B', 
'0C4B3F4D-53FD-4A65-8C93-3868CE4DA137', 
'7F2581A1-941E-4D51-8A9D-5BE9B881B003', 
'895F58FB-C1C4-4399-A4D8-A9A10225EA09', 
'F0B34893-9550-4864-ADB4-EE860E4E427C', 
'86D5E33E-E351-4CA5-9925-849C6C467257', 
'D58F205E-E9CC-4BD9-BC79-F3DA86F6E346', 
'37759B50-DB4A-440D-A83B-4EF3B4727B1E', 
'1FD5698F-7279-463F-9637-9A80DB86BB86', 
'550A898C-EDEA-48B5-9C58-B20EC13AF13B', 
'A2753E03-96B1-4C83-AA11-FCD68C631571', 
'89B7A631-EA6F-4DA3-9380-04EE67B63E9E', 
'7BA1FAF4-B63C-4423-A818-CC794DDB14E3', 
'142627AE-6590-48E3-BFCA-3669260B8CF2', 
'0B213645-FA4E-44A5-8E4C-B2D8EF054985', 
'18C9E5C3-3E28-4AA3-84F6-78CD4EA2DD3C', 
'E0E1DE66-B825-4BFB-A0B3-6E069AA9AA40', 
'5EE91A54-C750-48DC-9392-F1F0F0581C3A', 
'8A97CC93-3E93-4286-8440-E5217B65A904', 
'1719F597-5BA9-458D-9362-9C3E558E5C82', 
'5E036ADE-C2A4-4988-B393-DAC58230F02E', 
'F111791B-6A58-4388-8533-00E913F48F41', 
'BF04BB7E-BE3A-4A38-A37C-386B55496303', 
'08DBD8A5-2C35-4146-B4A8-0F7652348B25', 
'4A833BE3-7D5E-4C38-AF60-5706260015EA', 
'CE2170A9-2C8E-40B1-A42E-DFA73762D01D', 
'40899BCD-82B0-47F2-8F2A-B6AA3877B445', 
'C58ADA1A-6322-4998-8FED-C3565DE87EFA', 
'EC7A06CD-AAB5-4455-962E-B4043EA2440E', 
'F7F41856-F7EA-49A8-9D9B-917AC1964602', 
'F7105BFE-B28C-41B6-9CE6-F1018D77DD8F', 
'D9678FEF-C086-4232-972C-5DBAC14BFEE6', 
'4E237286-B715-4109-A578-C1445EC02707', 
'1A3437C8-D4CB-4329-A366-8D6A4CBF79BF', 
'BB0ACD18-24FB-42BA-B89A-2FFD80472F5B', 
'4011CB37-28AA-46C4-99D5-826F4A9CADF5', 
'03C49950-9C4C-4668-9C65-9A0DF43D1B33', 
'5537F375-B652-4603-8E04-119C74414CD7', 
'66031C31-B397-4F78-8AB2-389B7D8731AA', 
'1A233978-5BF4-4A09-9B86-6CC4C081F48B', 
'7E660A4D-72C5-4CF8-B144-16CFC2ADD4D7', 
'EE0CC3F3-50FD-4161-BA5C-A852D4A10E7B', 
'7C093A63-F2AC-4FE3-A826-8BF06D204EA2', 
'1570D2AF-4FE2-4FC7-BED9-F20EBCBE9867', 
'EF7AA296-CA69-49BC-A28B-901A8AAA9466', 
'EF65EFF2-99AC-4081-8E09-32A04518683A', 
'606BDA31-A8FE-473A-B3F8-A00ECF7E06EC', 
'B67E38CB-2EF1-43EA-863A-37DAA1C7340F', 
'2A22D08D-73A8-4AAF-AC7E-220E8B2E7857', 
'6FF35C53-F89F-4601-8543-2E2328C623F8', 
'29CC8A0B-6476-4200-8B93-DC9BA8767D59', 
'CADB44F2-2453-4DB5-AB11-DADA5162AB79', 
'21DA6141-0A03-4F00-B0A8-3B110FBE2438', 
'26547B83-A92D-4D7E-82ED-691F403F16B6', 
'F5D6D7DD-FD5F-494C-83DC-E2AF63C705D1', 
'220D72F5-B589-4378-9852-BBB6F145AD7F', 
'7F1F4130-CB98-473B-9DE1-7A886D2283ED', 
'23507C90-3F78-40D4-B847-6FE8941FCD32', 
'FEA8D6FC-B26F-48D5-BE69-6BCEF7CDC4E5', 
'9C9CAD94-095E-4CC9-BC29-24BDE30492B2', 
'97ECDC48-6DF6-492E-8C72-161F76AE111B', 
'B0F4B33D-DD11-4CCC-B79D-9342831B8701', 
'C646A95A-D12D-4A67-9BE6-C9695C0267ED', 
'9C569E6B-F745-40E4-B91B-A518CD6C2922', 
'EBAA5140-4B8F-44B8-B1E8-C73B654E4B22', 
'4D7F3953-0BD9-4B4B-83F9-5FCC6B2BBE30', 
'1C763885-291F-44B7-A5E3-539584E07085', 
'48A9DF54-CC19-42FA-BDC6-97AF3E63029D', 
'227FDFB9-8C29-4B34-ABE5-E0579A3A6018', 
'2BECFB85-D566-464F-B6AC-0BE90189A418', 
'F4DF4899-2D44-4997-BA9B-9D2C64958A20', 
'D2B43273-C64F-4F57-9AAE-9571E1982BAC', 
'881AB1C2-4E00-4A73-80CC-9886B3717A20', 
'594692AA-5647-4F9A-9488-AADB990FDE56', 
'8559A9F1-C6A4-4945-B393-74F6706A8FA2', 
'66C5DD58-094C-4FF9-9AFB-44801FCFCC2D', 
'96501070-BB46-4432-AA3C-A8C496691629', 
'AFFFB245-A0EB-4002-B736-A2D52DD692CF', 
'5A06C807-251C-4155-BBE7-AAC73D0745E3', 
'7D5311B3-F526-4E22-8153-EA1799467886', 
'BA078BB8-7205-46F4-9530-B2FB9EAD3E57', 
'07E4BA19-614A-42D0-9D75-DFB31374844D', 
'04141667-1A08-4E15-8BB7-E3E312233E11', 
'5180AE8E-BF1C-444F-A154-14E5A8A4ACC9')");

            //
            // DT: Delete orphaned Payment Detail records
            //
            Sql(@"
    DELETE [FinancialPaymentDetail] 
    WHERE [Id] NOT IN (
	    SELECT [FinancialPaymentDetailId] FROM [FinancialTransaction] WHERE [FinancialPaymentDetailId] IS NOT NULL
	    UNION
	    SELECT [FinancialPaymentDetailId] FROM [FinancialPersonSavedAccount] WHERE [FinancialPaymentDetailId] IS NOT NULL
	    UNION
	    SELECT [FinancialPaymentDetailId] FROM [FinancialScheduledTransaction] WHERE [FinancialPaymentDetailId] IS NOT NULL
    )
");
        }
        /// <summary>
        /// Operations to be performed during the upgrade process.
        /// </summary>
        public override void Up()
        {
            var rockContext = new RockContext();

            var discWorkflowGuid      = new Guid("885CBA61-44EA-4B4A-B6E1-289041B6A195");
            var discWorkflowNotEdited = new WorkflowTypeService(rockContext).Queryable()
                                        .Where(w => w.Guid == discWorkflowGuid && w.ModifiedDateTime == null)
                                        .Any();

            if (discWorkflowNotEdited)
            {
                // add person attribute to store last DISC request date
                RockMigrationHelper.UpdatePersonAttribute(Rock.SystemGuid.FieldType.DATE, "0B187C81-2106-4875-82B6-FBF1277AE23B", "Last DISC Request Date", "LastDiscRequestDate", "fa fa-bar-chart", "The date the last DISC request was sent.", 9, string.Empty, "41B73365-A984-879E-4749-7DB4FC720138");


                RockMigrationHelper.UpdateWorkflowTypeAttribute("885CBA61-44EA-4B4A-B6E1-289041B6A195", "9C204CD0-1233-41C5-818A-C5DA439445AA", "No Email Warning", "NoEmailWarning", "Warning message when the person does not have an email address.", 5, @"", "BB2B3CF8-7C81-4EBD-9589-A961E341F70C");   // DISC Request:No Email Warning}


                RockMigrationHelper.UpdateWorkflowActionType("4A8E2E61-FE0D-4AB3-BA48-9419A20E4541", "Set No Email Warning", 5, "A41216D6-6FB0-4019-B222-2C29B4519CF4", true, false, "", "", 1, "", "940E88E7-1294-4DD7-A626-E1345A41A2D1"); // DISC Request:Launch From Person Profile:Set No Email Warning
                RockMigrationHelper.AddActionTypeAttributeValue("940E88E7-1294-4DD7-A626-E1345A41A2D1", "FA7C685D-8636-41EF-9998-90FFF3998F76", @"");                                                                                        // DISC Request:Launch From Person Profile:Set No Email Warning:Order
                RockMigrationHelper.AddActionTypeAttributeValue("940E88E7-1294-4DD7-A626-E1345A41A2D1", "F3B9908B-096F-460B-8320-122CF046D1F9", @"DECLARE @PersonAliasGuid uniqueidentifier = '{{ Workflow.Person_unformatted }}'

SELECT  CASE
    WHEN EXISTS ( SELECT 1
        FROM [Person] P
        INNER JOIN [PersonAlias] PA ON PA.[Guid] = @PersonAliasGuid AND P.[Id] = PA.[PersonId]
        WHERE P.[IsEmailActive] <> 0 AND P.[Email] IS NOT NULL AND P.[Email] != '' )
    THEN 'True'
    ELSE 'False'
    END");                                                                                                                                                                                                                                   // DISC Request:Launch From Person Profile:Set No Email Warning:SQLQuery
                RockMigrationHelper.AddActionTypeAttributeValue("940E88E7-1294-4DD7-A626-E1345A41A2D1", "A18C3143-0586-4565-9F36-E603BC674B4E", @"False");                                                                                   // DISC Request:Launch From Person Profile:Set No Email Warning:Active
                RockMigrationHelper.AddActionTypeAttributeValue("940E88E7-1294-4DD7-A626-E1345A41A2D1", "56997192-2545-4EA1-B5B2-313B04588984", @"bb2b3cf8-7c81-4ebd-9589-a961e341f70c");                                                    // DISC Request:Launch From Person Profile:Set No Email Warning:Result Attribute


                RockMigrationHelper.UpdateWorkflowActionType("4A8E2E61-FE0D-4AB3-BA48-9419A20E4541", "Set No Email Warning Message", 6, "C789E457-0783-44B3-9D8F-2EBAB5F11110", true, false, "", "BB2B3CF8-7C81-4EBD-9589-A961E341F70C", 1, "False", "3FAC4206-D572-4BB7-84A8-9FF817C96302");                 // DISC Request:Launch From Person Profile:Set No Email Warning Message
                RockMigrationHelper.AddActionTypeAttributeValue("3FAC4206-D572-4BB7-84A8-9FF817C96302", "57093B41-50ED-48E5-B72B-8829E62704C8", @"");                                                                                                                                                         // DISC Request:Launch From Person Profile:Set No Email Warning Message:Order
                RockMigrationHelper.AddActionTypeAttributeValue("3FAC4206-D572-4BB7-84A8-9FF817C96302", "D7EAA859-F500-4521-9523-488B12EAA7D2", @"False");                                                                                                                                                    // DISC Request:Launch From Person Profile:Set No Email Warning Message:Active
                RockMigrationHelper.AddActionTypeAttributeValue("3FAC4206-D572-4BB7-84A8-9FF817C96302", "44A0B977-4730-4519-8FF6-B0A01A95B212", @"bb2b3cf8-7c81-4ebd-9589-a961e341f70c");                                                                                                                     // DISC Request:Launch From Person Profile:Set No Email Warning Message:Attribute
                RockMigrationHelper.AddActionTypeAttributeValue("3FAC4206-D572-4BB7-84A8-9FF817C96302", "E5272B11-A2B8-49DC-860D-8D574E2BC15C", @"<div class=""alert alert-warning margin-t-sm"">{{ Workflow.Person }} does not have an active email address. Please add an address to their record.</div>"); // DISC Request:Launch From Person Profile:Set No Email Warning Message:Text Value|Attribute Value

                RockMigrationHelper.UpdateWorkflowActionType("4A8E2E61-FE0D-4AB3-BA48-9419A20E4541", "Update Request Person Attribute", 9, "320622DA-52E0-41AE-AF90-2BF78B488552", true, false, "", "", 1, "", "42401767-F313-4AAE-BE46-AD557F970847");                                                       // DISC Request:Launch From Person Profile:Update Request Person Attribute
                RockMigrationHelper.AddActionTypeAttributeValue("42401767-F313-4AAE-BE46-AD557F970847", "E5BAC4A6-FF7F-4016-BA9C-72D16CB60184", @"False");                                                                                                                                                    // DISC Request:Launch From Person Profile:Update Request Person Attribute:Active
                RockMigrationHelper.AddActionTypeAttributeValue("42401767-F313-4AAE-BE46-AD557F970847", "E456FB6F-05DB-4826-A612-5B704BC4EA13", @"c0bc984c-84c3-494b-a861-49840e452f68");                                                                                                                     // DISC Request:Launch From Person Profile:Update Request Person Attribute:Person
                RockMigrationHelper.AddActionTypeAttributeValue("42401767-F313-4AAE-BE46-AD557F970847", "3F3BF3E6-AD53-491E-A40F-441F2AFCBB5B", @"");                                                                                                                                                         // DISC Request:Launch From Person Profile:Update Request Person Attribute:Order
                RockMigrationHelper.AddActionTypeAttributeValue("42401767-F313-4AAE-BE46-AD557F970847", "8F4BB00F-7FA2-41AD-8E90-81F4DFE2C762", @"41b73365-a984-879e-4749-7db4fc720138");                                                                                                                     // DISC Request:Launch From Person Profile:Update Request Person Attribute:Person Attribute
                RockMigrationHelper.AddActionTypeAttributeValue("42401767-F313-4AAE-BE46-AD557F970847", "94689BDE-493E-4869-A614-2D54822D747C", @"{{ 'Now' | Date:'M/d/yyyy' }}");                                                                                                                            // DISC Request:Launch From Person Profile:Update Request Person Attribute:Value|Attribute Value

                // reorder actions
                Sql(@"   
-- set no email warning flag
  UPDATE  [WorkflowActionType]
	SET [Order] = 6
    WHERE [Guid] = '940E88E7-1294-4DD7-A626-E1345A41A2D1'

  -- set no email warning message
  UPDATE  [WorkflowActionType]
	SET [Order] = 7
    WHERE [Guid] = '3FAC4206-D572-4BB7-84A8-9FF817C96302'

  -- custom messgae
  UPDATE  [WorkflowActionType]
	SET [Order] = 8
    WHERE [Guid] = '1A08A4EC-B2C6-43B5-926F-2F86CFA35102'

  -- persist workflow
  UPDATE  [WorkflowActionType]
	SET [Order] = 9
    WHERE [Guid] = '555A729C-5EC4-4C83-B35F-036234E5EFCC'

-- send email
UPDATE  [WorkflowActionType]
	SET [Order] = 10
    WHERE [Guid] = '666FC137-BC95-49BE-A976-0BFF2417F44C'

-- update person attribute
UPDATE  [WorkflowActionType]
	SET [Order] = 11
    WHERE [Guid] = '42401767-F313-4AAE-BE46-AD557F970847'

-- workflow complete
UPDATE  [WorkflowActionType]
	SET [Order] = 12
    WHERE [Guid] = 'EA4FF8DD-0E66-4C98-84FC-845DEAB76A61'");


                // update form header with new warning message
                Sql(@"  UPDATE [WorkflowActionForm]
  SET [Header] = 'Hi &#123;&#123; Person.NickName &#125;&#125;!

{{ Workflow.WarningMessage }}
{{ Workflow.NoEmailWarning }}'
  WHERE [Guid] = '4AFAB342-D584-4B79-B038-A99C0C469D74'");
            }
        }
Ejemplo n.º 20
0
 /// <summary>Updates the workflow action.
 /// SK: Disc Updates
 /// </summary>
 private void UpdateDisc()
 {
     RockMigrationHelper.UpdateWorkflowActionFormAttribute("4AFAB342-D584-4B79-B038-A99C0C469D74", "840E6A84-9F83-4482-92D1-6F635F062251", 1, true, false, false, true, @"", @"<br/>", "94B20E87-9C79-4C37-926C-0426496AC722");
     RockMigrationHelper.AddActionTypeAttributeValue("666FC137-BC95-49BE-A976-0BFF2417F44C", "4D245B9E-6B03-46E7-8482-A51FBA190E4D", @"{{ 'Global' | Attribute:'EmailHeader' }} <p>Hi {{ Person.NickName }}!</p>  <p>{{ Workflow | Attribute:'CustomMessage' | NewlineToBr }}</p>  <blockquote>     <p><a href=""{{ 'Global' | Attribute:'PublicApplicationRoot' }}DISC/{{ Person.UrlEncodedKey }}"">Take Personality Assessment</a></p>     <p><i>- or -</i></p>     <p><a href=""{{ 'Global' | Attribute:'PublicApplicationRoot' }}Unsubscribe/{{ p.UrlEncodedKey }}"">I&#39;m no longer involved with      {{ 'Global' | Attribute :'OrganizationName' }}. Please remove me from all future communications.</a></p> </blockquote>   <p>- {{ Workflow | Attribute:'Sender' }}</p>  {{ 'Global' | Attribute:'EmailFooter' }}");
 }
Ejemplo n.º 21
0
 /// <summary>
 /// The commands to run to migrate plugin to the specific version
 /// </summary>
 public override void Up()
 {
     RockMigrationHelper.UpdateEntityType("Rock.Model.Workflow", "3540E9A7-FE30-43A9-8B0A-A372B63DFC93", true, true);
     RockMigrationHelper.UpdateEntityType("Rock.Model.WorkflowActivity", "2CB52ED0-CB06-4D62-9E2C-73B60AFA4C9F", true, true);
     RockMigrationHelper.UpdateEntityType("Rock.Model.WorkflowActionType", "23E3273A-B137-48A3-9AFF-C8DC832DDCA6", true, true);
     RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.CompleteWorkflow", "EEDA4318-F014-4A46-9C76-4C052EF81AA1", false, true);
     RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.PersistWorkflow", "F1A39347-6FE0-43D4-89FB-544195088ECF", false, true);
     RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.PersonNoteAdd", "C485BF81-1632-4211-A67C-CBB036B14DF9", false, true);
     RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.SetAttributeToCurrentPerson", "24B7D5E6-C30F-48F4-9D7E-AF45A342CF3A", false, true);
     RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.SetPersonAttribute", "320622DA-52E0-41AE-AF90-2BF78B488552", false, true);
     RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.SetWorkflowName", "36005473-BD5D-470B-B28D-98E6D7ED808D", false, true);
     RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.UserEntryForm", "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", false, true);
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("24B7D5E6-C30F-48F4-9D7E-AF45A342CF3A", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "DE9CB292-4785-4EA3-976D-3826F91E9E98");                                                                                                                                                                                                                                                                                                          // Rock.Workflow.Action.SetAttributeToCurrentPerson:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("24B7D5E6-C30F-48F4-9D7E-AF45A342CF3A", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Person Attribute", "PersonAttribute", "The attribute to set to the currently logged in person.", 0, @"", "BBED8A83-8BB2-4D35-BAFB-05F67DCAD112");                                                                                                                                                                                                                                                            // Rock.Workflow.Action.SetAttributeToCurrentPerson:Person Attribute
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("24B7D5E6-C30F-48F4-9D7E-AF45A342CF3A", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "89E9BCED-91AB-47B0-AD52-D78B0B7CB9E8");                                                                                                                                                                                                                                                                                   // Rock.Workflow.Action.SetAttributeToCurrentPerson:Order
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("320622DA-52E0-41AE-AF90-2BF78B488552", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "E5BAC4A6-FF7F-4016-BA9C-72D16CB60184");                                                                                                                                                                                                                                                                                                          // Rock.Workflow.Action.SetPersonAttribute:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("320622DA-52E0-41AE-AF90-2BF78B488552", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Person", "Person", "Workflow attribute that contains the person to update.", 0, @"", "E456FB6F-05DB-4826-A612-5B704BC4EA13");                                                                                                                                                                                                                                                                                // Rock.Workflow.Action.SetPersonAttribute:Person
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("320622DA-52E0-41AE-AF90-2BF78B488552", "3B1D93D7-9414-48F9-80E5-6A3FC8F94C20", "Value|Attribute Value", "Value", "The value or attribute value to set the person attribute to. <span class='tip tip-lava'></span>", 2, @"", "94689BDE-493E-4869-A614-2D54822D747C");                                                                                                                                                                                                                         // Rock.Workflow.Action.SetPersonAttribute:Value|Attribute Value
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("320622DA-52E0-41AE-AF90-2BF78B488552", "99B090AA-4D7E-46D8-B393-BF945EA1BA8B", "Person Attribute", "PersonAttribute", "The person attribute that should be updated with the provided value.", 1, @"", "8F4BB00F-7FA2-41AD-8E90-81F4DFE2C762");                                                                                                                                                                                                                                               // Rock.Workflow.Action.SetPersonAttribute:Person Attribute
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("320622DA-52E0-41AE-AF90-2BF78B488552", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "3F3BF3E6-AD53-491E-A40F-441F2AFCBB5B");                                                                                                                                                                                                                                                                                   // Rock.Workflow.Action.SetPersonAttribute:Order
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("36005473-BD5D-470B-B28D-98E6D7ED808D", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "0A800013-51F7-4902-885A-5BE215D67D3D");                                                                                                                                                                                                                                                                                                          // Rock.Workflow.Action.SetWorkflowName:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("36005473-BD5D-470B-B28D-98E6D7ED808D", "3B1D93D7-9414-48F9-80E5-6A3FC8F94C20", "Text Value|Attribute Value", "NameValue", "The value to use for the workflow''s name. <span class='tip tip-lava'></span>", 1, @"", "93852244-A667-4749-961A-D47F88675BE4");                                                                                                                                                                                                                                  // Rock.Workflow.Action.SetWorkflowName:Text Value|Attribute Value
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("36005473-BD5D-470B-B28D-98E6D7ED808D", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "5D95C15A-CCAE-40AD-A9DD-F929DA587115");                                                                                                                                                                                                                                                                                   // Rock.Workflow.Action.SetWorkflowName:Order
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("486DC4FA-FCBC-425F-90B0-E606DA8A9F68", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE");                                                                                                                                                                                                                                                                                                          // Rock.Workflow.Action.UserEntryForm:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("486DC4FA-FCBC-425F-90B0-E606DA8A9F68", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "C178113D-7C86-4229-8424-C6D0CF4A7E23");                                                                                                                                                                                                                                                                                   // Rock.Workflow.Action.UserEntryForm:Order
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C485BF81-1632-4211-A67C-CBB036B14DF9", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "8AF1D528-3F5F-4C3C-A65B-362B577350E2");                                                                                                                                                                                                                                                                                                          // Rock.Workflow.Action.PersonNoteAdd:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C485BF81-1632-4211-A67C-CBB036B14DF9", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Alert", "Alert", "Determines if the note should be flagged as an alert.", 5, @"False", "3557B6D2-6AF1-4511-95FB-A3D732435CA3");                                                                                                                                                                                                                                                                              // Rock.Workflow.Action.PersonNoteAdd:Alert
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C485BF81-1632-4211-A67C-CBB036B14DF9", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Author", "Author", "Workflow attribute that contains the person to use as the author of the note. While not required it is recommended.", 4, @"", "5B0BE9C1-0CEF-40BC-A024-C9A8BA278F2B");                                                                                                                                                                                                                   // Rock.Workflow.Action.PersonNoteAdd:Author
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C485BF81-1632-4211-A67C-CBB036B14DF9", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Person", "Person", "Workflow attribute that contains the person to add the note to.", 0, @"", "8A58B31E-B94B-448B-A1C5-B8AB1391AC93");                                                                                                                                                                                                                                                                       // Rock.Workflow.Action.PersonNoteAdd:Person
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C485BF81-1632-4211-A67C-CBB036B14DF9", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Caption", "Caption", "The title/caption of the note. If none is provided then the author''s name will be displayed. <span class='tip tip-lava'></span>", 2, @"", "6346FA38-6415-44A3-B8B4-8946A40CB144");                                                                                                                                                                                                    // Rock.Workflow.Action.PersonNoteAdd:Caption
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C485BF81-1632-4211-A67C-CBB036B14DF9", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "05FBA26D-C3C6-41A3-81CF-C294AA574722");                                                                                                                                                                                                                                                                                   // Rock.Workflow.Action.PersonNoteAdd:Order
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C485BF81-1632-4211-A67C-CBB036B14DF9", "C28C7BF3-A552-4D77-9408-DEDCF760CED0", "Text", "Text", "The body of the note. <span class='tip tip-lava'></span>", 3, @"", "F63E9C66-C061-41FA-A772-0B1353A2F45E");                                                                                                                                                                                                                                                                                  // Rock.Workflow.Action.PersonNoteAdd:Text
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C485BF81-1632-4211-A67C-CBB036B14DF9", "E3FF88AC-13F6-4DF8-8371-FC0D7FD9A571", "Note Type", "NoteType", "The type of note to add.", 1, @"66A1B9D7-7EFA-40F3-9415-E54437977D60", "FE4156ED-EC3E-49DB-83B4-88F164B3C166");                                                                                                                                                                                                                                                                     // Rock.Workflow.Action.PersonNoteAdd:Note Type
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("EEDA4318-F014-4A46-9C76-4C052EF81AA1", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "0CA0DDEF-48EF-4ABC-9822-A05E225DE26C");                                                                                                                                                                                                                                                                                                          // Rock.Workflow.Action.CompleteWorkflow:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("EEDA4318-F014-4A46-9C76-4C052EF81AA1", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "25CAD4BE-5A00-409D-9BAB-E32518D89956");                                                                                                                                                                                                                                                                                   // Rock.Workflow.Action.CompleteWorkflow:Order
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("F1A39347-6FE0-43D4-89FB-544195088ECF", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "50B01639-4938-40D2-A791-AA0EB4F86847");                                                                                                                                                                                                                                                                                                          // Rock.Workflow.Action.PersistWorkflow:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("F1A39347-6FE0-43D4-89FB-544195088ECF", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Persist Immediately", "PersistImmediately", "This action will normally cause the workflow to be persisted (saved) once all the current activites/actions have completed processing. Set this flag to true, if the workflow should be persisted immediately. This is only required if a subsequent action needs a persisted workflow with a valid id.", 0, @"False", "CB7BF538-99A2-4BAE-B848-D96269FB541C"); // Rock.Workflow.Action.PersistWorkflow:Persist Immediately
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("F1A39347-6FE0-43D4-89FB-544195088ECF", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "86F795B0-0CB6-4DA4-9CE4-B11D0922F361");                                                                                                                                                                                                                                                                                   // Rock.Workflow.Action.PersistWorkflow:Order
     RockMigrationHelper.UpdateWorkflowType(false, true, "Care Follow Up", "Used on public website when Care volunteer has made contact with a guest during the week.", "14947674-A075-4AC7-BF99-79326980ED9D", "Inquiry", "fa fa-comments-o", 0, false, 3, "D96FF580-362E-461F-9952-7EC885563C09");                                                                                                                                                                                                                                                       // Care Follow Up
     RockMigrationHelper.UpdateWorkflowTypeAttribute("D96FF580-362E-461F-9952-7EC885563C09", "1B71FEF4-201F-4D53-8C60-2DF21F1985ED", "Campus", "Campus", "The campus where the initial Care conversation happened.", 2, @"", "4EDFE1EF-B010-4CD8-AC83-D7957E62EB9D");                                                                                                                                                                                                                                                                                      // Care Follow Up:Campus
     RockMigrationHelper.UpdateWorkflowTypeAttribute("D96FF580-362E-461F-9952-7EC885563C09", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Were you able to connect with the Guest?", "ConnectStatus", "", 3, @"", "9D7AC979-47C0-422D-AB92-C38F64C4671F");                                                                                                                                                                                                                                                                                                     // Care Follow Up:Were you able to connect with the Guest?
     RockMigrationHelper.UpdateWorkflowTypeAttribute("D96FF580-362E-461F-9952-7EC885563C09", "6B6AA175-4758-453F-8D83-FCD8044B5F36", "Date of Follow Up", "DateofFollowUp", "", 4, @"", "40718F75-9A58-41DB-A70F-E2A20862102B");                                                                                                                                                                                                                                                                                                                           // Care Follow Up:Date of Follow Up
     RockMigrationHelper.UpdateWorkflowTypeAttribute("D96FF580-362E-461F-9952-7EC885563C09", "E4EAB7B2-0B76-429B-AFE4-AD86D7428C70", "Guest", "Guest", "Notes are automatically saved to this person''s profile so please make sure that you have selected the correct profile before continuing.", 0, @"", "2EC3D684-59DC-4899-8EFE-4E4CF9BE2480");                                                                                                                                                                                                       // Care Follow Up:Guest
     RockMigrationHelper.UpdateWorkflowTypeAttribute("D96FF580-362E-461F-9952-7EC885563C09", "E4EAB7B2-0B76-429B-AFE4-AD86D7428C70", "Hosting Volunteer", "HostingVolunteer", "", 5, @"", "A624E0D0-1513-4E2A-9625-DBA0F9265BB6");                                                                                                                                                                                                                                                                                                                         // Care Follow Up:Hosting Volunteer
     RockMigrationHelper.UpdateWorkflowTypeAttribute("D96FF580-362E-461F-9952-7EC885563C09", "C28C7BF3-A552-4D77-9408-DEDCF760CED0", "Notes", "Notes", "Any information about your conversation that may be useful for future reference.", 1, @"", "57BA2E8E-7E88-4C0E-A1E5-97704417013E");                                                                                                                                                                                                                                                                // Care Follow Up:Notes
     RockMigrationHelper.AddAttributeQualifier("9D7AC979-47C0-422D-AB92-C38F64C4671F", "falsetext", @"Attempted to connect but was unable.", "25A13DE9-7BD2-46C9-BE11-A8DC277604A7");                                                                                                                                                                                                                                                                                                                                                                      // Care Follow Up:Were you able to connect with the Guest?:falsetext
     RockMigrationHelper.AddAttributeQualifier("9D7AC979-47C0-422D-AB92-C38F64C4671F", "truetext", @"Able to connect with Guest", "2BD707DA-42FC-44A4-A894-44D710C3AF00");                                                                                                                                                                                                                                                                                                                                                                                 // Care Follow Up:Were you able to connect with the Guest?:truetext
     RockMigrationHelper.AddAttributeQualifier("40718F75-9A58-41DB-A70F-E2A20862102B", "displayCurrentOption", @"False", "F82A2A94-21FF-4138-B876-52B6C0D94C86");                                                                                                                                                                                                                                                                                                                                                                                          // Care Follow Up:Date of Follow Up:displayCurrentOption
     RockMigrationHelper.AddAttributeQualifier("40718F75-9A58-41DB-A70F-E2A20862102B", "displayDiff", @"False", "7285C5F5-5D2D-4F24-ACB9-4C7D1F68ECF5");                                                                                                                                                                                                                                                                                                                                                                                                   // Care Follow Up:Date of Follow Up:displayDiff
     RockMigrationHelper.AddAttributeQualifier("40718F75-9A58-41DB-A70F-E2A20862102B", "format", @"", "C97E3908-CC86-4490-8648-005150E36DE6");                                                                                                                                                                                                                                                                                                                                                                                                             // Care Follow Up:Date of Follow Up:format
     RockMigrationHelper.AddAttributeQualifier("57BA2E8E-7E88-4C0E-A1E5-97704417013E", "allowhtml", @"False", "6B649FA2-4197-46D2-8B1F-5868575CE0C8");                                                                                                                                                                                                                                                                                                                                                                                                     // Care Follow Up:Notes:allowhtml
     RockMigrationHelper.AddAttributeQualifier("57BA2E8E-7E88-4C0E-A1E5-97704417013E", "numberofrows", @"", "C58619D1-7392-44BB-A308-14EABC53BA8B");                                                                                                                                                                                                                                                                                                                                                                                                       // Care Follow Up:Notes:numberofrows
     RockMigrationHelper.UpdateWorkflowActivityType("D96FF580-362E-461F-9952-7EC885563C09", true, "Request", "Prompt the user for the information about their request", true, 0, "918DDD3C-0A14-42FE-97D3-05DE48E2D670");                                                                                                                                                                                                                                                                                                                                  // Care Follow Up:Request
     RockMigrationHelper.UpdateWorkflowActionForm(@"<h2>Care Follow Up Form</h2> <p> Thank you for how well you love on the guests that come into the Care Room! Please complete the form below. </p> <br/>", @"", "Submit^fdc397cd-8b4a-436e-bea1-bce2e6717c03^^Thank you! This information has been recorded successfully.|", "", true, "", "308F6BD3-2D22-4FDB-93D3-522FB8ADDFBF");                                                                                                                                                                     // Care Follow Up:Request:Prompt User
     RockMigrationHelper.UpdateWorkflowActionFormAttribute("308F6BD3-2D22-4FDB-93D3-522FB8ADDFBF", "4EDFE1EF-B010-4CD8-AC83-D7957E62EB9D", 2, true, false, true, "83D7DE1C-E1CD-4F6A-B90B-561321B78819");                                                                                                                                                                                                                                                                                                                                                  // Care Follow Up:Request:Prompt User:Campus
     RockMigrationHelper.UpdateWorkflowActionFormAttribute("308F6BD3-2D22-4FDB-93D3-522FB8ADDFBF", "57BA2E8E-7E88-4C0E-A1E5-97704417013E", 5, true, false, false, "9AA35A81-37A0-469A-AF5F-6EEEA7B32D08");                                                                                                                                                                                                                                                                                                                                                 // Care Follow Up:Request:Prompt User:Notes
     RockMigrationHelper.UpdateWorkflowActionFormAttribute("308F6BD3-2D22-4FDB-93D3-522FB8ADDFBF", "9D7AC979-47C0-422D-AB92-C38F64C4671F", 3, true, false, true, "711CBABD-B059-4B17-9908-3F3432AE8726");                                                                                                                                                                                                                                                                                                                                                  // Care Follow Up:Request:Prompt User:Were you able to connect with the Guest?
     RockMigrationHelper.UpdateWorkflowActionFormAttribute("308F6BD3-2D22-4FDB-93D3-522FB8ADDFBF", "2EC3D684-59DC-4899-8EFE-4E4CF9BE2480", 4, true, false, true, "9F325066-055E-481E-9B37-7B5890C9D05D");                                                                                                                                                                                                                                                                                                                                                  // Care Follow Up:Request:Prompt User:Guest
     RockMigrationHelper.UpdateWorkflowActionFormAttribute("308F6BD3-2D22-4FDB-93D3-522FB8ADDFBF", "40718F75-9A58-41DB-A70F-E2A20862102B", 1, true, false, true, "75A00CF3-E424-499E-8AF5-88C05C7C53CD");                                                                                                                                                                                                                                                                                                                                                  // Care Follow Up:Request:Prompt User:Date of Follow Up
     RockMigrationHelper.UpdateWorkflowActionFormAttribute("308F6BD3-2D22-4FDB-93D3-522FB8ADDFBF", "A624E0D0-1513-4E2A-9625-DBA0F9265BB6", 0, true, true, false, "703AA987-E3E0-4AD6-80DF-A3E844BFD372");                                                                                                                                                                                                                                                                                                                                                  // Care Follow Up:Request:Prompt User:Hosting Volunteer
     RockMigrationHelper.UpdateWorkflowActionType("918DDD3C-0A14-42FE-97D3-05DE48E2D670", "Prompt User", 1, "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", true, false, "308F6BD3-2D22-4FDB-93D3-522FB8ADDFBF", "", 1, "", "4B002F8A-8197-4001-BEE1-91E05D9FD732");                                                                                                                                                                                                                                                                                               // Care Follow Up:Request:Prompt User
     RockMigrationHelper.UpdateWorkflowActionType("918DDD3C-0A14-42FE-97D3-05DE48E2D670", "Set Name", 2, "36005473-BD5D-470B-B28D-98E6D7ED808D", true, false, "", "", 1, "", "6EAF8FE8-C5C4-4892-B418-2401FAF667CA");                                                                                                                                                                                                                                                                                                                                      // Care Follow Up:Request:Set Name
     RockMigrationHelper.UpdateWorkflowActionType("918DDD3C-0A14-42FE-97D3-05DE48E2D670", "Set Volunteer", 0, "24B7D5E6-C30F-48F4-9D7E-AF45A342CF3A", true, false, "", "", 1, "", "CCDC73A4-D418-4441-9185-B545E5FB5CEB");                                                                                                                                                                                                                                                                                                                                 // Care Follow Up:Request:Set Volunteer
     RockMigrationHelper.UpdateWorkflowActionType("918DDD3C-0A14-42FE-97D3-05DE48E2D670", "Persist the Workflow", 3, "F1A39347-6FE0-43D4-89FB-544195088ECF", true, false, "", "", 1, "", "88E10712-43B7-415E-94F7-8CD5BF983AB7");                                                                                                                                                                                                                                                                                                                          // Care Follow Up:Request:Persist the Workflow
     RockMigrationHelper.UpdateWorkflowActionType("918DDD3C-0A14-42FE-97D3-05DE48E2D670", "Record Notes", 4, "C485BF81-1632-4211-A67C-CBB036B14DF9", true, false, "", "", 64, "", "989288A6-14DF-480D-A610-4F7387DA9EE5");                                                                                                                                                                                                                                                                                                                                 // Care Follow Up:Request:Record Notes
     RockMigrationHelper.UpdateWorkflowActionType("918DDD3C-0A14-42FE-97D3-05DE48E2D670", "Complete the Workflow", 6, "EEDA4318-F014-4A46-9C76-4C052EF81AA1", true, false, "", "", 1, "", "053CEBF4-6911-4199-97E4-862DD6D5B52E");                                                                                                                                                                                                                                                                                                                         // Care Follow Up:Request:Complete the Workflow
     RockMigrationHelper.UpdateWorkflowActionType("918DDD3C-0A14-42FE-97D3-05DE48E2D670", "Set Care Follow Up Date Attribute", 5, "320622DA-52E0-41AE-AF90-2BF78B488552", true, false, "", "", 1, "", "53D0FC39-ECD2-4F6F-8B3B-28ECA3E99AFF");                                                                                                                                                                                                                                                                                                             // Care Follow Up:Request:Set Care Follow Up Date Attribute
     RockMigrationHelper.AddActionTypeAttributeValue("CCDC73A4-D418-4441-9185-B545E5FB5CEB", "DE9CB292-4785-4EA3-976D-3826F91E9E98", @"False");                                                                                                                                                                                                                                                                                                                                                                                                            // Care Follow Up:Request:Set Volunteer:Active
     RockMigrationHelper.AddActionTypeAttributeValue("CCDC73A4-D418-4441-9185-B545E5FB5CEB", "BBED8A83-8BB2-4D35-BAFB-05F67DCAD112", @"a624e0d0-1513-4e2a-9625-dba0f9265bb6");                                                                                                                                                                                                                                                                                                                                                                             // Care Follow Up:Request:Set Volunteer:Person Attribute
     RockMigrationHelper.AddActionTypeAttributeValue("CCDC73A4-D418-4441-9185-B545E5FB5CEB", "89E9BCED-91AB-47B0-AD52-D78B0B7CB9E8", @"");                                                                                                                                                                                                                                                                                                                                                                                                                 // Care Follow Up:Request:Set Volunteer:Order
     RockMigrationHelper.AddActionTypeAttributeValue("4B002F8A-8197-4001-BEE1-91E05D9FD732", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE", @"False");                                                                                                                                                                                                                                                                                                                                                                                                            // Care Follow Up:Request:Prompt User:Active
     RockMigrationHelper.AddActionTypeAttributeValue("4B002F8A-8197-4001-BEE1-91E05D9FD732", "C178113D-7C86-4229-8424-C6D0CF4A7E23", @"");                                                                                                                                                                                                                                                                                                                                                                                                                 // Care Follow Up:Request:Prompt User:Order
     RockMigrationHelper.AddActionTypeAttributeValue("6EAF8FE8-C5C4-4892-B418-2401FAF667CA", "0A800013-51F7-4902-885A-5BE215D67D3D", @"False");                                                                                                                                                                                                                                                                                                                                                                                                            // Care Follow Up:Request:Set Name:Active
     RockMigrationHelper.AddActionTypeAttributeValue("6EAF8FE8-C5C4-4892-B418-2401FAF667CA", "5D95C15A-CCAE-40AD-A9DD-F929DA587115", @"");                                                                                                                                                                                                                                                                                                                                                                                                                 // Care Follow Up:Request:Set Name:Order
     RockMigrationHelper.AddActionTypeAttributeValue("6EAF8FE8-C5C4-4892-B418-2401FAF667CA", "93852244-A667-4749-961A-D47F88675BE4", @"Care Follow Up | {{ Workflow.HostingVolunteer }}");                                                                                                                                                                                                                                                                                                                                                                 // Care Follow Up:Request:Set Name:Text Value|Attribute Value
     RockMigrationHelper.AddActionTypeAttributeValue("88E10712-43B7-415E-94F7-8CD5BF983AB7", "50B01639-4938-40D2-A791-AA0EB4F86847", @"False");                                                                                                                                                                                                                                                                                                                                                                                                            // Care Follow Up:Request:Persist the Workflow:Active
     RockMigrationHelper.AddActionTypeAttributeValue("88E10712-43B7-415E-94F7-8CD5BF983AB7", "86F795B0-0CB6-4DA4-9CE4-B11D0922F361", @"");                                                                                                                                                                                                                                                                                                                                                                                                                 // Care Follow Up:Request:Persist the Workflow:Order
     RockMigrationHelper.AddActionTypeAttributeValue("88E10712-43B7-415E-94F7-8CD5BF983AB7", "CB7BF538-99A2-4BAE-B848-D96269FB541C", @"False");                                                                                                                                                                                                                                                                                                                                                                                                            // Care Follow Up:Request:Persist the Workflow:Persist Immediately
     RockMigrationHelper.AddActionTypeAttributeValue("989288A6-14DF-480D-A610-4F7387DA9EE5", "8A58B31E-B94B-448B-A1C5-B8AB1391AC93", @"2ec3d684-59dc-4899-8efe-4e4cf9be2480");                                                                                                                                                                                                                                                                                                                                                                             // Care Follow Up:Request:Record Notes:Person
     RockMigrationHelper.AddActionTypeAttributeValue("989288A6-14DF-480D-A610-4F7387DA9EE5", "05FBA26D-C3C6-41A3-81CF-C294AA574722", @"");                                                                                                                                                                                                                                                                                                                                                                                                                 // Care Follow Up:Request:Record Notes:Order
     RockMigrationHelper.AddActionTypeAttributeValue("989288A6-14DF-480D-A610-4F7387DA9EE5", "8AF1D528-3F5F-4C3C-A65B-362B577350E2", @"False");                                                                                                                                                                                                                                                                                                                                                                                                            // Care Follow Up:Request:Record Notes:Active
     RockMigrationHelper.AddActionTypeAttributeValue("989288A6-14DF-480D-A610-4F7387DA9EE5", "FE4156ED-EC3E-49DB-83B4-88F164B3C166", @"624D6A68-D20C-4FFE-83DF-630945888A8E");                                                                                                                                                                                                                                                                                                                                                                             // Care Follow Up:Request:Record Notes:Note Type
     RockMigrationHelper.AddActionTypeAttributeValue("989288A6-14DF-480D-A610-4F7387DA9EE5", "6346FA38-6415-44A3-B8B4-8946A40CB144", @"Care Follow Up Note");                                                                                                                                                                                                                                                                                                                                                                                              // Care Follow Up:Request:Record Notes:Caption
     RockMigrationHelper.AddActionTypeAttributeValue("989288A6-14DF-480D-A610-4F7387DA9EE5", "F63E9C66-C061-41FA-A772-0B1353A2F45E", @"Hosting Volunteer: {{ Workflow.Requester }} {{ Workflow.ConnectStatus }} Notes: {{ Workflow.Notes }} Campus: {{ Workflow.Campus }}");                                                                                                                                                                                                                                                                               // Care Follow Up:Request:Record Notes:Text
     RockMigrationHelper.AddActionTypeAttributeValue("989288A6-14DF-480D-A610-4F7387DA9EE5", "5B0BE9C1-0CEF-40BC-A024-C9A8BA278F2B", @"");                                                                                                                                                                                                                                                                                                                                                                                                                 // Care Follow Up:Request:Record Notes:Author
     RockMigrationHelper.AddActionTypeAttributeValue("989288A6-14DF-480D-A610-4F7387DA9EE5", "3557B6D2-6AF1-4511-95FB-A3D732435CA3", @"False");                                                                                                                                                                                                                                                                                                                                                                                                            // Care Follow Up:Request:Record Notes:Alert
     RockMigrationHelper.AddActionTypeAttributeValue("53D0FC39-ECD2-4F6F-8B3B-28ECA3E99AFF", "E5BAC4A6-FF7F-4016-BA9C-72D16CB60184", @"False");                                                                                                                                                                                                                                                                                                                                                                                                            // Care Follow Up:Request:Set Care Follow Up Date Attribute:Active
     RockMigrationHelper.AddActionTypeAttributeValue("53D0FC39-ECD2-4F6F-8B3B-28ECA3E99AFF", "E456FB6F-05DB-4826-A612-5B704BC4EA13", @"2ec3d684-59dc-4899-8efe-4e4cf9be2480");                                                                                                                                                                                                                                                                                                                                                                             // Care Follow Up:Request:Set Care Follow Up Date Attribute:Person
     RockMigrationHelper.AddActionTypeAttributeValue("53D0FC39-ECD2-4F6F-8B3B-28ECA3E99AFF", "3F3BF3E6-AD53-491E-A40F-441F2AFCBB5B", @"");                                                                                                                                                                                                                                                                                                                                                                                                                 // Care Follow Up:Request:Set Care Follow Up Date Attribute:Order
     RockMigrationHelper.AddActionTypeAttributeValue("53D0FC39-ECD2-4F6F-8B3B-28ECA3E99AFF", "8F4BB00F-7FA2-41AD-8E90-81F4DFE2C762", @"e45c5ffd-31da-42ff-b76c-95b9a99fc03a");                                                                                                                                                                                                                                                                                                                                                                             // Care Follow Up:Request:Set Care Follow Up Date Attribute:Person Attribute
     RockMigrationHelper.AddActionTypeAttributeValue("53D0FC39-ECD2-4F6F-8B3B-28ECA3E99AFF", "94689BDE-493E-4869-A614-2D54822D747C", @"40718f75-9a58-41db-a70f-e2a20862102b");                                                                                                                                                                                                                                                                                                                                                                             // Care Follow Up:Request:Set Care Follow Up Date Attribute:Value|Attribute Value
     RockMigrationHelper.AddActionTypeAttributeValue("053CEBF4-6911-4199-97E4-862DD6D5B52E", "0CA0DDEF-48EF-4ABC-9822-A05E225DE26C", @"False");                                                                                                                                                                                                                                                                                                                                                                                                            // Care Follow Up:Request:Complete the Workflow:Active
     RockMigrationHelper.AddActionTypeAttributeValue("053CEBF4-6911-4199-97E4-862DD6D5B52E", "25CAD4BE-5A00-409D-9BAB-E32518D89956", @"");                                                                                                                                                                                                                                                                                                                                                                                                                 // Care Follow Up:Request:Complete the Workflow:Order
 }
Ejemplo n.º 22
0
        private void UpdateDiscWorkflow()
        {
            RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.RunLava", "BC21E57A-1477-44B3-A7C2-61A806118945", false, true);

            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("BC21E57A-1477-44B3-A7C2-61A806118945", "1D0D3794-C210-48A8-8C68-3FBEC08A6BA5", "Lava", "Value", "The <span class='tip tip-lava'></span> to run.", 0, @"", "F1F6F9D6-FDC5-489C-8261-4B9F45B3EED4");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            // Rock.Workflow.Action.RunLava:Lava
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("BC21E57A-1477-44B3-A7C2-61A806118945", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "F1924BDC-9B79-4018-9D4A-C3516C87A514");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           // Rock.Workflow.Action.RunLava:Active
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("BC21E57A-1477-44B3-A7C2-61A806118945", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Attribute", "Attribute", "The attribute to store the result in.", 1, @"", "431273C6-342D-4030-ADC7-7CDEDC7F8B27");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            // Rock.Workflow.Action.RunLava:Attribute
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("BC21E57A-1477-44B3-A7C2-61A806118945", "4BD9088F-5CC6-89B1-45FC-A2AAFFC7CC0D", "Enabled Lava Commands", "EnabledLavaCommands", "The Lava commands that should be enabled for this action.", 2, @"", "F3E380BF-AAC8-4015-9ADC-0DF56B5462F5");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  // Rock.Workflow.Action.RunLava:Enabled Lava Commands
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("BC21E57A-1477-44B3-A7C2-61A806118945", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "1B833F48-EFC2-4537-B1E3-7793F6863EAA");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    // Rock.Workflow.Action.RunLava:Order

            RockMigrationHelper.UpdateWorkflowActionForm(@"
            {{ Workflow | Attribute: 'WarningMessage' }}
            {{ Workflow | Attribute: 'NoEmailWarning' }}
            {% assign p = Workflow | Attribute:'Person','Object' %}
            <p><i>The message below will be included in the emailed request to {{p.NickName}}.     
            Feel free to customize it to better suit your situation.</i> </p>   
            <hr/>  
            Hi {{ p.NickName }}!", @"", "Send^fdc397cd-8b4a-436e-bea1-bce2e6717c03^^Your information has been submitted successfully.|", "", true, "", "4AFAB342-D584-4B79-B038-A99C0C469D74");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    // DISC Request:Launch From Person Profile:Custom Message
            RockMigrationHelper.UpdateWorkflowActionForm(@"
            {{ Workflow | Attribute: 'WarningMessage' }} 
            {{ Workflow | Attribute: 'NoEmailWarning' }}", @"", "", "88C7D1CC-3478-4562-A301-AE7D4D7FFF6D", true, "", "78EB1EC5-D896-4194-A86B-939F95A34555");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     // DISC Request:Launch From Person Profile:Custom Failure Message

            RockMigrationHelper.UpdateWorkflowActionFormAttribute("4AFAB342-D584-4B79-B038-A99C0C469D74", "9B4576B0-2227-4564-8EB3-0BC33B31A723", 5, false, true, false, false, @"", @"", "5D440583-5F29-4A11-B5CB-8154793E3DB0");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Custom Message:No Email Opted Out
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("4AFAB342-D584-4B79-B038-A99C0C469D74", "20354F00-F6A8-4EA8-9F05-1DEC378CEEC2", 6, false, true, false, false, @"", @"", "1102FF4C-BA75-4CAA-9E34-97570FF7BA0E");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Custom Message:IsEmailPresent
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("4AFAB342-D584-4B79-B038-A99C0C469D74", "1917380A-CE12-4253-980A-60EDDD3348B5", 8, false, true, false, false, @"", @"", "E32ED422-8F45-4F52-B4CD-9CA331693DB2");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Custom Message:User Entry Valid
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("78EB1EC5-D896-4194-A86B-939F95A34555", "C0BC984C-84C3-494B-A861-49840E452F68", 0, false, true, false, false, @"", @"", "D92EE1FA-D537-41A1-BD80-034587808341");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Custom Failure Message:Person
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("78EB1EC5-D896-4194-A86B-939F95A34555", "840E6A84-9F83-4482-92D1-6F635F062251", 1, false, true, false, false, @"", @"", "31AA045C-CB26-4F1D-AE58-311F96130B3F");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Custom Failure Message:Custom Message
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("78EB1EC5-D896-4194-A86B-939F95A34555", "D44036C8-2787-4942-A70E-5E85087787EB", 2, false, true, false, false, @"", @"", "B4DAD64D-59DD-4736-91AC-9EC75B281D80");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Custom Failure Message:Sender
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("78EB1EC5-D896-4194-A86B-939F95A34555", "82B3A401-463C-4AD5-8AD1-23D067E48458", 3, false, true, false, false, @"", @"", "FC755AE5-318C-4530-90AF-368DC1611737");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Custom Failure Message:OptOut
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("78EB1EC5-D896-4194-A86B-939F95A34555", "74E7BD11-BE21-4256-B02A-E97AD54C7511", 4, false, true, false, false, @"", @"", "D32A7F6D-9179-4A0D-9E57-D12982460D43");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Custom Failure Message:Warning Message
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("78EB1EC5-D896-4194-A86B-939F95A34555", "BB2B3CF8-7C81-4EBD-9589-A961E341F70C", 5, false, true, false, false, @"", @"", "ABF49299-A554-4F3E-AAE7-F515DCFE4743");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Custom Failure Message:No Email Warning
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("78EB1EC5-D896-4194-A86B-939F95A34555", "9B4576B0-2227-4564-8EB3-0BC33B31A723", 6, false, true, false, false, @"", @"", "CD8C94C6-75B5-4E4D-968B-71AE7628BBC5");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Custom Failure Message:No Email Opted Out
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("78EB1EC5-D896-4194-A86B-939F95A34555", "20354F00-F6A8-4EA8-9F05-1DEC378CEEC2", 7, false, true, false, false, @"", @"", "39C1910F-A7E2-4DB0-9C5A-45EC2E427142");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Custom Failure Message:IsEmailPresent
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("78EB1EC5-D896-4194-A86B-939F95A34555", "1917380A-CE12-4253-980A-60EDDD3348B5", 8, false, true, false, false, @"", @"", "6E3D2903-8CE2-4D3C-A31F-F88391E2BE84");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Custom Failure Message:User Entry Valid
            RockMigrationHelper.AddActionTypeAttributeValue("666FC137-BC95-49BE-A976-0BFF2417F44C", "4D245B9E-6B03-46E7-8482-A51FBA190E4D", @"{{ 'Global' | Attribute:'EmailHeader' }} <p>Hi {{ Person.NickName }}!</p>  <p>{{ Workflow | Attribute:'CustomMessage' | NewlineToBr }}</p>  <blockquote>     <p><a href=""{{ 'Global' | Attribute:'PublicApplicationRoot' }}DISC/{{ p.UrlEncodedKey }}"">Take Personality Assessment</a></p>     <p><i>- or -</i></p>     <p><a href=""{{ 'Global' | Attribute:'PublicApplicationRoot' }}Unsubscribe/{{ p.UrlEncodedKey }}"">I&#39;m no longer involved with      {{ 'Global' | Attribute :'OrganizationName' }}. Please remove me from all future communications.</a></p> </blockquote>   <p>- {{ Workflow | Attribute:'Sender' }}</p>  {{ 'Global' | Attribute:'EmailFooter' }}"); // DISC Request:Launch From Person Profile:Send Email Action:Body
            Sql(@"
            UPDATE
                [Attribute]
            SET
                [Description] = ''
            WHERE
                [Guid] = '840E6A84-9F83-4482-92D1-6F635F062251'
            ");

            RockMigrationHelper.UpdateWorkflowActionType("4A8E2E61-FE0D-4AB3-BA48-9419A20E4541", "Custom Message", 9, "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", true, false, "4AFAB342-D584-4B79-B038-A99C0C469D74", "1917380A-CE12-4253-980A-60EDDD3348B5", 1, "True", "1A08A4EC-B2C6-43B5-926F-2F86CFA35102");              // DISC Request:Launch From Person Profile:Custom Message
            RockMigrationHelper.UpdateWorkflowActionType("4A8E2E61-FE0D-4AB3-BA48-9419A20E4541", "Custom Failure Message", 10, "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", true, true, "78EB1EC5-D896-4194-A86B-939F95A34555", "1917380A-CE12-4253-980A-60EDDD3348B5", 1, "False", "2FEE6858-8A63-484F-9848-EAC4697DA1D5");     // DISC Request:Launch From Person Profile:Custom Failure Message

            RockMigrationHelper.UpdateWorkflowActionFormAttribute("4AFAB342-D584-4B79-B038-A99C0C469D74", "840E6A84-9F83-4482-92D1-6F635F062251", 1, true, false, false, true, @"", @"", "94B20E87-9C79-4C37-926C-0426496AC722");                                                                                           // DISC Request:Launch From Person Profile:Custom Message:Custom Message
            RockMigrationHelper.AddActionTypeAttributeValue("2FEE6858-8A63-484F-9848-EAC4697DA1D5", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE", @"False");                                                                                                                                                                      // DISC Request:Launch From Person Profile:Custom Failure Message:Active
            RockMigrationHelper.AddActionTypeAttributeValue("2FEE6858-8A63-484F-9848-EAC4697DA1D5", "C178113D-7C86-4229-8424-C6D0CF4A7E23", @"");                                                                                                                                                                           // DISC Request:Launch From Person Profile:Custom Failure Message:Order
            RockMigrationHelper.AddActionTypeAttributeValue("A5967573-B263-4003-AED3-36862D4A0251", "F3B9908B-096F-460B-8320-122CF046D1F9", @"
            DECLARE @PersonAliasGuid uniqueidentifier = '{{ Workflow | Attribute:'Person','RawValue' }}'  
            SELECT  
                CASE     WHEN EXISTS (
                    SELECT 1
                    FROM
                        [Person] P
                    INNER JOIN 
                        [PersonAlias] PA ON PA.[Guid] = @PersonAliasGuid AND P.[Id] = PA.[PersonId]         
                    WHERE P.[EmailPreference] = 1 )     
                THEN 
                    'True'
                ELSE 'False'
                END");                                                                                                                                                                                                                                                                                                      // DISC Request:Launch From Person Profile:Check for Opt Out:SQLQuery

            RockMigrationHelper.AddActionTypeAttributeValue("080944DB-B45F-41CA-BF5E-1F697B503C16", "E5272B11-A2B8-49DC-860D-8D574E2BC15C", @"<div class=""alert alert-warning"">{{ Workflow | Attribute:'Person' }} has previously opted out from bulk requests.  Make sure you want to override this preference.</div>"); // DISC Request:Launch From Person Profile:Set Warning:Text Value|Attribute Value
            RockMigrationHelper.UpdateWorkflowTypeAttribute("885CBA61-44EA-4B4A-B6E1-289041B6A195", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "No Email Opted Out", "NoEmailOptedOut", "Holds a 2 if the person has opted out email requests.", 6, @"", "9B4576B0-2227-4564-8EB3-0BC33B31A723", false);                       // DISC Request:No Email Opted Out
            RockMigrationHelper.UpdateWorkflowTypeAttribute("885CBA61-44EA-4B4A-B6E1-289041B6A195", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "IsEmailPresent", "IsEmailPresent", "Hold if email is found for the person.", 7, @"", "20354F00-F6A8-4EA8-9F05-1DEC378CEEC2", false);                                           // DISC Request:IsEmailPresent
            RockMigrationHelper.UpdateWorkflowTypeAttribute("885CBA61-44EA-4B4A-B6E1-289041B6A195", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "User Entry Valid", "UserEntryValid", "Determines if everything is valid to proceed to user entry form.", 8, @"", "1917380A-CE12-4253-980A-60EDDD3348B5", false);               // DISC Request:User Entry Valid
            RockMigrationHelper.AddAttributeQualifier("9B4576B0-2227-4564-8EB3-0BC33B31A723", "falsetext", @"No", "4F14E70F-9019-4884-9CC3-C4C5B6143AA0");                                                                                                                                                                  // DISC Request:No Email Opted Out:falsetext
            RockMigrationHelper.AddAttributeQualifier("9B4576B0-2227-4564-8EB3-0BC33B31A723", "truetext", @"Yes", "2ABC15A1-F190-401B-B86D-B29295A65B09");                                                                                                                                                                  // DISC Request:No Email Opted Out:truetext
            RockMigrationHelper.AddAttributeQualifier("20354F00-F6A8-4EA8-9F05-1DEC378CEEC2", "falsetext", @"No", "DAB866DA-D40D-423A-BCB7-E3A6F350850E");                                                                                                                                                                  // DISC Request:IsEmailPresent:falsetext
            RockMigrationHelper.AddAttributeQualifier("20354F00-F6A8-4EA8-9F05-1DEC378CEEC2", "truetext", @"Yes", "FAED4973-9065-4D1D-A5B0-BFD142EAC20C");                                                                                                                                                                  // DISC Request:IsEmailPresent:truetext
            RockMigrationHelper.AddAttributeQualifier("1917380A-CE12-4253-980A-60EDDD3348B5", "falsetext", @"No", "4019CB32-D78F-494C-B6E1-A07118D39031");                                                                                                                                                                  // DISC Request:User Entry Valid:falsetext
            RockMigrationHelper.AddAttributeQualifier("1917380A-CE12-4253-980A-60EDDD3348B5", "truetext", @"Yes", "32D1791C-7BDE-488F-8BDE-C4CC81C7D113");                                                                                                                                                                  // DISC Request:User Entry Valid:truetext

            RockMigrationHelper.UpdateWorkflowActionFormAttribute("4AFAB342-D584-4B79-B038-A99C0C469D74", "9B4576B0-2227-4564-8EB3-0BC33B31A723", 6, false, true, false, false, @"", @"", "5D440583-5F29-4A11-B5CB-8154793E3DB0");                                                                                          // DISC Request:Launch From Person Profile:Custom Message:No Email Opted Out
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("4AFAB342-D584-4B79-B038-A99C0C469D74", "20354F00-F6A8-4EA8-9F05-1DEC378CEEC2", 7, false, true, false, false, @"", @"", "1102FF4C-BA75-4CAA-9E34-97570FF7BA0E");                                                                                          // DISC Request:Launch From Person Profile:Custom Message:IsEmailPresent
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("4AFAB342-D584-4B79-B038-A99C0C469D74", "1917380A-CE12-4253-980A-60EDDD3348B5", 8, false, true, false, false, @"", @"", "E32ED422-8F45-4F52-B4CD-9CA331693DB2");                                                                                          // DISC Request:Launch From Person Profile:Custom Message:User Entry Valid

            RockMigrationHelper.UpdateWorkflowActionForm(@"{{ Workflow | Attribute: 'WarningMessage' }} {{ Workflow | Attribute: 'NoEmailWarning' }}", @"", "", "88C7D1CC-3478-4562-A301-AE7D4D7FFF6D", true, "", "78EB1EC5-D896-4194-A86B-939F95A34555");                                                                  // DISC Request:Launch From Person Profile:Custom Failure Message
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("78EB1EC5-D896-4194-A86B-939F95A34555", "C0BC984C-84C3-494B-A861-49840E452F68", 0, false, true, false, false, @"", @"", "D92EE1FA-D537-41A1-BD80-034587808341");                                                                                          // DISC Request:Launch From Person Profile:Custom Failure Message:Person
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("78EB1EC5-D896-4194-A86B-939F95A34555", "840E6A84-9F83-4482-92D1-6F635F062251", 1, false, true, false, false, @"", @"", "31AA045C-CB26-4F1D-AE58-311F96130B3F");                                                                                          // DISC Request:Launch From Person Profile:Custom Failure Message:Custom Message
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("78EB1EC5-D896-4194-A86B-939F95A34555", "D44036C8-2787-4942-A70E-5E85087787EB", 2, false, true, false, false, @"", @"", "B4DAD64D-59DD-4736-91AC-9EC75B281D80");                                                                                          // DISC Request:Launch From Person Profile:Custom Failure Message:Sender
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("78EB1EC5-D896-4194-A86B-939F95A34555", "82B3A401-463C-4AD5-8AD1-23D067E48458", 3, false, true, false, false, @"", @"", "FC755AE5-318C-4530-90AF-368DC1611737");                                                                                          // DISC Request:Launch From Person Profile:Custom Failure Message:OptOut
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("78EB1EC5-D896-4194-A86B-939F95A34555", "74E7BD11-BE21-4256-B02A-E97AD54C7511", 4, false, true, false, false, @"", @"", "D32A7F6D-9179-4A0D-9E57-D12982460D43");                                                                                          // DISC Request:Launch From Person Profile:Custom Failure Message:Warning Message
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("78EB1EC5-D896-4194-A86B-939F95A34555", "BB2B3CF8-7C81-4EBD-9589-A961E341F70C", 5, false, true, false, false, @"", @"", "ABF49299-A554-4F3E-AAE7-F515DCFE4743");                                                                                          // DISC Request:Launch From Person Profile:Custom Failure Message:No Email Warning
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("78EB1EC5-D896-4194-A86B-939F95A34555", "9B4576B0-2227-4564-8EB3-0BC33B31A723", 6, false, true, false, false, @"", @"", "CD8C94C6-75B5-4E4D-968B-71AE7628BBC5");                                                                                          // DISC Request:Launch From Person Profile:Custom Failure Message:No Email Opted Out
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("78EB1EC5-D896-4194-A86B-939F95A34555", "20354F00-F6A8-4EA8-9F05-1DEC378CEEC2", 7, false, true, false, false, @"", @"", "39C1910F-A7E2-4DB0-9C5A-45EC2E427142");                                                                                          // DISC Request:Launch From Person Profile:Custom Failure Message:IsEmailPresent
            RockMigrationHelper.UpdateWorkflowActionFormAttribute("78EB1EC5-D896-4194-A86B-939F95A34555", "1917380A-CE12-4253-980A-60EDDD3348B5", 8, false, true, false, false, @"", @"", "6E3D2903-8CE2-4D3C-A31F-F88391E2BE84");                                                                                          // DISC Request:Launch From Person Profile:Custom Failure Message:User Entry Valid

            RockMigrationHelper.AddActionTypeAttributeValue("940E88E7-1294-4DD7-A626-E1345A41A2D1", "56997192-2545-4EA1-B5B2-313B04588984", @"20354f00-f6a8-4ea8-9f05-1dec378ceec2");                                                                                                                                       // DISC Request:Launch From Person Profile:Set No Email Warning:Result Attribute
            RockMigrationHelper.UpdateWorkflowActionType("4A8E2E61-FE0D-4AB3-BA48-9419A20E4541", "Set No Email Warning", 4, "A41216D6-6FB0-4019-B222-2C29B4519CF4", true, false, "", "", 1, "", "940E88E7-1294-4DD7-A626-E1345A41A2D1");                                                                                    // DISC Request:Launch From Person Profile:Set No Email Warning
            RockMigrationHelper.UpdateWorkflowActionType("4A8E2E61-FE0D-4AB3-BA48-9419A20E4541", "Set No Email Warning Message", 5, "C789E457-0783-44B3-9D8F-2EBAB5F11110", true, false, "", "20354F00-F6A8-4EA8-9F05-1DEC378CEEC2", 1, "False", "3FAC4206-D572-4BB7-84A8-9FF817C96302");                                   // DISC Request:Launch From Person Profile:Set No Email Warning Message
            RockMigrationHelper.UpdateWorkflowActionType("4A8E2E61-FE0D-4AB3-BA48-9419A20E4541", "Set No Email Opted Out", 6, "A41216D6-6FB0-4019-B222-2C29B4519CF4", true, false, "", "", 1, "", "AF0285A4-CA58-4131-BE35-EEB5CF033DE0");                                                                                  // DISC Request:Launch From Person Profile:Set No Email Opted Out
            RockMigrationHelper.UpdateWorkflowActionType("4A8E2E61-FE0D-4AB3-BA48-9419A20E4541", "Set Error", 7, "C789E457-0783-44B3-9D8F-2EBAB5F11110", true, false, "", "9B4576B0-2227-4564-8EB3-0BC33B31A723", 1, "True", "7790C564-B42C-4FFC-B6C0-71E9853E380A");                                                       // DISC Request:Launch From Person Profile:Set Error
            RockMigrationHelper.UpdateWorkflowActionType("4A8E2E61-FE0D-4AB3-BA48-9419A20E4541", "Set User Entry Valid", 8, "BC21E57A-1477-44B3-A7C2-61A806118945", true, false, "", "", 1, "", "36DE9E26-DC5C-43E7-866A-B61CF37025FC");                                                                                    // DISC Request:Launch From Person Profile:Set User Entry Valid
            Sql(@"
                UPDATE
                    [WorkflowActionType]
                SET
                    [Order] =[Order] + 3
                WHERE
                    [Guid] IN(
    '1A08A4EC-B2C6-43B5-926F-2F86CFA35102',
    '555A729C-5EC4-4C83-B35F-036234E5EFCC',
    '666FC137-BC95-49BE-A976-0BFF2417F44C',
    '42401767-F313-4AAE-BE46-AD557F970847',
    'EA4FF8DD-0E66-4C98-84FC-845DEAB76A61' )
            ");
            RockMigrationHelper.UpdateWorkflowActionType("4A8E2E61-FE0D-4AB3-BA48-9419A20E4541", "Custom Message", 9, "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", true, false, "4AFAB342-D584-4B79-B038-A99C0C469D74", "1917380A-CE12-4253-980A-60EDDD3348B5", 1, "True", "1A08A4EC-B2C6-43B5-926F-2F86CFA35102");              // DISC Request:Launch From Person Profile:Custom Message
            RockMigrationHelper.UpdateWorkflowActionType("4A8E2E61-FE0D-4AB3-BA48-9419A20E4541", "Custom Failure Message", 10, "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", true, true, "78EB1EC5-D896-4194-A86B-939F95A34555", "1917380A-CE12-4253-980A-60EDDD3348B5", 1, "False", "2FEE6858-8A63-484F-9848-EAC4697DA1D5");     // DISC Request:Launch From Person Profile:Custom Failure Message
            RockMigrationHelper.AddActionTypeAttributeValue("AF0285A4-CA58-4131-BE35-EEB5CF033DE0", "FA7C685D-8636-41EF-9998-90FFF3998F76", @"");                                                                                                                                                                           // DISC Request:Launch From Person Profile:Set No Email Opted Out:Order
            RockMigrationHelper.AddActionTypeAttributeValue("AF0285A4-CA58-4131-BE35-EEB5CF033DE0", "F3B9908B-096F-460B-8320-122CF046D1F9", @"
            DECLARE @PersonAliasGuid uniqueidentifier = '{{ Workflow | Attribute:'Person','RawValue' }}'
            SELECT  
                CASE     WHEN EXISTS 
                    ( SELECT 1         
                     FROM
                        [Person] P  
                     INNER JOIN 
                        [PersonAlias] PA ON PA.[Guid] = @PersonAliasGuid AND P.[Id] = PA.[PersonId]         
                    WHERE P.[EmailPreference] = 2 )
                THEN 'True'
                ELSE 'False'
            END");                                                                                                                                                                                                                                                                                                          // DISC Request:Launch From Person Profile:Set No Email Opted Out:SQLQuery
            RockMigrationHelper.AddActionTypeAttributeValue("AF0285A4-CA58-4131-BE35-EEB5CF033DE0", "A18C3143-0586-4565-9F36-E603BC674B4E", @"False");                                                                                                                                                                      // DISC Request:Launch From Person Profile:Set No Email Opted Out:Active
            RockMigrationHelper.AddActionTypeAttributeValue("AF0285A4-CA58-4131-BE35-EEB5CF033DE0", "59F8F913-3969-46F3-B6E9-3613DCC94388", @"");                                                                                                                                                                           // DISC Request:Launch From Person Profile:Set No Email Opted Out:Parameters
            RockMigrationHelper.AddActionTypeAttributeValue("AF0285A4-CA58-4131-BE35-EEB5CF033DE0", "56997192-2545-4EA1-B5B2-313B04588984", @"9b4576b0-2227-4564-8eb3-0bc33b31a723");                                                                                                                                       // DISC Request:Launch From Person Profile:Set No Email Opted Out:Result Attribute
            RockMigrationHelper.AddActionTypeAttributeValue("AF0285A4-CA58-4131-BE35-EEB5CF033DE0", "1C419D69-E39E-4CCF-B9DB-60C803055146", @"False");                                                                                                                                                                      // DISC Request:Launch From Person Profile:Set No Email Opted Out:Continue On Error
            RockMigrationHelper.AddActionTypeAttributeValue("7790C564-B42C-4FFC-B6C0-71E9853E380A", "D7EAA859-F500-4521-9523-488B12EAA7D2", @"False");                                                                                                                                                                      // DISC Request:Launch From Person Profile:Set Error:Active
            RockMigrationHelper.AddActionTypeAttributeValue("7790C564-B42C-4FFC-B6C0-71E9853E380A", "44A0B977-4730-4519-8FF6-B0A01A95B212", @"74e7bd11-be21-4256-b02a-e97ad54c7511");                                                                                                                                       // DISC Request:Launch From Person Profile:Set Error:Attribute
            RockMigrationHelper.AddActionTypeAttributeValue("7790C564-B42C-4FFC-B6C0-71E9853E380A", "57093B41-50ED-48E5-B72B-8829E62704C8", @"");                                                                                                                                                                           // DISC Request:Launch From Person Profile:Set Error:Order
            RockMigrationHelper.AddActionTypeAttributeValue("7790C564-B42C-4FFC-B6C0-71E9853E380A", "E5272B11-A2B8-49DC-860D-8D574E2BC15C", @"<div class=""alert alert-danger"">{{ Workflow | Attribute:'Person' }} has previously opted out from emails.  Make sure you want to override this preference.</div>");         // DISC Request:Launch From Person Profile:Set Error:Text Value|Attribute Value
            RockMigrationHelper.AddActionTypeAttributeValue("555A729C-5EC4-4C83-B35F-036234E5EFCC", "E22BE348-18B1-4420-83A8-6319B35416D2", @"True");                                                                                                                                                                       // DISC Request:Launch From Person Profile:Persist Workflow:Persist Immediately

            RockMigrationHelper.AddActionTypeAttributeValue("36DE9E26-DC5C-43E7-866A-B61CF37025FC", "F1F6F9D6-FDC5-489C-8261-4B9F45B3EED4", @"
           {% assign optOut = Workflow | Attribute:'OptOut'  | AsBoolean %}
           {% assign isEmailpresent = Workflow | Attribute:'IsEmailPresent'  | AsBoolean %} 
           {% assign noEmailOptedOut = Workflow | Attribute:'NoEmailOptedOut' | AsBoolean %} 
           {% if optOut == false and isEmailpresent and noEmailOptedOut == false  %} 
           {{ true }}
           {% else %} 
           {{ false }} 
           {% endif %}");                                                                                                                                                                                                                                                                                                   // DISC Request:Launch From Person Profile:Set User Entry Valid:Lava
            RockMigrationHelper.AddActionTypeAttributeValue("36DE9E26-DC5C-43E7-866A-B61CF37025FC", "F1924BDC-9B79-4018-9D4A-C3516C87A514", @"False");                                                                                                                                                                      // DISC Request:Launch From Person Profile:Set User Entry Valid:Active
            RockMigrationHelper.AddActionTypeAttributeValue("36DE9E26-DC5C-43E7-866A-B61CF37025FC", "1B833F48-EFC2-4537-B1E3-7793F6863EAA", @"");                                                                                                                                                                           // DISC Request:Launch From Person Profile:Set User Entry Valid:Order
            RockMigrationHelper.AddActionTypeAttributeValue("36DE9E26-DC5C-43E7-866A-B61CF37025FC", "431273C6-342D-4030-ADC7-7CDEDC7F8B27", @"1917380a-ce12-4253-980a-60eddd3348b5");                                                                                                                                       // DISC Request:Launch From Person Profile:Set User Entry Valid:Attribute
            RockMigrationHelper.AddActionTypeAttributeValue("36DE9E26-DC5C-43E7-866A-B61CF37025FC", "F3E380BF-AAC8-4015-9ADC-0DF56B5462F5", @"");                                                                                                                                                                           // DISC Request:Launch From Person Profile:Set User Entry Valid:Enabled Lava Commands
            RockMigrationHelper.AddActionTypeAttributeValue("2FEE6858-8A63-484F-9848-EAC4697DA1D5", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE", @"False");                                                                                                                                                                      // DISC Request:Launch From Person Profile:Custom Failure Message:Active
            RockMigrationHelper.AddActionTypeAttributeValue("2FEE6858-8A63-484F-9848-EAC4697DA1D5", "C178113D-7C86-4229-8424-C6D0CF4A7E23", @"");                                                                                                                                                                           // DISC Request:Launch From Person Profile:Custom Failure Message:Order
        }
        /// <summary>
        /// The commands to run to migrate plugin to the specific version
        /// </summary>
        public override void Up()
        {
            // Attended Check-in Site
            RockMigrationHelper.AddSite("Rock Attended Check-in", "Attended Check-In Site.", "CheckinPark", AttendedCheckinSiteGuid);
            RockMigrationHelper.AddLayout(AttendedCheckinSiteGuid, "Checkin", "Checkin", "", "3BD6CFC1-0BF2-43C8-AD38-44E711D6ACE0");

            var cssHeaderLink     = "<link rel=\"stylesheet\" href=\"/Plugins/cc_newspring/AttendedCheckin/Styles/styles.css\">";
            var customSiteUpdates = @"UPDATE [Site] SET [IsSystem] = 0, [PageHeaderContent] = '{0}' WHERE [Guid] = '{1}'";

            Sql(string.Format(customSiteUpdates, cssHeaderLink, AttendedCheckinSiteGuid));

            // Attended Check-in root page (no blocks)
            RockMigrationHelper.AddPage("", "3BD6CFC1-0BF2-43C8-AD38-44E711D6ACE0", "Attended Check-in", "Screens for managing Attended Check-in", "32A132A6-63A2-4840-B4A5-23D80994CCBD", "");
            Sql(@"
                DECLARE @PageId int = (SELECT [Id] FROM [Page] WHERE [Guid] = '32A132A6-63A2-4840-B4A5-23D80994CCBD')
                UPDATE [Site] SET [DefaultPageId] = @PageId WHERE [Guid] = '30FB46F7-4814-4691-852A-04FB56CC07F0'
            ");

            // Page: Admin
            RockMigrationHelper.AddPage("32A132A6-63A2-4840-B4A5-23D80994CCBD", "3BD6CFC1-0BF2-43C8-AD38-44E711D6ACE0", "Admin", "Admin screen for Attended Check-in", "771E3CF1-63BD-4880-BC43-AC29B4CCE963", "");   // Site:Rock Attended Check-in
            RockMigrationHelper.AddPageRoute("771E3CF1-63BD-4880-BC43-AC29B4CCE963", "attendedcheckin");
            RockMigrationHelper.AddPageRoute("771E3CF1-63BD-4880-BC43-AC29B4CCE963", "attendedcheckin/admin");
            RockMigrationHelper.UpdateBlockType("Check-in Administration", "Check-In Administration block", "~/Plugins/cc_newspring/AttendedCheckIn/Admin.ascx", "Check-in > Attended", "2C51230E-BA2E-4646-BB10-817B26C16218");
            RockMigrationHelper.AddBlock("771E3CF1-63BD-4880-BC43-AC29B4CCE963", "", "2C51230E-BA2E-4646-BB10-817B26C16218", "Admin", "Main", "", "", 0, "9F8731AB-07DB-406F-A344-45E31D0DE301");
            RockMigrationHelper.AddBlockTypeAttribute("2C51230E-BA2E-4646-BB10-817B26C16218", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Previous Page", "PreviousPage", "", "", 0, @"", "B196160E-4397-4C6F-8C5A-317CAD3C118F");
            RockMigrationHelper.AddBlockTypeAttribute("2C51230E-BA2E-4646-BB10-817B26C16218", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Next Page", "NextPage", "", "", 0, @"", "7332D1F1-A1A5-48AE-BAB9-91C3AF085DB0");
            RockMigrationHelper.AddBlockTypeAttribute("2C51230E-BA2E-4646-BB10-817B26C16218", "46A03F59-55D3-4ACE-ADD5-B4642225DD20", "Workflow Type", "WorkflowType", "", "The workflow type to activate for check-in", 0, @"0", "18864DE7-F075-437D-BA72-A6054C209FA5");
            RockMigrationHelper.AddBlockTypeAttribute("2C51230E-BA2E-4646-BB10-817B26C16218", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Home Page", "HomePage", "", "", 0, @"", "40F39C36-3092-4B87-81F8-A9B1C6B261B2");
            RockMigrationHelper.AddBlockTypeAttribute("2C51230E-BA2E-4646-BB10-817B26C16218", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Time to Cache Kiosk GeoLocation", "TimetoCacheKioskGeoLocation", "", "Time in minutes to cache the coordinates of the kiosk. A value of zero (0) means cache forever. Default 20 minutes.", 1, @"20", "F5512AB9-CDE2-46F7-82A8-99168D7784B2");
            RockMigrationHelper.AddBlockAttributeValue("9F8731AB-07DB-406F-A344-45E31D0DE301", "B196160E-4397-4C6F-8C5A-317CAD3C118F", @"00000000-0000-0000-0000-000000000000");   // Previous Page
            RockMigrationHelper.AddBlockAttributeValue("9F8731AB-07DB-406F-A344-45E31D0DE301", "7332D1F1-A1A5-48AE-BAB9-91C3AF085DB0", @"8F618315-F554-4751-AB7F-00CC5658120A");   // Next Page
            RockMigrationHelper.AddBlockAttributeValue("9F8731AB-07DB-406F-A344-45E31D0DE301", "18864DE7-F075-437D-BA72-A6054C209FA5", @"6E8CD562-A1DA-4E13-A45C-853DB56E0014");   // Workflow Type
            RockMigrationHelper.AddBlockAttributeValue("9F8731AB-07DB-406F-A344-45E31D0DE301", "40F39C36-3092-4B87-81F8-A9B1C6B261B2", @"8F618315-F554-4751-AB7F-00CC5658120A");   // Home Page

            // Page: Search
            RockMigrationHelper.AddPage("32A132A6-63A2-4840-B4A5-23D80994CCBD", "3BD6CFC1-0BF2-43C8-AD38-44E711D6ACE0", "Search", "Search screen for Attended Check-in", "8F618315-F554-4751-AB7F-00CC5658120A", "");   // Site:Rock Attended Check-in
            RockMigrationHelper.AddPageRoute("8F618315-F554-4751-AB7F-00CC5658120A", "attendedcheckin/search");
            RockMigrationHelper.UpdateBlockType("Family Select", "Attended Check-In Search block", "~/Plugins/cc_newspring/AttendedCheckIn/Search.ascx", "Check-in > Attended", "645D3F2F-0901-44FE-93E9-446DBC8A1680");
            RockMigrationHelper.AddBlock("8F618315-F554-4751-AB7F-00CC5658120A", "", "645D3F2F-0901-44FE-93E9-446DBC8A1680", "Search", "Main", "", "", 0, "182C9AA0-E76F-4AAF-9F61-5418EE5A0CDB");
            RockMigrationHelper.AddBlockTypeAttribute("645D3F2F-0901-44FE-93E9-446DBC8A1680", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Admin Page", "AdminPage", "", "", 0, @"", "BBB93FF9-C021-4E82-8C03-55942FA4141E");
            RockMigrationHelper.AddBlockTypeAttribute("645D3F2F-0901-44FE-93E9-446DBC8A1680", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Previous Page", "PreviousPage", "", "", 0, @"", "72E40960-2072-4F08-8EA8-5A766B49A2E0");
            RockMigrationHelper.AddBlockTypeAttribute("645D3F2F-0901-44FE-93E9-446DBC8A1680", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Next Page", "NextPage", "", "", 0, @"", "BF8AAB12-57A2-4F50-992C-428C5DDCB89B");
            RockMigrationHelper.AddBlockTypeAttribute("645D3F2F-0901-44FE-93E9-446DBC8A1680", "46A03F59-55D3-4ACE-ADD5-B4642225DD20", "Workflow Type", "WorkflowType", "", "The workflow type to activate for check-in", 0, @"0", "C4E992EA-62AE-4211-BE5A-9EEF5131235C");
            RockMigrationHelper.AddBlockTypeAttribute("645D3F2F-0901-44FE-93E9-446DBC8A1680", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Home Page", "HomePage", "", "", 0, @"", "EBE397EF-07FF-4B97-BFF3-152D139F9B80");
            RockMigrationHelper.AddBlockTypeAttribute("645D3F2F-0901-44FE-93E9-446DBC8A1680", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Maximum Text Length", "MaximumTextLength", "", "Maximum length for text searches (defaults to 20).", 0, @"20", "970A9BD6-D58A-4F8E-8B20-EECB845E6BD6");
            RockMigrationHelper.AddBlockTypeAttribute("645D3F2F-0901-44FE-93E9-446DBC8A1680", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Minimum Text Length", "MinimumTextLength", "", "Minimum length for text searches (defaults to 4).", 0, @"4", "09536DD6-8020-400F-856C-DF3BEA6F76C5");
            RockMigrationHelper.AddBlockAttributeValue("182C9AA0-E76F-4AAF-9F61-5418EE5A0CDB", "BBB93FF9-C021-4E82-8C03-55942FA4141E", @"771E3CF1-63BD-4880-BC43-AC29B4CCE963");   // Admin Page
            RockMigrationHelper.AddBlockAttributeValue("182C9AA0-E76F-4AAF-9F61-5418EE5A0CDB", "72E40960-2072-4F08-8EA8-5A766B49A2E0", @"BE996C9B-3DFE-407F-BD53-D6F58D85A035");   // Previous Page
            RockMigrationHelper.AddBlockAttributeValue("182C9AA0-E76F-4AAF-9F61-5418EE5A0CDB", "BF8AAB12-57A2-4F50-992C-428C5DDCB89B", @"AF83D0B2-2995-4E46-B0DF-1A4763637A68");   // Next Page
            RockMigrationHelper.AddBlockAttributeValue("182C9AA0-E76F-4AAF-9F61-5418EE5A0CDB", "C4E992EA-62AE-4211-BE5A-9EEF5131235C", @"6E8CD562-A1DA-4E13-A45C-853DB56E0014");   // Workflow Type
            RockMigrationHelper.AddBlockAttributeValue("182C9AA0-E76F-4AAF-9F61-5418EE5A0CDB", "EBE397EF-07FF-4B97-BFF3-152D139F9B80", @"8F618315-F554-4751-AB7F-00CC5658120A");   // Home Page

            // Page: Family Select
            RockMigrationHelper.AddPage("32A132A6-63A2-4840-B4A5-23D80994CCBD", "3BD6CFC1-0BF2-43C8-AD38-44E711D6ACE0", "Family Select", "Family select for Attended Check-in", "AF83D0B2-2995-4E46-B0DF-1A4763637A68", "");   // Site:Rock Attended Check-in
            RockMigrationHelper.AddPageRoute("AF83D0B2-2995-4E46-B0DF-1A4763637A68", "attendedcheckin/family");
            RockMigrationHelper.UpdateBlockType("Family Select", "Attended Check-In Family Select Block", "~/Plugins/cc_newspring/AttendedCheckIn/FamilySelect.ascx", "Check-in > Attended", "4D48B5F0-F0B2-4C10-8498-DAF690761A80");
            RockMigrationHelper.AddBlock("AF83D0B2-2995-4E46-B0DF-1A4763637A68", "", "4D48B5F0-F0B2-4C10-8498-DAF690761A80", "Family Select", "Main", "", "", 0, "82929409-8551-413C-972A-98EDBC23F420");
            RockMigrationHelper.AddBlock("AF83D0B2-2995-4E46-B0DF-1A4763637A68", "", "49FC4B38-741E-4B0B-B395-7C1929340D88", "Idle Redirect", "Main", "", "", 1, "BDD502FF-40D2-42E6-845E-95C49C3505B3");
            RockMigrationHelper.AddBlockTypeAttribute("4D48B5F0-F0B2-4C10-8498-DAF690761A80", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Previous Page", "PreviousPage", "", "", 0, @"", "DD9F93C9-009B-4FA5-8FF9-B186E4969ACB");
            RockMigrationHelper.AddBlockTypeAttribute("4D48B5F0-F0B2-4C10-8498-DAF690761A80", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Next Page", "NextPage", "", "", 0, @"", "81A02B6F-F760-4110-839C-4507CF285A7E");
            RockMigrationHelper.AddBlockTypeAttribute("4D48B5F0-F0B2-4C10-8498-DAF690761A80", "46A03F59-55D3-4ACE-ADD5-B4642225DD20", "Workflow Type", "WorkflowType", "", "The workflow type to activate for check-in", 0, @"0", "338CAD91-3272-465B-B768-0AC2F07A0B40");
            RockMigrationHelper.AddBlockTypeAttribute("4D48B5F0-F0B2-4C10-8498-DAF690761A80", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Home Page", "HomePage", "", "", 0, @"", "2DF1D39B-DFC7-4FB2-B638-3D99C3C4F4DF");
            RockMigrationHelper.AddBlockAttributeValue("82929409-8551-413C-972A-98EDBC23F420", "DD9F93C9-009B-4FA5-8FF9-B186E4969ACB", @"8F618315-F554-4751-AB7F-00CC5658120A"); // Previous Page
            RockMigrationHelper.AddBlockAttributeValue("82929409-8551-413C-972A-98EDBC23F420", "81A02B6F-F760-4110-839C-4507CF285A7E", @"BE996C9B-3DFE-407F-BD53-D6F58D85A035"); // Next Page
            RockMigrationHelper.AddBlockAttributeValue("82929409-8551-413C-972A-98EDBC23F420", "338CAD91-3272-465B-B768-0AC2F07A0B40", @"6E8CD562-A1DA-4E13-A45C-853DB56E0014"); // Workflow Type
            RockMigrationHelper.AddBlockAttributeValue("82929409-8551-413C-972A-98EDBC23F420", "2DF1D39B-DFC7-4FB2-B638-3D99C3C4F4DF", @"8F618315-F554-4751-AB7F-00CC5658120A"); // Home Page
            RockMigrationHelper.AddBlockAttributeValue("BDD502FF-40D2-42E6-845E-95C49C3505B3", "2254B67B-9CB1-47DE-A63D-D0B56051ECD4", @"~/attendedcheckin/search");             // New Location
            RockMigrationHelper.AddBlockAttributeValue("BDD502FF-40D2-42E6-845E-95C49C3505B3", "1CAC7B16-041A-4F40-8AEE-A39DFA076C14", @"180");                                  // Idle Seconds

            // Page: Confirmation
            RockMigrationHelper.AddPage("32A132A6-63A2-4840-B4A5-23D80994CCBD", "3BD6CFC1-0BF2-43C8-AD38-44E711D6ACE0", "Confirmation", "Confirmation screen for Attended Check-in", "BE996C9B-3DFE-407F-BD53-D6F58D85A035", "");   // Site:Rock Attended Check-in
            RockMigrationHelper.AddPageRoute("BE996C9B-3DFE-407F-BD53-D6F58D85A035", "attendedcheckin/confirm");
            RockMigrationHelper.UpdateBlockType("Confirmation Block", "Attended Check-In Confirmation Block", "~/Plugins/cc_newspring/AttendedCheckIn/Confirm.ascx", "Check-in > Attended", "5B1D4187-9B34-4AB6-AC57-7E2CF67B266F");
            RockMigrationHelper.AddBlock("BE996C9B-3DFE-407F-BD53-D6F58D85A035", "", "5B1D4187-9B34-4AB6-AC57-7E2CF67B266F", "Confirmation", "Main", "", "", 0, "7CC68DD4-A6EF-4B67-9FEA-A144C479E058");
            RockMigrationHelper.AddBlock("BE996C9B-3DFE-407F-BD53-D6F58D85A035", "", "49FC4B38-741E-4B0B-B395-7C1929340D88", "Idle Redirect", "Main", "", "", 1, "FAEC5FCC-B850-4DA6-8844-715159D39BD5");
            RockMigrationHelper.AddBlockTypeAttribute("5B1D4187-9B34-4AB6-AC57-7E2CF67B266F", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Previous Page", "PreviousPage", "", "", 0, @"", "E45D2B10-D1B1-4CBE-9C7A-3098B1D95F47");
            RockMigrationHelper.AddBlockTypeAttribute("5B1D4187-9B34-4AB6-AC57-7E2CF67B266F", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Next Page", "NextPage", "", "", 0, @"", "48813610-DD26-4E72-9D19-817535802C49");
            RockMigrationHelper.AddBlockTypeAttribute("5B1D4187-9B34-4AB6-AC57-7E2CF67B266F", "46A03F59-55D3-4ACE-ADD5-B4642225DD20", "Workflow Type", "WorkflowType", "", "The workflow type to activate for check-in", 0, @"0", "2A71729F-E7CA-4ACD-9996-A6A661A069FD");
            RockMigrationHelper.AddBlockTypeAttribute("5B1D4187-9B34-4AB6-AC57-7E2CF67B266F", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Home Page", "HomePage", "", "", 0, @"", "DEB23724-94F9-4164-BFAB-AD2DDE1F90ED");
            RockMigrationHelper.AddBlockTypeAttribute("5B1D4187-9B34-4AB6-AC57-7E2CF67B266F", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Activity Select Page", "ActivitySelectPage", "", "", 0, @"", "2D54A2C9-759C-45B6-8E23-42F39E134170");
            RockMigrationHelper.AddBlockTypeAttribute("5B1D4187-9B34-4AB6-AC57-7E2CF67B266F", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Print Individual Labels", "PrintIndividualLabels", "", "", 0, @"False", "FB49557F-4B8E-4F7B-ACE1-A4230C3BB832");
            RockMigrationHelper.AddBlockTypeAttribute("5B1D4187-9B34-4AB6-AC57-7E2CF67B266F", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Workflow Activity", "WorkflowActivity", "", "The name of the workflow activity to run on selection.", 0, @"", "2D44DDDC-F0DD-49E1-8A56-7D8B979D9C67");
            RockMigrationHelper.AddBlockAttributeValue("7CC68DD4-A6EF-4B67-9FEA-A144C479E058", "E45D2B10-D1B1-4CBE-9C7A-3098B1D95F47", @"AF83D0B2-2995-4E46-B0DF-1A4763637A68"); // Previous Page
            RockMigrationHelper.AddBlockAttributeValue("7CC68DD4-A6EF-4B67-9FEA-A144C479E058", "48813610-DD26-4E72-9D19-817535802C49", @"8F618315-F554-4751-AB7F-00CC5658120A"); // Next Page
            RockMigrationHelper.AddBlockAttributeValue("7CC68DD4-A6EF-4B67-9FEA-A144C479E058", "2A71729F-E7CA-4ACD-9996-A6A661A069FD", @"6E8CD562-A1DA-4E13-A45C-853DB56E0014"); // Workflow Type
            RockMigrationHelper.AddBlockAttributeValue("7CC68DD4-A6EF-4B67-9FEA-A144C479E058", "DEB23724-94F9-4164-BFAB-AD2DDE1F90ED", @"8F618315-F554-4751-AB7F-00CC5658120A"); // Home Page
            RockMigrationHelper.AddBlockAttributeValue("7CC68DD4-A6EF-4B67-9FEA-A144C479E058", "2D54A2C9-759C-45B6-8E23-42F39E134170", @"C87916FE-417E-4A11-8831-5CFA7678A228"); // Activity Select Page
            RockMigrationHelper.AddBlockAttributeValue("FAEC5FCC-B850-4DA6-8844-715159D39BD5", "2254B67B-9CB1-47DE-A63D-D0B56051ECD4", @"~/attendedcheckin/search");             // New Location
            RockMigrationHelper.AddBlockAttributeValue("FAEC5FCC-B850-4DA6-8844-715159D39BD5", "1CAC7B16-041A-4F40-8AEE-A39DFA076C14", @"180");                                  // Idle Seconds

            // Page: Activity Select
            RockMigrationHelper.AddPage("32A132A6-63A2-4840-B4A5-23D80994CCBD", "3BD6CFC1-0BF2-43C8-AD38-44E711D6ACE0", "Activity Select", "Activity select for Attended Check-in", "C87916FE-417E-4A11-8831-5CFA7678A228", "");   // Site:Rock Attended Check-in
            RockMigrationHelper.AddPageRoute("C87916FE-417E-4A11-8831-5CFA7678A228", "attendedcheckin/activity");
            RockMigrationHelper.UpdateBlockType("Activity Select", "Attended Check-In Activity Select Block", "~/Plugins/cc_newspring/AttendedCheckIn/ActivitySelect.ascx", "Check-in > Attended", "78E2AB4A-FDF7-4864-92F7-F052050BC4BB");
            RockMigrationHelper.AddBlock("C87916FE-417E-4A11-8831-5CFA7678A228", "", "78E2AB4A-FDF7-4864-92F7-F052050BC4BB", "Activity Select", "Main", "", "", 0, "8C8CBBE9-2502-4FEC-804D-C0DA13C07FA4");
            RockMigrationHelper.AddBlockTypeAttribute("78E2AB4A-FDF7-4864-92F7-F052050BC4BB", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Previous Page", "PreviousPage", "", "", 0, @"", "6048A23D-6544-441A-A8B3-5782CAF5B468");
            RockMigrationHelper.AddBlockTypeAttribute("78E2AB4A-FDF7-4864-92F7-F052050BC4BB", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Next Page", "NextPage", "", "", 0, @"", "39008E18-48C9-445F-B9D7-78334B76A7EE");
            RockMigrationHelper.AddBlockTypeAttribute("78E2AB4A-FDF7-4864-92F7-F052050BC4BB", "46A03F59-55D3-4ACE-ADD5-B4642225DD20", "Workflow Type", "WorkflowType", "", "The workflow type to activate for check-in", 0, @"0", "BEC10B87-4B19-4CD5-8952-A4D59DDA3E9C");
            RockMigrationHelper.AddBlockTypeAttribute("78E2AB4A-FDF7-4864-92F7-F052050BC4BB", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Home Page", "HomePage", "", "", 0, @"", "5046A353-D901-45BB-9981-9CC1B33550C6");
            RockMigrationHelper.AddBlockAttributeValue("8C8CBBE9-2502-4FEC-804D-C0DA13C07FA4", "6048A23D-6544-441A-A8B3-5782CAF5B468", @"BE996C9B-3DFE-407F-BD53-D6F58D85A035"); // Previous Page
            RockMigrationHelper.AddBlockAttributeValue("8C8CBBE9-2502-4FEC-804D-C0DA13C07FA4", "39008E18-48C9-445F-B9D7-78334B76A7EE", @"BE996C9B-3DFE-407F-BD53-D6F58D85A035"); // Next Page
            RockMigrationHelper.AddBlockAttributeValue("8C8CBBE9-2502-4FEC-804D-C0DA13C07FA4", "BEC10B87-4B19-4CD5-8952-A4D59DDA3E9C", @"6E8CD562-A1DA-4E13-A45C-853DB56E0014"); // Workflow Type
            RockMigrationHelper.AddBlockAttributeValue("8C8CBBE9-2502-4FEC-804D-C0DA13C07FA4", "5046A353-D901-45BB-9981-9CC1B33550C6", @"8F618315-F554-4751-AB7F-00CC5658120A"); // Home Page
            RockMigrationHelper.AddBlock("C87916FE-417E-4A11-8831-5CFA7678A228", "", "49FC4B38-741E-4B0B-B395-7C1929340D88", "Idle Redirect", "Main", "", "", 1, "31E6A1CC-2ABE-4ECC-B8DF-1FD2E8EBA203");
            RockMigrationHelper.AddBlockAttributeValue("31E6A1CC-2ABE-4ECC-B8DF-1FD2E8EBA203", "2254B67B-9CB1-47DE-A63D-D0B56051ECD4", @"~/attendedcheckin/search");             // New Location
            RockMigrationHelper.AddBlockAttributeValue("31E6A1CC-2ABE-4ECC-B8DF-1FD2E8EBA203", "1CAC7B16-041A-4F40-8AEE-A39DFA076C14", @"180");                                  // Idle Seconds

            // Custom workflow actions
            RockMigrationHelper.UpdateEntityType("cc.newspring.AttendedCheckIn.Workflow.Action.CheckIn.FilterGroupsByGender", "Filter Groups By Gender", "cc.newspring.AttendedCheckIn.Workflow.Action.CheckIn.FilterGroupsByGender", false, true, "DC7DB1FD-8CC8-4AC4-B0A5-B5F85FF03540");
            RockMigrationHelper.UpdateEntityType("cc.newspring.AttendedCheckIn.Workflow.Action.CheckIn.SelectByBestFit", "Select By Best Fit", "cc.newspring.AttendedCheckIn.Workflow.Action.CheckIn.SelectByBestFit", false, true, "B1A855F8-7ED6-49AE-8EEA-D1DCB6C7E944");
            RockMigrationHelper.UpdateEntityType("cc.newspring.AttendedCheckIn.Workflow.Action.CheckIn.SelectByLastAttended", "Select By Last Attended", "cc.newspring.AttendedCheckIn.Workflow.Action.CheckIn.SelectByLastAttended", false, true, "B4E27263-BB68-46DB-9876-D0E8C26449A3");
            RockMigrationHelper.UpdateEntityType("cc.newspring.AttendedCheckIn.Workflow.Action.CheckIn.SelectByMultipleAttended", "Select By Multiple Attended", "cc.newspring.AttendedCheckIn.Workflow.Action.CheckIn.SelectByMultipleAttended", false, true, "DDC2D0CA-28A9-420B-9915-B3831DE75DAC");

            // Set attribute defaults
            // cc.newspring.AttendedCheckIn.Workflow.Action.CheckIn.FilterGroupsByAge:Order
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("23F1E3FD-48AE-451F-9911-A5C7523A74B6", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "554108CF-31A1-47C0-A184-18B4A881D7FD");
            // cc.newspring.AttendedCheckIn.Workflow.Action.CheckIn.FilterGroupsByAge:Active
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("23F1E3FD-48AE-451F-9911-A5C7523A74B6", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "6F98731B-1C17-49F0-8B5C-1C7DBDB08A07");
            // cc.newspring.AttendedCheckIn.Workflow.Action.CheckIn.FilterGroupsByAge:Remove
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("23F1E3FD-48AE-451F-9911-A5C7523A74B6", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Remove", "Remove", "Select 'Yes' if groups should be be removed.  Select 'No' if they should just be marked as excluded.", 0, @"False", "F05781E2-3517-4D20-A3BB-DA56CA025F25");

            // Attended Check-in:Activity Search:Filter Groups By Special Needs:Active - false
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("F940F6E5-6784-4925-8DF6-E59A911FDCBE", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "184D2EF3-247C-4C1F-93D6-49474CA95300");
            // Attended Check-in:Activity Search:Filter Groups By Special Needs:Order - false
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("F940F6E5-6784-4925-8DF6-E59A911FDCBE", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "5F0C8E93-AB70-4508-999D-C5492E2ECADA");
            // Attended Check-in:Activity Search:Filter Groups By Special Needs:Remove - false
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("F940F6E5-6784-4925-8DF6-E59A911FDCBE", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Remove", "Remove", "Select 'Yes' if groups should be be removed.  Select 'No' if they should just be marked as excluded.", 0, @"False", "F699D995-51EC-4EF7-8A03-B41D7C16A3C2");
            // Attended Check-in:Activity Search:Filter Groups By Special Needs:RemoveNonSN - false
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("F940F6E5-6784-4925-8DF6-E59A911FDCBE", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Remove (or exclude) Non-Special Needs Groups", "RemoveNonSpecialNeedsGroups", "If set to true, non-special-needs groups will be removed if the person has special needs. This basically prevents special needs kids from getting put into regular classes. Default false.", 0, @"False", "2F00F31C-2042-43ED-BEB6-C051CA92DAC8");
            // Attended Check-in:Activity Search:Filter Groups By Special Needs:RemoveSN - false
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("F940F6E5-6784-4925-8DF6-E59A911FDCBE", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Remove (or exclude) Special Needs Groups", "RemoveSpecialNeedsGroups", "If set to true, special-needs groups will be removed if the person is NOT special needs. This basically prevents non-special-needs kids from getting put into special needs classes. Default true.", 0, @"True", "9F72C20F-B927-4777-93A1-1EFEB8453960");

            // cc.newspring.AttendedCheckIn.Workflow.Action.CheckIn.SelectByBestFit:Active
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("B1A855F8-7ED6-49AE-8EEA-D1DCB6C7E944", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "83F299E7-F2C9-4F0A-BA51-23D6CD0F9433");
            // cc.newspring.AttendedCheckIn.Workflow.Action.CheckIn.SelectByBestFit:Order
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("B1A855F8-7ED6-49AE-8EEA-D1DCB6C7E944", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "C599F69C-7295-4F82-A9A2-C769DBAF8765");
            // cc.newspring.AttendedCheckIn.Workflow.Action.CheckIn.SelectByLastAttended:Active
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("B4E27263-BB68-46DB-9876-D0E8C26449A3", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "8A1DBF48-1BF8-4EB8-9CDD-2D3773DD64EA");
            // cc.newspring.AttendedCheckIn.Workflow.Action.CheckIn.SelectByLastAttended:Order
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("B4E27263-BB68-46DB-9876-D0E8C26449A3", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "99840778-A814-4826-A976-46CC01CC2335");
            // cc.newspring.AttendedCheckIn.Workflow.Action.CheckIn.SelectByMultipleAttended:Active
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("DDC2D0CA-28A9-420B-9915-B3831DE75DAC", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "85BB0E2E-A8DE-4991-B92C-D6378F60001D");
            // cc.newspring.AttendedCheckIn.Workflow.Action.CheckIn.SelectByMultipleAttended:Order
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("DDC2D0CA-28A9-420B-9915-B3831DE75DAC", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "7237CFF5-BC59-4C2C-8314-F690038D93F8");

            // Attended Workflow Type
            RockMigrationHelper.UpdateWorkflowType(false, true, "Attended Check-in", "Workflow for managing attended check-in", "8F8B272D-D351-485E-86D6-3EE5B7C84D99", "Check-in", "fa fa-list-ol", 0, false, 3, "6E8CD562-A1DA-4E13-A45C-853DB56E0014"); // Attended Check-in
            RockMigrationHelper.UpdateWorkflowActivityType("6E8CD562-A1DA-4E13-A45C-853DB56E0014", true, "Family Search", "", false, 0, "B6FC7350-10E0-4255-873D-4B492B7D27FF");                                                                           // Attended Check-in:Family Search
            RockMigrationHelper.UpdateWorkflowActivityType("6E8CD562-A1DA-4E13-A45C-853DB56E0014", true, "Person Search", "", false, 1, "6D8CC755-0140-439A-B5A3-97D2F7681697");                                                                           // Attended Check-in:Person Search
            RockMigrationHelper.UpdateWorkflowActivityType("6E8CD562-A1DA-4E13-A45C-853DB56E0014", true, "Activity Search", "", false, 2, "77CCAF74-AC78-45DE-8BF9-4C544B54C9DD");                                                                         // Attended Check-in:Activity Search
            RockMigrationHelper.UpdateWorkflowActivityType("6E8CD562-A1DA-4E13-A45C-853DB56E0014", true, "Save Attendance", "", false, 3, "BF4E1CAA-25A3-4676-BCA2-FDE2C07E8210");                                                                         // Attended Check-in:Save Attendance
            RockMigrationHelper.UpdateWorkflowActivityType("6E8CD562-A1DA-4E13-A45C-853DB56E0014", true, "Create Labels", "", false, 4, "21245E72-E914-4581-972E-06DD171DCE6A");                                                                           // Attended Check-in:Create Labels

            // Family Search
            // Attended Check-in:Family Search:Find Families
            RockMigrationHelper.UpdateWorkflowActionType("B6FC7350-10E0-4255-873D-4B492B7D27FF", "Find Families", 0, "E2F172A8-88E5-4F84-9805-73164516F5FB", true, false, "", "", 1, "", "A7690077-CCB7-4AB2-A945-7BEE4861AF9E");

            // Person Search
            // Attended Check-in:Person Search:Find Family Members
            RockMigrationHelper.UpdateWorkflowActionType("6D8CC755-0140-439A-B5A3-97D2F7681697", "Find Family Members", 0, "5794B18B-8F43-43B2-8D60-6C047AB096AF", true, false, "", "", 1, "", "62D775D6-0689-43F9-AA16-858B77FAB87C");
            // Attended Check-in:Person Search:Find Relationships
            RockMigrationHelper.UpdateWorkflowActionType("6D8CC755-0140-439A-B5A3-97D2F7681697", "Find Relationships", 1, "F43099A7-E872-439B-A750-351C741BCFEF", true, false, "", "", 1, "", "50019BF6-EF27-4F9B-A06F-6A185B5CBD39");
            // Attended Check-in:Person Search:Load Group Types
            RockMigrationHelper.UpdateWorkflowActionType("6D8CC755-0140-439A-B5A3-97D2F7681697", "Load Group Types", 2, "50D5D915-074A-41FB-9EA7-0DBE52141398", true, false, "", "", 1, "", "05DD1385-B984-4905-8EA2-3B35EAC35B99");
            // Attended Check-in:Activity Search:Load Groups
            RockMigrationHelper.UpdateWorkflowActionType("6D8CC755-0140-439A-B5A3-97D2F7681697", "Load Groups", 3, "008402A8-3A6C-4CB6-A230-6AD532505EDC", true, false, "", "", 1, "", "9DFD5255-CC94-4B88-AE2E-2FC32F35D9D9");
            // Attended Check-in:Activity Search:Filter Groups By Special Needs
            RockMigrationHelper.UpdateWorkflowActionType("6D8CC755-0140-439A-B5A3-97D2F7681697", "Filter Groups By Special Needs", 4, "F940F6E5-6784-4925-8DF6-E59A911FDCBE", true, false, "", "", 1, "", "ED2150E5-6B9E-4266-B0FA-9C6836C0DC20");
            // Attended Check-in:Activity Search:Filter Groups By Grade
            RockMigrationHelper.UpdateWorkflowActionType("6D8CC755-0140-439A-B5A3-97D2F7681697", "Filter Groups By Grade", 5, "542DFBF4-F2F5-4C2F-9C9D-CDB00FDD5F04", true, false, "", "", 1, "", "C250DB16-03C5-45C9-B70B-7A0DE7D5550E");
            // Attended Check-in:Activity Search:Filter Groups By Age
            RockMigrationHelper.UpdateWorkflowActionType("6D8CC755-0140-439A-B5A3-97D2F7681697", "Filter Groups By Age", 6, "23F1E3FD-48AE-451F-9911-A5C7523A74B6", true, false, "", "", 1, "", "5F4CAF8E-AB49-409C-8831-845A51298A26");
            // Attended Check-in:Activity Search:Remove Empty Group Types
            RockMigrationHelper.UpdateWorkflowActionType("6D8CC755-0140-439A-B5A3-97D2F7681697", "Remove Empty Group Types", 7, "E998B9A7-31C9-46F6-B91C-4E5C3F06C82F", true, false, "", "", 1, "", "9089B47B-B441-41DE-84A7-710F4E3E55EF");
            // Attended Check-in:Person Search:Remove Empty People
            RockMigrationHelper.UpdateWorkflowActionType("6D8CC755-0140-439A-B5A3-97D2F7681697", "Remove Empty People", 8, "B8B72812-190E-4802-A63F-E693344754BD", true, false, "", "", 1, "", "1813C89A-623C-4234-91D4-3243CA68CD03");

            // Activity Search
            // Attended Check-in:Activity Search:Load Locations
            RockMigrationHelper.UpdateWorkflowActionType("77CCAF74-AC78-45DE-8BF9-4C544B54C9DD", "Load Locations", 1, "4492E36A-77C8-4DC7-8128-570FAA161ADB", true, false, "", "", 1, "", "1F342433-CE63-4FB4-88CE-00A8306ECED8");
            // Attended Check-in:Activity Search:Filter Active Locations
            RockMigrationHelper.UpdateWorkflowActionType("77CCAF74-AC78-45DE-8BF9-4C544B54C9DD", "Filter Active Locations", 2, "7BB371F9-A8DE-49D3-BEEA-C191F6C7D4A0", true, false, "", "", 1, "", "685CB9D2-EAA3-4322-81E3-289BFCAE15E7");
            // Attended Check-in:Activity Search:Load Schedules
            RockMigrationHelper.UpdateWorkflowActionType("77CCAF74-AC78-45DE-8BF9-4C544B54C9DD", "Load Schedules", 3, "24A7E196-B50B-4BD6-A347-07CFC5ABEF9E", true, false, "", "", 1, "", "5CD01782-54F7-405D-B857-73BDE9242761");
            // Attended Check-in:Activity Search:Select By Multiple Attended
            RockMigrationHelper.UpdateWorkflowActionType("77CCAF74-AC78-45DE-8BF9-4C544B54C9DD", "Select By Multiple Attended", 4, "DDC2D0CA-28A9-420B-9915-B3831DE75DAC", true, false, "", "", 1, "", "32CFAB16-629D-490C-A2C4-A95731BA5931");
            // Attended Check-in:Activity Search:Select By Best Fit
            RockMigrationHelper.UpdateWorkflowActionType("77CCAF74-AC78-45DE-8BF9-4C544B54C9DD", "Select By Best Fit", 5, "B1A855F8-7ED6-49AE-8EEA-D1DCB6C7E944", true, false, "", "", 1, "", "7D482C58-34CB-4414-9607-4BD01D0C217A");

            // Save Attendance
            // Attended Check-in:Save Attendance:Save Attendance
            RockMigrationHelper.UpdateWorkflowActionType("BF4E1CAA-25A3-4676-BCA2-FDE2C07E8210", "Save Attendance", 0, "50B2FEE6-DB7A-43C0-9DCF-19F61CD02BC6", true, false, "", "", 1, "", "93AF3357-7AE9-47AA-8B8B-C5351490E1ED");

            // Attended Check-in:Save Attendance:Create Labels
            RockMigrationHelper.UpdateWorkflowActionType("21245E72-E914-4581-972E-06DD171DCE6A", "Create Labels", 0, "8F348E7B-F9FD-4600-852D-477B13B0B4EE", true, false, "", "", 1, "", "BBE6E76D-6C8E-4B8E-931C-DD3CBE9619A4");

            // Set attribute values
            // Attended Check-in:Family Search:Find Families:Order
            RockMigrationHelper.AddActionTypeAttributeValue("A7690077-CCB7-4AB2-A945-7BEE4861AF9E", "3404112D-3A97-4AE8-B699-07F62BD37D81", @"");
            // Attended Check-in:Family Search:Find Families:Active
            RockMigrationHelper.AddActionTypeAttributeValue("A7690077-CCB7-4AB2-A945-7BEE4861AF9E", "1C6D8BD4-1A72-41E7-A9B5-AF37613058D8", @"False");
            // Attended Check-in:Person Search:Find Family Members:Order
            RockMigrationHelper.AddActionTypeAttributeValue("62D775D6-0689-43F9-AA16-858B77FAB87C", "857A277E-6824-48FA-8E7A-9988AC4BCB13", @"");
            // Attended Check-in:Person Search:Find Family Members:Active
            RockMigrationHelper.AddActionTypeAttributeValue("62D775D6-0689-43F9-AA16-858B77FAB87C", "3EF34D41-030B-411F-9D18-D331ABD89F0D", @"False");
            // Attended Check-in:Person Search:Find Relationships:Order
            RockMigrationHelper.AddActionTypeAttributeValue("50019BF6-EF27-4F9B-A06F-6A185B5CBD39", "2C5535C6-80C9-4886-9A93-33A18F46AAA3", @"");
            // Attended Check-in:Person Search:Find Relationships:Active
            RockMigrationHelper.AddActionTypeAttributeValue("50019BF6-EF27-4F9B-A06F-6A185B5CBD39", "6845038E-A08E-4D0A-BE1C-750034109496", @"False");
            // Attended Check-in:Person Search:Load Group Types:Order
            RockMigrationHelper.AddActionTypeAttributeValue("05DD1385-B984-4905-8EA2-3B35EAC35B99", "1F4BD3F6-C528-4160-8478-825C3B8AC85D", @"");
            // Attended Check-in:Person Search:Load Group Types:Active
            RockMigrationHelper.AddActionTypeAttributeValue("05DD1385-B984-4905-8EA2-3B35EAC35B99", "1C7CD28E-ACC5-4B88-BC05-E02D72919305", @"False");
            // Attended Check-in:Person Search:Filter Groups by Age:Order
            RockMigrationHelper.AddActionTypeAttributeValue("5F4CAF8E-AB49-409C-8831-845A51298A26", "554108CF-31A1-47C0-A184-18B4A881D7FD", @"");
            // Attended Check-in:Person Search:Filter Groups by Age:Active
            RockMigrationHelper.AddActionTypeAttributeValue("5F4CAF8E-AB49-409C-8831-845A51298A26", "6F98731B-1C17-49F0-8B5C-1C7DBDB08A07", @"False");
            // Attended Check-in:Person Search:Filter Groups by Age:Remove
            RockMigrationHelper.AddActionTypeAttributeValue("5F4CAF8E-AB49-409C-8831-845A51298A26", "F05781E2-3517-4D20-A3BB-DA56CA025F25", @"False");
            // Attended Check-in:Person Search:Remove Empty People:Order
            RockMigrationHelper.AddActionTypeAttributeValue("1813C89A-623C-4234-91D4-3243CA68CD03", "CFDAD883-5FAA-4EC6-B308-30BBB2EFAA94", @"");
            // Attended Check-in:Person Search:Remove Empty People:Active
            RockMigrationHelper.AddActionTypeAttributeValue("1813C89A-623C-4234-91D4-3243CA68CD03", "EE892293-5B1E-4631-877E-179849F8D0FC", @"False");
            // Attended Check-in:Activity Search:Load Groups:Order
            RockMigrationHelper.AddActionTypeAttributeValue("9DFD5255-CC94-4B88-AE2E-2FC32F35D9D9", "C26C5959-7144-443B-88ED-28E4A5AE544C", @"");
            // Attended Check-in:Activity Search:Load Groups:Active
            RockMigrationHelper.AddActionTypeAttributeValue("9DFD5255-CC94-4B88-AE2E-2FC32F35D9D9", "AD7528AD-2A3D-4C26-B452-FA9F4F48953C", @"False");
            // Attended Check-in:Activity Search:Load Groups:Load All
            RockMigrationHelper.AddActionTypeAttributeValue("9DFD5255-CC94-4B88-AE2E-2FC32F35D9D9", "39762EF0-91D5-4B13-BD34-FC3AC3C24897", @"True");
            // Attended Check-in:Activity Search:Load Locations:Load All
            RockMigrationHelper.AddActionTypeAttributeValue("1F342433-CE63-4FB4-88CE-00A8306ECED8", "70203A96-AE70-47AD-A086-FD84792DF2B6", @"True");
            // Attended Check-in:Activity Search:Load Locations:Order
            RockMigrationHelper.AddActionTypeAttributeValue("1F342433-CE63-4FB4-88CE-00A8306ECED8", "6EE6128C-79BF-4333-85DB-3B0C92B27131", @"");
            // Attended Check-in:Activity Search:Load Locations:Active
            RockMigrationHelper.AddActionTypeAttributeValue("1F342433-CE63-4FB4-88CE-00A8306ECED8", "2F3B6B42-A89C-443A-9008-E9E96535E815", @"False");
            // Attended Check-in:Activity Search:Load Schedules:Order
            RockMigrationHelper.AddActionTypeAttributeValue("5CD01782-54F7-405D-B857-73BDE9242761", "F7B09469-EB3D-44A4-AB8E-C74318BD4669", @"");
            // Attended Check-in:Activity Search:Load Schedules:Active
            RockMigrationHelper.AddActionTypeAttributeValue("5CD01782-54F7-405D-B857-73BDE9242761", "4DFA9F8D-F2E6-4040-A23B-2A1F8258C767", @"False");
            // Attended Check-in:Activity Search:Load Schedules:Load All
            RockMigrationHelper.AddActionTypeAttributeValue("5CD01782-54F7-405D-B857-73BDE9242761", "B222CAF2-DF12-433C-B5D4-A8DB95B60207", @"True");
            // Attended Check-in:Activity Search:Filter Active Locations:Order
            RockMigrationHelper.AddActionTypeAttributeValue("685CB9D2-EAA3-4322-81E3-289BFCAE15E7", "C8BE5BB1-9293-4FA0-B4CF-FED19B855465", @"");
            // Attended Check-in:Activity Search:Filter Active Locations:Active
            RockMigrationHelper.AddActionTypeAttributeValue("685CB9D2-EAA3-4322-81E3-289BFCAE15E7", "D6BCB113-0699-4D58-8002-BC919CB4BA04", @"False");
            // Attended Check-in:Activity Search:Filter Active Locations:Remove
            RockMigrationHelper.AddActionTypeAttributeValue("685CB9D2-EAA3-4322-81E3-289BFCAE15E7", "885D28C5-A395-4A05-AEFB-6131498BDF12", @"True");
            // Attended Check-in:Activity Search:Filter Groups By Special Needs:Active - false
            RockMigrationHelper.AddActionTypeAttributeValue("ED2150E5-6B9E-4266-B0FA-9C6836C0DC20", "184D2EF3-247C-4C1F-93D6-49474CA95300", @"False");
            // Attended Check-in:Activity Search:Filter Groups By Special Needs:Order - false
            RockMigrationHelper.AddActionTypeAttributeValue("ED2150E5-6B9E-4266-B0FA-9C6836C0DC20", "5F0C8E93-AB70-4508-999D-C5492E2ECADA", @"");
            // Attended Check-in:Activity Search:Filter Groups By Special Needs:Remove - false
            RockMigrationHelper.AddActionTypeAttributeValue("ED2150E5-6B9E-4266-B0FA-9C6836C0DC20", "F699D995-51EC-4EF7-8A03-B41D7C16A3C2", @"False");
            // Attended Check-in:Activity Search:Filter Groups By Special Needs:RemoveNonSN - false
            RockMigrationHelper.AddActionTypeAttributeValue("ED2150E5-6B9E-4266-B0FA-9C6836C0DC20", "2F00F31C-2042-43ED-BEB6-C051CA92DAC8", @"False");
            // Attended Check-in:Activity Search:Filter Groups By Special Needs:RemoveSN - true
            RockMigrationHelper.AddActionTypeAttributeValue("ED2150E5-6B9E-4266-B0FA-9C6836C0DC20", "9F72C20F-B927-4777-93A1-1EFEB8453960", @"True");
            // Attended Check-in:Activity Search:Remove Empty Groups:Order
            RockMigrationHelper.AddActionTypeAttributeValue("9089B47B-B441-41DE-84A7-710F4E3E55EF", "041E4A2B-90C6-4242-A7F1-ED07D9B348F2", @"");
            // Attended Check-in:Activity Search:Remove Empty Groups:Active
            RockMigrationHelper.AddActionTypeAttributeValue("9089B47B-B441-41DE-84A7-710F4E3E55EF", "05C329B0-3794-42BD-9467-8F3FF95D7882", @"False");
            // Attended Check-in:Activity Search:Select By Multiple Attended:Order
            RockMigrationHelper.AddActionTypeAttributeValue("32CFAB16-629D-490C-A2C4-A95731BA5931", "99840778-A814-4826-A976-46CC01CC2335", @"");
            // Attended Check-in:Activity Search:Select By Multiple Attended:Active
            RockMigrationHelper.AddActionTypeAttributeValue("32CFAB16-629D-490C-A2C4-A95731BA5931", "8A1DBF48-1BF8-4EB8-9CDD-2D3773DD64EA", @"False");
            // Attended Check-in:Activity Search:Select By Best Fit:Order
            RockMigrationHelper.AddActionTypeAttributeValue("7D482C58-34CB-4414-9607-4BD01D0C217A", "C599F69C-7295-4F82-A9A2-C769DBAF8765", @"");
            // Attended Check-in:Activity Search:Select By Best Fit:Active
            RockMigrationHelper.AddActionTypeAttributeValue("7D482C58-34CB-4414-9607-4BD01D0C217A", "83F299E7-F2C9-4F0A-BA51-23D6CD0F9433", @"False");
            // Attended Check-in:Save Attendance:Save Attendance:Security Code Length
            RockMigrationHelper.AddActionTypeAttributeValue("93AF3357-7AE9-47AA-8B8B-C5351490E1ED", "D57F42C9-E497-4FEE-8231-4FE2D13DC191", @"3");
            // Attended Check-in:Save Attendance:Save Attendance:Order
            RockMigrationHelper.AddActionTypeAttributeValue("93AF3357-7AE9-47AA-8B8B-C5351490E1ED", "3BDE9124-BB3F-4190-BECF-6510890649E4", @"");
            // Attended Check-in:Save Attendance:Save Attendance:Active
            RockMigrationHelper.AddActionTypeAttributeValue("93AF3357-7AE9-47AA-8B8B-C5351490E1ED", "72A6C0DB-39C0-475B-A8EF-15A5D70FFA40", @"False");
            // Attended Check-in:Save Attendance:Create Labels:Order
            RockMigrationHelper.AddActionTypeAttributeValue("BBE6E76D-6C8E-4B8E-931C-DD3CBE9619A4", "F70112C9-4D93-41B9-A3FB-1E7C866AACCF", @"");
            // Attended Check-in:Save Attendance:Create Labels:Active
            RockMigrationHelper.AddActionTypeAttributeValue("BBE6E76D-6C8E-4B8E-931C-DD3CBE9619A4", "36EB15CE-095C-41ED-9C0F-9EA345599D54", @"False");

            // Add special needs attribute
            Sql(string.Format(@"
                INSERT INTO [dbo].[Attribute] ( [IsSystem],[FieldTypeId],[EntityTypeId],[EntityTypeQualifierColumn],[EntityTypeQualifierValue],[Key],[Name],[Description],[Order]
                    ,[IsGridColumn],[IsMultiValue],[IsRequired],[DefaultValue],[Guid] )
                VALUES (
                    0
                    ,(SELECT [Id] FROM [FieldType] WHERE [Class] = 'Rock.Field.Types.SelectSingleFieldType')
                    ,(SELECT [Id] FROM [EntityType] WHERE [Name] = 'Rock.Model.Person')
                    ,''
                    ,''
                    ,'HasSpecialNeeds'
                    ,'Has Special Needs'
                    ,'Flag to indicate if special needs are present'
                    ,0
                    ,0
                    ,0
                    ,0
                    ,'False'
                    ,'{0}')", SpecialNeedsAttributeGuid));

            Sql(string.Format(@"
                INSERT AttributeQualifier (IsSystem, AttributeId, [Key], Value, [Guid])
                VALUES (
                    0
                    , (SELECT [Id] FROM [Attribute] WHERE [Guid] = '{0}')
                    , 'fieldtype'
                    , 'ddl'
                    , NEWID() )

				INSERT AttributeQualifier (IsSystem, AttributeId, [Key], Value, [Guid])
				VALUES(
                    0
                    , (SELECT [Id] FROM [Attribute] WHERE [Guid] = '{0}')
                    , 'values'
                    , 'Yes'
                    , NEWID() )", SpecialNeedsAttributeGuid));

            // Make special needs appear under childhood info category
            Sql(string.Format(@"
                INSERT INTO [AttributeCategory]
                   ([AttributeId]
                   ,[CategoryId])
                VALUES
                   ((SELECT [Id] FROM [Attribute] WHERE [Guid] = '{0}')
                   ,(SELECT [Id] FROM [Category] WHERE [Name] = 'Childhood Information'))
            ", SpecialNeedsAttributeGuid));

            RockMigrationHelper.AddGroupType("Check in By Special Needs", "", "Group", "Member", false, true, true, "", 0, "0572A5FE-20A4-4BF1-95CD-C71DB5281392", 0, "6BCED84C-69AD-4F5A-9197-5C0F9C02DD34", "2CB16E13-141F-419F-BACD-8283AB6B3299", false);
            RockMigrationHelper.AddGroupTypeRole("2CB16E13-141F-419F-BACD-8283AB6B3299", "Member", "", 0, null, null, "4DC318F0-5E6F-4F34-B3C5-08264B6DFD29", false);
        }
Ejemplo n.º 24
0
        /// <summary>
        /// Operations to be performed during the upgrade process.
        /// </summary>
        public override void Up()
        {
            RockMigrationHelper.UpdateDefinedValue("1EBCDB30-A89A-4C14-8580-8289EC2C7742", "Scanned Id", "Search for family based on a barcode, proximity card, etc.", "7668CE15-E372-47EE-8FF8-6FEE09F7C858", true);
            RockMigrationHelper.UpdateDefinedValue("1EBCDB30-A89A-4C14-8580-8289EC2C7742", "Family Id", "Search for family based on a Family Id", "111385BB-DAEB-4CE3-A945-0B50DC15EE02", true);

            RockMigrationHelper.UpdateEntityAttribute("Rock.Model.Group", Rock.SystemGuid.FieldType.VALUE_LIST, "GroupTypeId", "10", "Check-in Identifiers", "One or more identifiers such as a barcode, or proximity card value that can be used during check-in.", 0, "", "8F528431-A438-4488-8DC3-CA42E66C1B37", "CheckinId");

            RockMigrationHelper.UpdateAttributeQualifier("733944B7-A0D5-41B4-94D4-DE007F72B6F0", "values", "0^Family,1^Person,2^Location,3^Check-Out", "E77DF4E6-A995-4C82-BBB7-DB57739D66F3");

            RockMigrationHelper.UpdateEntityAttribute("Rock.Model.GroupType", Rock.SystemGuid.FieldType.BOOLEAN, "GroupTypePurposeValueId", "", "Allow Checkout", "", 0, "False", "37EB8C83-A5DC-4A9B-8816-D93F07B2A7C5", "core_checkin_AllowCheckout");
            RockMigrationHelper.UpdateEntityAttribute("Rock.Model.GroupType", Rock.SystemGuid.FieldType.SINGLE_SELECT, "GroupTypePurposeValueId", "", "Auto Select Options", "", 0, "0", "C053648F-8A85-4C0C-BB24-41E9ABB56EEF", "core_checkin_AutoSelectOptions");
            RockMigrationHelper.UpdateAttributeQualifier("C053648F-8A85-4C0C-BB24-41E9ABB56EEF", "fieldtype", "ddl", "F614DAFE-18BC-4FFE-A0D7-90A59DAF79AA");
            RockMigrationHelper.UpdateAttributeQualifier("C053648F-8A85-4C0C-BB24-41E9ABB56EEF", "values", "0^People Only,1^People and Their Area/Group/Location", "542F273C-A5DB-4268-9D32-29DADA386E74");

            Sql(@"
        DECLARE @GroupTypeEntityTypeId int = ( SELECT TOP 1[Id] FROM[EntityType] WHERE[Name] = 'Rock.Model.GroupType' )
        DECLARE @CheckInTemplatePurposeId int = ( SELECT TOP 1[Id] FROM[DefinedValue] WHERE[Guid] = '4A406CB0-495B-4795-B788-52BDFDE00B01' )
        IF @GroupTypeEntityTypeId IS NOT NULL AND @CheckInTemplatePurposeId IS NOT NULL
        BEGIN

            UPDATE[Attribute] SET[EntityTypeQualifierValue] = CAST( @CheckInTemplatePurposeId AS varchar )
            WHERE[EntityTypeId] = @GroupTypeEntityTypeId
            AND[EntityTypeQualifierColumn] = 'GroupTypePurposeValueId'
            AND[Key] LIKE 'core_checkin_%'

        END
");

            // Add the new action type entity for creating check-out labels
            RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.CheckIn.CreateCheckoutLabels", "83B13E96-A024-4ED1-9B2D-A76911139553", false, false);
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("83B13E96-A024-4ED1-9B2D-A76911139553", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "50AB642C-9AD1-4973-9A6D-067F7714DFF3");                        // Rock.Workflow.Action.CheckIn.CreateCheckoutLabels:Active
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("83B13E96-A024-4ED1-9B2D-A76911139553", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "CFAC142C-73CB-4886-9A5A-4ED12C80A544"); // Rock.Workflow.Action.CheckIn.CreateCheckoutLabels:Order

            // Change the "Set Available Schedule" action in the "Person Search" activity to use the "Load Schedule" action instead.
            Sql(@"
    DECLARE @EntityTypeId int = (SELECT [Id] FROM [EntityType] WHERE [Guid] = '24A7E196-B50B-4BD6-A347-07CFC5ABEF9E')
    UPDATE [WorkflowActionType] SET [Name] = 'Load Schedules', [EntityTypeId] = @EntityTypeId WHERE [Guid] = '79CB608D-ED25-4526-A0F5-132D13642CDA'
");
            RockMigrationHelper.AddActionTypeAttributeValue("79CB608D-ED25-4526-A0F5-132D13642CDA", "B222CAF2-DF12-433C-B5D4-A8DB95B60207", @"True");  // Unattended Check-in:Person Search:Load Schedules:Load All
            RockMigrationHelper.AddActionTypeAttributeValue("79CB608D-ED25-4526-A0F5-132D13642CDA", "F7B09469-EB3D-44A4-AB8E-C74318BD4669", @"");      // Unattended Check-in:Person Search:Load Schedules:Order
            RockMigrationHelper.AddActionTypeAttributeValue("79CB608D-ED25-4526-A0F5-132D13642CDA", "4DFA9F8D-F2E6-4040-A23B-2A1F8258C767", @"False"); // Unattended Check-in:Person Search:Load Schedules:Active

            // Remove the "Preselect Recent Attendance" action from the "Person Search" activity
            RockMigrationHelper.DeleteWorkflowActionType("08D15C7A-4421-420A-BCA8-D6EE532E659F");

            // Add a new activity type for creating check-out labels
            RockMigrationHelper.UpdateWorkflowActivityType("011E9F5A-60D4-4FF5-912A-290881E37EAF", true, "Create Check-Out Labels", "Creates the labels to be printed during check-out", false, 8, "1AF64D9F-9AD2-4A2B-B8B3-8D079567AEAE"); // Unattended Check-in:Create Check-Out Labels
            RockMigrationHelper.UpdateWorkflowActionType("1AF64D9F-9AD2-4A2B-B8B3-8D079567AEAE", "Create Labels", 0, "83B13E96-A024-4ED1-9B2D-A76911139553", true, false, "", "", 1, "", "B015DEB3-678A-478B-9DF4-AB4059C9A29B");           // Unattended Check-in:Create Check-Out Labels:Create Labels
            Sql(@"
    DECLARE @WorkflowTypeId int = ( SELECT TOP 1 [Id] FROM [WorkflowType] WHERE [Guid] = '011E9F5A-60D4-4FF5-912A-290881E37EAF' )
    DECLARE @Order int = (ISNULL(( SELECT MAX([Order]) FROM [WorkflowActivityType] WHERE [WorkflowTypeId] = @WorkflowTypeId ),-1) + 1)
    UPDATE [WorkflowActivityType] SET [Order] = @Order WHERE [Guid] = '1AF64D9F-9AD2-4A2B-B8B3-8D079567AEAE'
");
            RockMigrationHelper.AddActionTypeAttributeValue("B015DEB3-678A-478B-9DF4-AB4059C9A29B", "CFAC142C-73CB-4886-9A5A-4ED12C80A544", @"");                                                                                           // Unattended Check-in:Create Check-Out Labels:Create Labels:Order
            RockMigrationHelper.AddActionTypeAttributeValue("B015DEB3-678A-478B-9DF4-AB4059C9A29B", "50AB642C-9AD1-4973-9A6D-067F7714DFF3", @"False");                                                                                      // Unattended Check-in:Create Check-Out Labels:Create Labels:Active


            RockMigrationHelper.AddPage("CDF2C599-D341-42FD-B7DC-CD402EA96050", "66FA0143-F04C-4447-A67A-2A10A6BB1A2B", "Action Select", "", "0586648B-9490-43C6-B18D-7F403458C080", "");           // Site:Rock Check-in
            RockMigrationHelper.AddPage("CDF2C599-D341-42FD-B7DC-CD402EA96050", "66FA0143-F04C-4447-A67A-2A10A6BB1A2B", "Check Out Person Select", "", "D54FC289-DF7D-48C5-91BE-38BCFDEBC6AF", ""); // Site:Rock Check-in
            RockMigrationHelper.AddPage("CDF2C599-D341-42FD-B7DC-CD402EA96050", "66FA0143-F04C-4447-A67A-2A10A6BB1A2B", "Check Out Success", "", "21A855BA-6D68-4504-97B4-D787452CEC29", "");       // Site:Rock Check-in

            RockMigrationHelper.UpdateBlockType("Action Select", "Displays option for family to Check In or Check Out.", "~/Blocks/CheckIn/ActionSelect.ascx", "Check-in", "66DDB050-8F60-4DF3-9AED-5CE283E22350");
            RockMigrationHelper.UpdateBlockType("Check Out Person Select", "Lists people who match the selected family and provides option of selecting multiple people to check-out.", "~/Blocks/CheckIn/CheckOutPersonSelect.ascx", "Check-in", "54EB0252-6FE4-49C5-8716-14A3A06C3EC5");
            RockMigrationHelper.UpdateBlockType("Check Out Success", "Displays the details of a successful check out.", "~/Blocks/CheckIn/CheckoutSuccess.ascx", "Check-in", "F499C4A9-9A60-404B-9383-B950EE6D7821");

            // Add Block to Page: Action Select, Site: Rock Check-in
            RockMigrationHelper.AddBlock("0586648B-9490-43C6-B18D-7F403458C080", "", "66DDB050-8F60-4DF3-9AED-5CE283E22350", "Action Select", "Main", "", "", 0, "F5C21AE7-4BB4-4628-9B15-7CF761C66891");
            // Add Block to Page: Check Out Person Select, Site: Rock Check-in
            RockMigrationHelper.AddBlock("D54FC289-DF7D-48C5-91BE-38BCFDEBC6AF", "", "54EB0252-6FE4-49C5-8716-14A3A06C3EC5", "Check Out Person Select", "Main", "", "", 0, "1F33702B-C26C-4EAA-AD0E-8510384EACBC");
            // Add Block to Page: Check Out Success, Site: Rock Check-in
            RockMigrationHelper.AddBlock("21A855BA-6D68-4504-97B4-D787452CEC29", "", "F499C4A9-9A60-404B-9383-B950EE6D7821", "Check Out Success", "Main", "", "", 0, "32B345DD-0EF4-480E-B82A-7D7191CC374B");

            // Attrib for BlockType: Action Select:Workflow Type
            RockMigrationHelper.AddBlockTypeAttribute("66DDB050-8F60-4DF3-9AED-5CE283E22350", "46A03F59-55D3-4ACE-ADD5-B4642225DD20", "Workflow Type", "WorkflowType", "", "The workflow type to activate for check-in", 0, @"", "31BAADBE-0E12-4EC4-B05D-472EBAD9C1B5");
            // Attrib for BlockType: Action Select:Workflow Activity
            RockMigrationHelper.AddBlockTypeAttribute("66DDB050-8F60-4DF3-9AED-5CE283E22350", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Workflow Activity", "WorkflowActivity", "", "The name of the workflow activity to run on selection.", 1, @"", "C0EEDB49-6B69-47B0-98DE-2A1A28188C5D");
            // Attrib for BlockType: Action Select:Home Page
            RockMigrationHelper.AddBlockTypeAttribute("66DDB050-8F60-4DF3-9AED-5CE283E22350", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Home Page", "HomePage", "", "", 2, @"", "DE27E0C8-5BEF-48FE-88D9-3E8300B4988E");
            // Attrib for BlockType: Action Select:Previous Page
            RockMigrationHelper.AddBlockTypeAttribute("66DDB050-8F60-4DF3-9AED-5CE283E22350", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Previous Page", "PreviousPage", "", "", 3, @"", "5751A6B9-1155-4BAC-BA2D-84C6A419D6E7");
            // Attrib for BlockType: Action Select:Next Page
            RockMigrationHelper.AddBlockTypeAttribute("66DDB050-8F60-4DF3-9AED-5CE283E22350", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Next Page", "NextPage", "", "", 4, @"", "A161CC4A-F521-49A3-B648-165A7AE4EFE0");
            // Attrib for BlockType: Action Select:Next Page (Family Check-in)
            RockMigrationHelper.AddBlockTypeAttribute("66DDB050-8F60-4DF3-9AED-5CE283E22350", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Next Page (Family Check-in)", "FamilyNextPage", "", "", 5, @"", "83450920-66B3-46FD-AEA5-35EC43F96C9D");
            // Attrib for BlockType: Action Select:Check Out Page
            RockMigrationHelper.AddBlockTypeAttribute("66DDB050-8F60-4DF3-9AED-5CE283E22350", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Check Out Page", "CheckOutPage", "", "", 6, @"", "F70CFDEC-1131-4127-A6B8-A1A9AEE02D71");

            // Attrib for BlockType: Check Out Person Select:Workflow Type
            RockMigrationHelper.AddBlockTypeAttribute("54EB0252-6FE4-49C5-8716-14A3A06C3EC5", "46A03F59-55D3-4ACE-ADD5-B4642225DD20", "Workflow Type", "WorkflowType", "", "The workflow type to activate for check-in", 0, @"", "E7FCFB35-0172-46DB-A38F-6C54BCA49A6A");
            // Attrib for BlockType: Check Out Person Select:Workflow Activity
            RockMigrationHelper.AddBlockTypeAttribute("54EB0252-6FE4-49C5-8716-14A3A06C3EC5", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Workflow Activity", "WorkflowActivity", "", "The name of the workflow activity to run on selection.", 1, @"", "A4FB35E5-8A62-47FE-AE49-6E447DA8CF82");
            // Attrib for BlockType: Check Out Person Select:Home Page
            RockMigrationHelper.AddBlockTypeAttribute("54EB0252-6FE4-49C5-8716-14A3A06C3EC5", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Home Page", "HomePage", "", "", 2, @"", "843FB186-90E8-4DCE-B138-B23E891E2CFF");
            // Attrib for BlockType: Check Out Person Select:Previous Page
            RockMigrationHelper.AddBlockTypeAttribute("54EB0252-6FE4-49C5-8716-14A3A06C3EC5", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Previous Page", "PreviousPage", "", "", 3, @"", "67C256C2-753F-410B-B683-F64368AC8497");
            // Attrib for BlockType: Check Out Person Select:Next Page
            RockMigrationHelper.AddBlockTypeAttribute("54EB0252-6FE4-49C5-8716-14A3A06C3EC5", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Next Page", "NextPage", "", "", 4, @"", "18BAC460-2630-4651-A320-7927A3078A87");

            // Attrib for BlockType: Check Out Success:Workflow Type
            RockMigrationHelper.AddBlockTypeAttribute("F499C4A9-9A60-404B-9383-B950EE6D7821", "46A03F59-55D3-4ACE-ADD5-B4642225DD20", "Workflow Type", "WorkflowType", "", "The workflow type to activate for check-in", 0, @"", "7328D95B-D9BB-49D0-943B-B374EBC664DD");
            // Attrib for BlockType: Check Out Success:Workflow Activity
            RockMigrationHelper.AddBlockTypeAttribute("F499C4A9-9A60-404B-9383-B950EE6D7821", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Workflow Activity", "WorkflowActivity", "", "The name of the workflow activity to run on selection.", 1, @"", "76C4F5AC-7EA8-45ED-8B7C-1974361FDEE5");
            // Attrib for BlockType: Check Out Success:Home Page
            RockMigrationHelper.AddBlockTypeAttribute("F499C4A9-9A60-404B-9383-B950EE6D7821", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Home Page", "HomePage", "", "", 2, @"", "ADA3C354-42ED-4F28-8F68-38FBC2926CBF");
            // Attrib for BlockType: Check Out Success:Previous Page
            RockMigrationHelper.AddBlockTypeAttribute("F499C4A9-9A60-404B-9383-B950EE6D7821", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Previous Page", "PreviousPage", "", "", 3, @"", "735D4AAB-F8F4-4388-9A00-2132356187A6");
            // Attrib for BlockType: Check Out Success:Next Page
            RockMigrationHelper.AddBlockTypeAttribute("F499C4A9-9A60-404B-9383-B950EE6D7821", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Next Page", "NextPage", "", "", 4, @"", "223C5BA3-B6B0-4EC6-9D38-5607837410D6");

            // Attrib for BlockType: Welcome:Check-in Button Text
            RockMigrationHelper.AddBlockTypeAttribute("E1BBB48E-9E9A-4B69-B25C-820ABD9DCDEE", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Check-in Button Text", "CheckinButtonText", "", "The text to display on the check-in button.", 7, @"", "C211328D-3F66-4F5D-902A-2A7AF1985209");

            // Attrib for BlockType: Person Select (Family Check-in):Auto Select Next Page
            RockMigrationHelper.AddBlockTypeAttribute("92DCF018-F551-4890-8BA1-511D97BF6B8A", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Auto Select Next Page", "AutoSelectNextPage", "", "The page to navigate to after selecting people in auto-select mode.", 5, @"", "4302646B-F6CD-492D-8850-96B9CA1CEA59");
            // Attrib for BlockType: Person Select (Family Check-in):Pre-Selected Options Format
            RockMigrationHelper.AddBlockTypeAttribute("92DCF018-F551-4890-8BA1-511D97BF6B8A", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Pre-Selected Options Format", "OptionFormat", "", "", 6, @"<span class='auto-select-schedule'>{{ Schedule.Name }}:</span>
<span class='auto-select-group'>{{ Group.Name }}</span>
<span class='auto-select-location'>{{ Location.Name }}</span>", "55580865-E792-469F-B45C-45713477D033");

            // Update Family Select Next Page to direct to Action Page
            RockMigrationHelper.AddBlockAttributeValue("CD97D61E-7BCE-436B-ACDD-4383EB7490BA", "90ECD00A-9570-4986-B32F-02F32B656A2A", @"0586648b-9490-43c6-b18d-7f403458c080");   // Next Page

            // Attrib Value for Block:Action Select, Attribute:Workflow Activity Page: Action Select, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("F5C21AE7-4BB4-4628-9B15-7CF761C66891", "C0EEDB49-6B69-47B0-98DE-2A1A28188C5D", @"");
            // Attrib Value for Block:Action Select, Attribute:Home Page Page: Action Select, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("F5C21AE7-4BB4-4628-9B15-7CF761C66891", "DE27E0C8-5BEF-48FE-88D9-3E8300B4988E", @"432b615a-75ff-4b14-9c99-3e769f866950");
            // Attrib Value for Block:Action Select, Attribute:Previous Page Page: Action Select, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("F5C21AE7-4BB4-4628-9B15-7CF761C66891", "5751A6B9-1155-4BAC-BA2D-84C6A419D6E7", @"10c97379-f719-4acb-b8c6-651957b660a4");
            // Attrib Value for Block:Action Select, Attribute:Next Page Page: Action Select, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("F5C21AE7-4BB4-4628-9B15-7CF761C66891", "A161CC4A-F521-49A3-B648-165A7AE4EFE0", @"bb8cf87f-680f-48f9-9147-f4951e033d17");
            // Attrib Value for Block:Action Select, Attribute:Next Page (Family Check-in) Page: Action Select, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("F5C21AE7-4BB4-4628-9B15-7CF761C66891", "83450920-66B3-46FD-AEA5-35EC43F96C9D", @"d14154ba-2f2c-41c3-b380-f833252cbb13");
            // Attrib Value for Block:Action Select, Attribute:Check Out Page Page: Action Select, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("F5C21AE7-4BB4-4628-9B15-7CF761C66891", "F70CFDEC-1131-4127-A6B8-A1A9AEE02D71", @"d54fc289-df7d-48c5-91be-38bcfdebc6af");

            // Attrib Value for Block:Check Out Person Select, Attribute:Workflow Type Page: Check Out Person Select, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("1F33702B-C26C-4EAA-AD0E-8510384EACBC", "E7FCFB35-0172-46DB-A38F-6C54BCA49A6A", @"011e9f5a-60d4-4ff5-912a-290881e37eaf");
            // Attrib Value for Block:Check Out Person Select, Attribute:Workflow Activity Page: Check Out Person Select, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("1F33702B-C26C-4EAA-AD0E-8510384EACBC", "A4FB35E5-8A62-47FE-AE49-6E447DA8CF82", @"Create Check-Out Labels");
            // Attrib Value for Block:Check Out Person Select, Attribute:Home Page Page: Check Out Person Select, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("1F33702B-C26C-4EAA-AD0E-8510384EACBC", "843FB186-90E8-4DCE-B138-B23E891E2CFF", @"432b615a-75ff-4b14-9c99-3e769f866950");
            // Attrib Value for Block:Check Out Person Select, Attribute:Previous Page Page: Check Out Person Select, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("1F33702B-C26C-4EAA-AD0E-8510384EACBC", "67C256C2-753F-410B-B683-F64368AC8497", @"0586648b-9490-43c6-b18d-7f403458c080");
            // Attrib Value for Block:Check Out Person Select, Attribute:Next Page Page: Check Out Person Select, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("1F33702B-C26C-4EAA-AD0E-8510384EACBC", "18BAC460-2630-4651-A320-7927A3078A87", @"21a855ba-6d68-4504-97b4-d787452cec29");

            // Attrib Value for Block:Check Out Success, Attribute:Workflow Activity Page: Check Out Success, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("32B345DD-0EF4-480E-B82A-7D7191CC374B", "76C4F5AC-7EA8-45ED-8B7C-1974361FDEE5", @"");
            // Attrib Value for Block:Check Out Success, Attribute:Home Page Page: Check Out Success, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("32B345DD-0EF4-480E-B82A-7D7191CC374B", "ADA3C354-42ED-4F28-8F68-38FBC2926CBF", @"432b615a-75ff-4b14-9c99-3e769f866950");
            // Attrib Value for Block:Check Out Success, Attribute:Previous Page Page: Check Out Success, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("32B345DD-0EF4-480E-B82A-7D7191CC374B", "735D4AAB-F8F4-4388-9A00-2132356187A6", @"d54fc289-df7d-48c5-91be-38bcfdebc6af");

            RockMigrationHelper.AddBlockAttributeValue("0F82C7EB-3E71-496F-B5F4-83F32AD5EBB5", "4302646B-F6CD-492D-8850-96B9CA1CEA59", @"4af7a0e1-e991-4ae5-a2b5-c440f67a2e6a");                         // Auto Select Next Page
            RockMigrationHelper.AddBlockAttributeValue("0F82C7EB-3E71-496F-B5F4-83F32AD5EBB5", "55580865-E792-469F-B45C-45713477D033", @"{{ Schedule.Name }} - {{ Group.Name }} - {{ Location.Name }}"); // Pre-Selected Options Format

            // Add Block to Page: Action Select, Site: Rock Check-in
            RockMigrationHelper.AddBlock("0586648B-9490-43C6-B18D-7F403458C080", "", "49FC4B38-741E-4B0B-B395-7C1929340D88", "Idle Redirect", "Main", "", "", 1, "7A293980-9E28-4115-85EB-DA197734EED2");
            // Add Block to Page: Check Out Person Select, Site: Rock Check-in
            RockMigrationHelper.AddBlock("D54FC289-DF7D-48C5-91BE-38BCFDEBC6AF", "", "49FC4B38-741E-4B0B-B395-7C1929340D88", "Idle Redirect", "Main", "", "", 1, "258CC6B9-CA88-41E7-B578-2514FCF245B4");
            // Add Block to Page: Check Out Success, Site: Rock Check-in
            RockMigrationHelper.AddBlock("21A855BA-6D68-4504-97B4-D787452CEC29", "", "49FC4B38-741E-4B0B-B395-7C1929340D88", "Idle Redirect", "Main", "", "", 1, "04BF66EF-66E5-465D-A590-D8BA02E217B7");
            // update block order for pages with new blocks if the page,zone has multiple blocks

            // Attrib Value for Block:Idle Redirect, Attribute:Idle Seconds Page: Action Select, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("7A293980-9E28-4115-85EB-DA197734EED2", "1CAC7B16-041A-4F40-8AEE-A39DFA076C14", @"20");
            // Attrib Value for Block:Idle Redirect, Attribute:New Location Page: Action Select, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("7A293980-9E28-4115-85EB-DA197734EED2", "2254B67B-9CB1-47DE-A63D-D0B56051ECD4", @"/checkin/welcome");
            // Attrib Value for Block:Idle Redirect, Attribute:Idle Seconds Page: Check Out Person Select, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("258CC6B9-CA88-41E7-B578-2514FCF245B4", "1CAC7B16-041A-4F40-8AEE-A39DFA076C14", @"20");
            // Attrib Value for Block:Idle Redirect, Attribute:New Location Page: Check Out Person Select, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("258CC6B9-CA88-41E7-B578-2514FCF245B4", "2254B67B-9CB1-47DE-A63D-D0B56051ECD4", @"/checkin/welcome");
            // Attrib Value for Block:Idle Redirect, Attribute:Idle Seconds Page: Check Out Success, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("04BF66EF-66E5-465D-A590-D8BA02E217B7", "1CAC7B16-041A-4F40-8AEE-A39DFA076C14", @"20");
            // Attrib Value for Block:Idle Redirect, Attribute:New Location Page: Check Out Success, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("04BF66EF-66E5-465D-A590-D8BA02E217B7", "2254B67B-9CB1-47DE-A63D-D0B56051ECD4", @"/checkin/welcome");

            Sql(@"
update DataViewFilter
set selection = '[
	""SecondaryAudiences"",
    ""8"",
    ""b364cdee-f000-4965-ae67-0c80dda365dc""
]' 
where selection = '[
    ""SecondaryAudiences"",
	""8"",
	""4cdee-f000-4965-ae67-0c80dda365dc\""\""
]'

update DataViewFilter
set selection = '[
    ""SecondaryAudiences"",
	""8"",
	""57b2a23f-3b0c-43a8-9f45-332120dcd0ee""
]' 
where selection = '[
    ""SecondaryAudiences"",
	""8"",
	""2a23f-3b0c-43a8-9f45-332120dcd0ee\""\"",
]'");
        }
        /// <summary>
        /// Operations to be performed during the upgrade process.
        /// </summary>
        public override void Up()
        {
            RockMigrationHelper.UpdatePersonAttribute(Rock.SystemGuid.FieldType.TEXT, "0B187C81-2106-4875-82B6-FBF1277AE23B", "Personality Type", "PersonalityType", "", "The one or two letters from a DISC assessment that closest approximates ones Natural behaviors.", 10, string.Empty, "C7B529C6-B6C8-45B5-B892-5D9821CEDDCD");

            RockMigrationHelper.AddPage("EBAA5140-4B8F-44B8-B1E8-C73B654E4B22", "5FEAF34C-7FB6-4A11-8A1E-C452EC7849BD", "DISC Assessment", "", "C8CEF4B0-4A09-46D2-9B6B-CD2B6D3078B1", "fa fa-bar-chart");   // Site:External Website
            RockMigrationHelper.AddPageRoute("C8CEF4B0-4A09-46D2-9B6B-CD2B6D3078B1", "DISC/{rckipid}");

            RockMigrationHelper.AddPage("08DBD8A5-2C35-4146-B4A8-0F7652348B25", "D65F783D-87A9-4CC9-8110-E83466A0EADB", "DISC Result", "", "039F770B-5734-4735-ABF1-B39B77C84AD0", "fa fa-bar-chart");   // Site:Rock RMS
            RockMigrationHelper.UpdateBlockType("DISC Result", "View the results of a DISC assessment.", "~/Blocks/Crm/DiscResult.ascx", "CRM", "0549519D-4048-4B28-89CC-94493B29BBD4");

            // Add Block to Page: DISC Result, Site: Rock RMS
            RockMigrationHelper.AddBlock("039F770B-5734-4735-ABF1-B39B77C84AD0", "", "0549519D-4048-4B28-89CC-94493B29BBD4", "DISC Result", "Main", "", "", 0, "E376E821-2980-4165-8CF8-717C6F562B9A");

            // Add Block to Page: DISC Assessment, Site: External Website
            RockMigrationHelper.AddBlock("C8CEF4B0-4A09-46D2-9B6B-CD2B6D3078B1", "", "A161D12D-FEA7-422F-B00E-A689629680E4", "DISC Assessment", "Main", "", "", 0, "BBD72B66-A29F-41B3-B8A7-31A0D25F44E2");

            // Attrib for BlockType: Disc:Min Days To Retake
            RockMigrationHelper.AddBlockTypeAttribute("A161D12D-FEA7-422F-B00E-A689629680E4", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Min Days To Retake", "MinDaysToRetake", "", "The number of days that must pass before the test can be taken again.", 0, @"30", "3162C5CD-1244-4CB9-9099-BC484CE090D3");

            // Attrib for BlockType: Disc:Instructions
            RockMigrationHelper.AddBlockTypeAttribute("A161D12D-FEA7-422F-B00E-A689629680E4", "1D0D3794-C210-48A8-8C68-3FBEC08A6BA5", "Instructions", "Instructions", "", "The text (HTML) to display at the top of the instructions section.  <span class='tip tip-lava'></span> <span class='tip tip-html'></span>", 0, @"
            <h2>Welcome!</h2>
            <p>
                {{ Person.NickName }}, in this assessment you are given a series of questions, each containing four phrases.
                Select one phrase that MOST describes you and one phrase that LEAST describes you.
            </p>
            <p>
                This assessment is environmentally sensitive, which means that you may score differently
                in different situations. In other words, you may act differently at home than you
                do on the job. So, as you complete the assessment you should focus on one environment
                for which you are seeking to understand yourself. For instance, if you are trying
                to understand yourself in marriage, you should only think of your responses to situations
                in the context of your marriage. On the other hand, if you want to know your behavioral
                needs on the job, then only think of how you would respond in the job context.
            </p>
            <p>
                One final thought as you give your responses. On these kinds of assessments, it
                is often best and easiest if you respond quickly and do not deliberate too long
                on each question. Your response on one question will not unduly influence your scores,
                so simply answer as quickly as possible and enjoy the process. Don't get too hung
                up, if none of the phrases describe you or if there are some phrases that seem too
                similar, just go with your instinct.
            </p>
            <p>
                When you are ready, click the 'Start' button to proceed.
            </p>
", "5F2BA045-D481-4908-A137-DE28C71AAF67");

            // Attrib Value for Block:DISC Assessment, Attribute:Min Days To Retake Page: DISC Assessment, Site: External Website
            RockMigrationHelper.AddBlockAttributeValue("BBD72B66-A29F-41B3-B8A7-31A0D25F44E2", "3162C5CD-1244-4CB9-9099-BC484CE090D3", @"30");

            // Attrib Value for Block:DISC Assessment, Attribute:Instructions Page: DISC Assessment, Site: External Website
            RockMigrationHelper.AddBlockAttributeValue("BBD72B66-A29F-41B3-B8A7-31A0D25F44E2", "5F2BA045-D481-4908-A137-DE28C71AAF67", @"<h2>Welcome!</h2>
            <p>
                {{ Person.NickName }}, in this assessment you are given a series of questions, each containing four phrases.
                Select one phrase that MOST describes you and one phrase that LEAST describes you.
            </p>
            <p>
                This assessment is environmentally sensitive, which means that you may score differently
                in different situations. In other words, you may act differently at home than you
                do on the job. So, as you complete the assessment you should focus on one environment
                for which you are seeking to understand yourself. For instance, if you are trying
                to understand yourself in marriage, you should only think of your responses to situations
                in the context of your marriage. On the other hand, if you want to know your behavioral
                needs on the job, then only think of how you would respond in the job context.
            </p>
            <p>
                One final thought as you give your responses. On these kinds of assessments, it
                is often best and easiest if you respond quickly and do not deliberate too long
                on each question. Your response on one question will not unduly influence your scores,
                so simply answer as quickly as possible and enjoy the process. Don't get too hung
                up, if none of the phrases describe you or if there are some phrases that seem too
                similar, just go with your instinct.
            </p>
            <p>
                When you are ready, click the 'Start' button to proceed.
            </p>
");

            // DISC Workflow for person profile action list
            RockMigrationHelper.UpdateWorkflowType(false, true, "DISC Request", "Used to request a person take the DISC analysis test.", "BBAE05FD-8192-4616-A71E-903A927E0D90", "Request", "fa fa-bar-chart", 0, false, 0, "885CBA61-44EA-4B4A-B6E1-289041B6A195");                                                                                                                                   // DISC Request

            RockMigrationHelper.UpdateWorkflowTypeAttribute("885CBA61-44EA-4B4A-B6E1-289041B6A195", "C28C7BF3-A552-4D77-9408-DEDCF760CED0", "Custom Message", "CustomMessage", "A custom message you would like to include in the request.  Otherwise the default will be used.", 1, @"DISC is a popular four quadrant behavioral and personality assessments that we like to use to help us understand you and your needs better.

The results of the test will help us form a stronger relationship with you and can also be used for building healthier teams and groups.

Please take less than five minutes and take the assessment using the button below - it will go a long way toward helping us help you.  Thanks in advance!", "840E6A84-9F83-4482-92D1-6F635F062251");                                                                                                                                                                                                   // DISC Request:Custom Message

            RockMigrationHelper.UpdateWorkflowTypeAttribute("885CBA61-44EA-4B4A-B6E1-289041B6A195", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "OptOut", "OptOut", "Holds a 1 if the person has opted out of bulk or email requests.", 3, @"False", "82B3A401-463C-4AD5-8AD1-23D067E48458");                                                                                                              // DISC Request:OptOut

            RockMigrationHelper.UpdateWorkflowTypeAttribute("885CBA61-44EA-4B4A-B6E1-289041B6A195", "E4EAB7B2-0B76-429B-AFE4-AD86D7428C70", "Person", "Person", "The person that you are requesting the assessment for.  If initiated directly from the person profile record (using 'Actions' option), this value will automatically be populated.", 0, @"", "C0BC984C-84C3-494B-A861-49840E452F68"); // DISC Request:Person

            RockMigrationHelper.UpdateWorkflowTypeAttribute("885CBA61-44EA-4B4A-B6E1-289041B6A195", "E4EAB7B2-0B76-429B-AFE4-AD86D7428C70", "Sender", "Sender", "The person sending the request.", 2, @"", "D44036C8-2787-4942-A70E-5E85087787EB");                                                                                                                                                    // DISC Request:Sender

            RockMigrationHelper.UpdateWorkflowTypeAttribute("885CBA61-44EA-4B4A-B6E1-289041B6A195", "DD7ED4C0-A9E0-434F-ACFE-BD4F56B043DF", "Warning Message", "WarningMessage", "A warning message that may be displayed if the person has opted out from bulk and email requests.", 4, @"", "74E7BD11-BE21-4256-B02A-E97AD54C7511");                                                                 // DISC Request:Warning Message

            RockMigrationHelper.AddAttributeQualifier("840E6A84-9F83-4482-92D1-6F635F062251", "numberofrows", @"6", "DD982F91-6FD1-4D42-8DD4-135029B0B691");                                                                                                                                                                                                                                           // DISC Request:Custom Message:numberofrows

            RockMigrationHelper.AddAttributeQualifier("82B3A401-463C-4AD5-8AD1-23D067E48458", "falsetext", @"No", "A388A9DB-498A-464C-993F-788FA17A67BD");                                                                                                                                                                                                                                             // DISC Request:OptOut:falsetext

            RockMigrationHelper.AddAttributeQualifier("82B3A401-463C-4AD5-8AD1-23D067E48458", "truetext", @"Yes", "067873ED-0583-495E-A448-66BA0D0DCACF");                                                                                                                                                                                                                                             // DISC Request:OptOut:truetext

            RockMigrationHelper.UpdateWorkflowActivityType("885CBA61-44EA-4B4A-B6E1-289041B6A195", true, "Launch From Person Profile", "When this workflow is initiated from the Person Profile page, the \"Entity\" will have a value so the first action will run successfully, and the workflow will then be persisted.", true, 0, "4A8E2E61-FE0D-4AB3-BA48-9419A20E4541");                         // DISC Request:Launch From Person Profile

            RockMigrationHelper.UpdateWorkflowActionForm(@"{{ Workflow.WarningMessage }}", @"", "Send^fdc397cd-8b4a-436e-bea1-bce2e6717c03^^Your information has been submitted successfully.|", "", true, "", "4AFAB342-D584-4B79-B038-A99C0C469D74");                                                                                                                                                // DISC Request:Launch From Person Profile:Custom Message

            RockMigrationHelper.UpdateWorkflowActionFormAttribute("4AFAB342-D584-4B79-B038-A99C0C469D74", "C0BC984C-84C3-494B-A861-49840E452F68", 0, false, true, false, "82351FDD-D82F-49F9-B85A-3FF46E7F8D0E");                                                                                                                                                                                      // DISC Request:Launch From Person Profile:Custom Message:Person

            RockMigrationHelper.UpdateWorkflowActionFormAttribute("4AFAB342-D584-4B79-B038-A99C0C469D74", "840E6A84-9F83-4482-92D1-6F635F062251", 1, true, false, false, "94B20E87-9C79-4C37-926C-0426496AC722");                                                                                                                                                                                      // DISC Request:Launch From Person Profile:Custom Message:Custom Message

            RockMigrationHelper.UpdateWorkflowActionFormAttribute("4AFAB342-D584-4B79-B038-A99C0C469D74", "D44036C8-2787-4942-A70E-5E85087787EB", 2, false, true, false, "196541C8-D5EC-4189-A2A6-47E669565C56");                                                                                                                                                                                      // DISC Request:Launch From Person Profile:Custom Message:Sender

            RockMigrationHelper.UpdateWorkflowActionFormAttribute("4AFAB342-D584-4B79-B038-A99C0C469D74", "82B3A401-463C-4AD5-8AD1-23D067E48458", 3, false, true, false, "058D0466-8ABF-4FA8-9EEC-3A80CF5BD1DF");                                                                                                                                                                                      // DISC Request:Launch From Person Profile:Custom Message:OptOut

            RockMigrationHelper.UpdateWorkflowActionFormAttribute("4AFAB342-D584-4B79-B038-A99C0C469D74", "74E7BD11-BE21-4256-B02A-E97AD54C7511", 4, false, true, false, "B2E0A2A5-CE42-441C-A2E2-B6058A4577BF");                                                                                                                                                                                      // DISC Request:Launch From Person Profile:Custom Message:Warning Message

            RockMigrationHelper.UpdateWorkflowActionType("4A8E2E61-FE0D-4AB3-BA48-9419A20E4541", "Complete the Workflow", 7, "EEDA4318-F014-4A46-9C76-4C052EF81AA1", true, true, "", "", 1, "", "EA4FF8DD-0E66-4C98-84FC-845DEAB76A61");                                                                                                                                                               // DISC Request:Launch From Person Profile:Complete the Workflow

            RockMigrationHelper.UpdateWorkflowActionType("4A8E2E61-FE0D-4AB3-BA48-9419A20E4541", "Send Email Action", 6, "66197B01-D1F0-4924-A315-47AD54E030DE", true, false, "", "", 1, "", "666FC137-BC95-49BE-A976-0BFF2417F44C");                                                                                                                                                                  // DISC Request:Launch From Person Profile:Send Email Action

            RockMigrationHelper.UpdateWorkflowActionType("4A8E2E61-FE0D-4AB3-BA48-9419A20E4541", "Check for Opt Out", 2, "A41216D6-6FB0-4019-B222-2C29B4519CF4", true, false, "", "", 1, "", "A5967573-B263-4003-AED3-36862D4A0251");                                                                                                                                                                  // DISC Request:Launch From Person Profile:Check for Opt Out

            RockMigrationHelper.UpdateWorkflowActionType("4A8E2E61-FE0D-4AB3-BA48-9419A20E4541", "Persist Workflow", 3, "F1A39347-6FE0-43D4-89FB-544195088ECF", true, false, "", "", 1, "", "555A729C-5EC4-4C83-B35F-036234E5EFCC");                                                                                                                                                                   // DISC Request:Launch From Person Profile:Persist Workflow

            RockMigrationHelper.UpdateWorkflowActionType("4A8E2E61-FE0D-4AB3-BA48-9419A20E4541", "Set Sender", 1, "24B7D5E6-C30F-48F4-9D7E-AF45A342CF3A", true, false, "", "", 1, "", "28CBC348-0C56-4B2A-A1CE-5504A1CD6A1E");                                                                                                                                                                         // DISC Request:Launch From Person Profile:Set Sender

            RockMigrationHelper.UpdateWorkflowActionType("4A8E2E61-FE0D-4AB3-BA48-9419A20E4541", "Set Person", 0, "972F19B9-598B-474B-97A4-50E56E7B59D2", true, false, "", "", 1, "", "07A37FA1-FA95-4E86-B797-200D7573EC5F");                                                                                                                                                                         // DISC Request:Launch From Person Profile:Set Person

            RockMigrationHelper.UpdateWorkflowActionType("4A8E2E61-FE0D-4AB3-BA48-9419A20E4541", "Set Warning", 4, "C789E457-0783-44B3-9D8F-2EBAB5F11110", true, false, "", "82B3A401-463C-4AD5-8AD1-23D067E48458", 1, "True", "080944DB-B45F-41CA-BF5E-1F697B503C16");                                                                                                                                // DISC Request:Launch From Person Profile:Set Warning

            RockMigrationHelper.UpdateWorkflowActionType("4A8E2E61-FE0D-4AB3-BA48-9419A20E4541", "Custom Message", 5, "486DC4FA-FCBC-425F-90B0-E606DA8A9F68", true, false, "4AFAB342-D584-4B79-B038-A99C0C469D74", "", 1, "", "1A08A4EC-B2C6-43B5-926F-2F86CFA35102");                                                                                                                                 // DISC Request:Launch From Person Profile:Custom Message

            RockMigrationHelper.AddActionTypeAttributeValue("07A37FA1-FA95-4E86-B797-200D7573EC5F", "9392E3D7-A28B-4CD8-8B03-5E147B102EF1", @"False");                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Set Person:Active

            RockMigrationHelper.AddActionTypeAttributeValue("07A37FA1-FA95-4E86-B797-200D7573EC5F", "61E6E1BC-E657-4F00-B2E9-769AAA25B9F7", @"c0bc984c-84c3-494b-a861-49840e452f68");                                                                                                                                                                                                                  // DISC Request:Launch From Person Profile:Set Person:Attribute

            RockMigrationHelper.AddActionTypeAttributeValue("07A37FA1-FA95-4E86-B797-200D7573EC5F", "AD4EFAC4-E687-43DF-832F-0DC3856ABABB", @"");                                                                                                                                                                                                                                                      // DISC Request:Launch From Person Profile:Set Person:Order

            RockMigrationHelper.AddActionTypeAttributeValue("07A37FA1-FA95-4E86-B797-200D7573EC5F", "1246C53A-FD92-4E08-ABDE-9A6C37E70C7B", @"False");                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Set Person:Use Id instead of Guid

            RockMigrationHelper.AddActionTypeAttributeValue("28CBC348-0C56-4B2A-A1CE-5504A1CD6A1E", "DE9CB292-4785-4EA3-976D-3826F91E9E98", @"False");                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Set Sender:Active

            RockMigrationHelper.AddActionTypeAttributeValue("28CBC348-0C56-4B2A-A1CE-5504A1CD6A1E", "89E9BCED-91AB-47B0-AD52-D78B0B7CB9E8", @"");                                                                                                                                                                                                                                                      // DISC Request:Launch From Person Profile:Set Sender:Order

            RockMigrationHelper.AddActionTypeAttributeValue("28CBC348-0C56-4B2A-A1CE-5504A1CD6A1E", "BBED8A83-8BB2-4D35-BAFB-05F67DCAD112", @"d44036c8-2787-4942-a70e-5e85087787eb");                                                                                                                                                                                                                  // DISC Request:Launch From Person Profile:Set Sender:Person Attribute

            RockMigrationHelper.AddActionTypeAttributeValue("A5967573-B263-4003-AED3-36862D4A0251", "A18C3143-0586-4565-9F36-E603BC674B4E", @"False");                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Check for Opt Out:Active

            RockMigrationHelper.AddActionTypeAttributeValue("A5967573-B263-4003-AED3-36862D4A0251", "FA7C685D-8636-41EF-9998-90FFF3998F76", @"");                                                                                                                                                                                                                                                      // DISC Request:Launch From Person Profile:Check for Opt Out:Order

            RockMigrationHelper.AddActionTypeAttributeValue("A5967573-B263-4003-AED3-36862D4A0251", "F3B9908B-096F-460B-8320-122CF046D1F9", @"DECLARE @PersonAliasGuid uniqueidentifier = '{{ Workflow.Person_unformatted }}'

SELECT  CASE
    WHEN EXISTS ( SELECT 1
        FROM [Person] P
        INNER JOIN [PersonAlias] PA ON PA.[Guid] = @PersonAliasGuid AND P.[Id] = PA.[PersonId]
        WHERE P.[EmailPreference] <> 0 )
    THEN 'True'
    ELSE 'False'
    END");                                                                                                                                                                                                                                                                                                                                                                                             // DISC Request:Launch From Person Profile:Check for Opt Out:SQLQuery

            RockMigrationHelper.AddActionTypeAttributeValue("A5967573-B263-4003-AED3-36862D4A0251", "56997192-2545-4EA1-B5B2-313B04588984", @"82b3a401-463c-4ad5-8ad1-23d067e48458");                                                                                                                                                                                                                  // DISC Request:Launch From Person Profile:Check for Opt Out:Result Attribute

            RockMigrationHelper.AddActionTypeAttributeValue("555A729C-5EC4-4C83-B35F-036234E5EFCC", "50B01639-4938-40D2-A791-AA0EB4F86847", @"False");                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Persist Workflow:Active

            RockMigrationHelper.AddActionTypeAttributeValue("555A729C-5EC4-4C83-B35F-036234E5EFCC", "86F795B0-0CB6-4DA4-9CE4-B11D0922F361", @"");                                                                                                                                                                                                                                                      // DISC Request:Launch From Person Profile:Persist Workflow:Order

            RockMigrationHelper.AddActionTypeAttributeValue("080944DB-B45F-41CA-BF5E-1F697B503C16", "D7EAA859-F500-4521-9523-488B12EAA7D2", @"False");                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Set Warning:Active

            RockMigrationHelper.AddActionTypeAttributeValue("080944DB-B45F-41CA-BF5E-1F697B503C16", "44A0B977-4730-4519-8FF6-B0A01A95B212", @"74e7bd11-be21-4256-b02a-e97ad54c7511");                                                                                                                                                                                                                  // DISC Request:Launch From Person Profile:Set Warning:Attribute

            RockMigrationHelper.AddActionTypeAttributeValue("080944DB-B45F-41CA-BF5E-1F697B503C16", "57093B41-50ED-48E5-B72B-8829E62704C8", @"");                                                                                                                                                                                                                                                      // DISC Request:Launch From Person Profile:Set Warning:Order

            RockMigrationHelper.AddActionTypeAttributeValue("080944DB-B45F-41CA-BF5E-1F697B503C16", "E5272B11-A2B8-49DC-860D-8D574E2BC15C", @"<div class=""alert alert-warning"">{{ Workflow.Person }} has previously opted out from email and bulk requests.  Make sure you want to override this preference.</div>");                                                                                // DISC Request:Launch From Person Profile:Set Warning:Text Value|Attribute Value

            RockMigrationHelper.AddActionTypeAttributeValue("1A08A4EC-B2C6-43B5-926F-2F86CFA35102", "234910F2-A0DB-4D7D-BAF7-83C880EF30AE", @"False");                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Custom Message:Active

            RockMigrationHelper.AddActionTypeAttributeValue("1A08A4EC-B2C6-43B5-926F-2F86CFA35102", "C178113D-7C86-4229-8424-C6D0CF4A7E23", @"");                                                                                                                                                                                                                                                      // DISC Request:Launch From Person Profile:Custom Message:Order

            RockMigrationHelper.AddActionTypeAttributeValue("666FC137-BC95-49BE-A976-0BFF2417F44C", "36197160-7D3D-490D-AB42-7E29105AFE91", @"False");                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Send Email Action:Active

            RockMigrationHelper.AddActionTypeAttributeValue("666FC137-BC95-49BE-A976-0BFF2417F44C", "9F5F7CEC-F369-4FDF-802A-99074CE7A7FC", @"d44036c8-2787-4942-a70e-5e85087787eb");                                                                                                                                                                                                                  // DISC Request:Launch From Person Profile:Send Email Action:From Email Address|Attribute Value

            RockMigrationHelper.AddActionTypeAttributeValue("666FC137-BC95-49BE-A976-0BFF2417F44C", "D1269254-C15A-40BD-B784-ADCC231D3950", @"");                                                                                                                                                                                                                                                      // DISC Request:Launch From Person Profile:Send Email Action:Order

            RockMigrationHelper.AddActionTypeAttributeValue("666FC137-BC95-49BE-A976-0BFF2417F44C", "0C4C13B8-7076-4872-925A-F950886B5E16", @"c0bc984c-84c3-494b-a861-49840e452f68");                                                                                                                                                                                                                  // DISC Request:Launch From Person Profile:Send Email Action:Send To Email Address|Attribute Value

            RockMigrationHelper.AddActionTypeAttributeValue("666FC137-BC95-49BE-A976-0BFF2417F44C", "5D9B13B6-CD96-4C7C-86FA-4512B9D28386", @"DISC Assessment Request from {{ Workflow.Sender }}");                                                                                                                                                                                                    // DISC Request:Launch From Person Profile:Send Email Action:Subject

            RockMigrationHelper.AddActionTypeAttributeValue("666FC137-BC95-49BE-A976-0BFF2417F44C", "4D245B9E-6B03-46E7-8482-A51FBA190E4D", @"{{ GlobalAttribute.EmailStyles }}
{{ GlobalAttribute.EmailHeader }}
<p>{{ Person.NickName }},</p>

<p>{{ Workflow.CustomMessage | NewlineToBr }}</p>

<p><a href=""{{ GlobalAttribute.PublicApplicationRoot }}DISC/{{ Person.UrlEncodedKey }}"">Take DISC Analysis Test </a></p>

<p><a href=""{{ GlobalAttribute.PublicApplicationRoot }}Unsubscribe/{{ Person.UrlEncodedKey }}"">I&#39;m no longer involved with {{ GlobalAttribute.OrganizationName }}. Please remove me from all future communications.</a></p>

<p>- {{ Workflow.Sender }}</p>

{{ GlobalAttribute.EmailFooter }}");                                                                                                                                                                                                                                                                                                                                                                   // DISC Request:Launch From Person Profile:Send Email Action:Body

            RockMigrationHelper.AddActionTypeAttributeValue("EA4FF8DD-0E66-4C98-84FC-845DEAB76A61", "0CA0DDEF-48EF-4ABC-9822-A05E225DE26C", @"False");                                                                                                                                                                                                                                                 // DISC Request:Launch From Person Profile:Complete the Workflow:Active

            RockMigrationHelper.AddActionTypeAttributeValue("EA4FF8DD-0E66-4C98-84FC-845DEAB76A61", "25CAD4BE-5A00-409D-9BAB-E32518D89956", @"");                                                                                                                                                                                                                                                      // DISC Request:Launch From Person Profile:Complete the Workflow:Order

            // Update the Bio block's WorkflowAction attribute value to include this new DISC WF
            RockMigrationHelper.AddBlockAttributeValue("B5C1FDB6-0224-43E4-8E26-6B2EAF86253A", "7197A0FB-B330-43C4-8E62-F3C14F649813", "885CBA61-44EA-4B4A-B6E1-289041B6A195", appendToExisting: true);

            // Badge items
            // Ensure the badge is a registered EntityType
            RockMigrationHelper.UpdateEntityType("Rock.PersonProfile.Badge.DISC", "DISC", "Rock.PersonProfile.Badge.DISC, Rock, Version=1.1.2.0, Culture=neutral, PublicKeyToken=null", false, true, "6D29DB44-EDC5-42AA-B42C-482BC0920AD0");

            // Ensure the PersonBadge for Rock.PersonProfile.Badge.DISC is added
            RockMigrationHelper.UpdatePersonBadge("DISC Personality Assessment Result", "Shows a small chart of a person's DISC personality assessment results and links to the details of their assessment.",
                                                  "Rock.PersonProfile.Badge.DISC", 0, DISC_BADGE);

            // Add/Update the Active Attribute
            RockMigrationHelper.AddPersonBadgeAttribute(DISC_BADGE, Rock.SystemGuid.FieldType.BOOLEAN,
                                                        "Active", "Active", "Should Service be used?", 0, string.Empty, "F1F4AA7A-E657-4BA4-B3E2-6EEEB5A839CE");

            // Add/Update the Order Attribute
            RockMigrationHelper.AddPersonBadgeAttribute(DISC_BADGE, Rock.SystemGuid.FieldType.INTEGER,
                                                        "Order", "Order", "The order that this service should be used (priority)", 1, string.Empty, "EC96AA8D-31D8-4281-AE5B-6DCB4FEC6234");

            // Add/Update the DISC Result Detail Attribute
            RockMigrationHelper.AddPersonBadgeAttribute(DISC_BADGE, Rock.SystemGuid.FieldType.PAGE_REFERENCE,
                                                        "DISC Result Detail", "DISCResultDetail", "Page to show the details of the DISC assessment results. If blank no link is created.", 2, string.Empty, "0EB9498A-5F92-41E2-94CD-F5F86B4E7D6F");

            // add the badge to PersonBadge DISC Result Detail page guid
            RockMigrationHelper.AddPersonBadgeAttributeValue(DISC_BADGE, "0EB9498A-5F92-41E2-94CD-F5F86B4E7D6F", "039F770B-5734-4735-ABF1-B39B77C84AD0");

            // add the new badge to the person profile's Badge 3 block
            RockMigrationHelper.AddBlockAttributeValue("F3E6CC14-C540-4FFC-A5A9-48AD9CC0A61B", "F5AB231E-3836-4D52-BD03-BF79773C237A", DISC_BADGE, appendToExisting: true);
        }
 public override void Up()
 {
     RockMigrationHelper.UpdateEntityType("Rock.Model.Workflow", "3540E9A7-FE30-43A9-8B0A-A372B63DFC93", true, true);
     RockMigrationHelper.UpdateEntityType("Rock.Model.WorkflowActivity", "2CB52ED0-CB06-4D62-9E2C-73B60AFA4C9F", true, true);
     RockMigrationHelper.UpdateEntityType("Rock.Model.WorkflowActionType", "23E3273A-B137-48A3-9AFF-C8DC832DDCA6", true, true);
     RockMigrationHelper.UpdateEntityType("com.reallifeministries.RockExtensions.Workflow.Action.SetAttributeFromPersonLava", "85D1DBFE-9F3F-486A-BF2C-60146A8D97F8", false, true);
     RockMigrationHelper.UpdateEntityType("com.reallifeministries.RockExtensions.Workflow.Action.ValidateAttendanceCode", "550458E4-BBBF-4E47-955E-1DBE79352E7D", false, true);
     RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.ActivateActivity", "38907A90-1634-4A93-8017-619326A4A582", false, true);
     RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.SetAttributeToInitiator", "4EEAC6FA-B838-410B-A8DD-21A364029F5D", false, true);
     RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.SetAttributeValue", "C789E457-0783-44B3-9D8F-2EBAB5F11110", false, true);
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("38907A90-1634-4A93-8017-619326A4A582", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "E8ABD802-372C-47BE-82B1-96F50DB5169E");                                                                                                                                                                                        // Rock.Workflow.Action.ActivateActivity:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("38907A90-1634-4A93-8017-619326A4A582", "739FD425-5B8C-4605-B775-7E4D9D4C11DB", "Activity", "Activity", "The activity type to activate", 0, @"", "02D5A7A5-8781-46B4-B9FC-AF816829D240");                                                                                                                                                                                   // Rock.Workflow.Action.ActivateActivity:Activity
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("38907A90-1634-4A93-8017-619326A4A582", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "3809A78C-B773-440C-8E3F-A8E81D0DAE08");                                                                                                                                                                 // Rock.Workflow.Action.ActivateActivity:Order
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("4EEAC6FA-B838-410B-A8DD-21A364029F5D", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "7A7B2369-901E-4838-852F-2AB42ABC9EBA");                                                                                                                                                                                        // Rock.Workflow.Action.SetAttributeToInitiator:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("4EEAC6FA-B838-410B-A8DD-21A364029F5D", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Person Attribute", "PersonAttribute", "The attribute to set to the initiator.", 0, @"", "047336EA-EA6F-46D7-9F32-FB67D2C9DA32");                                                                                                                                                           // Rock.Workflow.Action.SetAttributeToInitiator:Person Attribute
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("4EEAC6FA-B838-410B-A8DD-21A364029F5D", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "8960D3B2-25B4-41BD-84D8-2C88779271F4");                                                                                                                                                                 // Rock.Workflow.Action.SetAttributeToInitiator:Order
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("550458E4-BBBF-4E47-955E-1DBE79352E7D", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "C9FC261D-84BF-41F7-9636-734EAAF0FD86");                                                                                                                                                                                        // com.reallifeministries.RockExtensions.Workflow.Action.ValidateAttendanceCode:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("550458E4-BBBF-4E47-955E-1DBE79352E7D", "9C204CD0-1233-41C5-818A-C5DA439445AA", "UserInputCode", "UserInputCode", "The code submitted by the user", 0, @"", "0FC7338D-F75D-401F-8F03-ADDA92315A3B");                                                                                                                                                                        // com.reallifeministries.RockExtensions.Workflow.Action.ValidateAttendanceCode:UserInputCode
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("550458E4-BBBF-4E47-955E-1DBE79352E7D", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "18BA2FE7-7620-42CE-8FD8-727A26683B81");                                                                                                                                                                 // com.reallifeministries.RockExtensions.Workflow.Action.ValidateAttendanceCode:Order
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("85D1DBFE-9F3F-486A-BF2C-60146A8D97F8", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "8DE0F372-4B1C-4612-B318-E598E4CC17F8");                                                                                                                                                                                        // com.reallifeministries.RockExtensions.Workflow.Action.SetAttributeFromPersonLava:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("85D1DBFE-9F3F-486A-BF2C-60146A8D97F8", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Attribute", "Attribute", "The workflow attribute you will be setting", 0, @"", "40FF47A2-9682-4545-BDF3-171B5F6B8A5C");                                                                                                                                                                    // com.reallifeministries.RockExtensions.Workflow.Action.SetAttributeFromPersonLava:Attribute
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("85D1DBFE-9F3F-486A-BF2C-60146A8D97F8", "33E6DF69-BDFA-407A-9744-C175B60643AE", "PersonAttribute", "PersonAttribute", "The workflow attribute containing the person.", 0, @"", "CF19BB9A-EA5B-43E5-89A1-FA416F430761");                                                                                                                                                     // com.reallifeministries.RockExtensions.Workflow.Action.SetAttributeFromPersonLava:PersonAttribute
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("85D1DBFE-9F3F-486A-BF2C-60146A8D97F8", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Lava", "Lava", "Lava to use when setting the attribute.  Normal Workflow merge fields will be available, as well as: {{Person}} which will be the Person model corresponding to the selected Person Attribute", 0, @"", "52930E88-A86E-47AE-BB1D-9937692BBF74");                           // com.reallifeministries.RockExtensions.Workflow.Action.SetAttributeFromPersonLava:Lava
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("85D1DBFE-9F3F-486A-BF2C-60146A8D97F8", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "E7527DBD-32B1-47CE-8D22-142EDE32BD7D");                                                                                                                                                                 // com.reallifeministries.RockExtensions.Workflow.Action.SetAttributeFromPersonLava:Order
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C789E457-0783-44B3-9D8F-2EBAB5F11110", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "D7EAA859-F500-4521-9523-488B12EAA7D2");                                                                                                                                                                                        // Rock.Workflow.Action.SetAttributeValue:Active
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C789E457-0783-44B3-9D8F-2EBAB5F11110", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Attribute", "Attribute", "The attribute to set the value of.", 0, @"", "44A0B977-4730-4519-8FF6-B0A01A95B212");                                                                                                                                                                            // Rock.Workflow.Action.SetAttributeValue:Attribute
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C789E457-0783-44B3-9D8F-2EBAB5F11110", "3B1D93D7-9414-48F9-80E5-6A3FC8F94C20", "Text Value|Attribute Value", "Value", "The text or attribute to set the value from. <span class='tip tip-lava'></span>", 1, @"", "E5272B11-A2B8-49DC-860D-8D574E2BC15C");                                                                                                                  // Rock.Workflow.Action.SetAttributeValue:Text Value|Attribute Value
     RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C789E457-0783-44B3-9D8F-2EBAB5F11110", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "57093B41-50ED-48E5-B72B-8829E62704C8");                                                                                                                                                                 // Rock.Workflow.Action.SetAttributeValue:Order
     RockMigrationHelper.UpdateWorkflowType(false, true, "Text Review Contact Info", "Text option '4'", "BF7F6EDD-1AA6-442C-BBE2-226591F78D4C", "Work", "fa fa-list-ol", 0, true, 0, "FEB34437-9600-4330-855F-85404EC10018");                                                                                                                                                                                                            // Text Review Contact Info
     RockMigrationHelper.UpdateWorkflowTypeAttribute("FEB34437-9600-4330-855F-85404EC10018", "E4EAB7B2-0B76-429B-AFE4-AD86D7428C70", "FromPerson", "FromPerson", "", 0, @"", "4A9CBB79-860F-4F3C-A89A-BA9CD9EC219E");                                                                                                                                                                                                                    // Text Review Contact Info:FromPerson
     RockMigrationHelper.UpdateWorkflowTypeAttribute("FEB34437-9600-4330-855F-85404EC10018", "9C204CD0-1233-41C5-818A-C5DA439445AA", "FromPersonAttendanceCode", "FromPersonAttendanceCode", "", 1, @"", "B4B42D68-D3B4-495F-B3E0-28D919F2D5E7");                                                                                                                                                                                        // Text Review Contact Info:FromPersonAttendanceCode
     RockMigrationHelper.UpdateWorkflowTypeAttribute("FEB34437-9600-4330-855F-85404EC10018", "9C204CD0-1233-41C5-818A-C5DA439445AA", "FromPhone", "FromPhone", "", 2, @"", "9E987CFD-75B4-410A-AD17-91D8171DC02D");                                                                                                                                                                                                                      // Text Review Contact Info:FromPhone
     RockMigrationHelper.UpdateWorkflowTypeAttribute("FEB34437-9600-4330-855F-85404EC10018", "9C204CD0-1233-41C5-818A-C5DA439445AA", "AttendanceKey", "AttendanceKey", "", 3, @"", "631360D6-4BF3-4C87-8B47-EFA06A2FF04F");                                                                                                                                                                                                              // Text Review Contact Info:AttendanceKey
     RockMigrationHelper.UpdateWorkflowTypeAttribute("FEB34437-9600-4330-855F-85404EC10018", "9C204CD0-1233-41C5-818A-C5DA439445AA", "AttendanceCode", "AttendanceCode", "", 4, @"", "8C2B603A-9944-4A9A-91C6-42305AE3E516");                                                                                                                                                                                                            // Text Review Contact Info:AttendanceCode
     RockMigrationHelper.UpdateWorkflowTypeAttribute("FEB34437-9600-4330-855F-85404EC10018", "9C204CD0-1233-41C5-818A-C5DA439445AA", "FromPersonFirstName", "FromPersonFirstName", "", 5, @"", "B75EFF3A-67D0-482D-8159-B79EF2DA2E72");                                                                                                                                                                                                  // Text Review Contact Info:FromPersonFirstName
     RockMigrationHelper.UpdateWorkflowTypeAttribute("FEB34437-9600-4330-855F-85404EC10018", "9C204CD0-1233-41C5-818A-C5DA439445AA", "FromPersonLastName", "FromPersonLastName", "", 6, @"", "239F006D-C6A0-4F68-B2D3-2B38DBCD0F2C");                                                                                                                                                                                                    // Text Review Contact Info:FromPersonLastName
     RockMigrationHelper.UpdateWorkflowTypeAttribute("FEB34437-9600-4330-855F-85404EC10018", "9C204CD0-1233-41C5-818A-C5DA439445AA", "FromPersonPhone", "FromPersonPhone", "", 7, @"", "714143DE-AC04-49AB-9C11-B86420AE3E43");                                                                                                                                                                                                          // Text Review Contact Info:FromPersonPhone
     RockMigrationHelper.UpdateWorkflowTypeAttribute("FEB34437-9600-4330-855F-85404EC10018", "9C204CD0-1233-41C5-818A-C5DA439445AA", "SMSResponse", "SMSResponse", "", 8, @"", "CA158792-F553-4F0F-81CA-D136068C6829");                                                                                                                                                                                                                  // Text Review Contact Info:SMSResponse
     RockMigrationHelper.UpdateWorkflowTypeAttribute("FEB34437-9600-4330-855F-85404EC10018", "9C204CD0-1233-41C5-818A-C5DA439445AA", "FromPersonMobilePhone", "FromPersonMobilePhone", "", 9, @"", "50669FD5-A3B0-49BB-9D92-37650293D815");                                                                                                                                                                                              // Text Review Contact Info:FromPersonMobilePhone
     RockMigrationHelper.AddAttributeQualifier("B4B42D68-D3B4-495F-B3E0-28D919F2D5E7", "ispassword", @"False", "C1124A92-3D77-4024-A74C-2E8747B3523B");                                                                                                                                                                                                                                                                                  // Text Review Contact Info:FromPersonAttendanceCode:ispassword
     RockMigrationHelper.AddAttributeQualifier("9E987CFD-75B4-410A-AD17-91D8171DC02D", "ispassword", @"False", "472AF974-37C1-4060-866E-D75FBF253461");                                                                                                                                                                                                                                                                                  // Text Review Contact Info:FromPhone:ispassword
     RockMigrationHelper.AddAttributeQualifier("631360D6-4BF3-4C87-8B47-EFA06A2FF04F", "ispassword", @"False", "49574949-9941-4AF8-9D0D-9D46649B8C68");                                                                                                                                                                                                                                                                                  // Text Review Contact Info:AttendanceKey:ispassword
     RockMigrationHelper.AddAttributeQualifier("8C2B603A-9944-4A9A-91C6-42305AE3E516", "ispassword", @"False", "1646A51E-7B22-4A1C-8177-01AD6E5CD606");                                                                                                                                                                                                                                                                                  // Text Review Contact Info:AttendanceCode:ispassword
     RockMigrationHelper.AddAttributeQualifier("B75EFF3A-67D0-482D-8159-B79EF2DA2E72", "ispassword", @"False", "1A50C82E-7D3F-46E1-ADD7-6A3204B013B9");                                                                                                                                                                                                                                                                                  // Text Review Contact Info:FromPersonFirstName:ispassword
     RockMigrationHelper.AddAttributeQualifier("239F006D-C6A0-4F68-B2D3-2B38DBCD0F2C", "ispassword", @"False", "AA4812A1-19EA-413D-A7DC-B2494E4C6B4A");                                                                                                                                                                                                                                                                                  // Text Review Contact Info:FromPersonLastName:ispassword
     RockMigrationHelper.AddAttributeQualifier("714143DE-AC04-49AB-9C11-B86420AE3E43", "ispassword", @"False", "70EB834F-A61F-4650-9C56-34E942312201");                                                                                                                                                                                                                                                                                  // Text Review Contact Info:FromPersonPhone:ispassword
     RockMigrationHelper.AddAttributeQualifier("CA158792-F553-4F0F-81CA-D136068C6829", "ispassword", @"False", "7406F017-3CA1-44D0-9282-0FE1341845B2");                                                                                                                                                                                                                                                                                  // Text Review Contact Info:SMSResponse:ispassword
     RockMigrationHelper.AddAttributeQualifier("50669FD5-A3B0-49BB-9D92-37650293D815", "ispassword", @"False", "9B76B9C6-FDB9-4FB4-ABE0-60DDC55D2D48");                                                                                                                                                                                                                                                                                  // Text Review Contact Info:FromPersonMobilePhone:ispassword
     RockMigrationHelper.UpdateWorkflowActivityType("FEB34437-9600-4330-855F-85404EC10018", true, "Validate Attendance Code", "validates a correct attendance code", true, 0, "EBCEF596-0836-4675-B2C1-5385765F08BB");                                                                                                                                                                                                                   // Text Review Contact Info:Validate Attendance Code
     RockMigrationHelper.UpdateWorkflowActivityType("FEB34437-9600-4330-855F-85404EC10018", true, "Send Contact Info", "", false, 1, "5CAA44D8-1AAE-493E-B27A-AED733184A75");                                                                                                                                                                                                                                                            // Text Review Contact Info:Send Contact Info
     RockMigrationHelper.UpdateWorkflowActionType("EBCEF596-0836-4675-B2C1-5385765F08BB", "Activate Send Contact Info", 3, "38907A90-1634-4A93-8017-619326A4A582", true, false, "", "B4B42D68-D3B4-495F-B3E0-28D919F2D5E7", 64, "", "49DD5922-29EB-420E-9026-4B386CC778BC");                                                                                                                                                             // Text Review Contact Info:Validate Attendance Code:Activate Send Contact Info
     RockMigrationHelper.UpdateWorkflowActionType("5CAA44D8-1AAE-493E-B27A-AED733184A75", "Send SMS Contact Info", 4, "C789E457-0783-44B3-9D8F-2EBAB5F11110", true, false, "", "", 1, "", "A125C5FC-583C-4EA1-812A-13C174515971");                                                                                                                                                                                                       // Text Review Contact Info:Send Contact Info:Send SMS Contact Info
     RockMigrationHelper.UpdateWorkflowActionType("EBCEF596-0836-4675-B2C1-5385765F08BB", "initiate person", 0, "4EEAC6FA-B838-410B-A8DD-21A364029F5D", true, false, "", "", 1, "", "6E41B690-EE5A-41D8-957C-A05AD4C84AEF");                                                                                                                                                                                                             // Text Review Contact Info:Validate Attendance Code:initiate person
     RockMigrationHelper.UpdateWorkflowActionType("5CAA44D8-1AAE-493E-B27A-AED733184A75", "Get Mobile Number", 2, "85D1DBFE-9F3F-486A-BF2C-60146A8D97F8", true, false, "", "", 1, "", "C489256B-35A2-400C-B94C-9EA0660D28D5");                                                                                                                                                                                                           // Text Review Contact Info:Send Contact Info:Get Mobile Number
     RockMigrationHelper.UpdateWorkflowActionType("5CAA44D8-1AAE-493E-B27A-AED733184A75", "Get FirstName", 0, "85D1DBFE-9F3F-486A-BF2C-60146A8D97F8", true, false, "", "", 1, "", "69D31EDE-4D41-4843-9F7E-0BF622254A89");                                                                                                                                                                                                               // Text Review Contact Info:Send Contact Info:Get FirstName
     RockMigrationHelper.UpdateWorkflowActionType("5CAA44D8-1AAE-493E-B27A-AED733184A75", "Get Last Name", 1, "85D1DBFE-9F3F-486A-BF2C-60146A8D97F8", true, false, "", "", 1, "", "70716106-16F0-4A61-A77A-0C449DBD0556");                                                                                                                                                                                                               // Text Review Contact Info:Send Contact Info:Get Last Name
     RockMigrationHelper.UpdateWorkflowActionType("5CAA44D8-1AAE-493E-B27A-AED733184A75", "Get Phone Number", 3, "85D1DBFE-9F3F-486A-BF2C-60146A8D97F8", true, false, "", "", 1, "", "2F5614AE-59C5-4802-BCAC-692D1C44DBA8");                                                                                                                                                                                                            // Text Review Contact Info:Send Contact Info:Get Phone Number
     RockMigrationHelper.UpdateWorkflowActionType("EBCEF596-0836-4675-B2C1-5385765F08BB", "get Attendance Code from Person", 1, "85D1DBFE-9F3F-486A-BF2C-60146A8D97F8", true, false, "", "", 1, "", "93A4E4A4-89DD-4079-985A-99ADC8061D53");                                                                                                                                                                                             // Text Review Contact Info:Validate Attendance Code:get Attendance Code from Person
     RockMigrationHelper.UpdateWorkflowActionType("EBCEF596-0836-4675-B2C1-5385765F08BB", "Validate code", 2, "550458E4-BBBF-4E47-955E-1DBE79352E7D", true, false, "", "", 1, "", "8A6962A8-E5B1-4C9E-9AB1-0AE504D2B566");                                                                                                                                                                                                               // Text Review Contact Info:Validate Attendance Code:Validate code
     RockMigrationHelper.AddActionTypeAttributeValue("6E41B690-EE5A-41D8-957C-A05AD4C84AEF", "7A7B2369-901E-4838-852F-2AB42ABC9EBA", @"False");                                                                                                                                                                                                                                                                                          // Text Review Contact Info:Validate Attendance Code:initiate person:Active
     RockMigrationHelper.AddActionTypeAttributeValue("6E41B690-EE5A-41D8-957C-A05AD4C84AEF", "047336EA-EA6F-46D7-9F32-FB67D2C9DA32", @"4a9cbb79-860f-4f3c-a89a-ba9cd9ec219e");                                                                                                                                                                                                                                                           // Text Review Contact Info:Validate Attendance Code:initiate person:Person Attribute
     RockMigrationHelper.AddActionTypeAttributeValue("6E41B690-EE5A-41D8-957C-A05AD4C84AEF", "8960D3B2-25B4-41BD-84D8-2C88779271F4", @"");                                                                                                                                                                                                                                                                                               // Text Review Contact Info:Validate Attendance Code:initiate person:Order
     RockMigrationHelper.AddActionTypeAttributeValue("93A4E4A4-89DD-4079-985A-99ADC8061D53", "CF19BB9A-EA5B-43E5-89A1-FA416F430761", @"4a9cbb79-860f-4f3c-a89a-ba9cd9ec219e");                                                                                                                                                                                                                                                           // Text Review Contact Info:Validate Attendance Code:get Attendance Code from Person:PersonAttribute
     RockMigrationHelper.AddActionTypeAttributeValue("93A4E4A4-89DD-4079-985A-99ADC8061D53", "40FF47A2-9682-4545-BDF3-171B5F6B8A5C", @"b4b42d68-d3b4-495f-b3e0-28d919f2d5e7");                                                                                                                                                                                                                                                           // Text Review Contact Info:Validate Attendance Code:get Attendance Code from Person:Attribute
     RockMigrationHelper.AddActionTypeAttributeValue("93A4E4A4-89DD-4079-985A-99ADC8061D53", "52930E88-A86E-47AE-BB1D-9937692BBF74", @"{{ Person.LastAttendanceCode }}");                                                                                                                                                                                                                                                                // Text Review Contact Info:Validate Attendance Code:get Attendance Code from Person:Lava
     RockMigrationHelper.AddActionTypeAttributeValue("93A4E4A4-89DD-4079-985A-99ADC8061D53", "E7527DBD-32B1-47CE-8D22-142EDE32BD7D", @"");                                                                                                                                                                                                                                                                                               // Text Review Contact Info:Validate Attendance Code:get Attendance Code from Person:Order
     RockMigrationHelper.AddActionTypeAttributeValue("93A4E4A4-89DD-4079-985A-99ADC8061D53", "8DE0F372-4B1C-4612-B318-E598E4CC17F8", @"False");                                                                                                                                                                                                                                                                                          // Text Review Contact Info:Validate Attendance Code:get Attendance Code from Person:Active
     RockMigrationHelper.AddActionTypeAttributeValue("8A6962A8-E5B1-4C9E-9AB1-0AE504D2B566", "C9FC261D-84BF-41F7-9636-734EAAF0FD86", @"False");                                                                                                                                                                                                                                                                                          // Text Review Contact Info:Validate Attendance Code:Validate code:Active
     RockMigrationHelper.AddActionTypeAttributeValue("8A6962A8-E5B1-4C9E-9AB1-0AE504D2B566", "0FC7338D-F75D-401F-8F03-ADDA92315A3B", @"{{Workflow.FromPersonAttendanceCode}}");                                                                                                                                                                                                                                                          // Text Review Contact Info:Validate Attendance Code:Validate code:UserInputCode
     RockMigrationHelper.AddActionTypeAttributeValue("8A6962A8-E5B1-4C9E-9AB1-0AE504D2B566", "18BA2FE7-7620-42CE-8FD8-727A26683B81", @"");                                                                                                                                                                                                                                                                                               // Text Review Contact Info:Validate Attendance Code:Validate code:Order
     RockMigrationHelper.AddActionTypeAttributeValue("49DD5922-29EB-420E-9026-4B386CC778BC", "E8ABD802-372C-47BE-82B1-96F50DB5169E", @"False");                                                                                                                                                                                                                                                                                          // Text Review Contact Info:Validate Attendance Code:Activate Send Contact Info:Active
     RockMigrationHelper.AddActionTypeAttributeValue("49DD5922-29EB-420E-9026-4B386CC778BC", "3809A78C-B773-440C-8E3F-A8E81D0DAE08", @"");                                                                                                                                                                                                                                                                                               // Text Review Contact Info:Validate Attendance Code:Activate Send Contact Info:Order
     RockMigrationHelper.AddActionTypeAttributeValue("49DD5922-29EB-420E-9026-4B386CC778BC", "02D5A7A5-8781-46B4-B9FC-AF816829D240", @"5CAA44D8-1AAE-493E-B27A-AED733184A75");                                                                                                                                                                                                                                                           // Text Review Contact Info:Validate Attendance Code:Activate Send Contact Info:Activity
     RockMigrationHelper.AddActionTypeAttributeValue("69D31EDE-4D41-4843-9F7E-0BF622254A89", "CF19BB9A-EA5B-43E5-89A1-FA416F430761", @"4a9cbb79-860f-4f3c-a89a-ba9cd9ec219e");                                                                                                                                                                                                                                                           // Text Review Contact Info:Send Contact Info:Get FirstName:PersonAttribute
     RockMigrationHelper.AddActionTypeAttributeValue("69D31EDE-4D41-4843-9F7E-0BF622254A89", "40FF47A2-9682-4545-BDF3-171B5F6B8A5C", @"b75eff3a-67d0-482d-8159-b79ef2da2e72");                                                                                                                                                                                                                                                           // Text Review Contact Info:Send Contact Info:Get FirstName:Attribute
     RockMigrationHelper.AddActionTypeAttributeValue("69D31EDE-4D41-4843-9F7E-0BF622254A89", "52930E88-A86E-47AE-BB1D-9937692BBF74", @"{{ Person.FirstName }}");                                                                                                                                                                                                                                                                         // Text Review Contact Info:Send Contact Info:Get FirstName:Lava
     RockMigrationHelper.AddActionTypeAttributeValue("69D31EDE-4D41-4843-9F7E-0BF622254A89", "E7527DBD-32B1-47CE-8D22-142EDE32BD7D", @"");                                                                                                                                                                                                                                                                                               // Text Review Contact Info:Send Contact Info:Get FirstName:Order
     RockMigrationHelper.AddActionTypeAttributeValue("69D31EDE-4D41-4843-9F7E-0BF622254A89", "8DE0F372-4B1C-4612-B318-E598E4CC17F8", @"False");                                                                                                                                                                                                                                                                                          // Text Review Contact Info:Send Contact Info:Get FirstName:Active
     RockMigrationHelper.AddActionTypeAttributeValue("70716106-16F0-4A61-A77A-0C449DBD0556", "CF19BB9A-EA5B-43E5-89A1-FA416F430761", @"4a9cbb79-860f-4f3c-a89a-ba9cd9ec219e");                                                                                                                                                                                                                                                           // Text Review Contact Info:Send Contact Info:Get Last Name:PersonAttribute
     RockMigrationHelper.AddActionTypeAttributeValue("70716106-16F0-4A61-A77A-0C449DBD0556", "40FF47A2-9682-4545-BDF3-171B5F6B8A5C", @"239f006d-c6a0-4f68-b2d3-2b38dbcd0f2c");                                                                                                                                                                                                                                                           // Text Review Contact Info:Send Contact Info:Get Last Name:Attribute
     RockMigrationHelper.AddActionTypeAttributeValue("70716106-16F0-4A61-A77A-0C449DBD0556", "52930E88-A86E-47AE-BB1D-9937692BBF74", @"{{ Person.LastName }}");                                                                                                                                                                                                                                                                          // Text Review Contact Info:Send Contact Info:Get Last Name:Lava
     RockMigrationHelper.AddActionTypeAttributeValue("70716106-16F0-4A61-A77A-0C449DBD0556", "E7527DBD-32B1-47CE-8D22-142EDE32BD7D", @"");                                                                                                                                                                                                                                                                                               // Text Review Contact Info:Send Contact Info:Get Last Name:Order
     RockMigrationHelper.AddActionTypeAttributeValue("70716106-16F0-4A61-A77A-0C449DBD0556", "8DE0F372-4B1C-4612-B318-E598E4CC17F8", @"False");                                                                                                                                                                                                                                                                                          // Text Review Contact Info:Send Contact Info:Get Last Name:Active
     RockMigrationHelper.AddActionTypeAttributeValue("C489256B-35A2-400C-B94C-9EA0660D28D5", "CF19BB9A-EA5B-43E5-89A1-FA416F430761", @"4a9cbb79-860f-4f3c-a89a-ba9cd9ec219e");                                                                                                                                                                                                                                                           // Text Review Contact Info:Send Contact Info:Get Mobile Number:PersonAttribute
     RockMigrationHelper.AddActionTypeAttributeValue("C489256B-35A2-400C-B94C-9EA0660D28D5", "40FF47A2-9682-4545-BDF3-171B5F6B8A5C", @"50669fd5-a3b0-49bb-9d92-37650293d815");                                                                                                                                                                                                                                                           // Text Review Contact Info:Send Contact Info:Get Mobile Number:Attribute
     RockMigrationHelper.AddActionTypeAttributeValue("C489256B-35A2-400C-B94C-9EA0660D28D5", "52930E88-A86E-47AE-BB1D-9937692BBF74", @"{{ Person | PhoneNumber:'Mobile' }}");                                                                                                                                                                                                                                                            // Text Review Contact Info:Send Contact Info:Get Mobile Number:Lava
     RockMigrationHelper.AddActionTypeAttributeValue("C489256B-35A2-400C-B94C-9EA0660D28D5", "E7527DBD-32B1-47CE-8D22-142EDE32BD7D", @"");                                                                                                                                                                                                                                                                                               // Text Review Contact Info:Send Contact Info:Get Mobile Number:Order
     RockMigrationHelper.AddActionTypeAttributeValue("C489256B-35A2-400C-B94C-9EA0660D28D5", "8DE0F372-4B1C-4612-B318-E598E4CC17F8", @"False");                                                                                                                                                                                                                                                                                          // Text Review Contact Info:Send Contact Info:Get Mobile Number:Active
     RockMigrationHelper.AddActionTypeAttributeValue("2F5614AE-59C5-4802-BCAC-692D1C44DBA8", "CF19BB9A-EA5B-43E5-89A1-FA416F430761", @"4a9cbb79-860f-4f3c-a89a-ba9cd9ec219e");                                                                                                                                                                                                                                                           // Text Review Contact Info:Send Contact Info:Get Phone Number:PersonAttribute
     RockMigrationHelper.AddActionTypeAttributeValue("2F5614AE-59C5-4802-BCAC-692D1C44DBA8", "40FF47A2-9682-4545-BDF3-171B5F6B8A5C", @"714143de-ac04-49ab-9c11-b86420ae3e43");                                                                                                                                                                                                                                                           // Text Review Contact Info:Send Contact Info:Get Phone Number:Attribute
     RockMigrationHelper.AddActionTypeAttributeValue("2F5614AE-59C5-4802-BCAC-692D1C44DBA8", "52930E88-A86E-47AE-BB1D-9937692BBF74", @"{{ Person | PhoneNumber:'Home' }}");                                                                                                                                                                                                                                                              // Text Review Contact Info:Send Contact Info:Get Phone Number:Lava
     RockMigrationHelper.AddActionTypeAttributeValue("2F5614AE-59C5-4802-BCAC-692D1C44DBA8", "E7527DBD-32B1-47CE-8D22-142EDE32BD7D", @"");                                                                                                                                                                                                                                                                                               // Text Review Contact Info:Send Contact Info:Get Phone Number:Order
     RockMigrationHelper.AddActionTypeAttributeValue("2F5614AE-59C5-4802-BCAC-692D1C44DBA8", "8DE0F372-4B1C-4612-B318-E598E4CC17F8", @"False");                                                                                                                                                                                                                                                                                          // Text Review Contact Info:Send Contact Info:Get Phone Number:Active
     RockMigrationHelper.AddActionTypeAttributeValue("A125C5FC-583C-4EA1-812A-13C174515971", "D7EAA859-F500-4521-9523-488B12EAA7D2", @"False");                                                                                                                                                                                                                                                                                          // Text Review Contact Info:Send Contact Info:Send SMS Contact Info:Active
     RockMigrationHelper.AddActionTypeAttributeValue("A125C5FC-583C-4EA1-812A-13C174515971", "44A0B977-4730-4519-8FF6-B0A01A95B212", @"ca158792-f553-4f0f-81ca-d136068c6829");                                                                                                                                                                                                                                                           // Text Review Contact Info:Send Contact Info:Send SMS Contact Info:Attribute
     RockMigrationHelper.AddActionTypeAttributeValue("A125C5FC-583C-4EA1-812A-13C174515971", "57093B41-50ED-48E5-B72B-8829E62704C8", @"");                                                                                                                                                                                                                                                                                               // Text Review Contact Info:Send Contact Info:Send SMS Contact Info:Order
     RockMigrationHelper.AddActionTypeAttributeValue("A125C5FC-583C-4EA1-812A-13C174515971", "E5272B11-A2B8-49DC-860D-8D574E2BC15C", @"Contact info on file: First name - {{Workflow.FromPersonFirstName }}, Last name - {{Workflow.FromPersonLastName}}, Home Phone - {{Workflow.FromPersonPhone}}, Mobile Phone - {{Workflow.FromPersonMobilePhone}}. If the info is incorrect, please reply with 5 and fill out a connection card."); // Text Review Contact Info:Send Contact Info:Send SMS Contact Info:Text Value|Attribute Value
 }
Ejemplo n.º 27
0
        /// <summary>
        /// Operations to be performed during the upgrade process.
        /// </summary>
        public override void Up()
        {
            RockMigrationHelper.UpdateEntityAttribute("Rock.Model.BinaryFile", "7525C4CB-EE6B-41D4-9B64-A08048D5A5C0", "BinaryFileTypeId", "1", "Print For Each", "When a family checks in, should this label be printed once per family, person, or location. Note: this only applys if check-in is configured to use Family check-in vs Individual check-in.", 1, "1", "733944B7-A0D5-41B4-94D4-DE007F72B6F0", "core_LabelType");
            RockMigrationHelper.UpdateAttributeQualifier("733944B7-A0D5-41B4-94D4-DE007F72B6F0", "fieldtype", "ddl", "D9313D93-A2AB-4FE9-B743-A376DEB3EE31");
            RockMigrationHelper.UpdateAttributeQualifier("733944B7-A0D5-41B4-94D4-DE007F72B6F0", "values", "0^Family,1^Person,2^Location", "E77DF4E6-A995-4C82-BBB7-DB57739D66F3");

            RockMigrationHelper.AddPage("CDF2C599-D341-42FD-B7DC-CD402EA96050", "66FA0143-F04C-4447-A67A-2A10A6BB1A2B", "Person Select (Family Check-in)", "", "D14154BA-2F2C-41C3-B380-F833252CBB13", "");   // Site:Rock Check-in
            RockMigrationHelper.AddPage("CDF2C599-D341-42FD-B7DC-CD402EA96050", "66FA0143-F04C-4447-A67A-2A10A6BB1A2B", "Time Select (Family Check-in)", "", "67BD09B0-0C6E-44E7-A8EB-0E71551F3E6B", "");     // Site:Rock Check-in
            RockMigrationHelper.AddPage("CDF2C599-D341-42FD-B7DC-CD402EA96050", "66FA0143-F04C-4447-A67A-2A10A6BB1A2B", "Save Attendance (Family Check-in)", "", "4AF7A0E1-E991-4AE5-A2B5-C440F67A2E6A", ""); // Site:Rock Check-in

            RockMigrationHelper.AddPageRoute("7B7207D0-B905-4836-800E-A24DDC6FE445", "checkin/{KioskId}/{CheckinConfigId}/{GroupTypeIds}");
            RockMigrationHelper.AddPageRoute("D14154BA-2F2C-41C3-B380-F833252CBB13", "checkin/people", "FC4747A0-E42B-4F5D-98A4-B94D393461AD");  // for Page:Person Select (Family Check-in)

            RockMigrationHelper.UpdateBlockType("Person Select (Family Check-in)", "Lists people who match the selected family and provides option of selecting multiple.", "~/Blocks/CheckIn/MultiPersonSelect.ascx", "Check-in", "92DCF018-F551-4890-8BA1-511D97BF6B8A");
            RockMigrationHelper.UpdateBlockType("Process Only", "Provides a page for simply launching a check-in workflow action", "~/Blocks/CheckIn/ProcessOnly.ascx", "Check-in", "F7B86942-9BF2-4132-B5EB-C7310952ECFF");

            // Add Block to Page: Person Select (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlock("D14154BA-2F2C-41C3-B380-F833252CBB13", "", "92DCF018-F551-4890-8BA1-511D97BF6B8A", "Person Select", "Main", "", "", 0, "0F82C7EB-3E71-496F-B5F4-83F32AD5EBB5");
            // Add Block to Page: Time Select (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlock("67BD09B0-0C6E-44E7-A8EB-0E71551F3E6B", "", "D2348D51-B13A-4069-97AD-369D9615A711", "Time Select", "Main", "", "", 0, "558C15C1-47F7-4232-A069-89463B17924F");
            // Add Block to Page: Save Attendance (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlock("4AF7A0E1-E991-4AE5-A2B5-C440F67A2E6A", "", "F7B86942-9BF2-4132-B5EB-C7310952ECFF", "Process Only", "Main", "", "", 0, "887E090F-5468-44F0-BE84-9AE21D822987");
            // Add Block to Page: Person Select (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlock("D14154BA-2F2C-41C3-B380-F833252CBB13", "", "49FC4B38-741E-4B0B-B395-7C1929340D88", "Idle Redirect", "Main", "", "", 1, "619DEBA2-B84A-48CF-95A4-BEEA047E830C");
            // Add Block to Page: Time Select (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlock("67BD09B0-0C6E-44E7-A8EB-0E71551F3E6B", "", "49FC4B38-741E-4B0B-B395-7C1929340D88", "Idle Redirect", "Main", "", "", 1, "111609E5-EBCC-4B1A-992A-5B61A57327C1");
            // Add Block to Page: Save Attendance (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlock("4AF7A0E1-E991-4AE5-A2B5-C440F67A2E6A", "", "49FC4B38-741E-4B0B-B395-7C1929340D88", "Idle Redirect", "Main", "", "", 1, "ACA84721-3048-4953-A3DB-34DAA598357C");

            // Attrib for BlockType: Administration:Enable Kiosk Match By Name
            RockMigrationHelper.UpdateBlockTypeAttribute("3B5FBE9A-2904-4220-92F3-47DD16E805C0", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Enable Kiosk Match By Name", "EnableReverseLookup", "", "Enable a kiosk match by computer name by doing reverseIP lookup to get computer name based on IP address", 8, @"False", "0E252443-86E1-4068-8B32-9943E0974C94");

            // Attrib for BlockType: Family Select:Next Page (Family Check-in)
            RockMigrationHelper.UpdateBlockTypeAttribute("6B050E12-A232-41F6-94C5-B190F4520607", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Next Page (Family Check-in)", "FamilyNextPage", "", "", 5, @"", "1C9DAB1C-C2B3-421D-BB53-554C28F33B27");

            // Attrib for BlockType: Person Select (Family Check-in):Workflow Type
            RockMigrationHelper.UpdateBlockTypeAttribute("92DCF018-F551-4890-8BA1-511D97BF6B8A", "46A03F59-55D3-4ACE-ADD5-B4642225DD20", "Workflow Type", "WorkflowType", "", "The workflow type to activate for check-in", 0, @"", "C7ABDF19-09B1-4426-B409-CAA1BBB13A11");
            // Attrib for BlockType: Person Select (Family Check-in):Workflow Activity
            RockMigrationHelper.UpdateBlockTypeAttribute("92DCF018-F551-4890-8BA1-511D97BF6B8A", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Workflow Activity", "WorkflowActivity", "", "The name of the workflow activity to run on selection.", 1, @"", "C1F2BA5A-5FA3-459E-A7C4-965BBCDF501D");
            // Attrib for BlockType: Person Select (Family Check-in):Home Page
            RockMigrationHelper.UpdateBlockTypeAttribute("92DCF018-F551-4890-8BA1-511D97BF6B8A", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Home Page", "HomePage", "", "", 2, @"", "9E1DD40E-62F1-40BA-8BFD-2D2D4D8F00C6");
            // Attrib for BlockType: Person Select (Family Check-in):Previous Page
            RockMigrationHelper.UpdateBlockTypeAttribute("92DCF018-F551-4890-8BA1-511D97BF6B8A", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Previous Page", "PreviousPage", "", "", 3, @"", "E9C55730-B5C4-4640-B8A0-86F10F9F1EE7");
            // Attrib for BlockType: Person Select (Family Check-in):Next Page
            RockMigrationHelper.UpdateBlockTypeAttribute("92DCF018-F551-4890-8BA1-511D97BF6B8A", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Next Page", "NextPage", "", "", 4, @"", "DF2EC9E1-2499-4439-B926-A82CE950837D");

            // Attrib for BlockType: Ability Level Select:Repeat Page (Family Check-in)
            RockMigrationHelper.UpdateBlockTypeAttribute("605389F5-5BC5-438F-8757-110328B0CED3", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Repeat Page (Family Check-in)", "FamilyRepeatPage", "", "The page to navigate back to if there are peopl or schedules already processed.", 3, @"", "B7A328EC-69EE-4472-8D5D-F6B5BEF271EE");
            // Attrib for BlockType: Ability Level Select:Previous Page (Family Check-in)
            RockMigrationHelper.UpdateBlockTypeAttribute("605389F5-5BC5-438F-8757-110328B0CED3", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Previous Page (Family Check-in)", "FamilyPreviousPage", "", "The page to navigate back to if none of the people and schedules have been processed.", 4, @"", "3D24A4D2-90AF-4FDD-8CE2-7D1F9B76104B");

            // Attrib for BlockType: Group Type Select:Select All and Skip
            RockMigrationHelper.UpdateBlockTypeAttribute("7E20E97E-63F2-413D-9C2C-16FF34023F70", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Select All and Skip", "SelectAll", "", "Select this option if end-user should never see screen to select group types, all group types will automatically be selected and all the groups in all types will be available.", 5, @"False", "41AFF704-87A8-4282-80D0-B7C40983B549");

            // Attrib for BlockType: Location Select:Repeat Page (Family Check-in)
            RockMigrationHelper.UpdateBlockTypeAttribute("FFDBBAB5-78E1-4865-8A48-EF70DDC6B3F6", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Repeat Page (Family Check-in)", "FamilyRepeatPage", "", "The page to navigate to if there are still more people or schedules to process.", 5, @"", "FDD6D619-028F-484C-A5FF-CB9B16D596CA");
            // Attrib for BlockType: Location Select:Next Page (Family Check-in)
            RockMigrationHelper.UpdateBlockTypeAttribute("FFDBBAB5-78E1-4865-8A48-EF70DDC6B3F6", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Next Page (Family Check-in)", "FamilyNextPage", "", "The page to navigate to if all people and schedules have been processed.", 6, @"", "BA3A2508-4AEF-44B6-895C-899D5AB2E378");

            // Attrib for BlockType: Location Select:Workflow Type
            RockMigrationHelper.UpdateBlockTypeAttribute("F7B86942-9BF2-4132-B5EB-C7310952ECFF", "46A03F59-55D3-4ACE-ADD5-B4642225DD20", "Workflow Type", "WorkflowType", "", "The workflow type to activate for check-in", 0, @"", "BA9AD11A-DB90-4BF6-ACDA-6FFB56C0358A");
            // Attrib for BlockType: Process Only:Workflow Activity
            RockMigrationHelper.UpdateBlockTypeAttribute("F7B86942-9BF2-4132-B5EB-C7310952ECFF", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Workflow Activity", "WorkflowActivity", "", "The name of the workflow activity to run on selection.", 1, @"", "21715BAA-59CE-41F7-8D7B-925C8DB4F3DD");
            // Attrib for BlockType: Process Only:Home Page
            RockMigrationHelper.UpdateBlockTypeAttribute("F7B86942-9BF2-4132-B5EB-C7310952ECFF", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Home Page", "HomePage", "", "", 2, @"", "44646AA4-0E73-4AE2-B456-B2F7E9C96BAE");
            // Attrib for BlockType: Process Only:Previous Page
            RockMigrationHelper.UpdateBlockTypeAttribute("F7B86942-9BF2-4132-B5EB-C7310952ECFF", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Previous Page", "PreviousPage", "", "", 3, @"", "0320C949-F06B-49FF-A9E1-F686CB14841C");
            // Attrib for BlockType: Process Only:Next Page
            RockMigrationHelper.UpdateBlockTypeAttribute("F7B86942-9BF2-4132-B5EB-C7310952ECFF", "BD53F9C9-EBA9-4D3F-82EA-DE5DD34A8108", "Next Page", "NextPage", "", "", 4, @"", "BA7AB351-CF98-4846-90C2-62F5EE8D799C");

            // Attrib for BlockType: Success:Workflow Activity
            RockMigrationHelper.UpdateBlockTypeAttribute("18911F1B-294E-48D6-9E6B-0F72BF6C9491", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Workflow Activity", "WorkflowActivity", "", "The name of the workflow activity to run on selection.", 1, @"", "185504E0-2E80-434D-8E95-EEA3D38D92F0");

            // Attrib Value for Block:Family Select, Attribute:Next Page (Family Check-in) Page: Family Select, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("CD97D61E-7BCE-436B-ACDD-4383EB7490BA", "1C9DAB1C-C2B3-421D-BB53-554C28F33B27", @"d14154ba-2f2c-41c3-b380-f833252cbb13,fc4747a0-e42b-4f5d-98a4-b94d393461ad");

            // Attrib Value for Block:Person Select, Attribute:Workflow Type Page: Person Select (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("0F82C7EB-3E71-496F-B5F4-83F32AD5EBB5", "C7ABDF19-09B1-4426-B409-CAA1BBB13A11", @"011e9f5a-60d4-4ff5-912a-290881e37eaf");
            // Attrib Value for Block:Person Select, Attribute:Workflow Activity Page: Person Select (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("0F82C7EB-3E71-496F-B5F4-83F32AD5EBB5", "C1F2BA5A-5FA3-459E-A7C4-965BBCDF501D", @"Load Schedules");
            // Attrib Value for Block:Person Select, Attribute:Home Page Page: Person Select (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("0F82C7EB-3E71-496F-B5F4-83F32AD5EBB5", "9E1DD40E-62F1-40BA-8BFD-2D2D4D8F00C6", @"432b615a-75ff-4b14-9c99-3e769f866950");
            // Attrib Value for Block:Person Select, Attribute:Previous Page Page: Person Select (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("0F82C7EB-3E71-496F-B5F4-83F32AD5EBB5", "E9C55730-B5C4-4640-B8A0-86F10F9F1EE7", @"10c97379-f719-4acb-b8c6-651957b660a4");
            // Attrib Value for Block:Person Select, Attribute:Next Page Page: Person Select (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("0F82C7EB-3E71-496F-B5F4-83F32AD5EBB5", "DF2EC9E1-2499-4439-B926-A82CE950837D", @"67bd09b0-0c6e-44e7-a8eb-0e71551f3e6b");

            // Attrib Value for Block:Ability Level Select, Attribute:Repeat Page (Family Check-in) Page: Ability Select, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("C175A9ED-612E-4B25-BED4-CF713D922179", "B7A328EC-69EE-4472-8D5D-F6B5BEF271EE", @"043bb717-5799-446f-b8da-30e575110b0c");
            // Attrib Value for Block:Ability Level Select, Attribute:Previous Page (Family Check-in) Page: Ability Select, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("C175A9ED-612E-4B25-BED4-CF713D922179", "3D24A4D2-90AF-4FDD-8CE2-7D1F9B76104B", @"d14154ba-2f2c-41c3-b380-f833252cbb13");

            // Attrib Value for Block:Location Select, Attribute:Repeat Page (Family Check-in) Page: Location Select, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("9D876B07-DF35-4355-85B0-638F65C367C4", "FDD6D619-028F-484C-A5FF-CB9B16D596CA", @"a1cbdaa4-94dd-4156-8260-5a3781e39fd0");
            // Attrib Value for Block:Location Select, Attribute:Next Page (Family Check-in) Page: Location Select, Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("9D876B07-DF35-4355-85B0-638F65C367C4", "BA3A2508-4AEF-44B6-895C-899D5AB2E378", @"4af7a0e1-e991-4ae5-a2b5-c440f67a2e6a");

            // Attrib Value for Block:Process Only, Attribute:Workflow Type Page: Save Attendance (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("887E090F-5468-44F0-BE84-9AE21D822987", "BA9AD11A-DB90-4BF6-ACDA-6FFB56C0358A", @"011e9f5a-60d4-4ff5-912a-290881e37eaf");
            // Attrib Value for Block:Process Only, Attribute:Workflow Activity Page: Save Attendance (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("887E090F-5468-44F0-BE84-9AE21D822987", "21715BAA-59CE-41F7-8D7B-925C8DB4F3DD", @"Save Attendance");
            // Attrib Value for Block:Process Only, Attribute:Home Page Page: Save Attendance (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("887E090F-5468-44F0-BE84-9AE21D822987", "44646AA4-0E73-4AE2-B456-B2F7E9C96BAE", @"432b615a-75ff-4b14-9c99-3e769f866950");
            // Attrib Value for Block:Process Only, Attribute:Previous Page Page: Save Attendance (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("887E090F-5468-44F0-BE84-9AE21D822987", "0320C949-F06B-49FF-A9E1-F686CB14841C", @"043bb717-5799-446f-b8da-30e575110b0c");
            // Attrib Value for Block:Process Only, Attribute:Next Page Page: Save Attendance (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("887E090F-5468-44F0-BE84-9AE21D822987", "BA7AB351-CF98-4846-90C2-62F5EE8D799C", @"e08230b8-35a4-40d6-a0bb-521418314da9");

            // Attrib Value for Block:Time Select, Attribute:Workflow Type Page: Time Select (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("558C15C1-47F7-4232-A069-89463B17924F", "108E2E9E-DC18-4D5D-80FA-5D4A90FFCE65", @"011e9f5a-60d4-4ff5-912a-290881e37eaf");
            // Attrib Value for Block:Time Select, Attribute:Workflow Activity Page: Time Select (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("558C15C1-47F7-4232-A069-89463B17924F", "12DF930E-6460-4A66-9326-E39BEAFC6F9D", @"Schedule Select");
            // Attrib Value for Block:Time Select, Attribute:Home Page Page: Time Select (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("558C15C1-47F7-4232-A069-89463B17924F", "D5AFB471-3EE2-44D5-BC66-F4EFD26FD394", @"432b615a-75ff-4b14-9c99-3e769f866950");
            // Attrib Value for Block:Time Select, Attribute:Previous Page Page: Time Select (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("558C15C1-47F7-4232-A069-89463B17924F", "DE808D50-0861-4E24-A483-F1C74C1FFDE8", @"d14154ba-2f2c-41c3-b380-f833252cbb13");
            // Attrib Value for Block:Time Select, Attribute:Next Page Page: Time Select (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("558C15C1-47F7-4232-A069-89463B17924F", "840898DB-A9AB-45C9-9894-0A1E816EFC4C", @"a1cbdaa4-94dd-4156-8260-5a3781e39fd0");

            // Attrib Value for Block:Idle Redirect, Attribute:Idle Seconds Page: Person Select (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("619DEBA2-B84A-48CF-95A4-BEEA047E830C", "1CAC7B16-041A-4F40-8AEE-A39DFA076C14", @"20");
            // Attrib Value for Block:Idle Redirect, Attribute:New Location Page: Person Select (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("619DEBA2-B84A-48CF-95A4-BEEA047E830C", "2254B67B-9CB1-47DE-A63D-D0B56051ECD4", @"/checkin/welcome");

            // Attrib Value for Block:Idle Redirect, Attribute:Idle Seconds Page: Time Select (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("111609E5-EBCC-4B1A-992A-5B61A57327C1", "1CAC7B16-041A-4F40-8AEE-A39DFA076C14", @"20");
            // Attrib Value for Block:Idle Redirect, Attribute:New Location Page: Time Select (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("111609E5-EBCC-4B1A-992A-5B61A57327C1", "2254B67B-9CB1-47DE-A63D-D0B56051ECD4", @"/checkin/welcome");

            // Attrib Value for Block:Idle Redirect, Attribute:Idle Seconds Page: Save Attendance (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("ACA84721-3048-4953-A3DB-34DAA598357C", "1CAC7B16-041A-4F40-8AEE-A39DFA076C14", @"20");
            // Attrib Value for Block:Idle Redirect, Attribute:New Location Page: Save Attendance (Family Check-in), Site: Rock Check-in
            RockMigrationHelper.AddBlockAttributeValue("ACA84721-3048-4953-A3DB-34DAA598357C", "2254B67B-9CB1-47DE-A63D-D0B56051ECD4", @"/checkin/welcome");

            //**********************
            //* New Action Types
            //**********************

            // Filter Locations By Schedule
            RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.CheckIn.FilterLocationsBySchedule", "DC86310C-44CF-44F5-804E-5085A29F5AAE", false, true);
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("DC86310C-44CF-44F5-804E-5085A29F5AAE", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "5E590D32-9101-457D-9296-4FED6EA992F4");                                                                                // Rock.Workflow.Action.CheckIn.FilterLocationsBySchedule:Active
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("DC86310C-44CF-44F5-804E-5085A29F5AAE", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Remove", "Remove", "Select 'Yes' if schedules should be be removed.  Select 'No' if they should just be marked as excluded.", 0, @"True", "4C6ACFAD-F94B-43F7-AA7C-FEF48EFAA79C"); // Rock.Workflow.Action.CheckIn.FilterLocationsBySchedule:Remove
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("DC86310C-44CF-44F5-804E-5085A29F5AAE", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "874AC9A3-CA6D-4C1F-8CCA-BCB7BFC74C19");                                                         // Rock.Workflow.Action.CheckIn.FilterLocationsBySchedule:Order

            // Filter Locations By Threshold
            RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.CheckIn.FilterLocationsByThreshold", "EB9E5114-D86D-49CF-89A1-6EF52428AD2E", false, true);
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("EB9E5114-D86D-49CF-89A1-6EF52428AD2E", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "62AACC4A-E976-43F5-8828-A8D2D1AC5D1B");                                                                                // Rock.Workflow.Action.CheckIn.FilterLocationsByThreshold:Active
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("EB9E5114-D86D-49CF-89A1-6EF52428AD2E", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Remove", "Remove", "Select 'Yes' if locations should be be removed.  Select 'No' if they should just be marked as excluded.", 0, @"True", "097966C4-8FE0-4464-A340-C3E78B0D3693"); // Rock.Workflow.Action.CheckIn.FilterLocationsByThreshold:Remove
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("EB9E5114-D86D-49CF-89A1-6EF52428AD2E", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "3C6C2ABA-8705-4674-9BB5-F07AEBC38EDC");                                                         // Rock.Workflow.Action.CheckIn.FilterLocationsByThreshold:Order

            // PreSelect Recent Attendance
            RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.CheckIn.PreSelectRecentAttendance", "23C1D3FA-4F16-4AF6-9528-04C7C52F5C2A", false, true);
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("23C1D3FA-4F16-4AF6-9528-04C7C52F5C2A", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "6AB918C5-5515-42A9-A54F-160E3C239710");                        // Rock.Workflow.Action.CheckIn.PreSelectRecentAttendance:Active
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("23C1D3FA-4F16-4AF6-9528-04C7C52F5C2A", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "B3A0641C-65B3-43AF-9BD5-AC62A72C5798"); // Rock.Workflow.Action.CheckIn.PreSelectRecentAttendance:Order

            // Remove Empty Locations
            RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.CheckIn.RemoveEmptyLocations", "51AE2690-ED00-423D-86AD-6E97054F04A9", false, true);
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("51AE2690-ED00-423D-86AD-6E97054F04A9", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "5E8DBE2C-DD06-43C1-A587-3F3DA4423964");                        // Rock.Workflow.Action.CheckIn.RemoveEmptyLocations:Active
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("51AE2690-ED00-423D-86AD-6E97054F04A9", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "9CA7DD25-422D-4859-B8B4-C2A44293D485"); // Rock.Workflow.Action.CheckIn.RemoveEmptyLocations:Order

            // Set Available Schedules
            RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.CheckIn.SetAvailableSchedules", "0F16E0C5-825A-4058-8285-6370DAAC2C19", false, true);
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("0F16E0C5-825A-4058-8285-6370DAAC2C19", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "DE072E28-C3B5-42A0-B12F-A0D8BE8F6975");                        // Rock.Workflow.Action.CheckIn.SetAvailableSchedules:Active
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("0F16E0C5-825A-4058-8285-6370DAAC2C19", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "B6256274-8971-4DA2-9144-ED732B46EC5B"); // Rock.Workflow.Action.CheckIn.SetAvailableSchedules:Order

            //**********************
            //* Workflow Config
            //**********************

            // Person Search
            RockMigrationHelper.AddActionTypeAttributeValue("BB45E6E1-C39A-42A2-B988-490382DB7977", "0A6737BD-739A-4803-A3B9-5AD23AF70106", @"True");                                                                                                                                       // Unattended Check-in:Person Search:Filter Groups by Age:Remove

            RockMigrationHelper.UpdateWorkflowActionType("EB744DF1-E454-482C-B111-80A54EF8A674", "Filter Locations by Threshold", 99, "EB9E5114-D86D-49CF-89A1-6EF52428AD2E", true, false, "", "66EF6CB1-1A96-2F81-4534-3BCA5C33D4CD", 1, "False", "6A4E09F0-7AAF-441A-AAD7-BFEA7AF08A6A"); // Unattended Check-in:Person Search:Filter Locations by Threshold
            RockMigrationHelper.AddActionTypeAttributeValue("6A4E09F0-7AAF-441A-AAD7-BFEA7AF08A6A", "62AACC4A-E976-43F5-8828-A8D2D1AC5D1B", @"False");                                                                                                                                      // Unattended Check-in:Person Search:Filter Locations by Threshold:Active
            RockMigrationHelper.AddActionTypeAttributeValue("6A4E09F0-7AAF-441A-AAD7-BFEA7AF08A6A", "097966C4-8FE0-4464-A340-C3E78B0D3693", @"True");                                                                                                                                       // Unattended Check-in:Person Search:Filter Locations by Threshold:Remove
            RockMigrationHelper.AddActionTypeAttributeValue("6A4E09F0-7AAF-441A-AAD7-BFEA7AF08A6A", "3C6C2ABA-8705-4674-9BB5-F07AEBC38EDC", @"");                                                                                                                                           // Unattended Check-in:Person Search:Filter Locations by Threshold:Order

            RockMigrationHelper.UpdateWorkflowActionType("EB744DF1-E454-482C-B111-80A54EF8A674", "Set Available Schedules", 99, "0F16E0C5-825A-4058-8285-6370DAAC2C19", true, false, "", "", 1, "", "79CB608D-ED25-4526-A0F5-132D13642CDA");                                                // Unattended Check-in:Person Search:Set Available Schedules
            RockMigrationHelper.AddActionTypeAttributeValue("79CB608D-ED25-4526-A0F5-132D13642CDA", "B6256274-8971-4DA2-9144-ED732B46EC5B", @"");                                                                                                                                           // Unattended Check-in:Person Search:Set Available Schedules:Order
            RockMigrationHelper.AddActionTypeAttributeValue("79CB608D-ED25-4526-A0F5-132D13642CDA", "DE072E28-C3B5-42A0-B12F-A0D8BE8F6975", @"False");                                                                                                                                      // Unattended Check-in:Person Search:Set Available Schedules:Active

            RockMigrationHelper.UpdateWorkflowActionType("EB744DF1-E454-482C-B111-80A54EF8A674", "Preselect Recent Attendees", 99, "23C1D3FA-4F16-4AF6-9528-04C7C52F5C2A", true, false, "", "", 1, "", "08D15C7A-4421-420A-BCA8-D6EE532E659F");                                             // Unattended Check-in:Person Search:Preselect Recent Attendees
            RockMigrationHelper.AddActionTypeAttributeValue("08D15C7A-4421-420A-BCA8-D6EE532E659F", "B3A0641C-65B3-43AF-9BD5-AC62A72C5798", @"");                                                                                                                                           // Unattended Check-in:Person Search:Preselect Recent Attendees:Order
            RockMigrationHelper.AddActionTypeAttributeValue("08D15C7A-4421-420A-BCA8-D6EE532E659F", "6AB918C5-5515-42A9-A54F-160E3C239710", @"False");                                                                                                                                      // Unattended Check-in:Person Search:Preselect Recent Attendees:Active

            // Ability Level Search
            RockMigrationHelper.UpdateWorkflowActionType("0E2F5EBA-2204-4C2F-845A-92C25AB67474", "Set Available Schedules", 99, "0F16E0C5-825A-4058-8285-6370DAAC2C19", true, false, "", "", 1, "", "902931D2-6326-4A6A-967C-C9F65F8C1386"); // Unattended Check-in:Ability Level Search:Set Available Schedules
            RockMigrationHelper.AddActionTypeAttributeValue("902931D2-6326-4A6A-967C-C9F65F8C1386", "B6256274-8971-4DA2-9144-ED732B46EC5B", @"");                                                                                            // Unattended Check-in:Ability Level Search:Set Available Schedules:Order
            RockMigrationHelper.AddActionTypeAttributeValue("902931D2-6326-4A6A-967C-C9F65F8C1386", "DE072E28-C3B5-42A0-B12F-A0D8BE8F6975", @"False");                                                                                       // Unattended Check-in:Ability Level Search:Set Available Schedules:Active

            // Load Schedules
            RockMigrationHelper.UpdateWorkflowActivityType("011E9F5A-60D4-4FF5-912A-290881E37EAF", true, "Load Schedules", "Loads schedules for Family Check-In", false, 6, "118F4E64-BF2D-484C-BB7D-15CF25066173");               // Unattended Check-in:Load Schedules

            RockMigrationHelper.UpdateWorkflowActionType("118F4E64-BF2D-484C-BB7D-15CF25066173", "Load Schedules", 0, "24A7E196-B50B-4BD6-A347-07CFC5ABEF9E", true, false, "", "", 1, "", "992CDCED-02C8-4624-9C69-D7483713BA4A"); // Unattended Check-in:Load Schedules:Load Schedules
            RockMigrationHelper.AddActionTypeAttributeValue("992CDCED-02C8-4624-9C69-D7483713BA4A", "B222CAF2-DF12-433C-B5D4-A8DB95B60207", @"True");                                                                              // Unattended Check-in:Load Schedules:Load Schedules:Load All
            RockMigrationHelper.AddActionTypeAttributeValue("992CDCED-02C8-4624-9C69-D7483713BA4A", "19CB6600-7BEB-43BA-A17E-CA7E8466D93B", @"");                                                                                  // Unattended Check-in:Load Schedules:Load Schedules:Order
            RockMigrationHelper.AddActionTypeAttributeValue("992CDCED-02C8-4624-9C69-D7483713BA4A", "7BFA61E2-2FBB-4ADE-A6B0-38E8C0D1EB61", @"False");                                                                             // Unattended Check-in:Load Schedules:Load Schedules:Active

            // Schedule Select
            RockMigrationHelper.UpdateWorkflowActivityType("011E9F5A-60D4-4FF5-912A-290881E37EAF", true, "Schedule Select", "Filters the locations, groups, and group types by the selected schedule(s) in Family Check-In", false, 7, "5D86DC3F-D56A-49D7-B6CC-5ED2B7E59A93"); // Unattended Check-in:Schedule Select

            RockMigrationHelper.UpdateWorkflowActionType("5D86DC3F-D56A-49D7-B6CC-5ED2B7E59A93", "Filter Locations By Schedule", 0, "DC86310C-44CF-44F5-804E-5085A29F5AAE", true, false, "", "", 1, "", "9C80AED6-23F7-485F-ACCA-DB3F722E6F16");                                // Unattended Check-in:Schedule Select:Filter Locations By Schedule
            RockMigrationHelper.AddActionTypeAttributeValue("9C80AED6-23F7-485F-ACCA-DB3F722E6F16", "4C6ACFAD-F94B-43F7-AA7C-FEF48EFAA79C", @"False");                                                                                                                          // Unattended Check-in:Schedule Select:Filter Locations By Schedule:Remove
            RockMigrationHelper.AddActionTypeAttributeValue("9C80AED6-23F7-485F-ACCA-DB3F722E6F16", "874AC9A3-CA6D-4C1F-8CCA-BCB7BFC74C19", @"");                                                                                                                               // Unattended Check-in:Schedule Select:Filter Locations By Schedule:Order
            RockMigrationHelper.AddActionTypeAttributeValue("9C80AED6-23F7-485F-ACCA-DB3F722E6F16", "5E590D32-9101-457D-9296-4FED6EA992F4", @"False");                                                                                                                          // Unattended Check-in:Schedule Select:Filter Locations By Schedule:Active

            RockMigrationHelper.UpdateWorkflowActionType("5D86DC3F-D56A-49D7-B6CC-5ED2B7E59A93", "Remove Empty Locations", 1, "51AE2690-ED00-423D-86AD-6E97054F04A9", true, false, "", "", 1, "", "0E02BD35-17EA-430E-BA61-A227FC4FC535");                                      // Unattended Check-in:Schedule Select:Remove Empty Locations
            RockMigrationHelper.AddActionTypeAttributeValue("0E02BD35-17EA-430E-BA61-A227FC4FC535", "9CA7DD25-422D-4859-B8B4-C2A44293D485", @"");                                                                                                                               // Unattended Check-in:Schedule Select:Remove Empty Locations:Order
            RockMigrationHelper.AddActionTypeAttributeValue("0E02BD35-17EA-430E-BA61-A227FC4FC535", "5E8DBE2C-DD06-43C1-A587-3F3DA4423964", @"False");                                                                                                                          // Unattended Check-in:Schedule Select:Remove Empty Locations:Active

            RockMigrationHelper.UpdateWorkflowActionType("5D86DC3F-D56A-49D7-B6CC-5ED2B7E59A93", "Remove Empty Groups", 2, "698115D4-7B5E-48F3-BBB0-C53A20193169", true, false, "", "", 1, "", "D335782D-3D07-497D-944D-6CC0414C06A8");                                         // Unattended Check-in:Schedule Select:Remove Empty Groups
            RockMigrationHelper.AddActionTypeAttributeValue("D335782D-3D07-497D-944D-6CC0414C06A8", "88D9EED1-BFDF-4D31-A25E-0C52EBBF55A3", @"");                                                                                                                               // Unattended Check-in:Schedule Select:Remove Empty Groups:Order
            RockMigrationHelper.AddActionTypeAttributeValue("D335782D-3D07-497D-944D-6CC0414C06A8", "2122F250-222A-45A5-8E76-EE9AA3633DC5", @"False");                                                                                                                          // Unattended Check-in:Schedule Select:Remove Empty Groups:Active

            RockMigrationHelper.UpdateWorkflowActionType("5D86DC3F-D56A-49D7-B6CC-5ED2B7E59A93", "Remove Empty Group Types", 3, "E998B9A7-31C9-46F6-B91C-4E5C3F06C82F", true, false, "", "", 1, "", "F6CA869D-732B-4E98-A790-7314756CDF44");                                    // Unattended Check-in:Schedule Select:Remove Empty Group Types
            RockMigrationHelper.AddActionTypeAttributeValue("F6CA869D-732B-4E98-A790-7314756CDF44", "9B76E1C8-D562-4ED9-842B-11ADF06EB70B", @"");                                                                                                                               // Unattended Check-in:Schedule Select:Remove Empty Group Types:Order
            RockMigrationHelper.AddActionTypeAttributeValue("F6CA869D-732B-4E98-A790-7314756CDF44", "7461AAF6-E4DA-4052-BCA5-D25386CA65C5", @"False");                                                                                                                          // Unattended Check-in:Schedule Select:Remove Empty Group Types:Active

            RockMigrationHelper.UpdateWorkflowActionType("5D86DC3F-D56A-49D7-B6CC-5ED2B7E59A93", "Set Available Schedules", 4, "0F16E0C5-825A-4058-8285-6370DAAC2C19", true, false, "", "", 1, "", "83D1D8BB-08FB-480C-AA6E-5C4BD527CA54");                                     // Unattended Check-in:Schedule Select:Set Available Schedules
            RockMigrationHelper.AddActionTypeAttributeValue("83D1D8BB-08FB-480C-AA6E-5C4BD527CA54", "B6256274-8971-4DA2-9144-ED732B46EC5B", @"");                                                                                                                               // Unattended Check-in:Schedule Select:Set Available Schedules:Order
            RockMigrationHelper.AddActionTypeAttributeValue("83D1D8BB-08FB-480C-AA6E-5C4BD527CA54", "DE072E28-C3B5-42A0-B12F-A0D8BE8F6975", @"False");                                                                                                                          // Unattended Check-in:Schedule Select:Set Available Schedules:Active

            RockMigrationHelper.UpdateEntityAttribute("Rock.Model.BinaryFile", "7525C4CB-EE6B-41D4-9B64-A08048D5A5C0", "BinaryFileTypeId", "1", "Print For Each", "When a family checks in, should this label be printed once per family, person, or location. Note: this only applys if check-in is configured to use Family check-in vs Individual check-in.", 1, "1", "733944B7-A0D5-41B4-94D4-DE007F72B6F0", "core_LabelType");
            RockMigrationHelper.UpdateAttributeQualifier("733944B7-A0D5-41B4-94D4-DE007F72B6F0", "fieldtype", "ddl", "D9313D93-A2AB-4FE9-B743-A376DEB3EE31");
            RockMigrationHelper.UpdateAttributeQualifier("733944B7-A0D5-41B4-94D4-DE007F72B6F0", "values", "0^Family,1^Person,2^Location", "E77DF4E6-A995-4C82-BBB7-DB57739D66F3");

            RockMigrationHelper.AddDefinedValue("E4D289A9-70FA-4381-913E-2A757AD11147", "Current Day/Date", "Displays The Current Day and Date", "23502286-D921-4455-BABC-D8D6CB8FFB3D", false);
            RockMigrationHelper.AddDefinedValue("E4D289A9-70FA-4381-913E-2A757AD11147", "Codes And Ages (Even)", "Displays the codes and ages for the second, fourth, etc. person checked in using Family Check-in", "5B11A934-0398-429F-9A91-F727153392E7", false);
            RockMigrationHelper.AddDefinedValue("E4D289A9-70FA-4381-913E-2A757AD11147", "Codes And Ages (Odd)", "Displays the codes and ages for the first, third, etc. person checked in using Family Check-in", "170207B6-9218-4E6E-8ADA-661521E80E5E", false);
            RockMigrationHelper.AddDefinedValue("E4D289A9-70FA-4381-913E-2A757AD11147", "Name and Code (Even)", "Displays the name and security code for the second, fourth, etc. person who checked in during family check-in.", "3DCF76E8-866C-4EC9-B1FB-552691A8B440", false);
            RockMigrationHelper.AddDefinedValue("E4D289A9-70FA-4381-913E-2A757AD11147", "Name and Code (Odd)", "Displays the name and security code for the first, third, etc. person who checked in during family check-in.", "1FAA4DAC-5240-486E-A23F-2A47D7F36F31", false);
            RockMigrationHelper.AddDefinedValue("E4D289A9-70FA-4381-913E-2A757AD11147", "Person Locations and Times", "The locations and times that person checked into", "08882D9E-4D49-4D1E-94D2-7E5CF64A570D", false);
            RockMigrationHelper.AddDefinedValue("E4D289A9-70FA-4381-913E-2A757AD11147", "Location and Times", "The name and times for a specific location that person checked into", "B407E2A5-A7DC-4C29-9B41-B88C99838BD1", false);

            RockMigrationHelper.AddDefinedValueAttributeValue("23502286-D921-4455-BABC-D8D6CB8FFB3D", "51EB8583-55EA-4431-8B66-B5BD0F83D81E", @"{{ ''Now'' | Date:''ddd M/d'' }}");
            RockMigrationHelper.AddDefinedValueAttributeValue("5B11A934-0398-429F-9A91-F727153392E7", "51EB8583-55EA-4431-8B66-B5BD0F83D81E", @"{% for person in People %}{% assign remainder = forloop.index | Modulo:2 %}{% if remainder == 0 %}{{ person.SecurityCode }}-{{ person.Age }}yr\&{% endif %}{% endfor %}");
            RockMigrationHelper.AddDefinedValueAttributeValue("170207B6-9218-4E6E-8ADA-661521E80E5E", "51EB8583-55EA-4431-8B66-B5BD0F83D81E", @"{% for person in People %}{% assign remainder = forloop.index | Modulo:2 %}{% if remainder > 0 %}{{ person.SecurityCode }}-{{ person.Age }}yr\&{% endif %}{% endfor %}");
            RockMigrationHelper.AddDefinedValueAttributeValue("3DCF76E8-866C-4EC9-B1FB-552691A8B440", "51EB8583-55EA-4431-8B66-B5BD0F83D81E", @"{% for person in People %}{% assign remainder = forloop.index | Modulo:2 %}{% if remainder == 0 %}{{ person.NickName }}-{{ person.SecurityCode }}\&{% endif %}{% endfor %}");
            RockMigrationHelper.AddDefinedValueAttributeValue("1FAA4DAC-5240-486E-A23F-2A47D7F36F31", "51EB8583-55EA-4431-8B66-B5BD0F83D81E", @"{% for person in People %}{% assign remainder = forloop.index | Modulo:2 %}{% if remainder != 0 %}{{ person.NickName }}-{{ person.SecurityCode }}\&{% endif %}{% endfor %}");
            RockMigrationHelper.AddDefinedValueAttributeValue("08882D9E-4D49-4D1E-94D2-7E5CF64A570D", "51EB8583-55EA-4431-8B66-B5BD0F83D81E", @"{% for group in GroupType.Groups %}{% for location in group.Locations %}{% if forloop.index > 1 %}; {% endif %}{{location.Name}}{% for schedule in location.Schedules %} {{schedule.Name}}{% endfor %}{% endfor %}{% endfor %}");
            RockMigrationHelper.AddDefinedValueAttributeValue("B407E2A5-A7DC-4C29-9B41-B88C99838BD1", "51EB8583-55EA-4431-8B66-B5BD0F83D81E", @"{{ Location.Name }}{% for schedule in Location.Schedules %} {{schedule.Name}}{% endfor %}");

            Sql(MigrationSQL._201605232234462_FamilyCheckinType);
        }
        private void UpdateBackgroundCheckWorkflowInjectCheckEmailActions()
        {
            const string CHECKR_NAME_KEY = "Background Check (Checkr)";
            const string PMM_NAME_KEY    = "Background Check";

            var backgroundCheck_WorkflowActivityTypeGuids = new Dictionary <string, string>();
            var bgCheckInitalRequestGuidsSql = @"SELECT STUFF(
                                            (SELECT ',' + CONVERT(nvarchar(50),wfat.[guid])+'^'+wft.[Name]
                                             FROM [WorkflowActivityType] wfat
                                             JOIN [WorkflowType] wft ON wft.[Id] = wfat.[WorkflowTypeId]
                                             WHERE wft.[Name] IN ('Background Check (Checkr)','Background Check') AND wfat.[Name] = 'Initial Request'
                                             FOR
                                              XML PATH('')
                                            ), 1, 1, '') AS [Guids]";

            var bgCheckInitalRequestGuidsString = SqlScalar(bgCheckInitalRequestGuidsSql).ToStringSafe();

            if (bgCheckInitalRequestGuidsString.IsNullOrWhiteSpace())
            {
                // Nothing to do.
                return;
            }

            var arr = bgCheckInitalRequestGuidsString.Split(',');

            if (arr != null && arr.Length > 0)
            {
                foreach (var arrVal in arr)
                {
                    if (!arrVal.Contains("^"))
                    {
                        continue;
                    }

                    var data = arrVal.Split('^');
                    if (data != null && data.Length == 2)
                    {
                        var guid        = data[0];
                        var bgcheckType = data[1];
                        if (!backgroundCheck_WorkflowActivityTypeGuids.ContainsKey(guid))
                        {
                            backgroundCheck_WorkflowActivityTypeGuids.Add(guid, bgcheckType);
                        }
                    }
                }
            }

            if (backgroundCheck_WorkflowActivityTypeGuids.Count == 0)
            {
                // Nothing to do.
                return;
            }

            foreach (var activityTypeKvp in backgroundCheck_WorkflowActivityTypeGuids)
            {
                var bgCheck_ActivityTypeIdSql = $"SELECT TOP 1 [Id] FROM WorkflowActivityType WHERE [Guid] = '{activityTypeKvp.Key}'";
                var bgCheck_ActivityTypeId    = SqlScalar(bgCheck_ActivityTypeIdSql).ToIntSafe();

                if (bgCheck_ActivityTypeId > 0)
                {
                    // PersonEmailValid - Attribute - Guid
                    var personEmailValid_AttributeGuid = Guid.NewGuid().ToString().ToUpper();

                    // Add Activity [PersonEmailValid] Entity Attribute
                    RockMigrationHelper.AddOrUpdateEntityAttribute("Rock.Model.WorkflowActivity",
                                                                   "9C204CD0-1233-41C5-818A-C5DA439445AA", "ActivityTypeId",
                                                                   bgCheck_ActivityTypeId.ToString(),
                                                                   "PersonEmailValid",
                                                                   "PersonEmailValid",
                                                                   "Used to indicate if a person has a valid and active email before executing a background check.", 0, "No",
                                                                   personEmailValid_AttributeGuid, "PersonEmailValid");

                    // Reorder Workflow Activity - Action entries
                    if (activityTypeKvp.Value == PMM_NAME_KEY)
                    {
                        // Set Person is already order 0

                        // Set Status
                        Sql($"Update [WorkflowActionType] SET [Order] = 4 WHERE [Guid] = '10E8C6CB-A72C-4254-A1F5-E43B6C7B404B' AND ActivityTypeId = {bgCheck_ActivityTypeId}");

                        // Set Requester
                        Sql($"Update [WorkflowActionType] SET [Order] = 5 WHERE [Guid] = '3136A135-4836-4C09-BD81-326CA21C6AA5' AND ActivityTypeId = {bgCheck_ActivityTypeId}");

                        // Set Name
                        Sql($"Update [WorkflowActionType] SET [Order] = 6 WHERE [Guid] = '6A779AB3-3223-411B-9AEE-87A5EE1EDF12' AND ActivityTypeId = {bgCheck_ActivityTypeId}");

                        // Set Warning
                        Sql($"Update [WorkflowActionType] SET [Order] = 7 WHERE [Guid] = '81D1FB3E-5017-4A53-A4EF-F6618F782935' AND ActivityTypeId = {bgCheck_ActivityTypeId}");

                        // Get Details
                        Sql($"Update [WorkflowActionType] SET [Order] = 8 WHERE [Guid] = 'A3EAF2A3-97FB-47A6-9844-F7F0755FC5BE' AND ActivityTypeId = {bgCheck_ActivityTypeId}");
                    }
                    else if (activityTypeKvp.Value == CHECKR_NAME_KEY)
                    {
                        // Set Person
                        Sql($"Update [WorkflowActionType] SET [Order] = 0 WHERE [Guid] = '407C6B9C-2E89-400F-8345-A062B1083F66' AND ActivityTypeId = {bgCheck_ActivityTypeId}");

                        //// Set Status
                        Sql($"Update [WorkflowActionType] SET [Order] = 4 WHERE [Guid] = '5556D7BA-4EFF-400A-A7A9-E8EFE4519985' AND ActivityTypeId = {bgCheck_ActivityTypeId}");

                        //// Set Requester
                        Sql($"Update [WorkflowActionType] SET [Order] = 5 WHERE [Guid] = '46BF8484-6386-4A45-A332-A107185E7353' AND ActivityTypeId = {bgCheck_ActivityTypeId}");

                        //// Set Name
                        Sql($"Update [WorkflowActionType] SET [Order] = 6 WHERE [Guid] = '8C59CA7A-4FF1-410F-9CBC-81FA7BDEE610' AND ActivityTypeId = {bgCheck_ActivityTypeId}");

                        //// Set Warning
                        Sql($"Update [WorkflowActionType] SET [Order] = 7 WHERE [Guid] = '2EE62F7C-EABE-4C9C-B00B-045984C462E9' AND ActivityTypeId = {bgCheck_ActivityTypeId}");

                        //// Get Details
                        Sql($"Update [WorkflowActionType] SET [Order] = 8 WHERE [Guid] = '9751CA4C-A648-4567-B31E-4B077DDFF124' AND ActivityTypeId = {bgCheck_ActivityTypeId}");
                    }

                    // Add/Inject new Workflow Activity - Action entries

                    // Add [Set PersonEmailValid Attribute] Action - Order 1

                    var setPersonEmailValidAttributeActionTypeGuid = SqlScalar($"SELECT TOP 1 [Guid] FROM [WorkflowActionType] WHERE [Name] = 'Set PersonEmailValid Attribute' AND ActivityTypeId = {bgCheck_ActivityTypeId}")
                                                                     .ToStringOrDefault(Guid.NewGuid().ToString()).ToUpper();
                    ;
                    RockMigrationHelper.UpdateWorkflowActionType(activityTypeKvp.Key, "Set PersonEmailValid Attribute", 1,
                                                                 "BC21E57A-1477-44B3-A7C2-61A806118945", true, false, "",
                                                                 "", ComparisonType.EqualTo.ConvertToInt(), "",
                                                                 setPersonEmailValidAttributeActionTypeGuid);

                    // Add [Show Email Not Found Message] Action - Order 2

                    var showEmailNotFoundMessageActionTypeGuid = SqlScalar($"SELECT TOP 1 [Guid] FROM [WorkflowActionType] WHERE [Name] = 'Show Email Not Found Message' AND ActivityTypeId = {bgCheck_ActivityTypeId}")
                                                                 .ToStringOrDefault(Guid.NewGuid().ToString()).ToUpper();
                    RockMigrationHelper.UpdateWorkflowActionType(activityTypeKvp.Key, "Show Email Not Found Message", 2,
                                                                 "FDDAE78D-B7B3-4DA2-9A92-CC129AAF15DE", true, false, "",
                                                                 personEmailValid_AttributeGuid, ComparisonType.EqualTo.ConvertToInt(), "No",
                                                                 showEmailNotFoundMessageActionTypeGuid);

                    // Add [Set Email Not Found Status] Action - Order 3
                    var setEmailNotFoundStatusActionTypeGuid = SqlScalar($"SELECT TOP 1 [Guid] FROM [WorkflowActionType] WHERE [Name] = 'Set Email Not Found Status' AND ActivityTypeId = {bgCheck_ActivityTypeId}")
                                                               .ToStringOrDefault(Guid.NewGuid().ToString()).ToUpper();
                    RockMigrationHelper.UpdateWorkflowActionType(activityTypeKvp.Key, "Set Email Not Found Status", 3,
                                                                 "EEDA4318-F014-4A46-9C76-4C052EF81AA1", true, true, "",
                                                                 personEmailValid_AttributeGuid, ComparisonType.EqualTo.ConvertToInt(), "No",
                                                                 setEmailNotFoundStatusActionTypeGuid);

                    #region Add [Set PersonEmailValid Attribute] Value
                    // Add [Set PersonEmailValid Attribute] Value
                    const string setPersonEmailValidLava = @"{% assign person = Workflow | Attribute:'Person','Object' %}
{% assign emailLength = person.Email | Size %}
{% assign emailActive = person.IsEmailActive | AsBoolean %}
{% if emailLength > 0 and emailActive == true %}
Yes
{% else %}
No
{% endif %}";
                    #endregion Add [Set PersonEmailValid Attribute] Lava Value

                    // Set PersonEmailValid Attribute - Action - Lava
                    RockMigrationHelper.AddActionTypeAttributeValue(setPersonEmailValidAttributeActionTypeGuid, "F1F6F9D6-FDC5-489C-8261-4B9F45B3EED4",
                                                                    setPersonEmailValidLava);

                    // Set PersonEmailValid Attribute - Action - Select Attribute
                    RockMigrationHelper.AddActionTypeAttributeValue(setPersonEmailValidAttributeActionTypeGuid, "431273C6-342D-4030-ADC7-7CDEDC7F8B27",
                                                                    personEmailValid_AttributeGuid);

                    #region [Show Email Not Found Message] Lava Value
                    // [Show Email Not Found Message] Value
                    const string personEmailNotFoundMessage = @"{% assign person = Workflow | Attribute:'Person','Object' %}
{% assign personProfilePage = '~/Person/' %}

<div class='alert alert-danger margin-t-lg js-workflow-entry-message-notification-box'>
    <strong> Error: Email Required</strong>
    <span class='js-notification-text'>
        <ul>
            <li><strong><a href='{{ personProfilePage | ResolveRockUrl }}{{ person.Id }}' target='_blank'>{{ Workflow | Attribute:'Person','FullName' }}</a></strong> has an empty or inactive email address. A background check can not be run unless a valid email address is provided.</li>
                    <ul>
                        <li>Enter a valid email address and/or set it to active.</li>
                    </ul>
        </ul>
    </span>
</div>";
                    #endregion [Show Email Not Found Message] Value

                    // Set Email Not Found Message - Action - HTML\Lava
                    RockMigrationHelper.AddActionTypeAttributeValue(showEmailNotFoundMessageActionTypeGuid, "DCC5F049-8BDB-4DBF-B07A-081C0B772473",
                                                                    personEmailNotFoundMessage);

                    // Set Email Not Found Message - Action - Hide Status Message
                    RockMigrationHelper.AddActionTypeAttributeValue(showEmailNotFoundMessageActionTypeGuid, "4F9306CC-A50F-4A9A-B7A5-BCC2C1263EE2",
                                                                    "True");

                    // Set Email Not Found Status - Action
                    RockMigrationHelper.AddActionTypeAttributeValue(setEmailNotFoundStatusActionTypeGuid, "07CB7DBC-236D-4D38-92A4-47EE448BA89A",
                                                                    "Person Email Not Found");

                    // Fix Lava in the My Ministry background check [Get Details] - Action
                    if (activityTypeKvp.Value == PMM_NAME_KEY)
                    {
                        const string header = @"{% assign WarnOfRecent = Workflow | Attribute:'WarnOfRecent' %}
<h1>Background Request Details</h1>
<p>{{ CurrentPerson.NickName }}, please complete the form below to start the background request process.</p>
{% if WarnOfRecent == 'Yes' %}
    <div class='alert alert-warning'>
        Notice: It's been less than a year since this person's last background check was processed.
        Please make sure you want to continue with this request!
    </div>
{% endif %}
<hr/>";

                        const string actions = "Submit^fdc397cd-8b4a-436e-bea1-bce2e6717c03^342BCBFC-2CA7-426E-ABBB-A7C461A05736^Your request has been submitted successfully.|Cancel^5683E775-B9F3-408C-80AC-94DE0E51CF3A^F47C3F69-4485-4A6A-BFCE-C44FE628DF3E^The request has been cancelled.|";

                        // Update using the fixed lava and the current Action values for the Action Form
                        RockMigrationHelper.UpdateWorkflowActionForm(header, "", actions, "", false, "", "328B74E5-6058-4C4E-9EF8-EC10985F18A8");
                    }
                }
            } //foreach
        }
Ejemplo n.º 29
0
        public override void Up()
        {
            RockMigrationHelper.UpdateEntityType("Rock.Model.Workflow", "3540E9A7-FE30-43A9-8B0A-A372B63DFC93", true, true);
            RockMigrationHelper.UpdateEntityType("Rock.Model.WorkflowActivity", "2CB52ED0-CB06-4D62-9E2C-73B60AFA4C9F", true, true);
            RockMigrationHelper.UpdateEntityType("Rock.Model.WorkflowActionType", "23E3273A-B137-48A3-9AFF-C8DC832DDCA6", true, true);
            RockMigrationHelper.UpdateEntityType("com.reallifeministries.RockExtensions.Workflow.Action.GetFamilyFromPerson", "2E383A2A-30EF-42F7-8700-7DC3DFFB6754", false, true);
            RockMigrationHelper.UpdateEntityType("com.reallifeministries.RockExtensions.Workflow.Action.SetAttributeFromPersonLava", "85D1DBFE-9F3F-486A-BF2C-60146A8D97F8", false, true);
            RockMigrationHelper.UpdateEntityType("com.reallifeministries.RockExtensions.Workflow.Action.ValidateAttendanceCode", "550458E4-BBBF-4E47-955E-1DBE79352E7D", false, true);
            RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.ActivateActivity", "38907A90-1634-4A93-8017-619326A4A582", false, true);
            RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.RunSQL", "A41216D6-6FB0-4019-B222-2C29B4519CF4", false, true);
            RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.SetAttributeToInitiator", "4EEAC6FA-B838-410B-A8DD-21A364029F5D", false, true);
            RockMigrationHelper.UpdateEntityType("Rock.Workflow.Action.SetAttributeValue", "C789E457-0783-44B3-9D8F-2EBAB5F11110", false, true);
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("2E383A2A-30EF-42F7-8700-7DC3DFFB6754", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "DEDB581D-BF7A-4C01-BD61-49EF3FDA3425");                                                                                                                                                              // com.reallifeministries.RockExtensions.Workflow.Action.GetFamilyFromPerson:Active
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("2E383A2A-30EF-42F7-8700-7DC3DFFB6754", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Campus", "Campus", "The Campus location to Check each family member into", 0, @"", "3FFA5814-2815-4988-9638-A9BF70C0A274");                                                                                                                                      // com.reallifeministries.RockExtensions.Workflow.Action.GetFamilyFromPerson:Campus
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("2E383A2A-30EF-42F7-8700-7DC3DFFB6754", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Group", "Group", "The Group to Check each family member into", 0, @"", "4552EE4D-E44E-4B3F-8EB3-43B2CFAC690A");                                                                                                                                                  // com.reallifeministries.RockExtensions.Workflow.Action.GetFamilyFromPerson:Group
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("2E383A2A-30EF-42F7-8700-7DC3DFFB6754", "33E6DF69-BDFA-407A-9744-C175B60643AE", "PersonAttribute", "PersonAttribute", "The workflow attribute containing the person.", 0, @"", "CC40B360-481B-40D3-8361-767787006EC2");                                                                                                                           // com.reallifeministries.RockExtensions.Workflow.Action.GetFamilyFromPerson:PersonAttribute
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("2E383A2A-30EF-42F7-8700-7DC3DFFB6754", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "CA4C04DE-BDBB-41B7-AD57-D3A261319189");                                                                                                                                       // com.reallifeministries.RockExtensions.Workflow.Action.GetFamilyFromPerson:Order
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("38907A90-1634-4A93-8017-619326A4A582", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "E8ABD802-372C-47BE-82B1-96F50DB5169E");                                                                                                                                                              // Rock.Workflow.Action.ActivateActivity:Active
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("38907A90-1634-4A93-8017-619326A4A582", "739FD425-5B8C-4605-B775-7E4D9D4C11DB", "Activity", "Activity", "The activity type to activate", 0, @"", "02D5A7A5-8781-46B4-B9FC-AF816829D240");                                                                                                                                                         // Rock.Workflow.Action.ActivateActivity:Activity
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("38907A90-1634-4A93-8017-619326A4A582", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "3809A78C-B773-440C-8E3F-A8E81D0DAE08");                                                                                                                                       // Rock.Workflow.Action.ActivateActivity:Order
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("4EEAC6FA-B838-410B-A8DD-21A364029F5D", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "7A7B2369-901E-4838-852F-2AB42ABC9EBA");                                                                                                                                                              // Rock.Workflow.Action.SetAttributeToInitiator:Active
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("4EEAC6FA-B838-410B-A8DD-21A364029F5D", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Person Attribute", "PersonAttribute", "The attribute to set to the initiator.", 0, @"", "047336EA-EA6F-46D7-9F32-FB67D2C9DA32");                                                                                                                                 // Rock.Workflow.Action.SetAttributeToInitiator:Person Attribute
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("4EEAC6FA-B838-410B-A8DD-21A364029F5D", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "8960D3B2-25B4-41BD-84D8-2C88779271F4");                                                                                                                                       // Rock.Workflow.Action.SetAttributeToInitiator:Order
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("550458E4-BBBF-4E47-955E-1DBE79352E7D", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "C9FC261D-84BF-41F7-9636-734EAAF0FD86");                                                                                                                                                              // com.reallifeministries.RockExtensions.Workflow.Action.ValidateAttendanceCode:Active
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("550458E4-BBBF-4E47-955E-1DBE79352E7D", "9C204CD0-1233-41C5-818A-C5DA439445AA", "UserInputCode", "UserInputCode", "The code submitted by the user", 0, @"", "0FC7338D-F75D-401F-8F03-ADDA92315A3B");                                                                                                                                              // com.reallifeministries.RockExtensions.Workflow.Action.ValidateAttendanceCode:UserInputCode
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("550458E4-BBBF-4E47-955E-1DBE79352E7D", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "18BA2FE7-7620-42CE-8FD8-727A26683B81");                                                                                                                                       // com.reallifeministries.RockExtensions.Workflow.Action.ValidateAttendanceCode:Order
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("85D1DBFE-9F3F-486A-BF2C-60146A8D97F8", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "8DE0F372-4B1C-4612-B318-E598E4CC17F8");                                                                                                                                                              // com.reallifeministries.RockExtensions.Workflow.Action.SetAttributeFromPersonLava:Active
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("85D1DBFE-9F3F-486A-BF2C-60146A8D97F8", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Attribute", "Attribute", "The workflow attribute you will be setting", 0, @"", "40FF47A2-9682-4545-BDF3-171B5F6B8A5C");                                                                                                                                          // com.reallifeministries.RockExtensions.Workflow.Action.SetAttributeFromPersonLava:Attribute
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("85D1DBFE-9F3F-486A-BF2C-60146A8D97F8", "33E6DF69-BDFA-407A-9744-C175B60643AE", "PersonAttribute", "PersonAttribute", "The workflow attribute containing the person.", 0, @"", "CF19BB9A-EA5B-43E5-89A1-FA416F430761");                                                                                                                           // com.reallifeministries.RockExtensions.Workflow.Action.SetAttributeFromPersonLava:PersonAttribute
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("85D1DBFE-9F3F-486A-BF2C-60146A8D97F8", "9C204CD0-1233-41C5-818A-C5DA439445AA", "Lava", "Lava", "Lava to use when setting the attribute.  Normal Workflow merge fields will be available, as well as: {{Person}} which will be the Person model corresponding to the selected Person Attribute", 0, @"", "52930E88-A86E-47AE-BB1D-9937692BBF74"); // com.reallifeministries.RockExtensions.Workflow.Action.SetAttributeFromPersonLava:Lava
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("85D1DBFE-9F3F-486A-BF2C-60146A8D97F8", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "E7527DBD-32B1-47CE-8D22-142EDE32BD7D");                                                                                                                                       // com.reallifeministries.RockExtensions.Workflow.Action.SetAttributeFromPersonLava:Order
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("A41216D6-6FB0-4019-B222-2C29B4519CF4", "1D0D3794-C210-48A8-8C68-3FBEC08A6BA5", "SQLQuery", "SQLQuery", "The SQL query to run. <span class='tip tip-lava'></span>", 0, @"", "F3B9908B-096F-460B-8320-122CF046D1F9");                                                                                                                              // Rock.Workflow.Action.RunSQL:SQLQuery
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("A41216D6-6FB0-4019-B222-2C29B4519CF4", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "A18C3143-0586-4565-9F36-E603BC674B4E");                                                                                                                                                              // Rock.Workflow.Action.RunSQL:Active
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("A41216D6-6FB0-4019-B222-2C29B4519CF4", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Result Attribute", "ResultAttribute", "An optional attribute to set to the scaler result of SQL query.", 1, @"", "56997192-2545-4EA1-B5B2-313B04588984");                                                                                                        // Rock.Workflow.Action.RunSQL:Result Attribute
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("A41216D6-6FB0-4019-B222-2C29B4519CF4", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "FA7C685D-8636-41EF-9998-90FFF3998F76");                                                                                                                                       // Rock.Workflow.Action.RunSQL:Order
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C789E457-0783-44B3-9D8F-2EBAB5F11110", "1EDAFDED-DFE6-4334-B019-6EECBA89E05A", "Active", "Active", "Should Service be used?", 0, @"False", "D7EAA859-F500-4521-9523-488B12EAA7D2");                                                                                                                                                              // Rock.Workflow.Action.SetAttributeValue:Active
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C789E457-0783-44B3-9D8F-2EBAB5F11110", "33E6DF69-BDFA-407A-9744-C175B60643AE", "Attribute", "Attribute", "The attribute to set the value of.", 0, @"", "44A0B977-4730-4519-8FF6-B0A01A95B212");                                                                                                                                                  // Rock.Workflow.Action.SetAttributeValue:Attribute
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C789E457-0783-44B3-9D8F-2EBAB5F11110", "3B1D93D7-9414-48F9-80E5-6A3FC8F94C20", "Text Value|Attribute Value", "Value", "The text or attribute to set the value from. <span class='tip tip-lava'></span>", 1, @"", "E5272B11-A2B8-49DC-860D-8D574E2BC15C");                                                                                        // Rock.Workflow.Action.SetAttributeValue:Text Value|Attribute Value
            RockMigrationHelper.UpdateWorkflowActionEntityAttribute("C789E457-0783-44B3-9D8F-2EBAB5F11110", "A75DFC58-7A1B-4799-BF31-451B2BBE38FF", "Order", "Order", "The order that this service should be used (priority)", 0, @"", "57093B41-50ED-48E5-B72B-8829E62704C8");                                                                                                                                       // Rock.Workflow.Action.SetAttributeValue:Order
            RockMigrationHelper.UpdateWorkflowType(false, true, "Text Attendance Household", "Option '1' in the Text in Attendance System", "BF7F6EDD-1AA6-442C-BBE2-226591F78D4C", "Work", "fa fa-list-ol", 0, true, 3, "C5FE671A-C3CA-4785-95DD-3CB10F4308B0");                                                                                                                                                     // Text Attendance Household
            RockMigrationHelper.UpdateWorkflowTypeAttribute("C5FE671A-C3CA-4785-95DD-3CB10F4308B0", "E4EAB7B2-0B76-429B-AFE4-AD86D7428C70", "FromPerson", "FromPerson", "", 0, @"", "01866D17-6AB4-433F-AF4D-16E394C2ADF5");                                                                                                                                                                                          // Text Attendance Household:FromPerson
            RockMigrationHelper.UpdateWorkflowTypeAttribute("C5FE671A-C3CA-4785-95DD-3CB10F4308B0", "9C204CD0-1233-41C5-818A-C5DA439445AA", "FromPersonAttendanceCode", "FromPersonAttendanceCode", "", 1, @"", "9ACEB2C7-90EC-4E5C-982D-71144B805D80");                                                                                                                                                              // Text Attendance Household:FromPersonAttendanceCode
            RockMigrationHelper.UpdateWorkflowTypeAttribute("C5FE671A-C3CA-4785-95DD-3CB10F4308B0", "9C204CD0-1233-41C5-818A-C5DA439445AA", "FromPhone", "FromPhone", "", 2, @"", "D6E62EEC-754A-47DA-B2D8-520B6891D935");                                                                                                                                                                                            // Text Attendance Household:FromPhone
            RockMigrationHelper.UpdateWorkflowTypeAttribute("C5FE671A-C3CA-4785-95DD-3CB10F4308B0", "9C204CD0-1233-41C5-818A-C5DA439445AA", "FamilyNames", "FamilyNames", "", 3, @"", "73CF0E8E-4A33-47D3-8088-724376ECF17D");                                                                                                                                                                                        // Text Attendance Household:FamilyNames
            RockMigrationHelper.UpdateWorkflowTypeAttribute("C5FE671A-C3CA-4785-95DD-3CB10F4308B0", "9C204CD0-1233-41C5-818A-C5DA439445AA", "AttendanceKey", "AttendanceKey", "", 4, @"", "961E2048-0F51-4851-9415-F643C4A7F0C7");                                                                                                                                                                                    // Text Attendance Household:AttendanceKey
            RockMigrationHelper.UpdateWorkflowTypeAttribute("C5FE671A-C3CA-4785-95DD-3CB10F4308B0", "9C204CD0-1233-41C5-818A-C5DA439445AA", "AttendanceCode", "AttendanceCode", "", 5, @"", "00952282-96BD-457A-B091-CBC07C9F07EC");                                                                                                                                                                                  // Text Attendance Household:AttendanceCode
            RockMigrationHelper.UpdateWorkflowTypeAttribute("C5FE671A-C3CA-4785-95DD-3CB10F4308B0", "F4399CEF-827B-48B2-A735-F7806FCFE8E8", "AttendanceGroup", "AttendanceGroup", "", 6, @"", "2FD0D6BE-0EFD-49F2-A597-1159596B4CCD");                                                                                                                                                                                // Text Attendance Household:AttendanceGroup
            RockMigrationHelper.UpdateWorkflowTypeAttribute("C5FE671A-C3CA-4785-95DD-3CB10F4308B0", "1B71FEF4-201F-4D53-8C60-2DF21F1985ED", "Campus", "Campus", "", 7, @"", "0C46A949-4103-47E7-BB92-C70E74E51C13");                                                                                                                                                                                                  // Text Attendance Household:Campus
            RockMigrationHelper.UpdateWorkflowTypeAttribute("C5FE671A-C3CA-4785-95DD-3CB10F4308B0", "9C204CD0-1233-41C5-818A-C5DA439445AA", "SMSResponse", "SMSResponse", "", 8, @"", "20FA0252-1140-495A-918E-530C33E31F93");                                                                                                                                                                                        // Text Attendance Household:SMSResponse
            RockMigrationHelper.AddAttributeQualifier("9ACEB2C7-90EC-4E5C-982D-71144B805D80", "ispassword", @"False", "1BD46BA5-4413-476B-9A8F-DB0D43720163");                                                                                                                                                                                                                                                        // Text Attendance Household:FromPersonAttendanceCode:ispassword
            RockMigrationHelper.AddAttributeQualifier("D6E62EEC-754A-47DA-B2D8-520B6891D935", "ispassword", @"False", "002A93F1-DA68-404D-8799-C3E50017CEEB");                                                                                                                                                                                                                                                        // Text Attendance Household:FromPhone:ispassword
            RockMigrationHelper.AddAttributeQualifier("73CF0E8E-4A33-47D3-8088-724376ECF17D", "ispassword", @"False", "3770A77A-4544-48D0-8FF2-86513FEA3882");                                                                                                                                                                                                                                                        // Text Attendance Household:FamilyNames:ispassword
            RockMigrationHelper.AddAttributeQualifier("961E2048-0F51-4851-9415-F643C4A7F0C7", "ispassword", @"False", "D9586BF6-0D9A-4B54-93E4-16AE4388A9F2");                                                                                                                                                                                                                                                        // Text Attendance Household:AttendanceKey:ispassword
            RockMigrationHelper.AddAttributeQualifier("00952282-96BD-457A-B091-CBC07C9F07EC", "ispassword", @"False", "D330A599-625B-4939-B223-FCA501E385E6");                                                                                                                                                                                                                                                        // Text Attendance Household:AttendanceCode:ispassword
            RockMigrationHelper.AddAttributeQualifier("20FA0252-1140-495A-918E-530C33E31F93", "ispassword", @"False", "C2F51040-D1B7-4C48-AF5B-ACA68C6678A2");                                                                                                                                                                                                                                                        // Text Attendance Household:SMSResponse:ispassword
            RockMigrationHelper.UpdateWorkflowActivityType("C5FE671A-C3CA-4785-95DD-3CB10F4308B0", true, "Validate Attendance Code", "validates a correct attendance code", true, 0, "0AC62C9B-4306-4580-98A9-6748DF94F0BB");                                                                                                                                                                                         // Text Attendance Household:Validate Attendance Code
            RockMigrationHelper.UpdateWorkflowActivityType("C5FE671A-C3CA-4785-95DD-3CB10F4308B0", true, "Check In Family", "Check in Family and Send Message if they were all checked in.", false, 1, "69A83BE1-305C-459A-87C8-2E91EF4C7A53");                                                                                                                                                                       // Text Attendance Household:Check In Family
            RockMigrationHelper.UpdateWorkflowActionType("0AC62C9B-4306-4580-98A9-6748DF94F0BB", "Activate Check in", 5, "38907A90-1634-4A93-8017-619326A4A582", true, false, "", "00952282-96BD-457A-B091-CBC07C9F07EC", 64, "", "80FB3FE0-0FEC-4F41-B0E7-43389852B41E");                                                                                                                                            // Text Attendance Household:Validate Attendance Code:Activate Check in
            RockMigrationHelper.UpdateWorkflowActionType("0AC62C9B-4306-4580-98A9-6748DF94F0BB", "Set Campus", 2, "A41216D6-6FB0-4019-B222-2C29B4519CF4", true, false, "", "", 1, "", "5ED3A49D-005D-45A6-8FD4-20C878715B1E");                                                                                                                                                                                        // Text Attendance Household:Validate Attendance Code:Set Campus
            RockMigrationHelper.UpdateWorkflowActionType("0AC62C9B-4306-4580-98A9-6748DF94F0BB", "Set AttendanceGroup", 3, "A41216D6-6FB0-4019-B222-2C29B4519CF4", true, false, "", "", 1, "", "737B2608-D19A-4E83-9D46-2C1C29D3D769");                                                                                                                                                                               // Text Attendance Household:Validate Attendance Code:Set AttendanceGroup
            RockMigrationHelper.UpdateWorkflowActionType("69A83BE1-305C-459A-87C8-2E91EF4C7A53", "Send Check in Message", 1, "C789E457-0783-44B3-9D8F-2EBAB5F11110", true, false, "", "", 1, "", "1BF7F571-8BE2-4FE3-A662-2C524F65AF70");                                                                                                                                                                             // Text Attendance Household:Check In Family:Send Check in Message
            RockMigrationHelper.UpdateWorkflowActionType("0AC62C9B-4306-4580-98A9-6748DF94F0BB", "initiate person", 0, "4EEAC6FA-B838-410B-A8DD-21A364029F5D", true, false, "", "", 1, "", "D724263A-0F33-4E9B-9DD6-ED49E4060D28");                                                                                                                                                                                   // Text Attendance Household:Validate Attendance Code:initiate person
            RockMigrationHelper.UpdateWorkflowActionType("0AC62C9B-4306-4580-98A9-6748DF94F0BB", "get Attendance Code from Person", 1, "85D1DBFE-9F3F-486A-BF2C-60146A8D97F8", true, false, "", "", 1, "", "90130B2B-3DD2-4207-B7BE-430F67DC1B25");                                                                                                                                                                   // Text Attendance Household:Validate Attendance Code:get Attendance Code from Person
            RockMigrationHelper.UpdateWorkflowActionType("69A83BE1-305C-459A-87C8-2E91EF4C7A53", "Get Family names and Check In", 0, "2E383A2A-30EF-42F7-8700-7DC3DFFB6754", true, false, "", "", 1, "", "8B2A5A9C-4B5F-4D18-B05F-76AD7EAD6159");                                                                                                                                                                     // Text Attendance Household:Check In Family:Get Family names and Check In
            RockMigrationHelper.UpdateWorkflowActionType("0AC62C9B-4306-4580-98A9-6748DF94F0BB", "Validate Code", 4, "550458E4-BBBF-4E47-955E-1DBE79352E7D", true, false, "", "", 1, "", "CEC70346-0CB7-4F0A-8427-30E0BFAC266A");                                                                                                                                                                                     // Text Attendance Household:Validate Attendance Code:Validate Code
            RockMigrationHelper.AddActionTypeAttributeValue("D724263A-0F33-4E9B-9DD6-ED49E4060D28", "7A7B2369-901E-4838-852F-2AB42ABC9EBA", @"False");                                                                                                                                                                                                                                                                // Text Attendance Household:Validate Attendance Code:initiate person:Active
            RockMigrationHelper.AddActionTypeAttributeValue("D724263A-0F33-4E9B-9DD6-ED49E4060D28", "047336EA-EA6F-46D7-9F32-FB67D2C9DA32", @"01866d17-6ab4-433f-af4d-16e394c2adf5");                                                                                                                                                                                                                                 // Text Attendance Household:Validate Attendance Code:initiate person:Person Attribute
            RockMigrationHelper.AddActionTypeAttributeValue("D724263A-0F33-4E9B-9DD6-ED49E4060D28", "8960D3B2-25B4-41BD-84D8-2C88779271F4", @"");                                                                                                                                                                                                                                                                     // Text Attendance Household:Validate Attendance Code:initiate person:Order
            RockMigrationHelper.AddActionTypeAttributeValue("90130B2B-3DD2-4207-B7BE-430F67DC1B25", "CF19BB9A-EA5B-43E5-89A1-FA416F430761", @"01866d17-6ab4-433f-af4d-16e394c2adf5");                                                                                                                                                                                                                                 // Text Attendance Household:Validate Attendance Code:get Attendance Code from Person:PersonAttribute
            RockMigrationHelper.AddActionTypeAttributeValue("90130B2B-3DD2-4207-B7BE-430F67DC1B25", "40FF47A2-9682-4545-BDF3-171B5F6B8A5C", @"9aceb2c7-90ec-4e5c-982d-71144b805d80");                                                                                                                                                                                                                                 // Text Attendance Household:Validate Attendance Code:get Attendance Code from Person:Attribute
            RockMigrationHelper.AddActionTypeAttributeValue("90130B2B-3DD2-4207-B7BE-430F67DC1B25", "52930E88-A86E-47AE-BB1D-9937692BBF74", @"{{ Person.LastAttendanceCode }}");                                                                                                                                                                                                                                      // Text Attendance Household:Validate Attendance Code:get Attendance Code from Person:Lava
            RockMigrationHelper.AddActionTypeAttributeValue("90130B2B-3DD2-4207-B7BE-430F67DC1B25", "E7527DBD-32B1-47CE-8D22-142EDE32BD7D", @"");                                                                                                                                                                                                                                                                     // Text Attendance Household:Validate Attendance Code:get Attendance Code from Person:Order
            RockMigrationHelper.AddActionTypeAttributeValue("90130B2B-3DD2-4207-B7BE-430F67DC1B25", "8DE0F372-4B1C-4612-B318-E598E4CC17F8", @"False");                                                                                                                                                                                                                                                                // Text Attendance Household:Validate Attendance Code:get Attendance Code from Person:Active
            RockMigrationHelper.AddActionTypeAttributeValue("5ED3A49D-005D-45A6-8FD4-20C878715B1E", "F3B9908B-096F-460B-8320-122CF046D1F9", @"DECLARE @campusName nvarchar(100) = '{{Workflow.Campus}}'
SELECT [Guid] 
FROM [Campus] c
WHERE c.[Name] = @campusName");                                                                                                                                                                                                                                                                                                                                                                                       // Text Attendance Household:Validate Attendance Code:Set Campus:SQLQuery
            RockMigrationHelper.AddActionTypeAttributeValue("5ED3A49D-005D-45A6-8FD4-20C878715B1E", "A18C3143-0586-4565-9F36-E603BC674B4E", @"False");                                                                                                                                                                                                                                                                // Text Attendance Household:Validate Attendance Code:Set Campus:Active
            RockMigrationHelper.AddActionTypeAttributeValue("5ED3A49D-005D-45A6-8FD4-20C878715B1E", "FA7C685D-8636-41EF-9998-90FFF3998F76", @"");                                                                                                                                                                                                                                                                     // Text Attendance Household:Validate Attendance Code:Set Campus:Order
            RockMigrationHelper.AddActionTypeAttributeValue("5ED3A49D-005D-45A6-8FD4-20C878715B1E", "56997192-2545-4EA1-B5B2-313B04588984", @"0c46a949-4103-47e7-bb92-c70e74e51c13");                                                                                                                                                                                                                                 // Text Attendance Household:Validate Attendance Code:Set Campus:Result Attribute
            RockMigrationHelper.AddActionTypeAttributeValue("737B2608-D19A-4E83-9D46-2C1C29D3D769", "F3B9908B-096F-460B-8320-122CF046D1F9", @"DECLARE @groupname nvarchar(100) = '{{Workflow.AttendanceGroup}}'
SELECT [Guid] 
FROM [Group] g
WHERE g.[Name] = @groupname");                                                                                                                                                                                                                                                                                                                                                                                        // Text Attendance Household:Validate Attendance Code:Set AttendanceGroup:SQLQuery
            RockMigrationHelper.AddActionTypeAttributeValue("737B2608-D19A-4E83-9D46-2C1C29D3D769", "A18C3143-0586-4565-9F36-E603BC674B4E", @"False");                                                                                                                                                                                                                                                                // Text Attendance Household:Validate Attendance Code:Set AttendanceGroup:Active
            RockMigrationHelper.AddActionTypeAttributeValue("737B2608-D19A-4E83-9D46-2C1C29D3D769", "FA7C685D-8636-41EF-9998-90FFF3998F76", @"");                                                                                                                                                                                                                                                                     // Text Attendance Household:Validate Attendance Code:Set AttendanceGroup:Order
            RockMigrationHelper.AddActionTypeAttributeValue("737B2608-D19A-4E83-9D46-2C1C29D3D769", "56997192-2545-4EA1-B5B2-313B04588984", @"2fd0d6be-0efd-49f2-a597-1159596b4ccd");                                                                                                                                                                                                                                 // Text Attendance Household:Validate Attendance Code:Set AttendanceGroup:Result Attribute
            RockMigrationHelper.AddActionTypeAttributeValue("CEC70346-0CB7-4F0A-8427-30E0BFAC266A", "C9FC261D-84BF-41F7-9636-734EAAF0FD86", @"False");                                                                                                                                                                                                                                                                // Text Attendance Household:Validate Attendance Code:Validate Code:Active
            RockMigrationHelper.AddActionTypeAttributeValue("CEC70346-0CB7-4F0A-8427-30E0BFAC266A", "0FC7338D-F75D-401F-8F03-ADDA92315A3B", @"{{Workflow.FromPersonAttendanceCode}}");                                                                                                                                                                                                                                // Text Attendance Household:Validate Attendance Code:Validate Code:UserInputCode
            RockMigrationHelper.AddActionTypeAttributeValue("CEC70346-0CB7-4F0A-8427-30E0BFAC266A", "18BA2FE7-7620-42CE-8FD8-727A26683B81", @"");                                                                                                                                                                                                                                                                     // Text Attendance Household:Validate Attendance Code:Validate Code:Order
            RockMigrationHelper.AddActionTypeAttributeValue("80FB3FE0-0FEC-4F41-B0E7-43389852B41E", "E8ABD802-372C-47BE-82B1-96F50DB5169E", @"False");                                                                                                                                                                                                                                                                // Text Attendance Household:Validate Attendance Code:Activate Check in:Active
            RockMigrationHelper.AddActionTypeAttributeValue("80FB3FE0-0FEC-4F41-B0E7-43389852B41E", "3809A78C-B773-440C-8E3F-A8E81D0DAE08", @"");                                                                                                                                                                                                                                                                     // Text Attendance Household:Validate Attendance Code:Activate Check in:Order
            RockMigrationHelper.AddActionTypeAttributeValue("80FB3FE0-0FEC-4F41-B0E7-43389852B41E", "02D5A7A5-8781-46B4-B9FC-AF816829D240", @"69A83BE1-305C-459A-87C8-2E91EF4C7A53");                                                                                                                                                                                                                                 // Text Attendance Household:Validate Attendance Code:Activate Check in:Activity
            RockMigrationHelper.AddActionTypeAttributeValue("8B2A5A9C-4B5F-4D18-B05F-76AD7EAD6159", "DEDB581D-BF7A-4C01-BD61-49EF3FDA3425", @"False");                                                                                                                                                                                                                                                                // Text Attendance Household:Check In Family:Get Family names and Check In:Active
            RockMigrationHelper.AddActionTypeAttributeValue("8B2A5A9C-4B5F-4D18-B05F-76AD7EAD6159", "4552EE4D-E44E-4B3F-8EB3-43B2CFAC690A", @"2fd0d6be-0efd-49f2-a597-1159596b4ccd");                                                                                                                                                                                                                                 // Text Attendance Household:Check In Family:Get Family names and Check In:Group
            RockMigrationHelper.AddActionTypeAttributeValue("8B2A5A9C-4B5F-4D18-B05F-76AD7EAD6159", "CC40B360-481B-40D3-8361-767787006EC2", @"01866d17-6ab4-433f-af4d-16e394c2adf5");                                                                                                                                                                                                                                 // Text Attendance Household:Check In Family:Get Family names and Check In:PersonAttribute
            RockMigrationHelper.AddActionTypeAttributeValue("8B2A5A9C-4B5F-4D18-B05F-76AD7EAD6159", "CA4C04DE-BDBB-41B7-AD57-D3A261319189", @"");                                                                                                                                                                                                                                                                     // Text Attendance Household:Check In Family:Get Family names and Check In:Order
            RockMigrationHelper.AddActionTypeAttributeValue("8B2A5A9C-4B5F-4D18-B05F-76AD7EAD6159", "3FFA5814-2815-4988-9638-A9BF70C0A274", @"0c46a949-4103-47e7-bb92-c70e74e51c13");                                                                                                                                                                                                                                 // Text Attendance Household:Check In Family:Get Family names and Check In:Campus
            RockMigrationHelper.AddActionTypeAttributeValue("1BF7F571-8BE2-4FE3-A662-2C524F65AF70", "D7EAA859-F500-4521-9523-488B12EAA7D2", @"False");                                                                                                                                                                                                                                                                // Text Attendance Household:Check In Family:Send Check in Message:Active
            RockMigrationHelper.AddActionTypeAttributeValue("1BF7F571-8BE2-4FE3-A662-2C524F65AF70", "44A0B977-4730-4519-8FF6-B0A01A95B212", @"20fa0252-1140-495a-918e-530c33e31f93");                                                                                                                                                                                                                                 // Text Attendance Household:Check In Family:Send Check in Message:Attribute
            RockMigrationHelper.AddActionTypeAttributeValue("1BF7F571-8BE2-4FE3-A662-2C524F65AF70", "57093B41-50ED-48E5-B72B-8829E62704C8", @"");                                                                                                                                                                                                                                                                     // Text Attendance Household:Check In Family:Send Check in Message:Order
            RockMigrationHelper.AddActionTypeAttributeValue("1BF7F571-8BE2-4FE3-A662-2C524F65AF70", "E5272B11-A2B8-49DC-860D-8D574E2BC15C", @"Your family's: {{Workflow.FamilyNames}}, attendance has been recorded.");                                                                                                                                                                                               // Text Attendance Household:Check In Family:Send Check in Message:Text Value|Attribute Value
        }
Ejemplo n.º 30
0
 /// <summary>
 /// NA: Fix issue #4044 Incorrect Subject Line on Profile Change Request workflow email
 /// </summary>
 private void FixSubjectLineOnProfileChangeWorkflowEmail()
 {
     RockMigrationHelper.AddActionTypeAttributeValue("EE021FFF-7D5E-49B5-94F9-0EFD2E3FC349", "5D9B13B6-CD96-4C7C-86FA-4512B9D28386", @"Profile Change Request Completed");   // Profile Change Request:Complete:Notify Requester:Subject
 }