Workflow Event Handler and Workflow Event Definition Tool

cDevWorkflow’s Workflow Event Handler User Interface:

 

Custom Workflow Event Handlers

Workflow Event Handlers can be custom built simply by implementing our Event Handler interface:

namespace cDevWorkflow.cDevDeAPI
 {
 public interface deIEventHandler
 {
 void execute(deEventContext oContext);
 }
 }

Here is the sample code for the “Write Text File” workflow event handler:

public class clsWriteTextFile : deIEventHandler
{
 public void execute(deEventContext oContext)
 {
 try
 {
 Hashtable oEventParms = oContext.getEventParameters();
 string sTempFileName = new FileInfo(Path.GetTempFileName()).Name;
 string sFilePath = Path.Combine("c:\temp", sTempFileName);
 foreach (DictionaryEntry oItem in oEventParms)
 {
 File.AppendAllText(sFilePath, string.Format("{0} - {1}", oItem.Key.ToString(), oItem.Value.ToString()));
 }
 oContext.markEventProcessed(deEventServiceBus.eventStatus.executed, "");
 }
 catch (Exception ex)
 {
 oContext.markEventProcessed(deEventServiceBus.eventStatus.error, ex.Message);
 }
 }

A small sampling of the Workflow Technology for BPM Solutions contained within our cDevWorkflow product offering can be found here: Workflow Technology That Works.

Learn more about our Process Automation & IT, QA Services or Software Development products and solutions on the Web!  Visit us at: Innovative Process Solutions