Example of Working of Custom Engine
Custom Engine is used to start or initiate a workflow. This engine requires custom code in VB.Net which decides the actions to be performed for starting the workflow. Custom code will be fired when no donotdelete tag is found in email body.
The following is an example of starting a workflow using Email.
- The Custom code specifies the EShare file ID which is to be downloaded from EShare server. This is an excel file template stored on EShare. This file will be later used to write the data received from email (without
donotdeletetag) and be attached to the workflow item emails.The custom code specifies the Windows user ID of the users who can initiate the workflow. Here "DC1, DC2,DC3, DC4" indicates the user ID that is used in email template. It is important that the user id mentioned in Custom code should be present in both Easy Workflow Cockpit and also in Email Runner users.
Also mentioned is the workflow ID to be started on the Excel file.
The workflow list in Easy Workflow Cockpit:
- Save the custom code.
- To start workflow using email, write a new mail which does not consist of any format keyword <
donotdeletetag>. This mail consist of workflow initiator information and the data to be written in the excel file. Send this mail to Email Runner.
-
Custom code is executed to start the workflow. On successful execution of the custom engine, the message is displayed to the initiator of the workflow.
-
You can verify the workflow started in the Easy Workflow Inbox window of the user assigned the workflow step.