I am currently testing this package in trial mode for a client that is considering purchasing a license. My current setup is Umbraco 4.9, Win7, SQL Server CE, .Net 4 and IIS 7.5 on my local machine.
I have been following this thread in order to gather some thoughts about how to create my own e-mail task (due to the lack of documentation about developing e-mail tasks, I also downloaded this example). The default e-mail tasks that come with the workflow package work perfectly. Unfortunately, I'm having trouble sending e-mails in my own custom task. My two main problems are the following:
When I use the SendMail() method, it appears as if my task hangs or exits abruptly. When I take a look at my fm.workflow.log file I see the following messages:
INFO 16 FergusonMoriyam.Workflow.Application.Runtime.WorkflowRuntime - Runtime is processing workflows
And the log ends there. According to my test workflow, after my 'Send Document Denied Email' task comes a default 'End Task'. It seems as if the workflow hangs or dies or something that prevents it from getting there (besides not sending the e-mail as it should).
On the other hand, when using the SendEmail() method, I find the following exception in my log file:
ERROR 13 FergusonMoriyam.Workflow.Application.Runtime.WorkflowRuntime - An error occured during a runnable task (workflow will terminate) - SendEmailToNodeCreator.SendEmailToNodeCreatorTask
System.ArgumentNullException: Value cannot be null.
Parameter name: values
at System.String.Join(String separator, IEnumerable`1 values)
at FergusonMoriyam.Workflow.Umbraco.Domain.Task.BaseEmailWorkflowTask.ReplaceTokens(String text)
INFO 13 FergusonMoriyam.Workflow.Application.Runtime.WorkflowRuntime - Runtime is processing workflows
Upon finding such an exception in my log file, I made sure I wasn't passing any null values to the SendEmail() method and I'm still getting that error. It strikes me as odd that he considers a value as null. Obviously, as you can see, the workflow does not reach the "End Task" at the end of the workflow.
Is there any way you guys can help me? I have been able to develop runnable tasks, decisions tasks and delayed tasks and it kind of frustrates me not being able to develop a simple e-mail task (and seeing that the default e-mail tasks work well).
E-mails not being sent in a custom e-mail task.
Greetings everyone,
I am currently testing this package in trial mode for a client that is considering purchasing a license. My current setup is Umbraco 4.9, Win7, SQL Server CE, .Net 4 and IIS 7.5 on my local machine.
I have been following this thread in order to gather some thoughts about how to create my own e-mail task (due to the lack of documentation about developing e-mail tasks, I also downloaded this example). The default e-mail tasks that come with the workflow package work perfectly. Unfortunately, I'm having trouble sending e-mails in my own custom task. My two main problems are the following:
And the log ends there. According to my test workflow, after my 'Send Document Denied Email' task comes a default 'End Task'. It seems as if the workflow hangs or dies or something that prevents it from getting there (besides not sending the e-mail as it should).
Hi Nicolas,
If you email the source for your custom task to info @ moriya.ma then we will be happy to put it into one of environments and help you to debug it.
Many Thanks
Hi Darren,
I'll get send you the source code as soon as possible.
Thank you.
is working on a reply...