public IWorkflowInstance Instantiate(int workflowConfigurationId, IDictionary <string, object> properties)
        {
            var workflowInstance = CreateInstance(workflowConfigurationId);

            TheWorkflowInstanceRepository.Create(workflowInstance);
            return(workflowInstance);
        }
        public IWorkflowInstance Instantiate(int workflowConfigurationId)
        {
            var workflowInstance = CreateInstance(workflowConfigurationId);

            TheWorkflowInstanceRepository.Create(workflowInstance);
            return(workflowInstance);
        }