Skip to content

Commit d1bd5e9

Browse files
author
Warren Buckley
committed
Scaffolded empty workflow to verify it shows up in Umbraco Forms install
1 parent 970da79 commit d1bd5e9

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using Umbraco.Forms.Core;
4+
using Umbraco.Forms.Core.Enums;
5+
using Umbraco.Forms.Core.Persistence.Dtos;
6+
7+
namespace Umbraco.Forms.Extensions.Crm.Hubspot
8+
{
9+
public class HubspotWorkflow : WorkflowType
10+
{
11+
public HubspotWorkflow()
12+
{
13+
Id = new Guid("c47ef1ef-22b1-4b9d-acf6-f57cb8961550");
14+
Name = "Hubspot";
15+
Description = "Form submissions are sent to CRM Hubspot";
16+
Icon = "icon-handshake";
17+
Group = "CRM";
18+
}
19+
20+
public override WorkflowExecutionStatus Execute(Record record, RecordEventArgs e)
21+
{
22+
return WorkflowExecutionStatus.Completed;
23+
}
24+
25+
public override List<Exception> ValidateSettings()
26+
{
27+
return new List<Exception>();
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)