This repository includes the Advantys.Workflow.Applications.GSuite.dll
assembly and the associated Visual Studio project.
This assembly exposes multiple methods that can be used as WorkflowGen applications for each integration feature.
-
docs
: Workflow applications documentation -
processes
: Process definition file examples -
src
: Visual Studio solution
-
GSuite subscription
-
Access to GSuite admin panel: https://admin.google.com/
-
A user service account with GSuite email (such as
workflowgen@YOUR_DOMAIN.com
) -
Workflowgen.My.dll
4.2.0+ and WorkflowGen Server version 7.10.0 or later
Create a project in Google Developers Console (https://console.developers.google.com) with an admin account.
-
Go to https://console.developers.google.com/projectselector/iam-admin/serviceaccounts.
-
Click Create service account.
-
In the first window, set a name and description
-
In the second window, set the account as the
owner
of the project. -
In the last window, click Create a key and select
p12
as the key type. -
Save the
p12
file askey.p12
.
The following components will be installed in the WorkflowGen \bin
folders (\wfgen\bin
, \wfgen\ws\bin
, ..\Program Files\Advantys\WorkflowGen\Service\bin
):
Advantys.Workflow.Applications.GSuite.dll
Google.Apis.Auth v1.37.0
Google.Apis.Gmail.v1 v1.37.0.1431
Google.Apis.Calendar.v3 v1.37.0.1461
Google.Apis.Drive.v3 v1.37.0.1466
Google.Apis.Admin.Directory.directory_v1 v1.37.0.1355
MimeKit v2.1.0
BouncyCastle.1.8.2
The Newtonsoft.Json 10.0
librarie will be installed in the GAC.
-
Download the latest release pack to your WorkflowGen server.
-
Edit the
config.json
file, replacingWebAppPath
andServiceAppPath
with your own paths (the default values are already specified). -
Execute the
Install.ps1
script in PowerShell in Administrator mode.
-
Clone the repository.
-
Open the
WorkflowGenGSuite.sln
Visual Studio solution. -
Compile the solution and copy the generated
Advantys.Workflow.Applications.GSuite.dll
file to thesrc/Install
folder. -
Edit the
config.json
, replacingWebAppPath
andServiceAppPath
with your own paths (the default values are already specified). -
Execute the
Install.ps1
script in PowerShell.
Add the following settings to the WorkflowGen \wfgen\web.config
with your own values:
<add key="ServiceAccountEmail" value="SERVICE_ACCOUNT_EMAIL" />
<add key="GSuiteProjectId" value="PROJECT_NAME" />
<add key="GSuiteImpersonateUser" value="USER_EMAIL" />
<add key="GoogleCertificateLocation" value="P12_LOCATION" />
<add key="GSuiteServiceLogPath" value="LOG_PATH" />
-
SERVICE_ACCOUNT_EMAIL
: Email of the service you created earlier. -
PROJECT_NAME
: Name of your project. -
USER_EMAIL
: Your user service account with GSuite email (e.gworkflowgen@YOUR_DOMAIN.com
). -
P12_LOCATION
: Path to yourkey.p12
file. -
LOG_PATH
: The path where the logs will be saved.
Now that the required components are installed, you can deploy WorkflowGen applications for each integration.
- Send mail
- Create an event
- Upload a file
- Add an user